Debian Codegraph @

texmf-dist/doc/latex/mathfont/mathfont-heading.tex

raw
1 %%
2 %% This is file `mathfont-heading.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% mathfont-code.dtx (with options: `heading')
8 %%
9 %% This file is from version 3.0a of the free and open-source
10 %% LaTeX package "mathfont," released February 2026, to be used
11 %% with the XeTeX or LuaTeX engines. (As of version 2.0, LuaTeX
12 %% is recommended.)
13 %%
14 %% Copyright 2018, 2019, 2021-2023, 2025, 2026 Conrad Kosowsky
15 %%
16 %% This Work may be used, distributed, and modified under the
17 %% terms of the LaTeX Public Project License, version 1.3c or
18 %% any later version. The most recent version of this license
19 %% is available online at
20 %%
21 %% https://www.latex-project.org/lppl/.
22 %%
23 %% This Work has the LPPL status "maintained," and the current
24 %% maintainer is the package author, Conrad Kosowsky. He can
25 %% be reached at [email protected].
26 %%
27 %% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
28 %% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
29 %% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
30 %%
31 %% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
32 %% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
33 %% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
34 %% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35 %% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
36 %% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
37 %% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
38 %% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
39 %% CORRECTION.
40 %%
41 %% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
42 %% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
43 %% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
44 %% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
45 %% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
46 %% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
47 %% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
48 %% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
49 %% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
50 %% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
51 %% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
52 %% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
53 %% POSSIBILITY OF SUCH DAMAGES.
54 %%
55 %% For more information, see the LaTeX Project Public License.
56 %% Derivative works based on this package may come with their
57 %% own license or terms of use, and the package author is not
58 %% responsible for any third-party software.
59 %%
60 %% For more information, see mathfont-code.dtx. Happy TeXing!
61 %%
62
63 \csname count@\endcsname\catcode`\@
64 \makeatletter
65
66 \def\packagedate{February 2026}
67 \def\packageversion{3.0a}
68
69 \let\@@section\section
70 \def\section{\par
71 \penalty\z@
72 \vskip0.7in\relax
73 \penalty\z@
74 \vskip-0.7in\relax
75 \vskip\z@
76 \@ifstar\star@sect\no@star@sect}
77 \def\star@sect#1{\@@section*{#1}\section@name{#1}}
78 \def\no@star@sect#1{\@@section{#1}\section@name{#1}}
79 \def\section@name#1{\expandafter
80 \def\csname section@\thesection\endcsname{#1}}
81 \def\sectionname{\csname section@\thesection\endcsname}
82
83 \def\@oddhead{\ifnum\c@page>\@ne
84 \ifodd\c@page
85 \rlap{\textit{\sectionname}}\hfil
86 \hbox to 0pt{\hss\documentname\hss}\hfil
87 \llap{\the\c@page}\relax
88 \else
89 \rlap{\the\c@page}\hfil
90 \hb@xt@\z@{\hss\documentname\hss}\hfil
91 \llap{\textit{\sectionname}}\relax
92 \fi
93 \else
94 \hfil
95 \fi}
96 \def\@oddfoot{\hfil\ifnum\count0=1\relax1\fi\hfil}
97 \let\@evenfoot\@empty
98
99 \pretolerance=20
100 \hyphenpenalty=10
101 \exhyphenpenalty=5
102 \brokenpenalty=0
103 \clubpenalty=5
104 \widowpenalty=5
105 \finalhyphendemerits=300
106 \doublehyphendemerits=500
107
108 \flushbottom
109
110 \protected\def\XeTeX{X\kern-0.125em
111 \raise-0.5ex\hbox{\reflectbox{E}}\kern-0.1667em
112 \TeX}
113 \protected\def\XeLaTeX{X\kern-0.125em
114 \raise-0.5ex\hbox{\reflectbox{E}}\kern-0.125em
115 \LaTeX}
116 \bgroup
117 \catcode`\_=12
118 \protected\gdef
119 \fontspeccommand{\texttt{\string\fontspec_set_family:Nnn}}
120 \protected\gdef
121 \fontspecbool{\texttt{\string\g__fontspec_math_bool}}
122 \egroup
123 \def\topfraction{1}
124 \def\bottomfraction{1}
125 \let\code\@undefined
126 \newenvironment{code}
127 {\strut\vadjust\bgroup\vskip 5pt plus 1pt minus 3pt\relax
128 \parindent\z@\leftskip2em\relax
129 \noindent\strut\ignorespaces}
130 {\strut\par\vskip 5pt plus 1pt minus 3pt\relax
131 \egroup\hfill\break\strut\ignorespacesafterend}
132 \def\vrb#1{\expandafter\texttt\expandafter{\string#1}}
133 \parskip=0pt
134
135 \def\charexample#1{\hbox to \hsize{\hbox to 0.4in{$#1$\hfil}\vrb#1\hook\hfil}}
136 \def\accentexample#1{\hbox to \hsize{\hbox to 0.4in{$#1 a$\hfil}\vrb#1\hook\hfil}}
137 \let\hook\relax
138 \def\delimexample#1{\hbox to \hsize{%
139 \hbox to 0.8in{$#1\big#1\Big#1\bigg#1\Bigg#1$\hfil}\vrb#1\hfil}}
140 \def\luadelimexample#1{\hbox{\vbox{\hbox to 0.8in{%
141 $#1\big#1\Big#1\bigg#1\Bigg#1$\hfil}\hrule width 0pt height 0pt\relax}%
142 \hbox to \dimexpr\hsize-0.8in{\vbox{\vss
143 \hbox{\vrb#1}
144 \hbox{\quad(Lua\TeX only)}
145 \vss}\hfil}}}
146 \def\operatorexample#1{\hbox to \hsize{%
147 \hbox to 0.4in{$#1$\hfil}%
148 \hbox to 0.4in{$\displaystyle#1$\hfil}\vrb#1\hfil}\smallskip}
149 \def\blockheader#1#2{%
150 \hbox{\fbox{\hbox to \dimexpr\hsize-2\fboxrule-2\fboxsep\relax{%
151 \hfil#2 Characters (Keyword \texttt{#1})\strut\hfil}}}}
152 \def\upperalphabet{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
153 \def\loweralphabet{abcdefghijklmnopqrstuvwxyz}
154 \def\digits{0123456789}
155 \def\printchars#1{%
156 \expandafter\@tfor\expandafter\letter\expandafter:\expandafter=#1\do{%
157 \hbox to \dimexpr\hsize/26{$\@tempstyle{\letter}$\hfil}}}
158 \def\letterlikechars#1{\smallskip\let\@tempstyle#1
159 \noindent\printchars\upperalphabet\par
160 \noindent\printchars\loweralphabet\par}
161
162 {\large\parindent=0pt\leftskip=0pt plus 1 fil\rightskip=0pt plus 1fil\parfillskip=0pt
163 {\global\setbox0\hbox{\strut\Large
164 Package \textsf{mathfont} v.\ \packageversion\ \documentname}%
165 \unhcopy0\let\thefootnote\relax\footnote{Acknowledgements: Thanks to Lyric Bingham for her work checking my Unicode hex values. Thanks to Matthew Braham, Sergio Callegari, Daniel Flipo, Nikos Platis, Shyam Sundar, Adrian Vollmer, Herbert Voss, and Andreas Zidak for pointing out bugs in previous versions of \textsf{mathfont}. Thanks to Jean-Fran\c cois Burnol for pointing out an error in the documentation in reference to his \textsf{mathastext} package.}\global\advance\c@footnote\m@ne}\par
166 {\strut Conrad Kosowsky}\par
167 {\strut\packagedate}\par
168 {\strut\ttfamily [email protected]}\par}
169
170 \medskip
171
172 \ifnum\showabstract=1\relax
173
174 {% add margin
175 \leftskip 0.5in
176 \rightskip 0.5in
177 \ifdim\hsize>6in
178 \advance\leftskip 0.5in
179 \advance\rightskip -0.5in
180 \fi
181 \hsize\dimexpr\paperwidth - 3in\relax
182 \parindent\z@
183 \leavevmode\hb@xt@\dimexpr\hsize - \leftskip - \rightskip\relax{%
184 \vrule width \p@
185 \kern-\p@\relax
186 \vbox{\hsize\dimexpr\hsize - \leftskip - \rightskip\relax
187 \parindent\z@
188 \leftskip\medskipamount
189 \rightskip\medskipamount
190 \hrule height \p@
191 \smallskip
192 \strut For easy, off-the-shelf use, type the
193 following in your preamble and compile with
194 \XeLaTeX\ or Lua\LaTeX:\par
195 \medskip
196 \hfil|\usepackage[|\meta{font name}|]{mathfont}|\par
197 \medskip
198 As of version 2.0, using Lua\LaTeX\ is recommended.
199 Minor backwards incompatible changes in version 3.0.\strut\par
200 \smallskip
201 \hrule height \p@}%
202 \kern-\p@
203 \vrule width \p@}
204
205 \medskip
206
207 {\small
208 {\hfil\bfseries Overview\strut\par}
209 The \textsf{mathfont} package adapts Unicode text fonts for math mode. The package allows the user to specify a default font for different classes of math symbols, and it enables Unicode input in math mode. The package provides tools to change the font locally for math alphabet characters. When typesetting with Lua\TeX, \textsf{mathfont} adds resizable delimiters, big operators, and a MathConstants table to text fonts.\par}}
210
211 \bigskip\bigskip\nointerlineskip
212 \centerline{\vrule height 0.5pt width 2.5in}\bigskip\bigskip
213 \nointerlineskip
214 \fi
215
216 \catcode`\@\count@
217
218 \endinput
219 %%
220 %% End of file `mathfont-heading.tex'.