blob: 899c9ed6866281626afa9c4d962ff570cb7b7427 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
%%
%% This is file `PJLtoolkit.sty',
%% generated with the docstrip utility.
%% Copyright (C) 2021 by Jinwen XU
%%
%% This is part of the ProjLib Toolkit.
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
%% your option) any later version. The latest version of this license is in
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesPackage{PJLtoolkit}
[2021/05/25 Collective interface of ProjLib Toolkit]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{
family = @PJLtoolkit,
prefix = @PJLtoolkit@,
}
\DeclareBoolOption[false]{draft}
\DeclareBoolOption[false]{fast}
\DeclareBoolOption[false]{author}
\DeclareBoolOption[false]{amssim}
\DeclareBoolOption[false]{nothms}
\DeclareBoolOption[false]{regionalref}
\DeclareBoolOption[false]{palatino}
\DeclareBoolOption[false]{times}
\DeclareBoolOption[false]{garamond}
\DeclareBoolOption[false]{biolinum}
\ProcessKeyvalOptions*\relax
\if@PJLtoolkit@draft
\@PJLtoolkit@fasttrue
\fi
\if@PJLtoolkit@fast
\PassOptionsToPackage{fast}{PJLdate}
\PassOptionsToPackage{fast}{PJLdraft}
\PassOptionsToPackage{fast}{PJLlogo}
\PassOptionsToPackage{fast}{PJLthm}
\fi
\if@PJLtoolkit@nothms
\PassOptionsToPackage{nothms}{PJLthm}
\fi
\if@PJLtoolkit@regionalref
\PassOptionsToPackage{regionalref}{PJLthm}
\fi
\if@PJLtoolkit@author
\RequirePackage{PJLauthor}
\fi
\if@PJLtoolkit@amssim
\RequirePackage{PJLamssim}
\fi
\RequirePackage{PJLdate}
\RequirePackage{PJLdraft}
\RequirePackage{PJLlogo}
\RequirePackage{PJLpaper}
\RequirePackage{PJLthm}
\RequirePackage{mathtools}
\ifdefined\PJL@font@alreadyset\else
\if@PJLtoolkit@palatino
\RequirePackage{amssymb}
\RequirePackage{mathpazo}
\PassOptionsToPackage{defaultsups}{newpxtext}
\RequirePackage{newpxtext}
\RequirePackage{newpxmath}
\let\openbox\relax
\PJLsetlinespacing{\setstretch{1.07}}
\fi
\if@PJLtoolkit@times
\RequirePackage{amssymb}
\PassOptionsToPackage{defaultsups}{newtxtext}
\RequirePackage{newtxtext}
\RequirePackage{newtxmath}
\let\openbox\relax
\PJLsetlinespacing{\setstretch{1.00}}
\fi
\if@PJLtoolkit@garamond
\RequirePackage{amssymb}
\RequirePackage{ebgaramond-maths}
\RequirePackage{ebgaramond}
% \RequirePackage{garamondlibre}
\PJLsetlinespacing{\setstretch{1.00}}
\fi
\if@PJLtoolkit@biolinum
\RequirePackage{amssymb}
\RequirePackage{mathpazo}
% \RequirePackage[sansmath]{libertinust1math}
\ifPDFTeX
\RequirePackage{biolinum}
\renewcommand*\familydefault{\biolinum@family}
\else
\PassOptionsToPackage{no-math}{fontspec}
\RequirePackage{fontspec}
\setmainfont{LinBiolinum_R.otf}[
BoldFont = LinBiolinum_RB.otf ,
ItalicFont = LinBiolinum_RI.otf ,
BoldItalicFont = LinBiolinum_RBO.otf ]
\fi
\PJLsetlinespacing{\setstretch{1.05}}
\fi
\fi
\RequirePackage{microtype}
\endinput
%%
%% End of file `PJLtoolkit.sty'.
|