summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/electrum/electrum.sty
blob: ff9086e80213b37cb9c7849fadd3700956c33b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{electrum}[2010/07/17 v1.0 electrum]
\RequirePackage{xkeyval}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\UndeclareTextCommand{\textperthousand}{T1}
\RequirePackage{nfssext-cfr}
%:boolkeys for ligature/swash encoding as default
\define@boolkey{electrum.sty}[electrum@]{lig}[true]{%
	\ifelectrum@lig
		\def\electrum@lig{w}%
	\else
		\def\electrum@lig{}%
	\fi}
%:boolkeys for roman osf/lf
\define@boolkey{electrum.sty}[electrum@]{osf}[true]{%
	\ifelectrum@osf
		\def\electrum@lfosf{j}%
	\else
		\def\electrum@lfosf{}%
	\fi}
\define@boolkey{electrum.sty}[electrum@]{lf}[true]{%
	\ifelectrum@lf
		\def\electrum@lfosf{}%
	\else
		\def\electrum@lfosf{j}%
	\fi}
%:defaults to ensure everything is defined to something
\ExecuteOptionsX{lig=false,osf=true}
%:options override defaults
\ProcessOptionsX
%:make ElectrumADF default roman font, implementing options for ligature/swash encoding and lf/osf as applicable
\renewcommand{\rmdefault}{yes\electrum@lfosf\electrum@lig}%
\endinput
%% end electrum.sty