summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/simplivre
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-06 20:51:52 +0000
committerKarl Berry <karl@freefriends.org>2021-06-06 20:51:52 +0000
commitd7144af20010012d17721e6646d3045c67b3a098 (patch)
tree0bfd1420716c16c7bc36e1d9b7863b115c20e029 /Master/texmf-dist/tex/latex/simplivre
parent14ec73ba8ab22cfc01c272f14f9bef26ad0cc788 (diff)
simplivre (6jun21)
git-svn-id: svn://tug.org/texlive/trunk@59499 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/simplivre')
-rw-r--r--Master/texmf-dist/tex/latex/simplivre/simplivre.cls78
1 files changed, 74 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/simplivre/simplivre.cls b/Master/texmf-dist/tex/latex/simplivre/simplivre.cls
index bab668ae353..89c47fa8ecb 100644
--- a/Master/texmf-dist/tex/latex/simplivre/simplivre.cls
+++ b/Master/texmf-dist/tex/latex/simplivre/simplivre.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{simplivre}
- [2021/05/23 A simple and clear book style]
+ [2021/06/07 A simple and clear book style]
\def\minimclass@baseclass{book}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
@@ -28,6 +28,11 @@
\DeclareBoolOption[false]{draft}
\DeclareBoolOption[false]{fast}
\DeclareBoolOption[false]{classical}
+\DeclareBoolOption[false]{palatino}
+\DeclareBoolOption[false]{times}
+\DeclareBoolOption[false]{garamond}
+\DeclareBoolOption[false]{biolinum}
+\DeclareBoolOption[false]{customfont}
\newif\if@minimclass@bfivepaper\@minimclass@bfivepaperfalse
\DeclareVoidOption{b5paper}{\@minimclass@bfivepapertrue}
@@ -40,6 +45,18 @@
\if@minimclass@draft
\@minimclass@fasttrue
\fi
+\if@minimclass@palatino
+ \@minimclass@customfonttrue
+\fi
+\if@minimclass@times
+ \@minimclass@customfonttrue
+\fi
+\if@minimclass@garamond
+ \@minimclass@customfonttrue
+\fi
+\if@minimclass@biolinum
+ \@minimclass@customfonttrue
+\fi
%%================================
%% Page layout
@@ -89,8 +106,10 @@
%% Fonts
%%================================
%% Math fonts in fast mode
-\if@minimclass@fast
- \RequirePackage{mathpazo}
+\if@minimclass@customfont\else
+ \if@minimclass@fast
+ \RequirePackage{mathpazo}
+ \fi
\fi
%% English fonts
@@ -118,6 +137,7 @@
%% Chinese fonts
\PassOptionsToPackage{fontset=none,scheme=plain}{ctex}
\RequirePackage{ctex}
+\WarningFilter{everysel}{Everysel is no longer required}
\IfFontExistsTF{FZYOUSK_507R--GBK1-0}{%
\setCJKmainfont{FZYOUSK_507R--GBK1-0}[
BoldFont = FZYOUSK_509R--GBK1-0 ,
@@ -167,6 +187,7 @@
}
%% Math font
+\if@minimclass@customfont\else
\if@minimclass@fast
\RequirePackage{amssymb}
\else
@@ -216,10 +237,59 @@
\setmathfont[range=bfcal, Scale=MatchUppercase, Alternate]{Asana-Math.otf}
}{}
\fi
+\fi
+
+\if@minimclass@palatino
+ \RequirePackage{amssymb}
+ \RequirePackage{mathpazo}
+ \PassOptionsToPackage{defaultsups}{newpxtext}
+ \RequirePackage{newpxtext}
+ \RequirePackage{newpxmath}
+ \let\openbox\relax
+ \PJLsetlinespacing{\setstretch{1.07}}
+\fi
+
+\if@minimclass@times
+ \RequirePackage{amssymb}
+ \PassOptionsToPackage{defaultsups}{newtxtext}
+ \RequirePackage{newtxtext}
+ \RequirePackage{newtxmath}
+ \let\openbox\relax
+ \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
+\if@minimclass@garamond
+ \RequirePackage{amssymb}
+ \PassOptionsToPackage{lining}{ebgaramond}
+ \RequirePackage{ebgaramond-maths}
+ \RequirePackage{ebgaramond}
+ % \RequirePackage{garamondlibre}
+ \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
+\if@minimclass@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}}
+ \RequirePackage[italic,defaultmathsizes]{mathastext}
+\fi
\def\PJL@font@alreadyset{}
-\RequirePackage[verbose=silent]{microtype}
+\PassOptionsToPackage{verbose=silent}{microtype}
+\RequirePackage{microtype}
%%================================
%% Graphics