summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mathfont/mathfont_doc_patch.tex
blob: 206dd1f6f1c42135616b58d496f414704c5637a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
%%
%% This is file `mathfont_doc_patch.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% mathfont_code.dtx  (with options: `doc')
%% 
%% This file is from version 2.0 of the free and open-source
%% LaTeX package "mathfont," to be used with the XeTeX or
%% LuaTeX engines. (As of version 2.0, LuaTeX is recommended.)
%% 
%% Copyright 2018-2021 by Conrad Kosowsky
%% 
%% This file may be distributed and modified under the terms
%% of the LaTeX Public Project License, version 1.3c or any
%% later version. The most recent version of this license is
%% available online at
%% 
%%           https://www.latex-project.org/lppl/.
%% 
%% This Work has the LPPL status "maintained," and the current
%% maintainer is the package author, Conrad Kosowsky. He can
%% be reached at kosowsky.latex@gmail.com.
%% 
%% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS
%% OR IMPLIED WARRANTY, INCLUDING THE IMPLIED WARRANTIES
%% OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
%% IF THE SOFTWARE IS DEFECTIVE, YOU AGREE TO ASSUME THE
%% COST FOR ANY REPAIR OR CORRECTION.
%% 
%% BY USING OR DISTRIBUTING THIS SOFTWARE, YOU AGREE
%% TO RELEASE THE PACKAGE AUTHOR FROM ANY LIABILITY FOR
%% DAMAGES ARISING OUT OF YOUR USE OF THE SOFTWARE. YOU
%% AGREE TO DO SO TO THE MAXIMUM EXTENT ALLOWED UNDER
%% APPLICABLE LAW AND EVEN IF THE PACKAGE AUTHOR HAS
%% BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
%% 
%% See also the "No Warranty" section of the LaTeX Project
%% Public License. In releasing the package author from
%% liability, you also release from liability any third
%% parties who distribute the software under the terms
%% of the LaTeX Project Public License. Derivative works
%% based on this package may come with their own license or
%% terms of use, and the package author is not responsible
%% for any third-party software.
%% 
%% For more information, see the mathfont_code.dtx.
%% 
%% Happy TeXing!
%% 

\let\?\SpecialUsageIndex
\expandafter\newif\csname if@def\endcsname
\newtoks\index@nomainlist
\index@nomainlist{}
\MacrocodeTopsep=2.5pt plus 3pt minus 1pt
\def\@defname{def}
\def\@edefname{edef}
\def\@letname{let}
\let\main\textbf

\def\DoNotIndexMain{\bgroup
  \catcode`\\=12\relax
  \do@not@index@main}
\def\do@not@index@main#1{\egroup
  \index@nomainlist\expandafter{\the\index@nomainlist#1,}}

\def\macro@finish{\macro@namepart
  \if@def
    \@deffalse
    \@expandtwoargs\in@{\macro@namepart}{\the\index@excludelist}\relax
    \ifin@
    \else
      \@expandtwoargs\in@{\macro@namepart}{\the\index@nomainlist}\relax
      \ifin@
        \edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}\relax
        \@tempa
      \else
        \edef\@tempa{\noexpand\SpecialMainIndex{\bslash\macro@namepart}}\relax
        \@tempa
      \fi
    \fi
  \else
    \ifx\macro@namepart\@defname
      \@deftrue
    \else
      \ifx\macro@namepart\@edefname
        \@deftrue
      \else
        \ifx\macro@namepart\@letname
          \@deftrue
        \fi
      \fi
    \fi
    \@expandtwoargs\in@{\macro@namepart}{\the\index@excludelist}\relax
    \ifin@
    \else
      \edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}\relax
      \@tempa
    \fi
  \fi}

\def\macro@code{%
   \topsep \MacrocodeTopsep
   \@beginparpenalty0% \predisplaypenalty
   \if@inlabel\leavevmode\fi
   \trivlist \parskip 0pt plus 0.2pt \item[]%
   \macro@font
   \leftskip\@totalleftmargin \advance\leftskip\MacroIndent
   \rightskip\z@ \parindent\z@ \parfillskip\@flushglue
   \blank@linefalse \def\par{\ifblank@line
                             \leavevmode\fi
                             \blank@linetrue\@@par
                             \penalty\interlinepenalty}
   \obeylines
   \let\do\do@noligs \verbatim@nolig@list
   \let\do\@makeother \dospecials
   \global\@newlistfalse
   \global\@minipagefalse
   \ifcodeline@index
     \everypar{\global\advance\c@CodelineNo\@ne
               \llap{\theCodelineNo\ \hskip\@totalleftmargin}%
               \check@module}%
   \else \everypar{\check@module}%
   \fi
   \init@crossref}
\endinput
%%
%% End of file `mathfont_doc_patch.tex'.