diff options
author | Karl Berry <karl@freefriends.org> | 2020-05-05 21:34:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-05-05 21:34:42 +0000 |
commit | afcdce89ed16b482858d47efb97563ad56b9fc4f (patch) | |
tree | 10cc7f60eb635d849e0191f3210beafe586539be /Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls | |
parent | 366e7309baba813b2e970ff84b3300bfa86de2f2 (diff) |
univie-ling (5may20)
git-svn-id: svn://tug.org/texlive/trunk@55035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls | 53 |
1 files changed, 40 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls index b135db0976b..d49c8fff59f 100644 --- a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls @@ -31,7 +31,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{univie-ling-expose}[2019/05/01 v1.10 Univie Linguistic Exposes (JSp)] +\ProvidesPackage{univie-ling-expose}[2020/05/05 v1.11 Univie Linguistic Exposes (JSp)] \RequirePackage{xkeyval} @@ -41,6 +41,10 @@ \newif\ifrefsp\refsptrue \newif\ifcovington\covingtontrue \newif\ifmicrotype\microtypetrue +\newif\ifpolyglossia\polyglossiafalse +\newif\ifpsfonts\psfontstrue +\newif\ifotffonts\otffontsfalse +\newif\ifnofonts\nofontsfalse % all=<true|false> % Load all packages @@ -61,7 +65,7 @@ }{% \ClassWarning{univie-ling-expose}{unknown 'all' value}% } -\DeclareOptionX{all}{\setkeys{uvt}{all=#1}} +\DeclareOptionX{all}[true]{\setkeys{uvt}{all=#1}} % biblatex=<true|false> % Load biblatex @@ -74,7 +78,7 @@ }{% \ClassWarning{univie-ling-expose}{unknown biblatex value}% } -\DeclareOptionX{biblatex}{\setkeys{uvt}{biblatex=#1}} +\DeclareOptionX{biblatex}[true]{\setkeys{uvt}{biblatex=#1}} % apa=<true|false> % Load APA style @@ -87,7 +91,7 @@ }{% \ClassWarning{univie-ling-paper}{unknown apa value}% } -\DeclareOptionX{apa}{\setkeys{uvt}{apa=#1}} +\DeclareOptionX{apa}[true]{\setkeys{uvt}{apa=#1}} % caption=<true|false> % Load caption @@ -100,7 +104,7 @@ }{% \ClassWarning{univie-ling-expose}{unknown caption value}% } -\DeclareOptionX{caption}{\setkeys{uvt}{caption=#1}} +\DeclareOptionX{caption}[true]{\setkeys{uvt}{caption=#1}} % ref=<true|false> % Load varioref and prettyref @@ -113,7 +117,7 @@ }{% \ClassWarning{univie-ling-expose}{unknown ref value}% } -\DeclareOptionX{ref}{\setkeys{uvt}{ref=#1}} +\DeclareOptionX{ref}[true]{\setkeys{uvt}{ref=#1}} % covington=<true|false> % Load covington @@ -126,7 +130,7 @@ }{% \ClassWarning{univie-ling-expose}{unknown covington value}% } -\DeclareOptionX{covington}{\setkeys{uvt}{covington=#1}} +\DeclareOptionX{covington}[true]{\setkeys{uvt}{covington=#1}} % microtype=<true|false> % Load microtype @@ -139,11 +143,24 @@ }{% \ClassWarning{univie-ling-expose}{unknown microtype value}% } -\DeclareOptionX{microtype}{\setkeys{uvt}{microtype=#1}} +\DeclareOptionX{microtype}[true]{\setkeys{uvt}{microtype=#1}} + +% polyglossia=<true|false> +% Load polyglossia +\define@boolkey+{uvt}{polyglossia}[true]{% + \ifKV@uvt@polyglossia + \polyglossiatrue + \psfontsfalse + \otffontstrue + \nofontsfalse + \else + \polyglossiafalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown polyglossia value}% +} +\DeclareOptionX{polyglossia}[true]{\setkeys{uvt}{polyglossia=#1}} -\newif\ifpsfonts\psfontstrue -\newif\ifotffonts\otffontsfalse -\newif\ifnofonts\nofontsfalse % fonts=<ps|otf|none> \define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% \ifcase\nr\relax% ps: use PostScript fonts (classic LaTeX) @@ -160,7 +177,7 @@ \nofontstrue \fi }{% - \PackageWarning{jsdossier}{unknown fonts value '#1'}% + \PackageWarning{univie-ling-paper}{unknown fonts value '#1'}% } \DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} @@ -216,7 +233,6 @@ \ifpsfonts \usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} % Times \usepackage{mathptmx} @@ -566,6 +582,17 @@ \fi %% ============================================================= +%% POLYGLOSSIA: +%% ============================================================= + +\ifpolyglossia + \ifcaptionp + \RequirePackage{ragged2e} + \fi + \RequirePackage{polyglossia} +\fi + +%% ============================================================= %% BIBLIOGRAPHY: %% ============================================================= |