Debian Codegraph @

texmf-dist/doc/fonts/hep-font/hep-font-documentation.tex

raw
1 %%
2 %% This is file `hep-font-documentation.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hep-font-implementation.dtx (with options: `documentation')
8 %% This is a generated file.
9 %% Copyright (C) 2019-2025 by Jan Hajer
10 %% This file may be distributed and/or modified under the
11 %% conditions of the LaTeX Project Public License, either
12 %% version 1.3c of this license or (at your option) any later
13 %% version. The latest version of this license is in:
14 %% http://www.latex-project.org/lppl.txt
15 %% and version 1.3c or later is part of all distributions of
16 %% LaTeX version 2005/12/01 or later.
17 \ProvidesFile{hep-font-documentation.tex}[2025/09/01 v1.4 hep-font documentation]
18 \documentclass{ltxdoc}
19
20 \renewcommand*\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
21 \AtBeginEnvironment{macrocode}{\renewcommand*{\ttdefault}{clmt}}
22 \renewcommand*{\MacroFont}{\codestyle}
23 \AtBeginDocument{\DeleteShortVerb{\|}}
24 \AtBeginDocument{\MakeShortVerb{\"}}
25 \EnableCrossrefs
26 \CodelineIndex
27 \RecordChanges
28
29 \usepackage{hologo}
30
31 \usepackage[parskip,oldstyle,font=10pt]{hep-paper}
32 \bibliography{bibliography}
33 \acronym{CM}{computer modern}
34 \acronym{LM}{latin modern}
35 \acronym{NFSS}{new font selection scheme}
36
37 \GetFileInfo{hep-font.sty}
38
39 \title{The \software{hep-font} package\thanks{This document corresponds to \software{hep-font}~\fileversion.}}
40 \subtitle{Latin modern extended by computer modern}
41 \author{Jan Hajer \email{[email protected]}}
42 \date{\filedate}
43
44 \begin{document}
45
46 \newgeometry{vscale=.8, vmarginratio=3:4, includeheadfoot, left=11em, marginparwidth=4.6cm, marginparsep=3mm, right=7em}
47
48 \maketitle
49
50 \begin{abstract}
51 The \software{hep-font} package loads standard font packages and extends the usual \glsdesc{LM} implementations by replacing missing fonts with \glsdesc{CM} counterparts.
52 \end{abstract}
53
54 The package is loaded using "\usepackage{hep-font}".
55
56 \DescribeMacro{size}
57 The "size="\meta{size} option loads the specified font size.
58 The possible \meta{sizes} are:
59 "8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "17pt", "20pt" and "default" deactivates this switch.
60 The default value is \unit[11]{pt}.
61
62 \DescribeMacro{sans}
63 The "sans" option switches to sans-serif font instead of serif font.
64
65 \DescribeMacro{oldstyle}
66 The "oldstyle" option switches to oldstyle numerals such as 123 in text mode instead of lining numerals such as \textl{123}.
67
68 The \software{fontenc} package \cite{fontenc} with "T1" and "TU" font encoding is loaded for \hologo{pdfTeX} and \hologo{LuaTeX}, respectively.
69
70 Some restrictions of \CM fonts are lifted with the \software{fixcm} package \cite{fix-cm}.
71
72 The \software{microtype} \cite{microtype} optimizations are activated.
73
74 The \hologo{LaTeX} \NFSS is extended with the \software{nfssext-cfr} package \cite{nfssext-cfr}.
75
76 The \LM font is loaded using the \software{cfr-lm} package \cite{cfr-lm} for \hologo{pdfTeX}.
77
78 The text companion fonts are loaded \cite{textcomp}.
79
80 \DescribeMacro{\textsc}
81 Bold \textbf{\textsc{Small Caps}} and a sans serif \textsf{\textsc{Small Caps}} based on the \CM font \cite{cm} is provided, the latter using the \software{sansmathfonts} \cite{sansmathfonts} and \software{hfoldsty} \cite{hfoldsty} packages.
82
83 \DescribeMacro{\textui}
84 A sans-serif upright italic font is provided using the \software{sansmathfonts} package \cite{sansmathfonts}.
85
86 Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option is loaded.
87
88 \printbibliography
89
90 \end{document}
91
92 \endinput
93 %%
94 %% End of file `hep-font-documentation.tex'.