Debian Codegraph @

texmf-dist/source/lualatex/innerscript/innerscript-code.dtx

raw
1 % \iffalse ---!!! FIRST META-COMMENT !!!---
2 %
3 %
4 % This file is innerscript-code.dtx from version 1.4a
5 % of the free and open-source LaTeX package "innerscript,"
6 % released May 2025, to be used with the LuaTeX engine.
7 %
8 % Running Plain TeX on innerscript-code.dtx will
9 % produce the following files:
10 %
11 % (1) the package file innerscript.sty;
12 %
13 % (2) the derived files innerscript-heading.tex
14 % and innerscript-user-guide.tex, which are
15 % used for typesetting documentation;
16 %
17 % and
18 %
19 % (3) a number of other derived files.
20 %
21 % Running LaTeX on innerscript-code.dtx will produce the
22 % files listed above as well as the following:
23 %
24 % (4) the pdf documentation file innerscript-code.pdf;
25 %
26 % and
27 %
28 % (5) a number of other derived files.
29 %
30 % To install innerscript on your computer, run this file
31 % through Plain TeX or LaTeX and move innerscript.sty
32 % to a directory searchable by TeX. See the associated
33 % README.txt file for installation information.
34 %
35 %
36 % \fi
37 % \iffalse ---!!! SECOND META-COMMENT !!!---
38 %
39 %
40 % This file is from version 1.4a of the free and open-source
41 % LaTeX package "innerscript," released May 2025, to be
42 % used with the LuaTeX engine.
43 %
44 % Copyright 2021, 2023-2025 Conrad Kosowsky
45 %
46 % This file may be distributed and modified under the terms
47 % of the LaTeX Public Project License, version 1.3c or any
48 % later version. The most recent version of this license is
49 % available online at
50 %
51 % https://www.latex-project.org/lppl/
52 %
53 % This Work has the LPPL status "maintained," and the current
54 % maintainer is the package author, Conrad Kosowsky. He can
55 % be reached at [email protected]. The Work consists
56 % of the following items:
57 %
58 % (1) the base file innerscript.dtx;
59 %
60 % (2) the package file innerscript.sty;
61 %
62 % (3) the pdf documentation files innerscript-code.pdf
63 % and innerscript-user-guide.pdf;
64 %
65 % (4) the derived file innerscript-heading.tex;
66 %
67 % (4) all other files created through the configuration
68 % process;
69 %
70 % and
71 %
72 % (5) the associated README.txt file.
73 %
74 % PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
75 % ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
76 % THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
77 %
78 % THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
79 % STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
80 % `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
81 % OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
82 % WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
83 % PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
84 % OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
85 % YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
86 % CORRECTION.
87 %
88 % IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
89 % TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
90 % NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
91 % WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
92 % ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
93 % SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
94 % OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
95 % (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
96 % RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
97 % RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
98 % OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
99 % AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
100 % POSSIBILITY OF SUCH DAMAGES.
101 %
102 % For more information, see the LaTeX Project Public License.
103 % Derivative works based on this software may come with their
104 % own license or terms of use, and the package author is not
105 % responsible for any third-party software.
106 %
107 % Happy TeXing!
108 %
109 %
110 % \fi
111 % \iffalse
112 %
113 % The installation and driver files are incorporated into
114 % innerscript-code.dtx, so we do not need to generate them
115 % separately. The <batchfile> and <driver> tags are for
116 % reference.
117 %
118 %<*batchfile>
119 \begingroup
120 \input docstrip.tex
121 \keepsilent
122 \askforoverwritefalse
123 \preamble
124
125 This file is from version 1.4a of the free and open-source
126 LaTeX package "innerscript," released May 2025, to be
127 used with the LuaTeX engine.
128
129 Copyright 2021, 2023-2025 Conrad Kosowsky
130
131 This file may be distributed and modified under the terms
132 of the LaTeX Public Project License, version 1.3c or any
133 later version. The most recent version of this license is
134 available online at
135
136 https://www.latex-project.org/lppl/
137
138 This work has the LPPL status "maintained," and the current
139 maintainer is the package author, Conrad Kosowsky. He can
140 be reached at [email protected].
141
142 PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT
143 ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF
144 THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING:
145
146 THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE
147 STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK
148 `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
149 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
150 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
151 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
152 OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE,
153 YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
154 CORRECTION.
155
156 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
157 TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR
158 NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY
159 WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED
160 ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
161 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
162 OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK
163 (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING
164 RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A
165 RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY
166 OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID
167 AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE
168 POSSIBILITY OF SUCH DAMAGES.
169
170 For more information, see the LaTeX Project Public License.
171 Derivative works based on this software may come with their
172 own license or terms of use, and the package author is not
173 responsible for any third-party software.
174
175 Happy TeXing!
176
177 \endpreamble
178 \generate{\file{innerscript.sty}{\from{innerscript-code.dtx}{package}}
179 \file{innerscript-user-guide.tex}{\from{innerscript-code.dtx}{user}}
180 \file{innerscript-heading.tex}{\from{innerscript-code.dtx}{heading}}}
181 \catcode`\ =12\relax
182 \message{^^J%
183 ****************************************************^^J%
184 * Step 1 of the innerscript installation complete! *^^J%
185 ****************************************************^^J^^J%
186 ****************************************************^^J%
187 * To finish installing the package, move *^^J%
188 * innerscript.sty to a directory searchable by TeX *^^J%
189 * after innerscript-code.tex is done typesetting *^^J%
190 ****************************************************^^J^^J^^J}
191 \endgroup
192 \ifx\LaTeX\undefined
193 \message{Plain TeX format used; quitting now.}
194 \message{To create innerscript-code.pdf, run^^J%
195 innerscript-code.dtx through LaTeX.^^J^^J^^J}
196 \expandafter\end
197 \fi
198 %</batchfile>
199 %<*driver>
200 \makeatletter
201 \documentclass[12pt,doc2,letterpaper]{ltxdoc}
202 \usepackage[margin=72.27pt]{geometry}
203 \usepackage[factor=700,stretch=14,shrink=14,step=1]{microtype}
204 \usepackage{booktabs}
205 \usepackage{tabularx}
206 \usepackage{amsmath}
207 \usepackage{multicol}
208 \usepackage{graphicx}
209 \c@IndexColumns=2
210 \c@topnumber\@ne
211 \predisplaypenalty=100
212 \columnsep=20pt
213 \MacroIndent=16pt
214 \let\index@prologue\relax
215 \EnableCrossrefs\CodelineIndex
216 \expandafter\def\expandafter\MacroFont\expandafter{\MacroFont
217 \baselineskip=\the\baselineskip plus 0.5pt minus 0.5pt}
218 \begin{document}
219 \def\documentname{Implementation}
220 \input innerscript-heading.tex
221
222 \flushbottom
223 \DocInput{innerscript-code.dtx}
224 \vfil\eject
225
226 \immediate\closeout\@indexfile
227 \ifx\directlua\@undefined
228 \immediate\write18{makeindex -s gind.ist innerscript-code.idx}
229 \else
230 \directlua{os.execute("makeindex -s gind.ist innerscript-code.idx")}
231 \fi
232
233 \section*{Index}
234
235 \input innerscript-code.ind
236
237
238
239 \end{document}
240 %</driver>
241 %<*package>
242 %
243 % \fi
244 %
245 %
246 %
247 % \CheckSum{413}
248 % \init@checksum
249 %
250 % \makeatother
251 % \CharacterTable
252 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
253 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
254 % Digits \0\1\2\3\4\5\6\7\8\9
255 % Exclamation \! Double quote \" Hash (number) \#
256 % Dollar \$ Percent \% Ampersand \&
257 % Acute accent \' Left paren \( Right paren \)
258 % Asterisk \* Plus \+ Comma \,
259 % Minus \- Point \. Solidus \/
260 % Colon \: Semicolon \; Less than \<
261 % Equals \= Greater than \> Question mark \?
262 % Commercial at \@ Left bracket \[ Backslash \\
263 % Right bracket \] Circumflex \^ Underscore \_
264 % Grave accent \` Left brace \{ Vertical bar \|
265 % Right brace \} Tilde \~}
266 % \makeatletter
267 %
268 %
269 %
270 % \DoNotIndex{\@for,\@gobbletwo,\@i,\@j,\@m,\@tempa,\@tfor,\@undefined,%
271 % \AtEndOfPackage,\bgroup,\egroup,\GenericError,\catcode,\csname,\endcsname,%
272 % \def,\edef,\do,\else,\endinput,\expandafter,\fi,\ifx,\let,\MessageBreak,%
273 % \muexpr,\NeedsTeXFormat,\ProvidesPackage,\newif,\on@line,\ProcessOptions,%
274 % \PackageWarningNoLine,\relax,\space,\string,\the,\wlog,\DeclareOption,%
275 % \IS@info,\expanded}
276 %
277 %
278 %
279 %
280 %
281 % \noindent This file documents the code for the \textsf{innerscript} package. It is not a user guide! If you are looking for instructions on how to load \textsf{innerscript} and what it can do for your document, see |innerscript-user-guide.pdf|, which is included with the \textsf{innerscript} installation and is available on \textsc{ctan}. Section~1 begins with the package declaration and option processing. Sections~2 and 3 contain the code to adjust spacing between symbols in |\scriptstyle| and |\scriptscriptstyle| respectively, and Section~4 contains the code for adjusting the spacing around |\mathinner| subformulas. Section~5 handles spacing between |\mathclose| and |\mathord| atoms, and section~6 fills out the resizable delimiter heights. Version history appears at the end of the document.
282 %
283 %
284 %
285 % \section{Setup}
286 %
287 % We begin the implementation by declaring the package and defining a general informational macro. The first 60 lines of |innerscript.sty| are comments.
288 % \c@CodelineNo=60\relax
289 % \begin{macrocode}
290 \NeedsTeXFormat{LaTeX2e}
291 \ProvidesPackage{innerscript}[2025/05/08 v. 1.4a]
292 \def\IS@info#1{\wlog{Package innerscript Info: #1}}
293 % \end{macrocode}
294 % Check whether |\Umathordordspacing| is defined. If not, issue an error and |\endinput|. We normally can't print multiple spaces at once, so within a group, we change the space catcode to 12.
295 % \begin{macrocode}
296 \ifx\Umathordordspacing\@undefined
297 \bgroup
298 \catcode`\ =12\relax
299 \def\NoLuaTeXError{\GenericError{}%
300 {\MessageBreak\MessageBreak
301 Package innerscript error:%
302 \MessageBreak\MessageBreak
303 *******************\MessageBreak
304 * *\MessageBreak
305 * CANNOT LOAD *\MessageBreak
306 * INNERSCRIPT *\MessageBreak
307 * LuaTeX Needed *\MessageBreak
308 * *\MessageBreak
309 *******************\MessageBreak\@gobbletwo}%
310 {See the innerscript package documentation for explanation.}%
311 {I need LuaTeX to make the innerscript package work. It\MessageBreak
312 looks like the current engine is something else, so I\MessageBreak
313 can't load the package file. To use innerscript, please\MessageBreak
314 typeset with LuaLaTeX. To continue without innerscript,\MessageBreak
315 press return.}}%
316 \expandafter\egroup
317 \NoLuaTeXError
318 \AtEndOfPackage{\IS@info{Failed to load \on@line!}}
319 \expandafter\endinput % we \endinput with a balanced conditional
320 \fi
321 % \end{macrocode}
322 % The conditionals will encode package option information.
323 % \begin{macrocode}
324 \newif\ifIS@script
325 \newif\ifIS@scriptscript
326 \newif\ifIS@legacyscript
327 \newif\ifIS@legacyscriptscript
328 \newif\ifIS@inner
329 \newif\ifIS@close
330 \newif\ifIS@cover
331 % \end{macrocode}
332 % And set default options.
333 % \begin{macrocode}
334 \IS@scripttrue
335 \IS@scriptscripttrue
336 \IS@legacyscriptfalse
337 \IS@legacyscriptscriptfalse
338 \IS@innertrue
339 \IS@closetrue
340 \IS@covertrue
341 % \end{macrocode}
342 % Now define and process the package options.
343 % \begin{macrocode}
344 \DeclareOption{script} {\IS@scripttrue
345 \IS@legacyscriptfalse}
346 \DeclareOption{scriptscript} {\IS@scriptscripttrue
347 \IS@legacyscriptscriptfalse}
348 \DeclareOption{legacy-script} {\IS@scripttrue
349 \IS@legacyscripttrue}
350 \DeclareOption{legacy-scriptscript}{\IS@scriptscripttrue
351 \IS@legacyscriptscripttrue}
352 \DeclareOption{inner} {\IS@innertrue}
353 \DeclareOption{close} {\IS@closetrue}
354 \DeclareOption{cover} {\IS@covertrue}
355 \DeclareOption{no-script} {\IS@scriptfalse
356 \IS@legacyscriptfalse}
357 \DeclareOption{no-scriptscript} {\IS@scriptscriptfalse
358 \IS@legacyscriptscriptfalse}
359 \DeclareOption{no-inner} {\IS@innerfalse}
360 \DeclareOption{no-close} {\IS@closefalse}
361 \DeclareOption{no-cover} {\IS@coverfalse}
362 \ProcessOptions*
363 % \end{macrocode}
364 % If the user requested a legacy option for super or subscripts, issue a warning. We store the warning in |\@tempa|, and if both |\ifIS@legacyscript| and |\ifIS@legacyscriptscript| and false, we turn |\@tempa| into |\relax|. The |\@gobbletwo| eats |\on@line| and a period from |\PackageWarning|.
365 % \begin{macrocode}
366 \def\@tempa{%
367 \AtEndOfPackage{\PackageWarning{innerscript}
368 {I'm ignoring your request for\MessageBreak
369 legacy spacing\on@line\MessageBreak
370 and using the default space\MessageBreak
371 adjustments instead. (The\MessageBreak
372 package options for legacy\MessageBreak
373 spacing are deprecated.)\@gobbletwo}}}
374 \ifIS@legacyscript
375 \else
376 \ifIS@legacyscriptscript
377 \else
378 \let\@tempa\relax
379 \fi
380 \fi
381 \@tempa
382 % \end{macrocode}
383 %
384 % \section{Superscripts and Subscripts}
385 %
386 %
387 % \begin{figure}[t!]
388 % \centerline{\bfseries\strut Table 1: Space Inserted between Atoms}
389 % \begin{tabularx}{\textwidth}{XX}\toprule
390 % Consecutive Atom Types & Default space added\\\midrule
391 % |\mathord||\mathop| & |\thinmuskip| \\
392 % |\mathord||\mathbin| & |\medmuskip| \\
393 % |\mathord||\mathrel| & |\thickmuskip| \\
394 % |\mathord||\mathinner| & |\thinmuskip| \\\midrule
395 % |\mathop||\mathord| & |\thinmuskip| \\
396 % |\mathop||\mathop| & |\thinmuskip| \\
397 % |\mathop||\mathrel| & |\thickmuskip| \\
398 % |\mathop||\mathinner| & |\thickmuskip| \\\midrule
399 % |\mathbin||\mathord| & |\medmuskip| \\
400 % |\mathbin||\mathop| & |\medmuskip| \\
401 % |\mathbin||\mathopen| & |\medmuskip| \\
402 % |\mathbin||\mathinner| & |\medmuskip| \\\midrule
403 % |\mathrel||\mathord| & |\thickmuskip| \\
404 % |\mathrel||\mathop| & |\thickmuskip| \\
405 % |\mathrel||\mathopen| & |\thickmuskip| \\
406 % |\mathrel||\mathinner| & |\thickmuskip| \\\midrule
407 % |\mathclose||\mathop| & |\thinmuskip| \\
408 % |\mathclose||\mathbin| & |\medmuskip| \\
409 % |\mathclose||\mathrel| & |\thickmuskip| \\
410 % |\mathclose||\mathinner| & |\thinmuskip| \\\midrule
411 % |\mathpunct||\mathord| & |\thinmuskip| \\
412 % |\mathpunct||\mathop| & |\thinmuskip| \\
413 % |\mathpunct||\mathrel| & |\thinmuskip| \\
414 % |\mathpunct||\mathopen| & |\thinmuskip| \\
415 % |\mathpunct||\mathclose| & |\thinmuskip| \\
416 % |\mathpunct||\mathpunct| & |\thinmuskip| \\
417 % |\mathpunct||\mathinner| & |\thinmuskip| \\\midrule
418 % |\mathinner||\mathord| & |\thinmuskip| \\
419 % |\mathinner||\mathop| & |\thinmuskip| \\
420 % |\mathinner||\mathbin| & |\medmuskip| \\
421 % |\mathinner||\mathrel| & |\thickmuskip| \\
422 % |\mathinner||\mathopen| & |\thinmuskip| \\
423 % |\mathinner||\mathpunct| & |\thinmuskip| \\
424 % |\mathinner||\mathinner| & |\thinmuskip| \\\bottomrule
425 % \end{tabularx}
426 % \end{figure}
427 %
428 %
429 % First we set the spacing for |\scriptstyle| and |\scriptscriptstyle| atoms. Each space adjustment has the form
430 % \begin{trivlist}
431 % \item\hskip 2em |\Umath|\argtext{classes}|spacing|\meta{style}|\muexpr|\meta{skip}|*|\meta{factor}|\relax|.
432 % \end{trivlist}^^A\tracingpages=2\tracingonline=1
433 % The \meta{classes} are a pair of choices from |ord|, |op|, |bin|, |rel|, |open|, |close|, |punct|, and |inner|, and the \meta{style} is either |\scriptstyle|, |\scriptscriptstyle|, or the cramped version of each style. The \meta{skip} is the amount of muglue that typically appears between the \meta{classes} while in |\textstyle| or |\displaystyle|. The package takes that muglue and scales it by 0.6 for superscripts and subscripts and by 0.4 for second-order superscripts and subscripts. Table~1 shows the usual amounts of space between consecutive atom types. To actually code it, we define |\@tempa| to expand to various space-adjustment commands depending on package options.
434 % \begin{macrocode}
435 \ifIS@script % change \scriptstyle
436 \IS@info{Adjusting space for \string\scriptstyle.}
437 \IS@info{Adjusting space for \string\crampedscriptstyle.}
438 \ifIS@scriptscript % change \scriptscriptstyle
439 \IS@info{Adjusting space for \string\scriptscriptstyle.}
440 \IS@info{Adjusting space for \string\crampedscriptscriptstyle.}
441 % \end{macrocode}
442 % In this branch, |\@tempa| expands to space-adjustment commands for all four styles of superscripts and subscripts. The |#1| argument is a |\Umath| spacing primitive, and |#2| is a muglue register.
443 % \begin{macrocode}
444 \def\@tempa#1#2{%
445 #1\scriptstyle \muexpr #2 * 6 / 10\relax
446 #1\crampedscriptstyle \muexpr #2 * 6 / 10\relax
447 #1\scriptscriptstyle \muexpr #2 * 4 / 10\relax
448 #1\crampedscriptscriptstyle\muexpr #2 * 4 / 10\relax}
449 \else % do not change \scriptscriptstyle
450 \IS@info{No space changes for \string\scriptscriptstyle.}
451 \IS@info{No space changes for \string\crampedscriptscriptstyle.}
452 % \end{macrocode}
453 % Now change just first-order superscripts and subscripts.
454 % \begin{macrocode}
455 \def\@tempa#1#2{%
456 #1\scriptstyle \muexpr #2 * 6 / 10\relax
457 #1\crampedscriptstyle \muexpr #2 * 6 / 10\relax}
458 \fi
459 \else % do not change \scriptstyle
460 \IS@info{No space changes for \string\scriptstyle.}
461 \IS@info{No space changes for \string\crampedscriptstyle.}
462 \ifIS@scriptscript % change \scriptscriptstyle
463 \IS@info{Adjusting space for \string\scriptscriptstyle.}
464 \IS@info{Adjusting space for \string\crampedscriptscriptstyle.}
465 % \end{macrocode}
466 % In this case, change just second-order superscripts and subscripts.
467 % \begin{macrocode}
468 \def\@tempa#1#2{%
469 #1\scriptscriptstyle \muexpr #2 * 4 / 10\relax
470 #1\crampedscriptscriptstyle\muexpr #2 * 4 / 10\relax}
471 \else % do not change \scriptscriptstyle
472 \IS@info{No space changes for \string\scriptscriptstyle.}
473 \IS@info{No space changes for \string\crampedscriptscriptstyle.}
474 % \end{macrocode}
475 % And here change nothing.
476 % \begin{macrocode}
477 \let\@tempa\@gobbletwo
478 \fi
479 \fi
480 % \end{macrocode}
481 % Now actually make the space changes as applicable.
482 % \begin{macrocode}
483 \@tempa{\Umathordopspacing} {\thinmuskip}
484 \@tempa{\Umathordbinspacing} {\medmuskip}
485 \@tempa{\Umathordrelspacing} {\thickmuskip}
486 \@tempa{\Umathordinnerspacing} {\thinmuskip}
487 \@tempa{\Umathopordspacing} {\thinmuskip}
488 \@tempa{\Umathopopspacing} {\thinmuskip}
489 \@tempa{\Umathoprelspacing} {\thickmuskip}
490 \@tempa{\Umathopinnerspacing} {\thickmuskip}
491 \@tempa{\Umathbinordspacing} {\medmuskip}
492 \@tempa{\Umathbinopspacing} {\medmuskip}
493 \@tempa{\Umathbinopenspacing} {\medmuskip}
494 \@tempa{\Umathbininnerspacing} {\medmuskip}
495 \@tempa{\Umathrelordspacing} {\thickmuskip}
496 \@tempa{\Umathrelopspacing} {\thickmuskip}
497 \@tempa{\Umathrelopenspacing} {\thickmuskip}
498 \@tempa{\Umathrelinnerspacing} {\thickmuskip}
499 \@tempa{\Umathcloseopspacing} {\thinmuskip}
500 \@tempa{\Umathclosebinspacing} {\medmuskip}
501 \@tempa{\Umathcloserelspacing} {\thickmuskip}
502 \@tempa{\Umathcloseinnerspacing}{\thinmuskip}
503 \@tempa{\Umathpunctordspacing} {\thinmuskip}
504 \@tempa{\Umathpunctopspacing} {\thinmuskip}
505 \@tempa{\Umathpunctrelspacing} {\thinmuskip}
506 \@tempa{\Umathpunctopenspacing} {\thinmuskip}
507 \@tempa{\Umathpunctclosespacing}{\thinmuskip}
508 \@tempa{\Umathpunctpunctspacing}{\thinmuskip}
509 \@tempa{\Umathpunctinnerspacing}{\thinmuskip}
510 \@tempa{\Umathinnerordspacing} {\thinmuskip}
511 \@tempa{\Umathinneropspacing} {\thinmuskip}
512 \@tempa{\Umathinnerbinspacing} {\medmuskip}
513 \@tempa{\Umathinnerrelspacing} {\thickmuskip}
514 \@tempa{\Umathinneropenspacing} {\thinmuskip}
515 \@tempa{\Umathinnerpunctspacing}{\thinmuskip}
516 \@tempa{\Umathinnerinnerspacing}{\thinmuskip}
517 % \end{macrocode}
518 %
519 % \section{Mathclose Spacing}
520 %
521 % In |\textstyle| and |\displaystyle|, we add half a |\thinmuskip| between |\mathclose| and |\mathord| atoms. As with the |script| and |scriptscript| options, we scale the spacing by 0.6 and 0.4 for |\scriptstyle| and |\scriptscriptstyle| respectively. Even though |close| comes after |inner| in the options list in the user guide, it is important to put it before |inner| in the implementation. We should set all interatom spacing before changing the spacing around |\mathinner| subformulas because the |inner| spacing changes reference values of other |\Umath| spacing primitives.
522 % \begin{macrocode}
523 \ifIS@close
524 \IS@info{Adding space after closing grouping symbols.}
525 \Umathcloseordspacing\displaystyle \muexpr\thinmuskip / 2\relax
526 \Umathcloseordspacing\textstyle \muexpr\thinmuskip / 2\relax
527 \Umathcloseordspacing\crampeddisplaystyle \muexpr\thinmuskip / 2\relax
528 \Umathcloseordspacing\crampedtextstyle \muexpr\thinmuskip / 2\relax
529 \ifIS@script
530 \Umathcloseordspacing\scriptstyle \muexpr\thinmuskip * 3 / 10\relax
531 \Umathcloseordspacing\crampedscriptstyle\muexpr\thinmuskip * 3 / 10\relax
532 \fi
533 \ifIS@scriptscript
534 \Umathcloseordspacing\scriptscriptstyle \muexpr\thinmuskip / 5\relax
535 \Umathcloseordspacing\crampedscriptscriptstyle
536 \muexpr\thinmuskip / 5\relax
537 \fi
538 \else
539 \IS@info{No changes to space after delimiters.}
540 \fi
541 % \end{macrocode}
542 %
543 %
544 %
545 %
546 % \section{Mathinner Subformulas}
547 %
548 % Now set the spacing for |\mathinner| subformulas. Prior to version 1.4, \textsf{innerscript} spaced |\mathinner| subformulas under the |inner| option like |\mathord| atoms, but as of version 1.4, \textsf{innerscript} treats these subformulas like |\mathopen| on the left and |\mathclose| on the right. Every space adjustment in this section has the form
549 % \begin{trivlist}
550 % \item \hskip 2em |\Umath|\meta{classes}|spacing|\meta{style}|=\the\Umath|\meta{other classes}|spacing|\meta{style}|\relax|.
551 % \end{trivlist}
552 % In most cases, the \meta{classes} are a pair of |inner| and one of |ord|, |op|, |bin|, |rel|, |open|, |close|, or |punct|, and the \meta{other classes} are the same except with |inner| replaced with |open| or |close| depending on whether it appears on the left or the right. We can also have \meta{classes} be |innerinner|, in which case \meta{other classes} is |closeopen|. The \meta{style} is one of the eight math style commands: |\displaystyle|, |\textstyle|, |\scriptstyle|, |\scriptscriptstyle|, and the cramped versions. This section comes after |script| and |close| in the implementation because the spacing here depends on the spacing of other math classes.
553 % \begin{macrocode}
554 \ifIS@inner
555 \IS@info{Adjusting space around \string\mathinner\space subformulas.}
556 % \end{macrocode}
557 % First, we loop through the math classes and let |\@i| be a math class.
558 % \begin{macrocode}
559 \@tfor\@i:=\displaystyle\crampeddisplaystyle
560 \textstyle\crampedtextstyle
561 \scriptstyle\crampedscriptstyle
562 \scriptscriptstyle\crampedscriptscriptstyle
563 \do{%
564 % \end{macrocode}
565 % For each style, first set |\Umathinnerinnerspacing|, and then loop through the math classes. We simultaneously set the spacing for atom pairs where |inner| appears either first or second. Using |\expanded| solves a problem where the |\Umath|\meta{atom}|inner| primitives don't behave properly if they appear on both sides of an assignment. I am unclear if this is a bug in Lua\TeX?
566 % \begin{macrocode}
567 \expanded{\Umathinnerinnerspacing\@i=\the\expandafter
568 \Umathcloseopenspacing\@i\relax}
569 \@for\@j:=ord,op,bin,rel,open,close,punct\do{%
570 \expanded{%
571 \csname Umath\@j innerspacing\endcsname\@i=\the
572 \csname Umath\@j openspacing\expandafter\endcsname\@i\relax
573 \csname Umathinner\@j spacing\endcsname\@i=\the
574 \csname Umathclose\@j spacing\expandafter\endcsname\@i\relax}}}
575 \else
576 \IS@info{No changes to space for \string\mathinner\space subformulas.}
577 \fi
578 % \end{macrocode}
579 %
580 %
581 % \section{Delimiter Heights}
582 %
583 % Finally, filling out the delimiter heights is easy. We set |\delimiterfactor| to 1000.
584 % \begin{macrocode}
585 \ifIS@cover
586 \IS@info{Setting delimiters to full height.}
587 \delimiterfactor\@m
588 \else
589 \IS@info{No changes to delimiter heights.}
590 \fi
591 \wlog{}
592 % \end{macrocode}
593 % And that's a wrap!
594 %
595 % \vfil\eject
596 % \section*{Version History}
597 % \begin{multicols*}{2}
598 %
599 % \raggedright\parskip\z@\parindent\z@\leftskip1em\obeylines
600 % \setbox0\hbox{\hskip 1pt.\hskip 1pt}
601 % \def\version#1#2{\bigskip\hbox to \hsize{\textbf{#1} \cleaders\copy0\hfill\ #2}\par}
602 % \def\item{---\kern0.2ex\relax}
603 %
604 % \version{1.0}{February 2021}
605 % \item initial release
606 %
607 % \version{1.1}{February 2021}
608 % \item bug fix for |\mathinner| spacing
609 % \item added |\IS@skip| muglue register
610 %
611 % \version{1.2}{November 2023}
612 % \item redesigned spacing for options |script| and |scriptscript|
613 % \item no more |\IS@skip|---options |script| and |scriptscript| now use |\the|
614 % \item added option |close|
615 % \item added option |cover|
616 % \item separated implementation and user guide
617 % \item added |\scalemu|
618 %
619 % \version{1.3}{August 2024}
620 % \item bug fix involving |\cramedisplaystyle| typo
621 %
622 % \version{1.4}{April 2025}
623 % \item refactored package code
624 % \item |legacy-| package options for superscripts and subscripts now same as default options
625 % \item use |\muexpr| instead of |\scalemu|
626 % \item |inner| option changed to look more like |\mathopen| and |\mathclose| atoms
627 %
628 % \version{1.4a}{May 2025}
629 % \item bug fix involving |inner| adjustments not registering properly
630 %
631 % \end{multicols*}
632 %
633 %
634 %
635 % \iffalse
636 %</package>
637 %<*user>
638 \makeatletter
639 \documentclass[12pt]{article}
640 \usepackage[margin=72.27pt]{geometry}
641 \usepackage[factor=700,stretch=14,shrink=14,step=1]{microtype}
642 \usepackage{booktabs}
643 \usepackage{tabularx}
644 \usepackage{amsmath}
645 \usepackage{doc}[=v2]
646 \MakeShortVerb{|}
647 \interfootnotelinepenalty=0
648
649 \newbox\fracbox
650 \setbox\fracbox\hbox{$\displaystyle\left(\frac x2\right)$}
651
652 \c@topnumber=1
653 \def\floatpagefraction{0}
654 \@fpsep=\fill
655
656 \begin{document}
657
658 \def\documentname{User Guide}
659 \input innerscript-heading.tex
660
661 \def\@oddhead{\ifnum\c@page>\@ne
662 \ifodd\c@page
663 \hfil\the\c@page
664 \else
665 \the\c@page\hfil
666 \fi\fi}
667
668 \noindent For several years before the first release of \textsf{innerscript}, I wondered whether it was possible to adjust two features of \TeX's automatic mathematics spacing, namely adding more space in superscripts and subscripts and removing the extra space around |\left|-|\right| delimiter pairs. Lua\TeX's extra math-mode primitives make these changes possible, and \textsf{innerscript} grew out of my desire to implement them in my documents. For example, compare the next two lines:
669 \begin{flalign}
670 &&\sum_{i=1}^n{}&x_i^{1+a}
671 &f(x)&=g\left(\frac1x\right)
672 &x(t)&y(t)
673 &\hskip0.5\wd\fracbox &\clap@math{\left(\frac{x}2\right)}
674 \hskip0.5\wd\fracbox
675 &&\\
676 &&\sum_{i\mskip\scalemu{\thickmuskip}{0.6}=
677 \mskip\scalemu{\thickmuskip}{0.6}1}^n
678 {}&x_i^{1\mskip\scalemu{\medmuskip}{0.6}+
679 \mskip\scalemu{\medmuskip}{0.6} a}
680 &f(x)&=g{\left(\frac1x\right)}
681 &x(t)\mskip\scalemu{\thinmuskip}{0.25}&\mskip\scalemu{\thinmuskip}{0.25}y(t)
682 &\hskip0.5\wd\fracbox & \clap@math{\left(\frac{\vphantom{1}x}2\right)}
683 \hskip0.5\wd\fracbox
684 &&
685 \end{flalign}
686 Equation~(1) uses traditional \TeX\ formatting, and equation~(2) incorporates the small tweaks characteristic of \textsf{innerscript}. If you like equation~(2) more than equation~(1), then \textsf{innerscript} is the package for you! This file explains how to load \textsf{innerscript} and enable whichever adjustments you want to use. For version history and documentation of the code, see |innerscript-code.pdf|, which is included with the package installation and is available on \textsc{ctan}.
687
688 \begin{figure}[p]
689 \centerline{\strut\bfseries Table~1: Package Behavior Shown in Equation (2)}
690 \begin{tabular*}\textwidth{@{\extracolsep{\fill}}lllll}\toprule
691 Part of equation (2) & Summation & Functions & Product & Fraction\\\midrule
692 Option shown & |script| & |inner| & |close| & |cover|\\\bottomrule
693 \end{tabular*}
694 \end{figure}
695
696 \begin{figure}[p]
697 \centerline{\strut\bfseries Table~2: Package Options for \textsf{innerscript}}
698 \begin{tabular*}\hsize{@{\extracolsep{\fill}}l>{\raggedright\arraybackslash}l}
699 \toprule
700 Package Option & Meaning\\
701 \midrule
702 |script| & Change |\scriptstyle| (and cramped style) spacing\\
703 |scriptscript| & Change |\scriptscriptstyle| (and cramped style) spacing\\
704 |inner| & Use |\mathord| spacing for |\mathinner| subformulas\\
705 |close| & Extra space between \vrb\mathclose\vrb\mathord\ pairs\\
706 |cover| & Resizable delimiters (i.e.\ |\left| and |\right|) fully cover contents\\\midrule
707 |no-script| & No changes to |\scriptstyle| spacing\\
708 |no-scriptscript| & No changes to |\scriptscriptstyle| spacing\\
709 |no-inner| & No changes to treatment of |\mathinner| subformulas\\
710 |no-close| & No changes to |\mathclose| atoms\\
711 |no-cover| & No changes to resizable delimiters\\
712 \bottomrule
713 \end{tabular*}
714 \end{figure}
715
716
717 \begin{figure}[p]
718 \centerline{\bfseries\strut Table 3: Usual Space Inserted by \TeX\ between Atoms}
719 \begin{tabularx}{\textwidth}{Xp{1.1in}Xp{1.1in}}\toprule
720 Consecutive Atom Types & Space Added & Consecutive Atom Types & Space Added\\\midrule
721 \end{tabularx}
722 \hb@xt@\hsize{\hss\bgroup
723 \aboverulesep=0.7ex\relax
724 \belowrulesep=0.7ex\relax
725 \def\arraystretch{1.06}
726 \begin{tabularx}{0.495\textwidth}{Xp{1.1in}}
727 |\mathord||\mathop| & |\thinmuskip| \\
728 |\mathord||\mathbin| & |\medmuskip| \\
729 |\mathord||\mathrel| & |\thickmuskip| \\
730 |\mathord||\mathinner| & |\thinmuskip| \\\midrule
731 |\mathop||\mathord| & |\thinmuskip| \\
732 |\mathop||\mathop| & |\thinmuskip| \\
733 |\mathop||\mathrel| & |\thickmuskip| \\
734 |\mathop||\mathinner| & |\thickmuskip| \\\midrule
735 |\mathbin||\mathord| & |\medmuskip| \\
736 |\mathbin||\mathop| & |\medmuskip| \\
737 |\mathbin||\mathopen| & |\medmuskip| \\
738 |\mathbin||\mathinner| & |\medmuskip| \\\midrule
739 |\mathrel||\mathord| & |\thickmuskip| \\
740 |\mathrel||\mathop| & |\thickmuskip| \\
741 |\mathrel||\mathopen| & |\thickmuskip| \\
742 |\mathrel||\mathinner| & |\thickmuskip| \\
743 \end{tabularx}\egroup
744 \hskip 0.01\textwidth
745 \begin{tabularx}{0.495\textwidth}{Xp{1.1in}}
746 |\mathclose||\mathop| & |\thinmuskip| \\
747 |\mathclose||\mathbin| & |\medmuskip| \\
748 |\mathclose||\mathrel| & |\thickmuskip| \\
749 |\mathclose||\mathinner| & |\thinmuskip| \\\midrule
750 |\mathpunct||\mathord| & |\thinmuskip| \\
751 |\mathpunct||\mathop| & |\thinmuskip| \\
752 |\mathpunct||\mathrel| & |\thinmuskip| \\
753 |\mathpunct||\mathopen| & |\thinmuskip| \\
754 |\mathpunct||\mathclose| & |\thinmuskip| \\
755 |\mathpunct||\mathpunct| & |\thinmuskip| \\
756 |\mathpunct||\mathinner| & |\thinmuskip| \\\midrule
757 |\mathinner||\mathord| & |\thinmuskip| \\
758 |\mathinner||\mathop| & |\thinmuskip| \\
759 |\mathinner||\mathbin| & |\medmuskip| \\
760 |\mathinner||\mathrel| & |\thickmuskip| \\
761 |\mathinner||\mathopen| & |\thinmuskip| \\
762 |\mathinner||\mathpunct| & |\thinmuskip| \\
763 |\mathinner||\mathinner| & |\thinmuskip| \\
764 \end{tabularx}}
765 \vskip\aboverulesep
766 \hrule height \heavyrulewidth
767 \end{figure}
768
769 Table~1 explains which parts of equation~(2) show different aspects of \textsf{innerscript}'s behavior. At far left, the subscript under the summation symbol and the superscript of $x_i$ have small amounts of extra space around the |=| and |+| signs respectively, and at center-left, the $g$ is directly next to the parenthesis. At center-right, the closing parenthesis is offset from the following $y$, and on the right, the parentheses cover the entire fraction instead of covering only most of it. Using this package will automate some or all of these changes.
770
771 Users can load \textsf{innerscript} with the standard |\usepackage| syntax, and to do so, you must typeset with Lua\TeX. If it detects a different engine, \textsf{innerscript} will raise an error and stop loading, so you will not see any changes to the math in your document. The package provides no user-level commands---rather, you control its functionality through the ten options in Table~2. Options |script|, and |no-script| determine how \textsf{innerscript} treats superscripts and subscripts, and options |scriptscript|, and |no-scriptscript| are the same except that they deal with second-order superscripts and subscripts.\footnote{Version 1.2 of \textsf{innerscript} provided |legacy-| options for superscripts and subscripts with slightly different spacing. As of version 1.4, those options are officially deprecated. For backwards compatibility, \textsf{innerscript} still accepts |legacy-script| and |legacy-scriptscript| options, but they now produce the same space adjustments as |script| and |scriptscript|.} The |inner| option tells \TeX\ to avoid placing some extra spaces around |\mathinner| subformulas. Specifically, with this option, \TeX\ treats the left side of a |\mathinner| subformula like a left parenthesis and treats the right side like a right parenthesis for spacing purposes. The |close| option adds a small amount of space after a closing grouping symbol, such as a right parenthesis, when it comes before a regular variable or number, and |cover| tells \TeX\ to make sure that resizable delimiters fully cover their contents. The |no-| variants disable formatting adjustments, and by default, \textsf{innerscript} enables all space adjustments described here.
772
773 The |inner|, |close|, and |cover| options are straightforward, but the options |script| and |scriptscript| warrant more explanation. With its usual math formatting, \TeX\ adds small amounts of space between different math-mode characters depending on what types of symbols they represent, and \TeX's fine-tuned math spacing is part of what makes it a great program for typesetting equations.\footnote{\TeX\ classifies math symbols into eight categories: \vrb\mathord\ (ordinary), \vrb\mathop\ (big operator), \vrb\mathbin\ (binary operation), \vrb\mathrel\ (relation), \vrb\mathopen\ (opening delimiter), \vrb\mathclose\ (closing delimiter), \vrb\mathpunct\ (punctuation), and \vrb\mathinner\ (``inner'' subformula). As part of its definition, every math-mode character is assigned a math class. See Donald Knuth, \textit{The \TeX book} (Addison Wesley, 1986), 170; David Salomon, \textit{The Advanced \TeX book} (Springer, 1995), 256--258.} However, some spacing additions from inline and display math don't appear inside superscripts and subscripts. The |script| and |scriptscript| options address this situation by setting the interatom space in superscripts and subscripts to scaled-down versions of the standard spacing rules. Table~3 lists the space that \TeX\ inserts between atoms of different types in display or inline math. With option |script|, \textsf{innerscript} sets the interatom spacing in superscripts and subscripts to be 60\% of the amounts in Table~3, and with option |scriptscript|, \textsf{innerscript} sets the interatom space to be 40\% of the amounts in Table~3.\footnote{Technically, \textsf{innerscript} scales down the standard spacing twice because the exact length of a \vrb\muskip\ register varies proportionally with the surrounding font size. For example, a \vrb\thinmuskip\ inside a superscript or subscript will be about two-thirds the size of a \vrb\thinmuskip\ in regular inline math. If \textsf{innerscript} inserted the same \vrb\muskip\ amounts from Table~3 in superscripts and subscripts, the spacing would be exactly proportional to inline and display spacing. However, doing so produces math where the symbols appear too far apart visually, so before using them, \textsf{innerscript} scales down the \vrb\muskip\ amounts in Table~3.} Atom pairs that do not appear in Table~3 do not by default receive extra space from \TeX\ or \textsf{innerscript}.
774
775 Finally, you are of course welcome to change the size of |\thinmuskip|, |\medmuskip|, or |\thickmuskip|, but I encourage you to do so before you load \textsf{innerscript}. If you do so after loading the package, some of your changes will not show up in \TeX's automatic interatom spacing.
776
777 \end{document}
778 %
779 %</user>
780 %<*heading>
781 %
782
783 \csname count@\endcsname\catcode`\@
784 \makeatletter
785
786 % identifying macros
787 \def\packageversion{1.4a}
788 \def\packagedate{May 2025}
789
790 % general macros
791 \MacroIndent=1.3em
792 \def\scalemu#1#2{\muexpr#2#1
793 \@plus\muexpr#2\gluetomu\gluestretch\mutoglue#1\relax
794 \@minus\muexpr#2\gluetomu\glueshrink\mutoglue#1\relax\relax}
795 \baselineskip=\the\baselineskip plus 0.3pt minus 0.3pt\relax
796
797 % section, header, and footer commands
798 \let\@@section\section
799 \def\section{\@ifstar\star@sect\no@star@sect}
800 \def\star@sect#1{\sectionhook{#1}\@@section*{#1}}
801 \def\no@star@sect#1{\sectionhook{#1}\@@section{#1}}
802
803
804 \def\sectionhook#1{%
805 \vskip 1in\relax
806 \kern\z@
807 \vskip -1in\relax
808 \kern\z@
809 \vskip\z@
810 \def\sectionname{#1}}
811
812 \def\@oddhead{%
813 \ifnum\count0>1\relax
814 \ifodd\c@page
815 \rlap{\textit{\sectionname}}\hfil
816 \hbox to 0pt{\hss\documentname\hss}\hfil
817 \llap{\the\count0}%
818 \else
819 \rlap{\the\count0}\hfil
820 \hbox to 0pt{\hss\documentname\hss}\hfil
821 \llap{\textit{\sectionname}}%
822 \fi
823 \fi}
824 \def\@oddfoot{\hfil\ifnum\count0=1\relax1\fi\hfil}
825
826
827 % penalties
828 \pretolerance=-1
829 \hyphenpenalty=20
830 \exhyphenpenalty=15
831 \brokenpenalty=0
832 \clubpenalty=0
833 \widowpenalty=0
834 \finalhyphendemerits=500
835 \doublehyphendemerits=2000
836
837
838 % code environment
839 \def\argtext#1{\ensuremath{\langle$\textit{#1}$\rangle}}
840 \def\vrb#1{\expandafter\texttt\expandafter{\string#1}}
841 \def\clap@math#1{\hb@xt@\z@{\hss$\displaystyle#1$\hss}}
842
843
844 % title line
845 {\large
846 \parindent=0pt
847 \leftskip=0pt plus 1 fil
848 \rightskip=0pt plus 1fil
849 \parfillskip=0pt
850 {\strut\Large Package \textsf{innerscript} v.\ \packageversion\ \documentname\par}
851 \strut Conrad Kosowsky\par
852 \strut \packagedate\par
853 \strut\texttt{[email protected]}\par}
854
855 {\let\thefootnote\relax\footnotetext{Acknowledgements: Thanks to Sheldon Axler and Clea F. Rees for pointing a bug in a previous version of \textsf{innerscript}.}}
856
857 \bigskip
858
859 % off-the-shelf insert
860 \hrule height \p@
861 \@@line{\vrule width \p@\kern-\p@
862 \vbox{\medskip
863 \leftskip=8em\relax\rightskip=8em\relax
864 \noindent\strut For easy, off-the-shelf use, type the following
865 in your document preamble and compile using Lua\LaTeX:
866 \vskip\medskipamount
867 \noindent\hfil\strut|\usepackage{innerscript}|\hfil
868 \vskip\medskipamount}\relax
869 \kern-\p@\vrule width \p@}
870 \hrule height \p@
871
872 \bigskip
873
874 % abstract
875 {\small
876 \leftskip=0.5in
877 \rightskip=0.5in
878 \centerline{\bfseries Overview\strut}
879 \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}
880
881 \bigskip\bigskip\nointerlineskip
882 \centerline{\vrule height 0.5pt width 2.5in}\bigskip\bigskip
883 \nointerlineskip
884
885 \catcode`\@\count@
886
887 %
888 %</heading>
889 % \fi
890 %
891 %
892 % \check@checksum
893 %
894 %
895 \endinput