summaryrefslogtreecommitdiff
path: root/fonts/utilities
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-02 03:09:43 +0000
committerNorbert Preining <norbert@preining.info>2022-11-02 03:09:43 +0000
commit2281af8ba8fd52341e706f3979712f3280fcfdad (patch)
tree5e83a2779b732f03b430cf208b732ce611ee2cff /fonts/utilities
parent7ad25021e74ea26e33d705fbb402d29aabaf6314 (diff)
CTAN sync 202211020309
Diffstat (limited to 'fonts/utilities')
-rw-r--r--fonts/utilities/hep-font/bibliography.bib161
-rw-r--r--fonts/utilities/hep-font/hep-font-documentation.pdfbin262423 -> 286979 bytes
-rw-r--r--fonts/utilities/hep-font/hep-font-implementation.dtx172
-rw-r--r--fonts/utilities/hep-font/hep-font-implementation.pdfbin327237 -> 352777 bytes
-rw-r--r--fonts/utilities/hep-math-font/bibliography.bib161
-rw-r--r--fonts/utilities/hep-math-font/hep-math-font-documentation.pdfbin857467 -> 894735 bytes
-rw-r--r--fonts/utilities/hep-math-font/hep-math-font-implementation.dtx35
-rw-r--r--fonts/utilities/hep-math-font/hep-math-font-implementation.pdfbin911308 -> 950923 bytes
8 files changed, 467 insertions, 62 deletions
diff --git a/fonts/utilities/hep-font/bibliography.bib b/fonts/utilities/hep-font/bibliography.bib
index e5117be3d5..5b217a2aad 100644
--- a/fonts/utilities/hep-font/bibliography.bib
+++ b/fonts/utilities/hep-font/bibliography.bib
@@ -21,7 +21,7 @@ subtitle = "An acronym extension for glossaries",
author = "Jan Hajer",
year = "2021",
eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
related = "hep-paper-1",
}
@@ -95,6 +95,24 @@ eprint = "hep-title",
related = "hep-paper-1",
}
+@article{hep-reference,
+title = "The |hep-reference| package",
+subtitle = "Selection of reference improvements",
+author = "Jan Hajer",
+year = "2021",
+eprinttype = "ctan",
+eprint = "hep-reference",
+related = "hep-paper-1",
+}
+
+@article{hep-cv,
+title = "The |hep-cv| package",
+subtitle = "Appealing curricula vitarum",
+author = "Jan Hajer",
+year = "2020",
+related = "hep-paper-1",
+}
+
@article{kvoptions,
title = "The |kvoptions| package",
subtitle = "Key value format for package options",
@@ -1053,3 +1071,144 @@ eprinttype = "ctan",
eprint = "soulutf8",
}
+@article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+@article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+@article{array,
+title = "A new implementation of \hologo{LaTeX}’s |tabular| and |array| environment",
+subtitle = "Extending the |array| and |tabular| environments",
+author = "Frank Mittelbach, David Carlisle",
+collaboration= "\hologo{LaTeX} Team",
+year = "1993",
+eprinttype = "ctan",
+eprint = "array",
+}
+
+@article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+@article{fancyhdr,
+title = "The |fancyhdr| and |extramarks| packages",
+subtitle = "Extensive control of page headers and footers in \hologo{LaTeX2e}",
+author = "Piet van Oostrum",
+date = "1994",
+eprinttype = "ctan",
+eprint = "fancyhdr",
+}
+
+@article{lastpage,
+title = "The |lastpage| package",
+subtitle = "Reference last page for Page $N$ of $M$ type footers",
+author = "Hans-Martin Münch and Jeffrey Goldberg",
+date = "1994",
+eprinttype = "ctan",
+eprint = "lastpage",
+}
+
+@article{textpos,
+title = "|Textpos|: absolute positioning of text on the page",
+subtitle = "Place boxes at arbitrary positions on the \hologo{LaTeX} page",
+author = "Norman Gray",
+date = "1999",
+eprinttype = "ctan",
+eprint = "textpos",
+related = "textpos-1",
+}
+
+@manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+@article{subfiles,
+title = "The |subfiles| package: A Document Class and a Package for Handling Multi-File Projects",
+subtitle = "Individual typesetting of subfiles of a \enquote{main} document",
+author = "Federico Garcia and Gernot Salzer",
+date = "2002",
+eprinttype = "ctan",
+eprint = "subfiles",
+related = "subfiles-1",
+}
+
+@manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+@article{titlesec,
+title = "The |titlesec|, |titleps| and |titletoc| packages",
+subtitle = "Select alternative section titles",
+author = "Javier Bezos",
+year = "1998",
+eprinttype = "ctan",
+eprint = "titlesec",
+related = "titlesec-1",
+}
+
+@manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+@article{calc,
+title = "The |calc| package",
+subtitle = "Simple arithmetic in \hologo{LaTeX} commands",
+author = "Kresten Krab Thorup and Frank Jensen",
+collaboration = "\hologo{LaTeX3} Project",
+year = "1992",
+eprinttype = "ctan",
+eprint = "calc",
+}
+
+@article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+@article{xcolor,
+title = "The |xcolor| package",
+subtitle = "Driver-independent color extensions for \hologo{LaTeX} and \hologo{pdfLaTeX}",
+author = "Uwe Kern",
+collaboration = "\hologo{LaTeX} Project",
+year = "2003",
+eprinttype = "ctan",
+eprint = "xcolor",
+}
+
+@article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}
diff --git a/fonts/utilities/hep-font/hep-font-documentation.pdf b/fonts/utilities/hep-font/hep-font-documentation.pdf
index acbb27e64e..f25d9883cb 100644
--- a/fonts/utilities/hep-font/hep-font-documentation.pdf
+++ b/fonts/utilities/hep-font/hep-font-documentation.pdf
Binary files differ
diff --git a/fonts/utilities/hep-font/hep-font-implementation.dtx b/fonts/utilities/hep-font/hep-font-implementation.dtx
index 50c01310ec..e5e80643dc 100644
--- a/fonts/utilities/hep-font/hep-font-implementation.dtx
+++ b/fonts/utilities/hep-font/hep-font-implementation.dtx
@@ -18,8 +18,8 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-font}[2021/09/01 v1.0 hep-font]
-%<documentation>\ProvidesFile{hep-font-documentation.tex}[2021/09/01 v1.8 hep-font documentation]
+%<package>\ProvidesPackage{hep-font}[2022/11/01 v1.1 hep-font]
+%<documentation>\ProvidesFile{hep-font-documentation.tex}[2022/11/01 v1.1 hep-font documentation]
%
%<*documentation>
@@ -57,7 +57,7 @@
%
% \fi
%
-% \CheckSum{392}
+% \CheckSum{496}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -76,6 +76,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
+% \changes{v1.1}{2022/11/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -85,7 +86,7 @@
\title{The \software{hep-font} package\thanks{This document corresponds to \software{hep-font}~\fileversion.}}
\subtitle{Latin modern extended by computer modern}
-\author{Jan Hajer \email{jan.hajer@unibas.ch}}
+\author{Jan Hajer \email{jan.hajer@tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -102,6 +103,15 @@ The \software{hep-font} package loads standard font packages and extends the usu
The package is loaded using "\usepackage{hep-font}".
+\DescribeMacro{size}
+The "size="\meta{size} option loads the specified font size.
+The possible \meta{sizes} are:
+"8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "17pt", "20pt" and "default" deactivates this switch.
+The default value is \unit[11]{pt}.
+
+\DescribeMacro{sans}
+The "sans" option switches to sans-serif font instead of serif font.
+
\DescribeMacro{oldstyle}
The "oldstyle" option switches to oldstyle numerals such as 123 in text mode instead of lining numerals such as \textl{123}.
@@ -153,6 +163,21 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
}
% \end{macrocode}
%
+% \begin{macro}{size}
+% Define the "size" switching taking the font size as an argument.
+% \begin{macrocode}
+\DeclareStringOption[11pt]{size}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{sans}
+% Define the "sans" switching to sans serif font.
+% \begin{macrocode}
+\DeclareBoolOption[false]{sans}
+\DeclareComplementaryOption{serif}{sans}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{lining}
% Define the "lining" option deactivating the use of text figures in text mode.
% \begin{macrocode}
@@ -161,10 +186,20 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% \end{macrocode}
% \end{macro}
%
+% Process options.
% \begin{macrocode}
\ProcessKeyvalOptions*
% \end{macrocode}
%
+% Read font argument from class call.
+% \begin{macrocode}
+\def\hepfont@get@class#1.cls#2\relax{\def\hepfont@class{#1}}
+\def\hepfont@getclass{\expandafter\hepfont@get@class\@filelist\relax}
+\hepfont@getclass
+\@ifclasswith{\hepfont@class}{10pt}{\setkeys{hepfont}{size=10pt}}{}
+\@ifclasswith{\hepfont@class}{11pt}{\setkeys{hepfont}{size=11pt}}{}
+\@ifclasswith{\hepfont@class}{12pt}{\setkeys{hepfont}{size=12pt}}{}
+% \end{macrocode}
%
% \begin{macro}{\ifxetexorluatex}
% Load the \software{ifluatex} \cite{ifluatex} and \software{ifxetex} \cite{ifxetex} packages.
@@ -183,8 +218,33 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% Pick the correct font encoding depending on the engine used and load the \software{fontenc} package \cite{fontenc} with this encoding.
% For details of the font encoding see \cite{encguide}.
% \begin{macrocode}
-\def\hep@encoding{T\ifxetexorluatex U\else 1\fi}
-\RequirePackage[\hep@encoding]{fontenc}
+\def\hepfont@encoding{T\ifxetexorluatex U\else 1\fi}
+\PassOptionsToPackage{\hepfont@encoding}{fontenc}
+\RequirePackage{fontenc}
+% \end{macrocode}
+% Switch document to sans-serif font if requested using the \software{pdftexcmds} package \cite{pdftexcmds}.
+% \begin{macrocode}
+\RequirePackage{pdftexcmds}
+\ifnum\pdf@strcmp{\hepfont@size}{default}=0\else
+ \def\hepfont@remove@pt#1pt{#1}
+ \edef\hepfont@pt@size{\expandafter\hepfont@remove@pt\hepfont@size}
+ \let\small\relax
+ \let\footnotesize\relax
+ \let\scriptsize\relax
+ \let\tiny\relax
+ \let\large\relax
+ \let\Large\relax
+ \let\LARGE\relax
+ \let\huge\relax
+ \let\Huge\relax
+ \input{size\hepfont@pt@size.clo}
+\fi
+% \end{macrocode}
+% Switch document to sans-serif font if requested.
+% \begin{macrocode}
+\ifhepfont@sans
+ \renewcommand{\familydefault}{\sfdefault}
+\fi
% \end{macrocode}
% Fix the remaining \CM \cite{cm} fonts using the \software{fix-cm} package \cite{fix-cm} and load the \software{microtype} font optimizations \cite{microtype}.
% \begin{macrocode}
@@ -199,12 +259,29 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
\RequirePackage{lmodern}
\else
\ifhepfont@lining
- \RequirePackage[rm={lining},sf={lining},tt={lining}]{cfr-lm}
- \else
- \RequirePackage{cfr-lm}
+ \PassOptionsToPackage{rm={lining},sf={lining},tt={lining}}{cfr-lm}
\fi
+ \RequirePackage{cfr-lm}
\fi
% \end{macrocode}
+% Ensure that the "verbatim" environment uses proportional font and provide an inline "\code" macro.
+% Work around a bug in \software{nfssext-cfr} which defines a global "\set" macro and breaks other macros of the same name.
+% \begin{macrocode}
+% \let\hep@verbatim\verbatim
+% \renewcommand\verbatim{\hep@verbatim\tmstyle}
+% \RequirePackage{etoolbox}
+% \AtBeginDocument{
+% \ifdefined\set
+% \AtBeginEnvironment{verbatim}{\global\let\hep@set\set\tmstyle}
+% \AfterEndEnvironment{verbatim}{\renewcommand\set{\hep@set}}
+% \else
+% \AtBeginEnvironment{verbatim}{\tmstyle}
+% \fi
+% }
+\let\verbatim@font\tmstyle
+\RequirePackage{xparse}
+\ProvideDocumentCommand{\code}{v}{{\tmstyle #1}}
+% \end{macrocode}
% Adjust the figures according to the "lining" option and ensure that tables always use lining.
% \begin{macrocode}
% \RequirePackage{etoolbox}
@@ -214,11 +291,11 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% Load the \software{textcomp} extension \cite{textcomp} and define helper functions.
% \begin{macrocode}
\RequirePackage{textcomp}
-\newcommand{\hep@sf@fontshape}[3]{%
- \DeclareFontShape{\hep@encoding}{\sfdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont@sf@shape}[3]{%
+ \DeclareFontShape{\hepfont@encoding}{\sfdefault}{#1}{#2}{#3}{}%
}
-\newcommand{\hep@rm@fontshape}[3]{%
- \DeclareFontShape{\hep@encoding}{\rmdefault}{#1}{#2}{#3}{}%
+\newcommand{\hepfont@rm@shape}[3]{%
+ \DeclareFontShape{\hepfont@encoding}{\rmdefault}{#1}{#2}{#3}{}%
}
% \end{macrocode}
%
@@ -233,10 +310,10 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
SmallCapsFont={[cmunbx.otf]}
}
]
- \hep@sf@fontshape{bx}{sc}{<->cmssbxcsc10}{}
- \hep@sf@fontshape{b}{sc}{<->cmssbxcsc10}{}
- \hep@sf@fontshape{m}{scit}{<->cmsscsci10}{}
- \hep@sf@fontshape{m}{sc}{%
+ \hepfont@sf@shape{bx}{sc}{<->cmssbxcsc10}{}
+ \hepfont@sf@shape{b}{sc}{<->cmssbxcsc10}{}
+ \hepfont@sf@shape{m}{scit}{<->cmsscsci10}{}
+ \hepfont@sf@shape{m}{sc}{%
<-9>cmsscsc8<9-10>cmsscsc9<10->cmsscsc10%
}{}
% \end{macrocode}
@@ -253,33 +330,33 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% \begin{macrocode}
\ifhepfont@lining
\RequirePackage{slantsc}
- \hep@rm@fontshape{b}{sc}{<->ssub*cmr/bx/sc}{}
- \hep@rm@fontshape{bx}{sc}{<->ssub*cmr/bx/sc}{}
- \hep@rm@fontshape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
- \hep@rm@fontshape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
- \hep@rm@fontshape{b}{scit}{<->ssub*cmr/bx/scsl}{}
- \hep@rm@fontshape{bx}{scit}{<->ssub*cmr/bx/scit}{}
+ \hepfont@rm@shape{b}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont@rm@shape{bx}{sc}{<->ssub*cmr/bx/sc}{}
+ \hepfont@rm@shape{b}{scsl}{<->ssub*cmr/bx/scsl}{}
+ \hepfont@rm@shape{bx}{scsl}{<->ssub*cmr/bx/scit}{}
+ \hepfont@rm@shape{b}{scit}{<->ssub*cmr/bx/scsl}{}
+ \hepfont@rm@shape{bx}{scit}{<->ssub*cmr/bx/scit}{}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\textsc}
%For oldstyle numerals use the fonts from the \software{hfoldsty} package \cite{hfoldsty}.
% \begin{macrocode}
\else
- \DeclareFontFamily{\hep@encoding}{hfor}{}
- \DeclareFontShape{\hep@encoding}{hfor}{bx}{sc}{
+ \DeclareFontFamily{\hepfont@encoding}{hfor}{}
+ \DeclareFontShape{\hepfont@encoding}{hfor}{bx}{sc}{
<-6>hfoxc0500<6-7>hfoxc0600<7-8>hfoxc0700<8-9>hfoxc0800
<9-10>hfoxc0900<10-12>hfoxc1000<12-17>hfoxc1200<17->hfoxc1728
}{}
- \DeclareFontShape{\hep@encoding}{hfor}{bx}{scsl}{
+ \DeclareFontShape{\hepfont@encoding}{hfor}{bx}{scsl}{
<-6>hfooc0500<6-7>hfooc0600<7-8>hfooc0700<8-9>hfooc0800
<9-10>hfooc0900<10-12>hfooc1000<12-17>hfooc1200<17->hfooc1728
}{}
- \hep@rm@fontshape{b}{sc}{<->ssub*hfor/bx/sc}{}
- \hep@rm@fontshape{bx}{sc}{<->ssub*hfor/bx/sc}{}
- \hep@rm@fontshape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
- \hep@rm@fontshape{b}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep@rm@fontshape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
- \hep@rm@fontshape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont@rm@shape{b}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont@rm@shape{bx}{sc}{<->ssub*hfor/bx/sc}{}
+ \hepfont@rm@shape{bx}{scsl}{<->ssub*hfor/bx/scsl}{}
+ \hepfont@rm@shape{b}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont@rm@shape{bx}{scit}{<->ssub*hfor/bx/scsl}{}
+ \hepfont@rm@shape{b}{scsl}{<->ssub*hfor/bx/scsl}{}
\fi
% \end{macrocode}
%\end{macro}
@@ -287,28 +364,31 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
%Provide the sans serif small caps font shape using the extended \CM from the \software{sansmathfonts} package \cite{sansmathfonts}.
% \begin{macrocode}
\sffamily
- \hep@sf@fontshape{m}{sc}{<->ssub*xcmss/m/sc}{}
- \hep@sf@fontshape{b}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep@sf@fontshape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
- \hep@sf@fontshape{m}{scit}{<->ssub*xcmss/m/scit}{}
- \hep@sf@fontshape{b}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep@sf@fontshape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
- \hep@sf@fontshape{m}{scsl}{<->ssub*xcmss/m/scit}{}
- \hep@sf@fontshape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
- \hep@sf@fontshape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont@sf@shape{m}{sc}{<->ssub*xcmss/m/sc}{}
+ \hepfont@sf@shape{b}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont@sf@shape{bx}{sc}{<->ssub*xcmss/bx/sc}{}
+ \hepfont@sf@shape{m}{scit}{<->ssub*xcmss/m/scit}{}
+ \hepfont@sf@shape{b}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont@sf@shape{bx}{scit}{<->ssub*xcmss/bx/scit}{}
+ \hepfont@sf@shape{m}{scsl}{<->ssub*xcmss/m/scit}{}
+ \hepfont@sf@shape{b}{scsl}{<->ssub*xcmss/bx/scit}{}
+ \hepfont@sf@shape{bx}{scsl}{<->ssub*xcmss/bx/scit}{}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\textui}
%Provide a sans upright italic font.
% \begin{macrocode}
- \hep@sf@fontshape{m}{ui}{<->cmssu10}{}
+ \hepfont@sf@shape{m}{ui}{<->cmssu10}{}
\fi
% \end{macrocode}
%\end{macro}
%
% Load the \software{inputenc} package \cite{inputenc} whe using \hologo{pdfLaTeX}.
% \begin{macrocode}
-\ifxetexorluatex\else\RequirePackage[utf8]{inputenc}\fi
+\ifxetexorluatex\else
+ \PassOptionsToPackage{utf8}{inputenc}
+ \RequirePackage{inputenc}
+\fi
% \end{macrocode}
%
% \begin{macro}{\unit}
@@ -317,7 +397,7 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% \begin{macrocode}
\ifhepfont@lining\else
% \AtBeginDocument{
-% \@ifpackageloaded{
+% \@ifpackageloaded{units}{
\RequirePackage{units}
\RequirePackage{xpatch}
\xpatchcmd{\unit}{\else#1}{%
@@ -344,10 +424,10 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
\usepackage[oldstyle]{hep-font}
%% \usepackage[oldstyle]{hep-paper}
-\usepackage{fullpage}
+\usepackage[cm]{fullpage}
\usepackage{fancyvrb}\DefineShortVerb{\|}
-\newenvironment{vrb}{\begin{tabular}{@{}p{5cm}ll@{}}}{\end{tabular}}
+\newenvironment{vrb}{\begin{tabular}{@{}p{5.4cm}ll@{}}}{\end{tabular}}
\begin{document}
diff --git a/fonts/utilities/hep-font/hep-font-implementation.pdf b/fonts/utilities/hep-font/hep-font-implementation.pdf
index 7c0b36e431..d7fff2d56e 100644
--- a/fonts/utilities/hep-font/hep-font-implementation.pdf
+++ b/fonts/utilities/hep-font/hep-font-implementation.pdf
Binary files differ
diff --git a/fonts/utilities/hep-math-font/bibliography.bib b/fonts/utilities/hep-math-font/bibliography.bib
index e5117be3d5..5b217a2aad 100644
--- a/fonts/utilities/hep-math-font/bibliography.bib
+++ b/fonts/utilities/hep-math-font/bibliography.bib
@@ -21,7 +21,7 @@ subtitle = "An acronym extension for glossaries",
author = "Jan Hajer",
year = "2021",
eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
related = "hep-paper-1",
}
@@ -95,6 +95,24 @@ eprint = "hep-title",
related = "hep-paper-1",
}
+@article{hep-reference,
+title = "The |hep-reference| package",
+subtitle = "Selection of reference improvements",
+author = "Jan Hajer",
+year = "2021",
+eprinttype = "ctan",
+eprint = "hep-reference",
+related = "hep-paper-1",
+}
+
+@article{hep-cv,
+title = "The |hep-cv| package",
+subtitle = "Appealing curricula vitarum",
+author = "Jan Hajer",
+year = "2020",
+related = "hep-paper-1",
+}
+
@article{kvoptions,
title = "The |kvoptions| package",
subtitle = "Key value format for package options",
@@ -1053,3 +1071,144 @@ eprinttype = "ctan",
eprint = "soulutf8",
}
+@article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+@article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+@article{array,
+title = "A new implementation of \hologo{LaTeX}’s |tabular| and |array| environment",
+subtitle = "Extending the |array| and |tabular| environments",
+author = "Frank Mittelbach, David Carlisle",
+collaboration= "\hologo{LaTeX} Team",
+year = "1993",
+eprinttype = "ctan",
+eprint = "array",
+}
+
+@article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+@article{fancyhdr,
+title = "The |fancyhdr| and |extramarks| packages",
+subtitle = "Extensive control of page headers and footers in \hologo{LaTeX2e}",
+author = "Piet van Oostrum",
+date = "1994",
+eprinttype = "ctan",
+eprint = "fancyhdr",
+}
+
+@article{lastpage,
+title = "The |lastpage| package",
+subtitle = "Reference last page for Page $N$ of $M$ type footers",
+author = "Hans-Martin Münch and Jeffrey Goldberg",
+date = "1994",
+eprinttype = "ctan",
+eprint = "lastpage",
+}
+
+@article{textpos,
+title = "|Textpos|: absolute positioning of text on the page",
+subtitle = "Place boxes at arbitrary positions on the \hologo{LaTeX} page",
+author = "Norman Gray",
+date = "1999",
+eprinttype = "ctan",
+eprint = "textpos",
+related = "textpos-1",
+}
+
+@manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+@article{subfiles,
+title = "The |subfiles| package: A Document Class and a Package for Handling Multi-File Projects",
+subtitle = "Individual typesetting of subfiles of a \enquote{main} document",
+author = "Federico Garcia and Gernot Salzer",
+date = "2002",
+eprinttype = "ctan",
+eprint = "subfiles",
+related = "subfiles-1",
+}
+
+@manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+@article{titlesec,
+title = "The |titlesec|, |titleps| and |titletoc| packages",
+subtitle = "Select alternative section titles",
+author = "Javier Bezos",
+year = "1998",
+eprinttype = "ctan",
+eprint = "titlesec",
+related = "titlesec-1",
+}
+
+@manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+@article{calc,
+title = "The |calc| package",
+subtitle = "Simple arithmetic in \hologo{LaTeX} commands",
+author = "Kresten Krab Thorup and Frank Jensen",
+collaboration = "\hologo{LaTeX3} Project",
+year = "1992",
+eprinttype = "ctan",
+eprint = "calc",
+}
+
+@article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+@article{xcolor,
+title = "The |xcolor| package",
+subtitle = "Driver-independent color extensions for \hologo{LaTeX} and \hologo{pdfLaTeX}",
+author = "Uwe Kern",
+collaboration = "\hologo{LaTeX} Project",
+year = "2003",
+eprinttype = "ctan",
+eprint = "xcolor",
+}
+
+@article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}
diff --git a/fonts/utilities/hep-math-font/hep-math-font-documentation.pdf b/fonts/utilities/hep-math-font/hep-math-font-documentation.pdf
index 020ad3d4c4..2a719ad828 100644
--- a/fonts/utilities/hep-math-font/hep-math-font-documentation.pdf
+++ b/fonts/utilities/hep-math-font/hep-math-font-documentation.pdf
Binary files differ
diff --git a/fonts/utilities/hep-math-font/hep-math-font-implementation.dtx b/fonts/utilities/hep-math-font/hep-math-font-implementation.dtx
index bd3d5cf3d3..ba55da5855 100644
--- a/fonts/utilities/hep-math-font/hep-math-font-implementation.dtx
+++ b/fonts/utilities/hep-math-font/hep-math-font-implementation.dtx
@@ -18,8 +18,8 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-math-font}[2021/09/01 v1.0 selection of math fonts for latin modern]
-%<documentation>\ProvidesFile{hep-math-font-documentation.tex}[2021/09/01 v1.0 hep-math-Font documentation]
+%<package>\ProvidesPackage{hep-math-font}[2022/11/01 v1.1 selection of math fonts for latin modern]
+%<documentation>\ProvidesFile{hep-math-font-documentation.tex}[2022/11/01 v1.1 hep-math-Font documentation]
%
%<*documentation>
@@ -57,7 +57,7 @@
%
% \fi
%
-% \CheckSum{793}
+% \CheckSum{794}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -76,6 +76,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
+% \changes{v1.1}{2022/11/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -85,7 +86,7 @@
\title{The \software{hep-math-font} package\thanks{This document corresponds to \software{hep-math-font}~\fileversion.}}
\subtitle{Extended Greek and sans-serif math}
-\author{Jan Hajer \email{jan.hajer@unibas.ch}}
+\author{Jan Hajer \email{jan.hajer@tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -106,7 +107,7 @@ The package is loaded using "\usepackage{hep-math-font}".
If the document "\familydefault" font is switched to the sansserif "\sfdefault" font the math font is adjusted accordingly using fonts compatible to \LM and \CM.
\DescribeMacro{warning}
-In order to be able to easily switch large chucks of math from serif to sans-serif documents the meaning of "\mathrm" and "\mathsf" is adjusted so that the first generates upright sans-serif math and the second serif math.
+In order to be able to easily switch large chucks of math from serif to sans-serif documents the meaning of "\mathrm" and "\mathsf" is adjusted in this case so that the first generates upright sans-serif math and the second serif math.
This is is neither the literal meaning of the macros nor the best behaviour if a single large document is written in sans-serif.
However, it simplifies working in an environment where one copies pieces of math between serif and sans-serif documents \eg publications \vs talks and funding applications.
@@ -114,7 +115,7 @@ Using the \software{fixmath} \cite{fixmath} and \software{textalpha} \cite{texta
Greek letters can be written by using their unicode characters.
\DescribeMacro{symbols}
-The "symbols"=\meta{family} sets the family of the symbol fonts.
+The "symbols"=\meta{family} class option sets the family of the symbol fonts.
"symbols=ams" loads the two \hologo{AmS} fonts \cite{amsfonts} and the \software{bm} bold fonts.
The default "symbols=true" replaces additionally the blackboard font with the \software{dsfont} \cite{dsfont}.
"symbols=minion" switches the symbol fonts to the Adobe MinionPro companion font from the \software{MnSymbol} package \cite{MnSymbol}.
@@ -243,20 +244,26 @@ Details about the font handling in \hologo{TeX} can be found in \ccite{fntguide}
Of the 16 available math alphabets, \hologo{TeX} loads four by default
\begin{enumdescript}[start=0,label=\arabic*)]
\item{OT1} \label{it:math text} Text (latin, upper case greek, numerals, text symbols)
-\item{OML} \label{it:math italic} Math Italic (latin, greek, numerals, text symbols)
-\item{OMS} \label{it:math symbol} Symbol ("\mathcal", operators)
-\item{OMX} \label{it:math extension} Math Extension (big operators, delimiters)
-\end{enumdescript}
+
The text font \ref{it:math text}\strut\ of \CM is \textbf{cmr10} "\OT1/cmr/m/n/10", which is replaced by \LM to be \textbf{rm-lmr10} "\OT1/lmr/m/n/10", the "sansserif" option uses \textbf{rm-lmss10} "\OT1/lmss/m/n/10".
+\item{OML} \label{it:math italic} Math Italic (latin, greek, numerals, text symbols)
+
The italic math font \ref{it:math italic} of \CM is \textbf{cmmi10} "\OML/cmm/m/it/"\allowbreak"10", and is replaced by \LM to be \textbf{lmmi10} "\OML/lmm/m/it/10", the "sansserif" options uses \textbf{cmssmi10} "\OML/cmssrm/m/it/10" from the \software{sansmathfonts} package \cite{sansmathfonts}.
+\item{OMS} \label{it:math symbol} Symbol ("\mathcal", operators)
+
The symbol font \ref{it:math symbol}\strut\ of \CM is \textbf{cmsy10} "\OMS/cmsy/m/n/10", and is replaced by \LM to be \textbf{lmsy10} "\OMS/lmsy/m/n/10", the "sansserif" options uses \textbf{cmsssy10} "\OMS/cmsssy/m/n/10" from the \software{sansmathfonts} package \cite{sansmathfonts}.
+\item{OMX} \label{it:math extension} Math Extension (big operators, delimiters)
+
The extension font \ref{it:math extension}\strut\ of \CM is \textbf{cmex10} "\OMX/cmex/m/n/5", and is replaced by the \software{exscale} package \cite{exscale} to be \textbf{cmex10} "\OMX/cmex/m/n/10", the "sansserif" option loads \textbf{cmssex10} "\OMX/cmssex/m/n/10".
+\end{enumdescript}
+
The \software{amssymb} (\software{amsfonts}) packages \cite{amssymb} load two more symbol fonts
\begin{enumdescript}[start=4,label=\arabic*)]
\item{msam10} \label{it:math ams a} "\U/msa/m/n/10" AMS symbol font A (special math operators)
\item{msbm10} \label{it:math ams b} "\U/msb/m/n/10" AMS symbol font B ("\mathbb", negated operators)
\end{enumdescript}
The "sansserif" option replaces them with \textbf{ssmsam10} "\U/ssmsa/m/n/10" and \textbf{ssmsbm10} "\U/ssmsb/m/n/10" from the \software{sansmathfonts} package \cite{sansmathfonts}, respectively.
+
The \software{bm} package \cite{bm} loads the bold version for the fonts \labelcref{it:math text,it:math italic,it:math symbol}.
Other math alphabets are only loaded on demand, \eg "\mathsf" uses a sans-serif font and "\mathbf" without the \software{bm} package uses a bold font.
@@ -333,7 +340,7 @@ Hence, the minion option uses three to four more math alphabets than a usual set
% \end{macrocode}
% \end{macro}
%
-% Define conditionals based on the "symbols" package option.
+% Define conditionals based on the "symbols" package option using the \software{pdftexcmds} package \cite{pdftexcmds}.
% \begin{macrocode}
\RequirePackage{pdftexcmds}
\newif\ifhepmathfont@symbols
@@ -449,7 +456,7 @@ Hence, the minion option uses three to four more math alphabets than a usual set
% \subsection{Greek letters}
%
% Load the \software{fixmath} \cite{fixmath} and \software{textalpha} \cite{textalpha} packages ensuring that upper Greek letters in math mode are italic and providing upright Greek letters in text mode, respectively.
-% Define the "hep@greek" macro ensuring that both "\text" and "\mathrm" produce upright Greek letters.
+% Define the "hep@greek" macro ensuring that both "\text" and "\mathrm" produce upright Greek letters using the \software{amssymb} \cite{amssymb} and \software{amstext} \cite{amstext} packages.
% \begin{macrocode}
\ifhepmathfont@symbols
\RequirePackage{amssymb}
@@ -457,7 +464,7 @@ Hence, the minion option uses three to four more math alphabets than a usual set
\RequirePackage{fixmath}
\RequirePackage{textalpha}
\def\hep@Greek#1#2#3{
- \def#1{\TextOrMath{#3}{\ifnum\fam=0 \text{#3}\else#2\fi}}%
+ \protected\def#1{\TextOrMath{#3}{\ifnum\fam=0 \text{#3}\else#2\fi}}%
}
\def\hep@greek#1#2#3{\let#2=#1\hep@Greek#1#2#3}
% \end{macrocode}
@@ -678,7 +685,7 @@ Hence, the minion option uses three to four more math alphabets than a usual set
%
% \subsection{Additional math fonts}
%
-% Either load the \software{MnSymbol} package \cite{MnSymbol} or the the \software{exscale} package in order to fix Latin Modern "lmex" fonts.
+% Either load the \software{MnSymbol} package \cite{MnSymbol} or the the \software{exscale} package \cite{exscale} in order to fix Latin Modern "lmex" fonts.
% Additionally, load the \software{amssymb} package \cite{amsfonts} which provides further math symbols and also loads the \software{amsfonts} package \cite{amsfonts}.
% \begin{macrocode}
\ifhep@minion
diff --git a/fonts/utilities/hep-math-font/hep-math-font-implementation.pdf b/fonts/utilities/hep-math-font/hep-math-font-implementation.pdf
index 358c7c20b5..e404b5dab6 100644
--- a/fonts/utilities/hep-math-font/hep-math-font-implementation.pdf
+++ b/fonts/utilities/hep-math-font/hep-math-font-implementation.pdf
Binary files differ