diff options
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls')
-rw-r--r-- | macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls | 62 |
1 files changed, 41 insertions, 21 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls index b6030f59d7..083f1ac710 100644 --- a/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls +++ b/macros/latex/contrib/univie-ling/tex/univie-ling-expose.cls @@ -4,6 +4,7 @@ %% PhD Research Proposals in (Applied) Linguistics at the University of Vienna %% %% This file is part of the univie-ling LaTeX bundle, consisting of: +%% -- univie-ling-handout.cls: Class for Handouts %% -- univie-ling-expose.cls: Class for PhD Research Proposals (this file) %% -- univie-ling-paper.cls: Class for student papers %% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses @@ -31,7 +32,12 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{univie-ling-expose}[2022/05/11 v1.18 Univie Linguistic Exposes (JSp)] +\ProvidesPackage{univie-ling-expose}[2022/06/18 v1.19 Univie Linguistic Exposes (JSp)] + + +%% ============================================================ +%% CLASS OPTIONS +%% ============================================================ \RequirePackage{xkeyval} @@ -67,7 +73,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown 'all' value}% } -\DeclareOptionX{all}[true]{\setkeys{uvt}{all=#1}} % biblatex=<true|false> % Load biblatex @@ -80,7 +85,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown biblatex value}% } -\DeclareOptionX{biblatex}[true]{\setkeys{uvt}{biblatex=#1}} % apa=<true|false> % Load APA style @@ -91,9 +95,8 @@ \apafalse \fi }{% - \ClassWarning{univie-ling-paper}{unknown apa value}% + \ClassWarning{univie-ling-expose}{unknown apa value}% } -\DeclareOptionX{apa}[true]{\setkeys{uvt}{apa=#1}} % caption=<true|false> % Load caption @@ -106,7 +109,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown caption value}% } -\DeclareOptionX{caption}[true]{\setkeys{uvt}{caption=#1}} % ref=<true|false> % Load varioref and prettyref @@ -119,7 +121,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown ref value}% } -\DeclareOptionX{ref}[true]{\setkeys{uvt}{ref=#1}} % covington=<true|false> % Load covington @@ -132,7 +133,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown covington value}% } -\DeclareOptionX{covington}[true]{\setkeys{uvt}{covington=#1}} % draftmark=<true|false> % Print draftmark @@ -148,9 +148,8 @@ \draftmarkfptrue \fi }{% - \ClassWarning{univie-ling-paper}{unknown draft value}% + \ClassWarning{univie-ling-expose}{unknown draft value}% } -\DeclareOptionX{draftmark}[true]{\setkeys{uvt}{draftmark=#1}} % microtype=<true|false> % Load microtype @@ -163,7 +162,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown microtype value}% } -\DeclareOptionX{microtype}[true]{\setkeys{uvt}{microtype=#1}} % polyglossia=<true|false> % Load polyglossia @@ -179,7 +177,6 @@ }{% \ClassWarning{univie-ling-expose}{unknown polyglossia value}% } -\DeclareOptionX{polyglossia}[true]{\setkeys{uvt}{polyglossia=#1}} % fonts=<ps|otf|none> \define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% @@ -197,11 +194,27 @@ \nofontstrue \fi }{% - \PackageWarning{univie-ling-paper}{unknown fonts value '#1'}% + \PackageWarning{univie-ling-expose}{unknown fonts value '#1'}% +} + +% fontenc=<value|false> +% customize font encoding +\newif\ifuniv@usefontenc\univ@usefontenctrue +\def\univ@fontenc{T1} +\define@choicekey*+{uvt}{fontenc}[\val\nr]{none}{% + \ifcase\nr\relax% none: + \univ@usefontencfalse + \fi +}{% + \def\univ@fontenc{#1}% } -\DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} -\ProcessOptionsX +% Process +\ProcessOptionsX<uvt> + +%% ============================================================ +%% BASE CLASS: +%% ============================================================ \LoadClass[% a4paper, @@ -227,7 +240,7 @@ \DeclareTranslation{German}{footnote}{Anm.} \DeclareTranslation{English}{footnote}{fn.} \DeclareTranslation{German}{example}{Beispiel} -\DeclareTranslation{English}{footnote}{example} +\DeclareTranslation{English}{example}{example} \DeclareTranslation{German}{stkz}{Studienkennzahl lt. Studienblatt} \DeclareTranslation{English}{stkz}{Degree programme code as it appears on the student record sheet} \DeclareTranslation{German}{strt}{Studienrichtung lt. Studienblatt} @@ -254,10 +267,12 @@ \ifpsfonts -\usepackage[T1]{fontenc} +\ifuniv@usefontenc + \RequirePackage[\univ@fontenc]{fontenc} +\fi % Times -\usepackage{mathptmx} +\RequirePackage{mathptmx} % Arial or Helvetica \IfFileExists{uarial.sty}{% @@ -265,12 +280,17 @@ }{% \RequirePackage{helvet} } + +% Source Code Pro (Courier) +\RequirePackage[scale=.93]{sourcecodepro} + \fi \ifotffonts -\RequirePackage{fontspec} -\setmainfont{Times New Roman} -\setsansfont{Arial} + \RequirePackage{fontspec} + \setmainfont{Times New Roman} + \setsansfont{Arial} + \setmonofont{SourceCodePro} \fi % Hyperlinks |