blob: 221c5f49fdb9faf03b7b51cc9aaf4baff6f99e6a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{libertine-otf}
[2012/10/31 (autoinst) Style file for LinuxLibertineO when using LuaLaTeX or XeLatex.]
\RequirePackage{ifxetex,ifluatex}
\ifxetex
% okay
\XeTeXtracingfonts=1\relax
\else
\ifluatex
% okay
\else
\PackageError{libertine-otf}{runs only with xelatex and lualatex!}{}
\fi
\fi
\RequirePackage{textcomp}
\IfFileExists{fontaxes.sty}{
\RequirePackage{fontaxes}
}{}
\IfFileExists{xkeyval.sty}{
\newcommand*{\LinuxLibertineO@scale}{1}
\RequirePackage{xkeyval}
% \DeclareOptionX{scaled}{\renewcommand*{\LinuxLibertineO@scale}{##1}}
\DeclareOptionX{scaled}{}
}{
\let\DeclareOptionX\DeclareOption
\let\ExecuteOptionsX\ExecuteOptions
\let\ProcessOptionsX\ProcessOptions
}
\DeclareOptionX{lining}{\edef\LinuxLibertineO@figurestyle{Lining}}
\DeclareOptionX{nf}{\edef\LinuxLibertineO@figurestyle{Lining}}
\DeclareOptionX{oldstyle}{\edef\LinuxLibertineO@figurestyle{OldStyle}}
\DeclareOptionX{osf}{\edef\LinuxLibertineO@figurestyle{OldStyle}}
\DeclareOptionX{tabular}{\edef\LinuxLibertineO@figurealign{Monospaced}}
\DeclareOptionX{proportional}{\edef\LinuxLibertineO@figurealign{Proportional}}
\DeclareOptionX{bold}{\edef\LinuxLibertineO@boldstyle{RB}}
\DeclareOptionX{semibold}{\edef\LinuxLibertineO@boldstyle{RZ}}
\ExecuteOptionsX{oldstyle,proportional,bold}
\ProcessOptionsX\relax
\RequirePackage{fontspec}
\defaultfontfeatures{
Ligatures = TeX ,
Extension = .otf }
% Default font
\setmainfont
[ SmallCapsFeatures={Letters=SmallCaps},
Numbers = {\LinuxLibertineO@figurealign, \LinuxLibertineO@figurestyle} ,
Scale = \LinuxLibertineO@scale ,
UprightFont = *_R ,
ItalicFont = *_RI,
BoldFont = *_\LinuxLibertineO@boldstyle ,
BoldItalicFont = *_\LinuxLibertineO@boldstyle I]
{LinLibertine}
\endinput
|