blob: 8aca0df631b207f7114aa7ca9a8f8d8e341acd30 (
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
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{biolinum-otf}
[2012/10/31 (autoinst) Style file for LinuxBiolinumO when using LuaLaTeX or XeLatex.]
\RequirePackage{ifxetex,ifluatex}
\ifxetex
% okay
\XeTeXtracingfonts=1\relax
\else
\ifluatex
% okay
\else
\PackageError{biolinum-otf}{runs only with xelatex and lualatex!}{}
\fi
\fi
\RequirePackage{textcomp}
\IfFileExists{fontaxes.sty}{
\RequirePackage{fontaxes}
}{}
\IfFileExists{xkeyval.sty}{
\providecommand*{\LinuxBiolinumO@scale}{1}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\LinuxBiolinumO@scale}{##1}}
}{
\let\DeclareOptionX\DeclareOption
\let\ExecuteOptionsX\ExecuteOptions
\let\ProcessOptionsX\ProcessOptions
}
\DeclareOptionX{lining}{\edef\LinuxBiolinumO@figurestyle{Lining}}
\DeclareOptionX{nf}{\edef\LinuxBiolinumO@figurestyle{Lining}}
\DeclareOptionX{oldstyle}{\edef\LinuxBiolinumO@figurestyle{OldStyle}}
\DeclareOptionX{osf}{\edef\LinuxBiolinumO@figurestyle{OldStyle}}
\DeclareOptionX{tabular}{\edef\LinuxBiolinumO@figurealign{Monospaced}}
\DeclareOptionX{proportional}{\edef\LinuxBiolinumO@figurealign{Proportional}}
\DeclareOptionX{bold}{}
\DeclareOptionX{semibold}{}
\ExecuteOptionsX{oldstyle,proportional}
\ProcessOptionsX\relax
\RequirePackage{fontspec}
\defaultfontfeatures{
Ligatures = TeX ,
Extension = .otf }
% Default font
\setsansfont
[ Numbers = {\LinuxBiolinumO@figurealign, \LinuxBiolinumO@figurestyle} ,
Scale = \LinuxBiolinumO@scale ,
UprightFont = *_R ,
ItalicFont = *_RI ,
BoldFont = *_RB ,
BoldItalicFont = *_RBO ] % oblique to fake italic
{LinBiolinum}
\endinput
|