Debian Codegraph @

texmf-dist/doc/lualatex/innerscript/innerscript-heading.tex

raw
1 %%
2 %% This is file `innerscript-heading.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% innerscript-code.dtx (with options: `heading')
8 %%
9 %% This file is from version 1.4a of the free and open-source
10 %% LaTeX package "innerscript," released May 2025, to be
11 %% used with the LuaTeX engine.
12 %%
13 %% Copyright 2021, 2023-2025 Conrad Kosowsky
14 %%
15 %% This file may be distributed and modified under the terms
16 %% of the LaTeX Public Project License, version 1.3c or any
17 %% later version. The most recent version of this license is
18 %% available online at
19 %%
20 %% https://www.latex-project.org/lppl/
21 %%
22 %% This work has the LPPL status "maintained," and the current
23 %% maintainer is the package author, Conrad Kosowsky. He can
24 %% be reached at [email protected].
25 %%
26 %% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
27 %% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
28 %% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
29 %%
30 %% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
31 %% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
32 %% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
33 %% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34 %% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
35 %% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
36 %% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
37 %% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
38 %% CORRECTION.
39 %%
40 %% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
41 %% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
42 %% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
43 %% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
44 %% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
45 %% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
46 %% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
47 %% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
48 %% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
49 %% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
50 %% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
51 %% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
52 %% POSSIBILITY OF SUCH DAMAGES.
53 %%
54 %% For more information, see the LaTeX Project Public License.
55 %% Derivative works based on this software may come with their
56 %% own license or terms of use, and the package author is not
57 %% responsible for any third-party software.
58 %%
59 %% Happy TeXing!
60 %%
61
62 \csname count@\endcsname\catcode`\@
63 \makeatletter
64
65 \def\packageversion{1.4a}
66 \def\packagedate{May 2025}
67
68 \MacroIndent=1.3em
69 \def\scalemu#1#2{\muexpr#2#1
70 \@plus\muexpr#2\gluetomu\gluestretch\mutoglue#1\relax
71 \@minus\muexpr#2\gluetomu\glueshrink\mutoglue#1\relax\relax}
72 \baselineskip=\the\baselineskip plus 0.3pt minus 0.3pt\relax
73
74 \let\@@section\section
75 \def\section{\@ifstar\star@sect\no@star@sect}
76 \def\star@sect#1{\sectionhook{#1}\@@section*{#1}}
77 \def\no@star@sect#1{\sectionhook{#1}\@@section{#1}}
78
79 \def\sectionhook#1{%
80 \vskip 1in\relax
81 \kern\z@
82 \vskip -1in\relax
83 \kern\z@
84 \vskip\z@
85 \def\sectionname{#1}}
86
87 \def\@oddhead{%
88 \ifnum\count0>1\relax
89 \ifodd\c@page
90 \rlap{\textit{\sectionname}}\hfil
91 \hbox to 0pt{\hss\documentname\hss}\hfil
92 \llap{\the\count0}%
93 \else
94 \rlap{\the\count0}\hfil
95 \hbox to 0pt{\hss\documentname\hss}\hfil
96 \llap{\textit{\sectionname}}%
97 \fi
98 \fi}
99 \def\@oddfoot{\hfil\ifnum\count0=1\relax1\fi\hfil}
100
101 \pretolerance=-1
102 \hyphenpenalty=20
103 \exhyphenpenalty=15
104 \brokenpenalty=0
105 \clubpenalty=0
106 \widowpenalty=0
107 \finalhyphendemerits=500
108 \doublehyphendemerits=2000
109
110 \def\argtext#1{\ensuremath{\langle$\textit{#1}$\rangle}}
111 \def\vrb#1{\expandafter\texttt\expandafter{\string#1}}
112 \def\clap@math#1{\hb@xt@\z@{\hss$\displaystyle#1$\hss}}
113
114 {\large
115 \parindent=0pt
116 \leftskip=0pt plus 1 fil
117 \rightskip=0pt plus 1fil
118 \parfillskip=0pt
119 {\strut\Large Package \textsf{innerscript} v.\ \packageversion\ \documentname\par}
120 \strut Conrad Kosowsky\par
121 \strut \packagedate\par
122 \strut\texttt{[email protected]}\par}
123
124 {\let\thefootnote\relax\footnotetext{Acknowledgements: Thanks to Sheldon Axler and Clea F. Rees for pointing a bug in a previous version of \textsf{innerscript}.}}
125
126 \bigskip
127
128 \hrule height \p@
129 \@@line{\vrule width \p@\kern-\p@
130 \vbox{\medskip
131 \leftskip=8em\relax\rightskip=8em\relax
132 \noindent\strut For easy, off-the-shelf use, type the following
133 in your document preamble and compile using Lua\LaTeX:
134 \vskip\medskipamount
135 \noindent\hfil\strut|\usepackage{innerscript}|\hfil
136 \vskip\medskipamount}\relax
137 \kern-\p@\vrule width \p@}
138 \hrule height \p@
139
140 \bigskip
141
142 {\small
143 \leftskip=0.5in
144 \rightskip=0.5in
145 \centerline{\bfseries Overview\strut}
146 \noindent The \textsf{innerscript} package optionally modifies four aspects of \TeX's automatic math formatting to improve typesetting: (1) it adds extra space around relation and operation symbols in superscripts and subscripts; (2) it removes extra space around |\left|-|\right| delimiter pairs; (3) it adds extra space after right delimiters in certain situations; and (4) it forces |\left| and |\right| delimiters to completely cover their contents. Using Lua\LaTeX\ is required.\par}
147
148 \bigskip\bigskip\nointerlineskip
149 \centerline{\vrule height 0.5pt width 2.5in}\bigskip\bigskip
150 \nointerlineskip
151
152 \catcode`\@\count@
153
154 \endinput
155 %%
156 %% End of file `innerscript-heading.tex'.