diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-19 20:01:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-19 20:01:31 +0000 |
commit | 7ab648a536bdf717c5cdd8b1a4914cb3c4b4cee4 (patch) | |
tree | 9d0d8e4fdae6586557b5a9d72b0942ec9d7b0818 /Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty | |
parent | cc53a2c30201f9ac5454b948e94340a692aa3ebe (diff) |
projlib (19may21)
git-svn-id: svn://tug.org/texlive/trunk@59271 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty b/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty new file mode 100644 index 00000000000..5c36253c938 --- /dev/null +++ b/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty @@ -0,0 +1,116 @@ +%% +%% 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/19 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]{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} +\fi +\if@PJLtoolkit@nothms + \PassOptionsToPackage{nothms}{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'. |