diff options
author | Norbert Preining <norbert@preining.info> | 2022-06-19 03:01:19 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-06-19 03:01:19 +0000 |
commit | 15103df278e40e78061cca62bd5d956644f3352a (patch) | |
tree | a489dd477a37ffcf26053a1ed635089750a3c6c8 /macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls | |
parent | 6864115d88342e22800eb415b70bdffaed2ca3c4 (diff) |
CTAN sync 202206190301
Diffstat (limited to 'macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls')
-rw-r--r-- | macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls b/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls index b7f727e0fb..cce1fdfbbc 100644 --- a/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls +++ b/macros/latex/contrib/univie-ling/tex/univie-ling-paper.cls @@ -4,6 +4,7 @@ %% Student Papers 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-paper}[2022/05/11 v1.18 Univie Linguistic Papers (JSp)] +\ProvidesPackage{univie-ling-paper}[2022/06/18 v1.19 Univie Linguistic Papers (JSp)] + + +%% ============================================================ +%% CLASS OPTIONS +%% ============================================================ \RequirePackage{xkeyval} @@ -68,7 +74,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown 'all' value}% } -\DeclareOptionX{all}[true]{\setkeys{uvt}{all=#1}} % biblatex=<true|false> % Load biblatex @@ -81,7 +86,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown biblatex value}% } -\DeclareOptionX{biblatex}[true]{\setkeys{uvt}{biblatex=#1}} % apa=<true|false> % Load APA style @@ -94,7 +98,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown apa value}% } -\DeclareOptionX{apa}[true]{\setkeys{uvt}{apa=#1}} % caption=<true|false> % Load caption @@ -107,7 +110,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown caption value}% } -\DeclareOptionX{caption}[true]{\setkeys{uvt}{caption=#1}} % draftmark=<true|false> % Print draftmark @@ -125,7 +127,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown draft value}% } -\DeclareOptionX{draftmark}[true]{\setkeys{uvt}{draftmark=#1}} % ref=<true|false> % Load varioref and prettyref @@ -138,7 +139,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown ref value}% } -\DeclareOptionX{ref}[true]{\setkeys{uvt}{ref=#1}} % covington=<true|false> % Load covington @@ -151,7 +151,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown covington value}% } -\DeclareOptionX{covington}[true]{\setkeys{uvt}{covington=#1}} % microtype=<true|false> % Load microtype @@ -164,7 +163,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown microtype value}% } -\DeclareOptionX{microtype}[true]{\setkeys{uvt}{microtype=#1}} % polyglossia=<true|false> % Load polyglossia @@ -180,7 +178,6 @@ }{% \ClassWarning{univie-ling-paper}{unknown polyglossia value}% } -\DeclareOptionX{polyglossia}[true]{\setkeys{uvt}{polyglossia=#1}} % fonts=<ps|otf|none> \define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% @@ -200,9 +197,25 @@ }{% \PackageWarning{univie-ling-paper}{unknown fonts value '#1'}% } -\DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} -\ProcessOptionsX +% 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}% +} + +% Process +\ProcessOptionsX<uvt> + +%% ============================================================ +%% BASE CLASS: +%% ============================================================ \LoadClass[% a4paper, @@ -234,7 +247,7 @@ \DeclareTranslation{German}{footnote}{Anm.} \DeclareTranslation{English}{footnote}{fn.} \DeclareTranslation{German}{example}{Beispiel} -\DeclareTranslation{English}{footnote}{example} +\DeclareTranslation{English}{example}{example} \DeclareTranslation{German}{matnr}{Matrikelnummer} \DeclareTranslation{English}{matnr}{Matrikelnummer} \DeclareTranslation{German}{stkz}{Studienkennzahl} @@ -267,10 +280,12 @@ This includes all drawings, sketches, graphics and internet sources.} \ifpsfonts -\usepackage[T1]{fontenc} +\ifuniv@usefontenc + \RequirePackage[\univ@fontenc]{fontenc} +\fi % Palatino -\usepackage[osf]{mathpazo} +\RequirePackage[osf]{mathpazo} % Arial or Helvetica \IfFileExists{uarial.sty}{% @@ -278,12 +293,17 @@ This includes all drawings, sketches, graphics and internet sources.} }{% \RequirePackage{helvet} } + +% Source Code Pro (Courier) +\RequirePackage[scale=.93]{sourcecodepro} + \fi \ifotffonts \RequirePackage{fontspec} \setmainfont{Palatino} \setsansfont{Arial} +\setmonofont{SourceCodePro} \fi % Hyperlinks |