Initial commit
This commit is contained in:
10
texmf-local/tex/latex/oth/common/OTHR.sty
Normal file
10
texmf-local/tex/latex/oth/common/OTHR.sty
Normal file
@ -0,0 +1,10 @@
|
||||
%
|
||||
% Zeichensatzdefinition nach dem Corporate Identity Design der OTH Regensburg
|
||||
% Stand Oktober 2015
|
||||
%
|
||||
\ProvidesPackage{OTHR}[2015/10/01]
|
||||
%
|
||||
\RequirePackageWithOptions{OTHR_colors}
|
||||
\RequirePackageWithOptions{OTHR_logos}
|
||||
\RequirePackageWithOptions{OTHR_fonts}
|
||||
%
|
182
texmf-local/tex/latex/oth/common/OTHR_clscommons.sty
Normal file
182
texmf-local/tex/latex/oth/common/OTHR_clscommons.sty
Normal file
@ -0,0 +1,182 @@
|
||||
%
|
||||
%
|
||||
%
|
||||
\ProvidesPackage{OTHR_clscommons}
|
||||
%
|
||||
\RequirePackage{etoolbox}
|
||||
\RequirePackage{anyfontsize}
|
||||
\RequirePackage{iflang}
|
||||
%
|
||||
\newlength{\tlimagewidth}
|
||||
\newlength{\trboxwidth}
|
||||
%
|
||||
\date{}
|
||||
% Language dependent definitions
|
||||
% default: German
|
||||
\newcommand{\othr@common@departmentlabel}{Fakult\"at}
|
||||
\newcommand{\othr@common@programlabel}{Studiengang}
|
||||
\newcommand{\othr@common@closingdatelabel}{Abgabefrist}
|
||||
\newcommand{\othr@common@startingdatelabel}{Ausgabedatum}
|
||||
\newcommand{\othr@common@workingframelabel}{Bearbeitungszeitraum}
|
||||
\newcommand{\othr@common@studentidlabel}{Matrikelnummer}
|
||||
\newcommand{\othr@common@legalauthorlabel}{Vorgelegt durch}
|
||||
\newcommand{\othr@common@firstadvisorlabel}{Betreuung}
|
||||
\newcommand{\othr@common@secondadvisorlabel}{Zweitbegutachtung}
|
||||
\newcommand{\othr@common@externaladvisorlabel}{Externe Betreuung}
|
||||
% English
|
||||
\AtBeginDocument{\IfLanguageName{english}{%
|
||||
\renewcommand{\othr@common@departmentlabel}{Faculty}
|
||||
\renewcommand{\othr@common@programlabel}{Study Programme}
|
||||
\renewcommand{\othr@common@closingdatelabel}{Deadline}
|
||||
\renewcommand{\othr@common@startingdatelabel}{Starting Date}
|
||||
\renewcommand{\othr@common@workingframelabel}{Time Frame}
|
||||
\renewcommand{\othr@common@studentidlabel}{Student ID}
|
||||
\renewcommand{\othr@common@legalauthorlabel}{Presented by}
|
||||
\renewcommand{\othr@common@firstadvisorlabel}{Supervisor}
|
||||
\renewcommand{\othr@common@secondadvisorlabel}{Secondary Supervisor}
|
||||
\renewcommand{\othr@common@externaladvisorlabel}{External Supervisor}
|
||||
}{}}
|
||||
% Default values
|
||||
\newcommand{\othr@thesis@department}{}
|
||||
\newcommand{\othr@thesis@studycourse}{}
|
||||
\newcommand{\othr@thesis@closingdate}{}
|
||||
\newcommand{\othr@thesis@firstadvisor}{}
|
||||
\newcommand{\othr@thesis@secondadvisor}{}
|
||||
\newcommand{\othr@thesis@externaladvisor}{}
|
||||
\newcommand{\othr@thesis@matrikelnumber}{}
|
||||
\newcommand{\othr@thesis@thesistype}{Missing \textbackslash documenttype}
|
||||
% User Commands
|
||||
\newcommand{\department}[1]{\def\othr@thesis@department{#1}}
|
||||
\newcommand{\studyprogramme}[1]{\def\othr@thesis@studycourse{#1}}
|
||||
\newcommand{\studentid}[1]{\def\othr@thesis@matrikelnumber{#1}}
|
||||
\newcommand{\startingdate}[1]{\def\othr@thesis@startingdate{#1}}
|
||||
\newcommand{\closingdate}[1]{\def\othr@thesis@closingdate{#1}}
|
||||
\newcommand{\firstadvisor}[1]{\def\othr@thesis@firstadvisor{#1}}
|
||||
\newcommand{\secondadvisor}[1]{\def\othr@thesis@secondadvisor{#1}}
|
||||
\newcommand{\externaladvisor}[1]{\def\othr@thesis@externaladvisor{#1}}
|
||||
% external logo stuff
|
||||
\newcommand{\othr@thesis@externallogoPresent}{}
|
||||
\def\othr@thesis@externallogo{}
|
||||
\newcommand{\externallogo}[2][height=12mm]{
|
||||
\renewcommand{\othr@thesis@externallogoPresent}{true}
|
||||
\def\othr@thesis@externallogo{\includegraphics[#1]{#2}}
|
||||
}
|
||||
%
|
||||
\newcommand{\TheDocumenttype}{}
|
||||
%
|
||||
\newcommand{\documenttype}[1]{\renewcommand{\TheDocumenttype}{#1}\renewcommand{\othr@thesis@thesistype}{#1}}
|
||||
\newcommand{\TheLogo}{\OfficialLogoNormal}
|
||||
\newcommand{\SetLogo}[1]{\renewcommand{\TheLogo}{#1}}
|
||||
%
|
||||
\newcommand{\makehead}{%
|
||||
\settowidth{\tlimagewidth}{\TheLogo}%
|
||||
\setlength{\trboxwidth}{\textwidth}%
|
||||
\addtolength{\trboxwidth}{-1.0\tlimagewidth}%
|
||||
\begin{minipage}[t]{\tlimagewidth}\vspace{0pt}\TheLogo\end{minipage}\hfill%
|
||||
\begin{minipage}[t]{\trboxwidth}\vspace{0pt}\flushright\Large \TheDocumenttype\end{minipage}\\%
|
||||
\vspace{1mm plus 5mm minus 2mm}%
|
||||
}
|
||||
%
|
||||
%
|
||||
% Provide special maketitle-commands
|
||||
\newcommand{\@setlongtitle}{%
|
||||
\renewcommand*{\maketitle}{%
|
||||
\begin{titlepage}\sffamily\thispagestyle{empty}\enlargethispage{.05\paperheight}%
|
||||
\noindent\begin{minipage}{\linewidth}\noindent%
|
||||
\ifdefempty{\othr@thesis@externallogoPresent}{\TheLogo}{\TheLogo\hfill\othr@thesis@externallogo}
|
||||
\end{minipage}
|
||||
|
||||
\vfill\vfill
|
||||
|
||||
\noindent{\fontsize{28}{34}\selectfont\bfseries\MakeUppercase\othr@thesis@thesistype}\\[1em]
|
||||
\begin{flushleft}\noindent\LARGE\@author\end{flushleft}
|
||||
|
||||
\vfill\vfill
|
||||
|
||||
{\noindent\fontsize{20}{24}\selectfont\raggedright\textbf\@title \par%
|
||||
\ifdefempty{\@subtitle}{}{\vspace{1.5ex}\@subtitle\par}}
|
||||
|
||||
\vfill\vfill\vfill\vfill
|
||||
|
||||
\noindent{\large\@date}
|
||||
|
||||
\vfill
|
||||
|
||||
\noindent\raggedright
|
||||
{\fontsize{12}{15}\selectfont\begin{tabular}{@{}l@{\qquad}l@{}}
|
||||
\ifdefempty{\othr@thesis@department}{}{\othr@common@departmentlabel: & \othr@thesis@department\\}
|
||||
\ifdefempty{\othr@thesis@studycourse}{}{\othr@common@programlabel: & \othr@thesis@studycourse\\}
|
||||
\ifdefempty{\othr@thesis@closingdate}{}{\othr@common@closingdatelabel: & \othr@thesis@closingdate\\}
|
||||
\ifdefempty{\othr@thesis@firstadvisor}{}{\othr@common@firstadvisorlabel: & \othr@thesis@firstadvisor\\}
|
||||
\ifdefempty{\othr@thesis@secondadvisor}{}{\othr@common@secondadvisorlabel: & \othr@thesis@secondadvisor\\}
|
||||
\ifdefempty{\othr@thesis@externaladvisor}{}{\othr@common@externaladvisorlabel: & \othr@thesis@externaladvisor\\}
|
||||
\end{tabular}}
|
||||
\clearpage
|
||||
\end{titlepage}
|
||||
}%
|
||||
}
|
||||
%
|
||||
\newcommand{\@setshorttitle}{%
|
||||
\renewcommand*{\maketitle}{%
|
||||
\thispagestyle{plain}\vspace*{-.085\paperheight}\makehead\par%
|
||||
\vspace*{7ex}
|
||||
\begin{center}\sffamily%
|
||||
{\fontsize{20}{24}\selectfont\textbf\@title \par}
|
||||
|
||||
\vspace{1ex}
|
||||
|
||||
{\Large \@author}
|
||||
|
||||
\vspace{2ex}
|
||||
|
||||
{\large\@date}
|
||||
\end{center}
|
||||
\vspace*{5ex}
|
||||
}%
|
||||
}
|
||||
%%
|
||||
%
|
||||
% Erklaerung fuer Eigenleistung
|
||||
%
|
||||
\newcommand*{\makedeclaration}{%
|
||||
{\cleardoublepage\thispagestyle{empty}\enlargethispage{.05\paperheight}%
|
||||
|
||||
\textbf{Erkl\"arung}
|
||||
\begin{enumerate}
|
||||
\item Mir ist bekannt, dass dieses Exemplar der \othr@thesis@thesistype{} als Pr\"ufungsleistung in das Eigentum der Ostbayerischen Technischen Hochschule Regensburg \"ubergeht.
|
||||
\item Ich erkl\"are hiermit, dass ich diese \othr@thesis@thesistype{} selbstst\"andig verfasst, noch nicht anderweitig für Pr\"ufungszwecke vorgelegt, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt sowie w\"ortliche und sinngem\"a\ss e Zitate als solche gekennzeichnet habe.
|
||||
\end{enumerate}
|
||||
|
||||
\vskip22mm
|
||||
\hrule
|
||||
\vskip1mm
|
||||
{\footnotesize Ort, Datum und Unterschrift}
|
||||
|
||||
\vfill
|
||||
|
||||
\noindent\raggedright
|
||||
{\fontsize{12}{15}\selectfont\begin{tabular}{@{}l@{\qquad}l@{}}
|
||||
\ifdefempty{\@author}{}{\othr@common@legalauthorlabel: & \@author\\}
|
||||
\ifdefempty{\othr@thesis@matrikelnumber}{}{\othr@common@studentidlabel: & \othr@thesis@matrikelnumber\\}
|
||||
\ifdefempty{\othr@thesis@studycourse}{}{\othr@common@programlabel: & \othr@thesis@studycourse\\}
|
||||
\ifdefempty{\othr@thesis@closingdate}{}{\othr@common@workingframelabel: & \othr@thesis@startingdate{} -- \othr@thesis@closingdate\\}
|
||||
\ifdefempty{\othr@thesis@firstadvisor}{}{\othr@common@firstadvisorlabel: & \othr@thesis@firstadvisor\\}
|
||||
\ifdefempty{\othr@thesis@secondadvisor}{}{\othr@common@secondadvisorlabel: & \othr@thesis@secondadvisor\\}
|
||||
\ifdefempty{\othr@thesis@externaladvisor}{}{\othr@common@externaladvisorlabel: & \othr@thesis@externaladvisor\\}
|
||||
\end{tabular}}
|
||||
\clearpage
|
||||
}
|
||||
}
|
||||
|
||||
%Implement Options
|
||||
\@setlongtitle{}
|
||||
\DeclareOptionX*{}
|
||||
\DeclareOptionX{titlepage}{%
|
||||
\@setlongtitle{}
|
||||
}
|
||||
\DeclareOptionX{notitlepage}{%
|
||||
\@setshorttitle{}
|
||||
}
|
||||
|
||||
\ProcessOptionsX*\relax
|
||||
|
164
texmf-local/tex/latex/oth/common/OTHR_colors.sty
Normal file
164
texmf-local/tex/latex/oth/common/OTHR_colors.sty
Normal file
@ -0,0 +1,164 @@
|
||||
%
|
||||
% Farbdefinitionen nach dem Corporate Identity Design der OTH Regensburg
|
||||
% Stand Oktober 2015
|
||||
%
|
||||
\ProvidesPackage{OTHR_colors}[2015/10/01]
|
||||
%
|
||||
\RequirePackageWithOptions{xcolor}
|
||||
\usepackage{xkeyval}
|
||||
%
|
||||
% if fuer blackFont-Option
|
||||
\newif\if@doBlackFont
|
||||
\@doBlackFontfalse
|
||||
%
|
||||
%Optionen
|
||||
\DeclareOptionX*{}
|
||||
\DeclareOptionX{blackFont}{
|
||||
\@doBlackFonttrue
|
||||
}
|
||||
\def\@currentDepartment{OTHR}
|
||||
\DeclareOptionX{department}[OTHR]{
|
||||
\def\@currentDepartment{#1}
|
||||
}
|
||||
\ProcessOptionsX*\relax
|
||||
|
||||
|
||||
% [ type ]{ model-list }{ head }{ tail }{ set spec }
|
||||
\definecolorset{cmyk}{OTHR}{}{grau,0,0,0,.50;schwarz,0,0,0,1.00}
|
||||
%
|
||||
% Fakultäten (Grundfarben)
|
||||
\definecolorset{cmyk}{Fak}{}{%
|
||||
AM,.03,.03,.15,.20;%
|
||||
ANK,.03,.03,.15,.20;%
|
||||
A,0,0,1.00,0;%
|
||||
B,0,.60,1.00,0;%
|
||||
BW,0,.90,1.00,.20;%
|
||||
EI,.60,1.00,0,0;%
|
||||
IM,1.00,.80,0,0;%
|
||||
M,1.00,0,.35,0;%
|
||||
S,1.00,0,.90,.10%
|
||||
}
|
||||
\definecolor{ZWW}{cmyk}{.20,0,1.00,0}
|
||||
\definecolor{LASIII}{rgb}{.223,.412,.489}
|
||||
\definecolor{LASIIIcontrast}{rgb}{.737,.850,.482}
|
||||
|
||||
|
||||
|
||||
% 1. Arg: Basisname der Farbe
|
||||
% 2. Arg: Farbe von der abgeleitet wird
|
||||
% 3. Arg: Schriftfarbe
|
||||
% 4. Arg: Kontrastfarbe
|
||||
\newcommand{\@createColors}[4]{
|
||||
\colorlet{#1}{#2}
|
||||
\colorlet{#125}{#1!25}
|
||||
\colorlet{#150}{#1!50}
|
||||
\colorlet{#190}{#1!90}
|
||||
\if@doBlackFont
|
||||
% wenn die Kontrastfarbe nicht weiss ist,
|
||||
% so darf sie auch bei blackFont nicht weiss sein
|
||||
\ifnum\pdf@strcmp{\unexpanded{#4}}{white}=0 %
|
||||
\colorlet{#1FontColor}{black}
|
||||
\colorlet{#1ContrastColor}{white}
|
||||
\else
|
||||
\colorlet{#1FontColor}{white}
|
||||
\colorlet{#1ContrastColor}{black}
|
||||
\fi
|
||||
\else
|
||||
\colorlet{#1FontColor}{#3}
|
||||
\colorlet{#1ContrastColor}{#4}
|
||||
\fi
|
||||
}
|
||||
|
||||
\newcommand{\@createCurrentDepartmentColors}[1]{
|
||||
\colorlet{Accent}{#1}
|
||||
\colorlet{Accent25}{#125}
|
||||
\colorlet{Accent50}{#150}
|
||||
\colorlet{Accent90}{#190}
|
||||
\colorlet{AccentFontColor}{#1FontColor}
|
||||
\colorlet{AccentContrastColor}{#1ContrastColor}
|
||||
}
|
||||
|
||||
% OTHR Farben
|
||||
\@createColors{OTHR}{OTHRgrau}{OTHRgrau}{white}
|
||||
|
||||
% sonstiges
|
||||
\@createColors{ZWW}{ZWW}{OTHRgrau}{black}
|
||||
|
||||
% Fakultätsfarben
|
||||
\@createColors{FakA}{FakA}{OTHRgrau}{black}
|
||||
\@createColors{FakAM}{FakAM}{FakAM}{black}
|
||||
\@createColors{FakANK}{FakANK}{FakANK}{black}
|
||||
\@createColors{FakB}{FakB}{FakB}{white}
|
||||
\@createColors{FakBW}{FakBW}{FakBW}{white}
|
||||
\@createColors{FakEI}{FakEI}{FakEI}{white}
|
||||
\@createColors{FakIM}{FakIM}{FakIM}{white}
|
||||
\@createColors{FakM}{FakM}{FakM}{white}
|
||||
\@createColors{FakS}{FakS}{FakS}{white}
|
||||
|
||||
%% Center
|
||||
\@createColors{RCER}{OTHRgrau}{OTHRgrau}{white}
|
||||
\@createColors{RCHST}{OTHRgrau}{OTHRgrau}{white}
|
||||
|
||||
|
||||
% Laborfarben
|
||||
% FakAM
|
||||
\@createColors{NACH}{FakANK}{FakANK}{white}
|
||||
\@createColors{SappZ}{FakANK}{FakANK}{white}
|
||||
|
||||
% FakB
|
||||
\@createColors{Geo}{FakB}{FakB}{white}
|
||||
\@createColors{KNB}{FakB}{FakB}{white}
|
||||
|
||||
% Fak BW
|
||||
\@createColors{12Science}{FakBW}{FakBW}{white}
|
||||
|
||||
% FakEI
|
||||
\@createColors{Bisp}{FakEI}{FakEI}{white}
|
||||
\@createColors{LAS3}{LASIII}{LASIII}{LASIIIcontrast}
|
||||
\@createColors{DK0PT}{FakEI}{FakEI}{white}
|
||||
\@createColors{FENES}{FakEI}{FakEI}{white}
|
||||
\@createColors{MRU}{FakEI}{FakEI}{white}
|
||||
\@createColors{SES}{FakEI}{FakEI}{white}
|
||||
|
||||
% FakIM
|
||||
\@createColors{CCSE}{FakIM}{FakIM}{white}
|
||||
\@createColors{eHealth}{FakIM}{FakIM}{white}
|
||||
\@createColors{ITZ}{FakIM}{FakIM}{white}
|
||||
\@createColors{LFD}{FakIM}{FakIM}{white}
|
||||
\@createColors{MD}{FakIM}{FakIM}{white}
|
||||
\@createColors{ReMIC}{FakIM}{FakIM}{white}
|
||||
\@createColors{SEC}{FakIM}{FakIM}{white}
|
||||
|
||||
% FakM
|
||||
\@createColors{BFM}{FakM}{FakM}{white}
|
||||
\@createColors{BMA}{FakM}{FakM}{white}
|
||||
\@createColors{CEEC}{FakM}{FakM}{white}
|
||||
\@createColors{CFD}{FakM}{FakM}{white}
|
||||
\@createColors{IPF}{FakM}{FakM}{white}
|
||||
\@createColors{KIB}{FakM}{FakM}{white}
|
||||
\@createColors{KWK}{FakM}{FakM}{white}
|
||||
\@createColors{LAT}{FakM}{FakM}{white}
|
||||
\@createColors{LBM}{FakM}{FakM}{white}
|
||||
\@createColors{LeanLab}{FakM}{FakM}{white}
|
||||
\@createColors{LFT}{FakM}{FakM}{white}
|
||||
\@createColors{LFW}{FakM}{FakM}{white}
|
||||
\@createColors{LMP}{FakM}{FakM}{white}
|
||||
\@createColors{LMS}{FakM}{FakM}{white}
|
||||
\@createColors{LRT}{FakM}{FakM}{white}
|
||||
\@createColors{LWM}{FakM}{FakM}{white}
|
||||
\@createColors{LWS}{FakM}{FakM}{white}
|
||||
\@createColors{MKS}{FakM}{FakM}{white}
|
||||
\@createColors{MST}{FakM}{FakM}{white}
|
||||
\@createColors{RRRU}{FakM}{FakM}{white}
|
||||
\@createColors{RST}{FakM}{FakM}{white}
|
||||
\@createColors{FEM}{FakM}{FakM}{white}
|
||||
|
||||
% FakS
|
||||
\@createColors{IST}{FakS}{FakS}{white}
|
||||
\@createColors{LP}{FakS}{FakS}{white}
|
||||
\@createColors{PT}{FakS}{FakS}{white}
|
||||
|
||||
|
||||
% current Department
|
||||
\@createCurrentDepartmentColors{\@currentDepartment}
|
||||
|
72
texmf-local/tex/latex/oth/common/OTHR_fonts.sty
Normal file
72
texmf-local/tex/latex/oth/common/OTHR_fonts.sty
Normal file
@ -0,0 +1,72 @@
|
||||
%
|
||||
% Zeichensatzdefinition nach dem Corporate Identity Design der OTH Regensburg
|
||||
%
|
||||
\ProvidesPackage{OTHR_fonts}[2019/05/01]
|
||||
\RequirePackage{iftex}
|
||||
%
|
||||
%
|
||||
\def\perform@AutomaticFontsetting{
|
||||
\RequirePackage{fontspec}
|
||||
\IfFontExistsTF{Lucida Grande}{\set@LucidaGrandeFont}{
|
||||
\message{Font Lucida Grande is not present. Falling back to font Lucida Bright OT.}
|
||||
\IfFontExistsTF{Lucida Bright OT}
|
||||
{\set@LucidaOTFont}{
|
||||
\message{Font Lucida Bright OT is not present. Falling back to font Dejavu.}
|
||||
\set@DejaVuFont}
|
||||
}
|
||||
}
|
||||
%
|
||||
\def\set@DejaVuFont{
|
||||
\ifLuaTeX\relax\else\RequirePackage[T1]{fontenc}\fi
|
||||
\RequirePackage[scaled=0.91]{DejaVuSans}
|
||||
\RequirePackage[scaled=0.91]{DejaVuSansMono}
|
||||
\RequirePackage[scaled=0.91]{DejaVuSerif}
|
||||
}
|
||||
%
|
||||
\def\set@LucidaFont{
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{textcomp}
|
||||
\RequirePackage[expert,vargreek,altbullet]{lucidabr}
|
||||
}
|
||||
%
|
||||
\def\set@LucidaOTFont{
|
||||
\RequirePackage{fontspec}
|
||||
\setmainfont[Ligatures={TeX, Common},
|
||||
Numbers={OldStyle, Proportional},
|
||||
Kerning=On]{Lucida Bright OT}
|
||||
\setsansfont[Ligatures={TeX, Common},
|
||||
Numbers={OldStyle, Proportional}]{Lucida Sans OT}
|
||||
\setmonofont{Lucida Sans Typewriter OT}
|
||||
}
|
||||
%
|
||||
\def\set@LucidaGrandeFont{
|
||||
\RequirePackage{fontspec}
|
||||
\setmainfont[Ligatures={TeX, Common},
|
||||
Numbers={OldStyle, Proportional},
|
||||
Kerning=On]{Lucida Grande}
|
||||
\setsansfont[Ligatures={TeX, Common},
|
||||
Numbers={OldStyle, Proportional}]{Lucida Grande}
|
||||
\setmonofont{Courier New}}
|
||||
%
|
||||
\def\set@RomanFont{
|
||||
\renewcommand{\familydefault}{\rmdefault}
|
||||
}
|
||||
%
|
||||
%% Declare the options
|
||||
%
|
||||
\DeclareOption{AutomaticFonts}{\AtEndOfPackage\perform@AutomaticFontsetting}
|
||||
\DeclareOption{LucidaGrande}{\AtEndOfPackage\set@LucidaGrandeFont}
|
||||
\DeclareOption{Lucida}{\AtEndOfPackage\set@LucidaFont}
|
||||
\DeclareOption{lucida}{\AtEndOfPackage\set@LucidaFont}
|
||||
\DeclareOption{LucidaOT}{\AtEndOfPackage\set@LucidaOTFont}
|
||||
\DeclareOption{lucidaOT}{\AtEndOfPackage\set@LucidaOTFont}
|
||||
\DeclareOption{KeepRoman}{\AtEndOfPackage\set@RomanFont}
|
||||
\DeclareOption{DejaVu}{\AtEndOfPackage\set@DejaVuFont}
|
||||
\DeclareOption*{}%accept any undefined options here!
|
||||
%
|
||||
\ifLuaTeX\ExecuteOptions{AutomaticFonts}\else\ExecuteOptions{DejaVu}\fi
|
||||
\ProcessOptions\relax
|
||||
%
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
%
|
||||
|
200
texmf-local/tex/latex/oth/common/OTHR_logos.sty
Normal file
200
texmf-local/tex/latex/oth/common/OTHR_logos.sty
Normal file
@ -0,0 +1,200 @@
|
||||
%
|
||||
% Farbdefinitionen nach dem Corporate Identity Design der OTH Regensburg
|
||||
% Stand Oktober 2015
|
||||
%
|
||||
\ProvidesPackage{OTHR_logos}[2015/10/01]
|
||||
%
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{xkeyval}
|
||||
\RequirePackage{pdftexcmds}
|
||||
|
||||
%
|
||||
\newlength{\faklogosmall}
|
||||
\setlength{\faklogosmall}{16mm}
|
||||
\newlength{\faklogonormal}
|
||||
\setlength{\faklogonormal}{20mm}
|
||||
\newlength{\faklogolarge}
|
||||
\setlength{\faklogolarge}{24mm}
|
||||
\newlength{\faklogohuge}
|
||||
\setlength{\faklogohuge}{28mm}
|
||||
|
||||
%
|
||||
\newcommand{\logoFlexible}{}
|
||||
%
|
||||
|
||||
\def\@defineDepartmentlogos#1{%
|
||||
|
||||
\ifnum\pdf@strcmp{#1}{OTHR}=\z@ %
|
||||
\def\logoSmall{\includegraphics[height=12mm]{OTHR_#1_Logo}}
|
||||
\def\logoNormal{\includegraphics[height=16mm]{OTHR_#1_Logo}}
|
||||
\def\logoLarge{\includegraphics[height=20mm]{OTHR_#1_Logo}}
|
||||
\def\logoHuge{\includegraphics[height=24mm]{OTHR_#1_Logo}}
|
||||
\renewcommand{\logoFlexible}[1][draft]{\includegraphics[##1]{OTHR_#1_Logo}}
|
||||
\else %
|
||||
\def\logoSmall{\includegraphics[height=\faklogosmall]{OTHR_#1_Logo}}
|
||||
\def\logoNormal{\includegraphics[height=\faklogonormal]{OTHR_#1_Logo}}
|
||||
\def\logoLarge{\includegraphics[height=\faklogolarge]{OTHR_#1_Logo}}
|
||||
\def\logoHuge{\includegraphics[height=\faklogohuge]{OTHR_#1_Logo}}
|
||||
\renewcommand{\logoFlexible}[1][draft]{\includegraphics[##1]{OTHR_#1_Logo}}
|
||||
\fi %
|
||||
}
|
||||
|
||||
% Statische Logos
|
||||
|
||||
% Labore mit Zahlen im Namen sind... "kompliziert"
|
||||
% da Zahlen in Latexmacronamen nicht erlaubt sind
|
||||
% \@fixedLogos{LaborName}[optionaler-Logo-Dateiname]
|
||||
% wird das zweite Argument nicht angegeben, wird das
|
||||
% erste Argument als Argument verwendet
|
||||
\newcommand{\@defineLogos}[1]{%
|
||||
\@ifnextchar[{\@defineLogos@i{#1}}{\@defineLogos@i{#1}[#1]}%
|
||||
}
|
||||
\def\@defineLogos@i#1[#2]{%
|
||||
\ifnum\pdf@strcmp{#1}{OTHR}=\z@ %
|
||||
\expandafter\newcommand\csname logoSmall#1\endcsname{{\includegraphics[height=12mm]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoNormal#1\endcsname{{\includegraphics[height=16mm]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoLarge#1\endcsname{{\includegraphics[height=20mm]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoHuge#1\endcsname{{\includegraphics[height=24mm]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoFlexible#1\endcsname[1][draft]{{\includegraphics[##1]{OTHR_#2_Logo}}}
|
||||
\else %
|
||||
\expandafter\newcommand\csname logoSmall#1\endcsname{{\includegraphics[height=\faklogosmall]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoNormal#1\endcsname{{\includegraphics[height=\faklogonormal]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoLarge#1\endcsname{{\includegraphics[height=\faklogolarge]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoHuge#1\endcsname{{\includegraphics[height=\faklogohuge]{OTHR_#2_Logo}}}
|
||||
\expandafter\newcommand\csname logoFlexible#1\endcsname[1][draft]{{\includegraphics[##1]{OTHR_#2_Logo}}}
|
||||
\fi %
|
||||
}
|
||||
|
||||
\newcommand{\@defineKurzLogos}[1]{%
|
||||
\@ifnextchar[{\@defineKurzLogos@i{#1}}{\@defineKurzLogos@i{#1}[#1]}%
|
||||
}
|
||||
\def\@defineKurzLogos@i#1[#2]{%
|
||||
\expandafter\newcommand\csname kurzlogoSmall#1\endcsname{{\includegraphics[height=\faklogosmall]{OTHR_#2_Logo_kurz}}}
|
||||
\expandafter\newcommand\csname kurzlogoNormal#1\endcsname{{\includegraphics[height=\faklogonormal]{OTHR_#2_Logo_kurz}}}
|
||||
\expandafter\newcommand\csname kurzlogoLarge#1\endcsname{{\includegraphics[height=\faklogolarge]{OTHR_#2_Logo_kurz}}}
|
||||
\expandafter\newcommand\csname kurzlogoHuge#1\endcsname{{\includegraphics[height=\faklogohuge]{OTHR_#2_Logo_kurz}}}
|
||||
\expandafter\newcommand\csname kurzlogoFlexible#1\endcsname[1][draft]{{\includegraphics[##1]{OTHR_#2_Logo_kurz}}}
|
||||
}
|
||||
|
||||
% OTHR Logos
|
||||
\@defineLogos{OTHR}
|
||||
\@defineKurzLogos{OTHR}
|
||||
\@defineLogos{OTHRLaTeX}
|
||||
|
||||
% sonstiges
|
||||
\@defineLogos{IPF}
|
||||
\@defineLogos{ZWW}
|
||||
|
||||
% Fakultätslogos
|
||||
\@defineLogos{FakA}
|
||||
\@defineLogos{FakAM}
|
||||
\@defineLogos{FakANK}
|
||||
\@defineLogos{FakB}
|
||||
\@defineLogos{FakBW}
|
||||
\@defineLogos{FakEI}
|
||||
\@defineLogos{FakIM}
|
||||
\@defineLogos{FakM}
|
||||
\@defineLogos{FakS}
|
||||
|
||||
% Logos für Center
|
||||
\@defineLogos{RCER}
|
||||
\@defineLogos{RCHST}
|
||||
|
||||
% Laborlogos
|
||||
% FakAM
|
||||
\@defineLogos{SappZ}
|
||||
\@defineLogos{NACH}
|
||||
|
||||
% FakB
|
||||
\@defineLogos{Geo}
|
||||
\@defineLogos{KNB}
|
||||
|
||||
% Fak BW
|
||||
\@defineLogos{OneTwoScience}[12Science]
|
||||
|
||||
% FakEI
|
||||
\@defineLogos{LASIII}[LAS3]
|
||||
\@defineLogos{DKOPT}[DK0PT]
|
||||
\@defineLogos{FENES}
|
||||
\@defineLogos{SES}
|
||||
\@defineLogos{Bisp}
|
||||
\@defineLogos{MRU}
|
||||
|
||||
% FakIM
|
||||
\@defineLogos{CCSE}
|
||||
\@defineLogos{eHealth}
|
||||
\@defineLogos{ITZ}
|
||||
\@defineLogos{LFD}
|
||||
\@defineLogos{MD}
|
||||
\@defineLogos{ReMIC}
|
||||
\@defineLogos{SEC}
|
||||
|
||||
% FakM
|
||||
\@defineLogos{BFM}
|
||||
\@defineLogos{BMA}
|
||||
\@defineLogos{CEEC}
|
||||
\@defineLogos{CFD}
|
||||
\@defineLogos{KIB}
|
||||
\@defineLogos{KWK}
|
||||
\@defineLogos{LAT}
|
||||
\@defineLogos{LBM}
|
||||
\@defineLogos{LeanLab}
|
||||
\@defineLogos{LFT}
|
||||
\@defineLogos{LFW}
|
||||
\@defineLogos{LMP}
|
||||
\@defineLogos{LMS}
|
||||
\@defineLogos{LRT}
|
||||
\@defineLogos{LWM}
|
||||
\@defineLogos{LWS}
|
||||
\@defineLogos{MKS}
|
||||
\@defineLogos{MST}
|
||||
\@defineLogos{RRRU}
|
||||
\@defineLogos{RST}
|
||||
\@defineLogos{FEM}
|
||||
|
||||
% FakS
|
||||
\@defineLogos{IST}
|
||||
\@defineLogos{LP}
|
||||
\@defineLogos{PT}
|
||||
%
|
||||
% Official-Logo Commands
|
||||
\newcommand{\OfficialLogoSmall}{\logoSmallOTHR}
|
||||
\newcommand{\OfficialLogoNormal}{\logoNormalOTHR}
|
||||
\newcommand{\OfficialLogoLarge}{\logoLargeOTHR}
|
||||
\newcommand{\OfficialLogoHuge}{\logoHugeOTHR}
|
||||
\newcommand{\OfficialLogoFlexible}[1][1]{\logoFlexibleOTHR[#1]}
|
||||
%
|
||||
\newcommand{\useDepartmentLogo}{
|
||||
\renewcommand{\OfficialLogoSmall}{\logoSmall}
|
||||
\renewcommand{\OfficialLogoNormal}{\logoNormal}
|
||||
\renewcommand{\OfficialLogoLarge}{\logoLarge}
|
||||
\renewcommand{\OfficialLogoHuge}{\logoHuge}
|
||||
\renewcommand{\OfficialLogoFlexible}[1][1]{\logoFlexible[##1]}
|
||||
}
|
||||
\newcommand{\useOTHRLogo}{
|
||||
\renewcommand{\OfficialLogoSmall}{\logoSmallOTHR}
|
||||
\renewcommand{\OfficialLogoNormal}{\logoNormalOTHR}
|
||||
\renewcommand{\OfficialLogoLarge}{\logoLargeOTHR}
|
||||
\renewcommand{\OfficialLogoHuge}{\logoHugeOTHR}
|
||||
\renewcommand{\OfficialLogoFlexible}[1][1]{\logoFlexibleOTHR[##1]}
|
||||
}
|
||||
|
||||
%Optionen
|
||||
\DeclareOptionX*{}
|
||||
\DeclareOptionX{department}[OTHR]{%
|
||||
\csname @defineDepartmentlogos\endcsname{#1}
|
||||
}
|
||||
\DeclareOptionX{useDepartmentLogo}{%
|
||||
\useDepartmentLogo{}
|
||||
}
|
||||
\DeclareOptionX{useOTHRLogo}{%
|
||||
\useOTHRLogo{}
|
||||
}
|
||||
|
||||
% Set up defaults
|
||||
\@defineDepartmentlogos{OTHR}
|
||||
|
||||
\ProcessOptionsX*\relax
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user