Debian Codegraph @

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

raw
1 %%
2 %% This is file `mathfont-doc-patch.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% mathfont-code.dtx (with options: `doc')
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 \let\?\SpecialUsageIndex
64 \expandafter\newif\csname if@def\endcsname
65 \newtoks\index@nomainlist
66 \index@nomainlist{}
67 \MacrocodeTopsep=2.5pt plus 3pt minus 1pt
68 \def\@defname{def}
69 \def\@edefname{edef}
70 \def\@gdefname{gdef}
71 \def\@xdefname{xdef}
72 \def\@letname{let}
73 \let\main\textbf
74
75 \def\DoNotIndexMain{\bgroup
76 \catcode`\\=12\relax
77 \do@not@index@main}
78 \def\do@not@index@main#1{\egroup
79 \index@nomainlist\expandafter{\the\index@nomainlist#1,}}
80
81 \reversemarginpar
82 \@mparswitchfalse
83 \marginparsep=0.5em
84 \newbox\@tempboxb
85 \newbox\macrobox
86 \marginparwidth=\dimexpr1.5in-2\marginparsep\relax
87
88 \def\marginmacro#1\@nil{\begingroup\footnotesize
89 \setbox\macrobox\vbox{}\relax
90 \setbox\@tempboxa\hbox{\@backslashchar}\relax
91 \@tfor\@i:=#1\do
92 {\setbox\@tempboxb\hbox{\@i}\relax
93 \ifdim\dimexpr\wd\@tempboxa+\wd\@tempboxb\relax
94 <\marginparwidth
95 \setbox\@tempboxa\hbox{\unhbox\@tempboxa\unhbox\@tempboxb}\else
96 \@break@tfor\fi}\relax
97 \let\par\relax
98 \marginpar{\hb@xt@\marginparwidth{\hfil\unhbox\@tempboxa}}\endgroup}
99
100 \def\macro@finish{\macro@namepart
101 \if@def
102 \@deffalse
103 \@expandtwoargs\in@{\macro@namepart}{\the\index@excludelist}\relax
104 \ifin@
105 \else
106 \@expandtwoargs\in@{\macro@namepart}{\the\index@nomainlist}\relax
107 \ifin@
108 \edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}\relax
109 \@tempa
110 \else
111 \edef\@tempa{\noexpand\SpecialMainIndex{\bslash\macro@namepart}}\relax
112 \expandafter\marginmacro\macro@namepart\@nil
113 \@tempa
114 \fi
115 \fi
116 \else
117 \ifx\macro@namepart\@defname
118 \@deftrue
119 \else
120 \ifx\macro@namepart\@edefname
121 \@deftrue
122 \else
123 \ifx\macro@namepart\@letname
124 \@deftrue
125 \else
126 \ifx\macro@namepart\@gdefname
127 \@deftrue
128 \else
129 \ifx\macro@namepart\@xdefname
130 \@deftrue
131 \fi
132 \fi
133 \fi
134 \fi
135 \fi
136 \@expandtwoargs\in@{\macro@namepart}{\the\index@excludelist}\relax
137 \ifin@
138 \else
139 \edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}\relax
140 \@tempa
141 \fi
142 \fi}
143
144 \def\macro@code{%
145 \topsep \MacrocodeTopsep
146 \@beginparpenalty0% \predisplaypenalty
147 \if@inlabel\leavevmode\fi
148 \trivlist \parskip 0pt plus 0.2pt \item[]%
149 \macro@font
150 \leftskip\@totalleftmargin \advance\leftskip\MacroIndent
151 \rightskip\z@ \parindent\z@ \parfillskip\@flushglue
152 \blank@linefalse \def\par{\ifblank@line
153 \leavevmode\fi
154 \blank@linetrue\@@par
155 \penalty\interlinepenalty}
156 \obeylines
157 \let\do\do@noligs \verbatim@nolig@list
158 \let\do\@makeother \dospecials
159 \global\@newlistfalse
160 \global\@minipagefalse
161 \ifcodeline@index
162 \everypar{\global\advance\c@CodelineNo\@ne
163 \llap{\theCodelineNo\ \hskip\@totalleftmargin}%
164 \check@module}%
165 \else \everypar{\check@module}%
166 \fi
167 \init@crossref}
168 \endinput
169 %%
170 %% End of file `mathfont-doc-patch.tex'.