Setup for confidential option on class level.

This commit is contained in:
Achim D. Brucker 2017-01-04 23:25:08 +00:00
parent f29509c681
commit 60b33d3cdc
2 changed files with 40 additions and 9 deletions

View File

@ -12,21 +12,17 @@
\ProvidesPackage{beamerthemelh-presentation}
[2016/11/01 v0.0 LaTeX presentation class implementing the cooperate design of LogicalHacking.com]
\mode<presentation>
\def\lh@classification{Confidential}
\newif\ifbeamer@colour
\beamer@colourfalse
\DeclareOptionBeamer{colour}{\beamer@colourtrue}
\ProcessOptionsBeamer
\ProcessOptions
\mode<presentation>
\def\lh@classification{\classification}
\RequirePackage{xcolor}
\RequirePackage[]{lh-logo}[2016/08/15]
\RequirePackage{tikz}
\RequirePackage{xparse}
\usepackage{lmodern}
\usepackage{raleway}

View File

@ -12,6 +12,41 @@
\ProvidesClass{lh-presentation}%
[2016/12/28 v0.0 LaTeX presenation class implementing the cooperate design of LogicalHacking.com]
\LoadClassWithOptions{beamer}[]
\usepackage{xkeyval}
\newcommand{\classification}{UNDEFINED}
\define@choicekey*{beamerthemelh-presentation.sty}{classification}[\val\nr]%
{strictlyconfidential,confidential,internal,customer,public-cc-by-nc-nd,%
public-cc-by-nd,public-cc-by,public-cc-zero,public-gfdl}%
[strictlyconfidential]%
{%
\ifcase\nr\relax
\renewcommand{\classification}{\alert{Strictly Confidential}}%
\or
\renewcommand{\classification}{\alert{Confidential}}%
\or
\renewcommand{\classification}{\alert{Internal}}%
\or
\renewcommand{\classification}{\alert{Customer}}%
\or
\renewcommand{\classification}{Public (CC-BY-NC-ND)}%
\or
\renewcommand{\classification}{Public (CC-BY-ND)}%
\or
\renewcommand{\classification}{Public (CC-BY)}%
\or
\renewcommand{\classification}{Public (CC0)}%
\or
\renewcommand{\classification}{Public (GFDL)}%
\fi%
}
\ProcessOptionsX*<beamerthemelh-presentation.sty>
\ProcessOptions\relax
\usetheme{lh-presentation}
\endinput