diff options
Diffstat (limited to 'macros/luatex/latex')
-rw-r--r-- | macros/luatex/latex/innerscript/README.txt | 55 | ||||
-rw-r--r-- | macros/luatex/latex/innerscript/innerscript.dtx | 778 | ||||
-rw-r--r-- | macros/luatex/latex/innerscript/innerscript.pdf | bin | 0 -> 168070 bytes |
3 files changed, 833 insertions, 0 deletions
diff --git a/macros/luatex/latex/innerscript/README.txt b/macros/luatex/latex/innerscript/README.txt new file mode 100644 index 0000000000..70798045db --- /dev/null +++ b/macros/luatex/latex/innerscript/README.txt @@ -0,0 +1,55 @@ +This README file contains information about the LuaLaTeX package +"innerscript" version 1.0 installation. Besides this README, the +installation contains the following files: + + (1) innerscript.dtx: the primary file; + + and + + (2) innerscript.pdf: documentation of the package. + +To produce the package file innerscript.sty, run innerscript.dtx +through LaTeX. Then complete the installation by moving the package +file into a directory searchable by TeX. + + + + +Copyright 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. The work consists of the +following items: + + (1) the base file innerscript.dtx; + + (2) the package code contained in innerscript.sty; + + (3) the pdf documentation file innerscript.pdf; + + (4) all other files created through the configuration process; + + and + + (5) this README.txt file. + +THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED +WARRANTY. BY USING THIS SOFTWARE, YOU AGREE TO RELEASE THE PACKAGE +AUTHOR, TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, FROM +LIABILITY THAT RESULTS FROM YOUR USE OF THE SOFTWARE, AND YOU AGREE +THAT ANY DAMAGES SOUGHT AGAINST THE PACKAGE AUTHOR WILL NOT EXCEED +THE MINIMUM DAMAGES ALLOWED UNDER APPLICABLE LAW. + +For more information, see the original innerscript.dtx file. To +install innerscript on your computer, run innerscript.dtx through +LaTeX and place the derived file innerscript.sty in a directory +searchable by TeX. + +Happy TeXing! diff --git a/macros/luatex/latex/innerscript/innerscript.dtx b/macros/luatex/latex/innerscript/innerscript.dtx new file mode 100644 index 0000000000..c8b16238aa --- /dev/null +++ b/macros/luatex/latex/innerscript/innerscript.dtx @@ -0,0 +1,778 @@ +% \iffalse ---!!! META-COMMENT !!!--- +% +% This file is file from version 1.0 of the LuaLaTeX package +% "innerscript," to be used in conjunction with the LuaTeX engine. +% +% Copyright 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. The work consists of the +% following items: +% +% (1) the base file innerscript.dtx; +% +% (2) the package code contained in innerscript.sty; +% +% (3) the pdf documentation file innerscript.pdf; +% +% (4) all other files created through the configuration process; +% +% and +% +% (5) the associated README.txt file. +% +% THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED +% WARRANTY. BY USING THIS SOFTWARE, YOU AGREE TO RELEASE THE PACKAGE +% AUTHOR, TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, FROM +% LIABILITY THAT RESULTS FROM YOUR USE OF THE SOFTWARE, AND YOU AGREE +% THAT ANY DAMAGES SOUGHT AGAINST THE PACKAGE AUTHOR WILL NOT EXCEED +% THE MINIMUM DAMAGES ALLOWED UNDER APPLICABLE LAW. +% +% For more information, see the original innerscript.dtx file. To +% install innerscript on your computer, run innerscript.dtx through +% LaTeX and place the derived file innerscript.sty in a directory +% searchable by TeX. +% +% Happy TeXing! +% +% \fi +% \iffalse +% +% The installation and driver files are incorporated into innerscript.dtx, +% so we do not need to generate them separately. The <batchfile> and +% <driver> tags are for reference. +% +%<*batchfile> +\begingroup +\input docstrip.tex +\keepsilent +\askforoverwritefalse +\preamble + +This file is file from version 1.0 of the LuaLaTeX package +"innerscript," to be used in conjunction with the LuaTeX engine. + +Copyright 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. The work consists of the +following items: + + (1) the base file innerscript.dtx; + + (2) the package code contained in innerscript.sty; + + (3) the pdf documentation file innerscript.pdf; + + (4) all other files created through the configuration process; + + and + + (5) the associated README.txt file. + +THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED +WARRANTY. BY USING THIS SOFTWARE, YOU AGREE TO RELEASE THE PACKAGE +AUTHOR, TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, FROM +LIABILITY THAT RESULTS FROM YOUR USE OF THE SOFTWARE, AND YOU AGREE +THAT ANY DAMAGES SOUGHT AGAINST THE PACKAGE AUTHOR WILL NOT EXCEED +THE MINIMUM DAMAGES ALLOWED UNDER APPLICABLE LAW. + +For more information, see the original innerscript.dtx file. To +install innerscript on your computer, run innerscript.dtx through +LaTeX and place the derived file innerscript.sty in a directory +searchable by TeX. + +Happy TeXing! + +\endpreamble +\generate{\file{innerscript.sty}{\from{innerscript.dtx}{package}}} +\catcode`\ =12\relax +\message{^^J^^J +*******************************************^^J +* *^^J +* To finish the installation, move the *^^J +* following file into a directory *^^J +* searchable by TeX once *^^J +* innerscript.dtx finishes compiling: *^^J +* *^^J +* innerscript.sty *^^J +* *^^J +*******************************************^^J^^J^^J^^J^^J^^J} +\endgroup +%</batchfile> +%<*driver> +\documentclass[12pt]{ltxdoc} +\makeatletter +\usepackage[margin=72.27pt]{geometry} +\usepackage[factor=700,stretch=14,shrink=14,step=1]{microtype} +\usepackage{booktabs} +\usepackage{tabularx} +\usepackage{amsmath} +\pretolerance=20 +\hyphenpenalty=10 +\exhyphenpenalty=5 +\brokenpenalty=0 +\clubpenalty=0 +\widowpenalty=0 +\finalhyphendemerits=300 +\doublehyphendemerits=500 +\usepackage{graphicx} +\MacroIndent=1.32em +\begin{document} +\DocInput{innerscript.dtx} +\end{document} +%</driver> +%<*package> +% +% \fi +% +% +% \CheckSum{965} +% \init@checksum +% +% \makeatother\CharacterTable +% {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 +% 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 +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% \makeatletter +% +% +% +% \newenvironment{code} +% {\strut\vadjust\bgroup\medskip\parindent\z@\leftskip=4em\relax +% \noindent\strut\ignorespaces} +% {\strut\par\medskip\egroup\hfill\break\strut\ignorespacesafterend} +% \def\argtext#1{\ensuremath{\langle$\textit{#1}$\rangle}} +% \def\vrb#1{\expandafter\texttt\expandafter{\string#1}} +% \newdimen\displaypress +% \displaypress=\textwidth +% \divide\displaypress by 6 +% \def\showtwoeq#1#2{\global\advance\c@equation\@ne +% \hbox to \hsize{\hskip\the\displaypress plus 0.1pt minus 0.1pt\relax +% \hbox to 2\displaypress{\hss$\displaystyle#1$\hss}\relax +% \hbox to 2\displaypress{\hss$\displaystyle#2$\hss}\relax +% \hskip\the\displaypress plus 0.1pt minus 0.1pt\relax +% \llap{(\the\c@equation)}}} +% +% +% {\large +% \parindent=0pt +% \leftskip=0pt plus 1 fil +% \rightskip=0pt plus 1fil +% \parfillskip=0pt +% {\strut\Large Package \textsf{innerscript} v.\ 1.0 Documentation}\par +% \strut Conrad Kosowsky\par +% \strut February 2021\par +% \strut\texttt{kosowsky.latex@gmail.com}\par} +% +% \medskip +% +% \begin{figure}[h] +% \hrule height \p@ +% \hbox to \hsize{\relax +% \vrule width \p@\kern-\p@ +% \vbox{\medskip +% \leftskip=8.5em\relax\rightskip=8.5em\relax +% \noindent\strut For easy, off-the-shelf use, type the following +% in your document preamble and compile using Lua\LaTeX: +% \vskip\medskipamount +% \noindent\hfil\strut|\usepackage{innerscript}|\hfil +% \vskip\medskipamount}\relax +% \kern-\p@\vrule width \p@} +% \hrule height \p@ +% \end{figure} +% +% +% +% \begin{abstract} +% \noindent The \textsf{mathinner} package modifies two aspects of \TeX's automatic interatom mathematics spacing. The package uses Lua\TeX's |\Umath| primitives to make superscripts and subscripts more closely resemble |\textstyle| and |\displaystyle| math and to treat |\mathinner| subformulas as |\mathord|, effectively eliminating this class. Users must load \textsf{innerscript} with the Lua\TeX\ engine. +% +% \medskip\smallskip +% +% \noindent Keywords: superscript, subscript, spacing, mathinner, scriptstyle, scriptscriptstyle, Lua\TeX, Umath, atom +% +% \end{abstract} +% +% \bigskip +% +% \noindent For several years now, I wondered whether it was possible to change two features of \TeX's mathematics spacing routine, namely the lack of automatic spacing in subscripts and superscripts and the extra space around |\mathinner| subformulas. For example, compare +% \vadjust{\vskip\abovedisplayskip +% \showtwoeq{\sum_{i=1}^n{}x_i^{1+a}}% +% {f(x)=g\left(\frac1x\right)} +% \smallskip\smallskip +% \showtwoeq{\sum_{i\mskip\thinmuskip=\mskip\thinmuskip1}^n +% x^{1\mskip 0.7\thinmuskip+\mskip 0.7\thinmuskip a}_i} +% {f(x)=g{\left(\frac1x\right)}.} +% \vskip\belowdisplayskip}\hfil\break +% Equation~(1) uses traditional \TeX\ spacing, and equation~(2) incorporates small adjustments. On the left, the subscript under the summation symbol and the superscript of $x_i$ contain small amounts of extra space around the |=| and |+| signs respectively, and on the right, the $g$ is directly next to the parenthesis instead of being an extra |\thinmuskip| away. In traditional \TeX, automating these changes would be impossible to do easily, but Lua\TeX's extra math-mode primitives provide direct access to the interatom space parameters.\footnote{See section 7.5 of the Lua\TeX\ manual.} The \textsf{innerscript} package is my attempt to automate the changes in equation~(2) using |\Umath| spacing commands, and as far as I am aware, it is the first package to do so. (Although please let me know if this is incorrect!) It provides no user-level commands and alters spacing automatically. This file explains how to load the package and documents the internal code. +% +% +% +% Users can load \textsf{innerscript} with the standard +% \begin{code} +% |\usepackage[|\argtext{options}|]{innerscript}| +% \end{code} +% syntax.\vadjust{\break} As mentioned previously, the package must be loaded with Lua\TeX, and if it detects a different engine, \textsf{innerscript} will issue an error.\footnote{Specifically, \textsf{innerscript} checks whether \vrb\Umathordordspacing\ is defined.} It is possible to continue compiling past the error with no other issues, but if you do, \textsf{innerscript} will not be able to change any math spacing in your document. Table~1 shows the six package options, and by default \textsf{innerscript} selects the first three. The |script| and |scriptscript| options will affect spacing of symbols in superscripts and subscripts, and the |inner| option will eliminate extra spacing for |\mathinner| subformulas, such as fractions and |\left|-|\right| delimiter pairs. The |no-|~variants disable the spacing adjustments for the corresponding default option. +% +% +% \begin{figure}[t] +% \centering +% Table~1: Package Options for \textsf{innerscript} +% \vskip\smallskipamount +% \begin{tabularx}\hsize{p{1.5in}>{\raggedright\arraybackslash}X} +% \toprule +% Package Option & Meaning\\ +% \midrule +% |script| & Changes to |\scriptstyle| and |\crampedscriptstyle| spacing\\ +% |scriptscript| & Changes to |\scriptscriptstyle| and |\crampedscriptscriptstyle| spacing\\ +% |inner| & Treat |\mathinner| subformulas as |\mathord|\\\midrule +% |no-script| & No changes to |\scriptstyle| and |\crampedscriptstyle| spacing\\ +% |no-scriptscript| & No changes to |\scriptscriptstyle| and |\crampedscriptscriptstyle| spacing\\ +% |no-inner| & No changes to treatment of |\mathinner| subformulas\\ +% \bottomrule +% \end{tabularx} +% \end{figure} +% +% +% \begin{figure}[t!] +% \centering +% Table~2: Spacing Inserted by \textsf{innerscript} between Consecutive Atoms +% \vskip\smallskipamount +% \begin{tabularx}{\hsize}{XXX} +% \toprule +% Consecutive Atom Types & Option |script| & Option |scriptscript| \\\midrule +% |\mathord||\mathop| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathord||\mathbin| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathord||\mathrel| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathord||\mathinner| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathop||\mathord| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathop||\mathop| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathop||\mathrel| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathop||\mathinner| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathbin||\mathord| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathbin||\mathop| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathbin||\mathopen| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathbin||\mathinner| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathrel||\mathord| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathrel||\mathop| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathrel||\mathopen| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathrel||\mathinner| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathclose||\mathop| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathclose||\mathbin| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathclose||\mathrel| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathclose||\mathinner| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathord| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathop| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathrel| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathopen| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathclose| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathpunct| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathpunct||\mathinner| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathinner||\mathord| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathinner||\mathop| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathinner||\mathbin| & 0.7|\thinmuskip| & 0.5|\thinmuskip| \\ +% |\mathinner||\mathrel| & |\thinmuskip| & 0.7|\thinmuskip| \\ +% |\mathinner||\mathopen| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathinner||\mathpunct| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% |\mathinner||\mathinner| & 0.6|\thinmuskip| & 0.4|\thinmuskip| \\ +% \bottomrule +% \end{tabularx} +% \end{figure} +% +% +% In standard mathematics typesetting, \TeX\ uses different font sizes for different portions of math lists, and it chooses a certain size based on the math style currently in use.\footnote{The eight math styles are \vrb\displaystyle, \vrb\textstyle, \vrb\scriptstyle, \vrb\scriptscriptstyle, and cramped versions of those four, where the control sequence begins with the word ``cramped.'' Technically a math style is an instruction to pull math symbols from a specific font associated with a math family and to apply certain rules for assembling formulas to this part of the math list. See Donald Knuth, \textit{The \TeX book,} (Addison Wesley, 1986), 140--143, 441--447; David Salomon, \textit{The Advanced \TeX book,} (Springer, 1995), 254--256.} \TeX\ uses |\displaystyle| and |\textstyle| as the default for display and inline math respectively, and while in either of these styles or the corresponding cramped versions, it adds extra space between symbols of certain math classes.\footnote{The eight classes are \vrb\mathord, \vrb\mathop, \vrb\mathbin, \vrb\mathrel, \vrb\mathopen, \vrb\mathclose, \vrb\mathpunct, and \vrb\mathinner. They are specific to particular symbols and determine spacing in math formulas. As part of its definition, every math symbol is associated with a certain math class. See Donald Knuth, \textit{The \TeX book,} 170; David Salomon, \textit{The Advanced \TeX book,} 256--258.} \TeX\ switches to |\scriptstyle|, |\scriptscriptstyle|, or the corresponding cramped versions to typeset superscripts and subscripts, and in doing so, it forgoes most of the spacing additions from |\textstyle|. +% +% The |script| and |scriptscript| options reverse this decision by forcing interatom spacing to more closely resemble that of |\textstyle|. Table~2 lists the amount of space that \textsf{innerscript} inserts between various pairs of math classes for each option, and adjustments of this type will resemble the changes to the summation from equation~(2). The |inner| package option forces all spacing around |\mathinner| subformulas to take the value it would if the formula had type |\mathord|. Traditionally \TeX\ places more space around |\mathinner| subformulas than it does around |\mathord| atoms, so loading \textsf{innerscript} with |inner| will remove a certain amount of space from math formulas. Changes of this type will typically resemble the adjustment to the function $g$ from equation~(2). Users who want to further change the spacing in their math formulas should manually add glue, muglue, or |\kern| to their math lists or provide new values for the |\Umath| spacing parameters in their document preamble. +% +% Finally, we come to the implementation, and we begin by declaring the package. The conditionals |\ifIS@script|, |\ifIS@scriptscript|, and |\ifIS@inner| encode option information, and we set them according to the user's option declaration. +% \begin{macrocode} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{innerscript}[2021/02/03 v. 1.0 Package innerscript] +\newif\ifIS@script\IS@scripttrue +\newif\ifIS@scriptscript\IS@scriptscripttrue +\newif\ifIS@inner\IS@innertrue +\DeclareOption{script}{\IS@scripttrue} +\DeclareOption{scriptscript}{\IS@scriptscripttrue} +\DeclareOption{inner}{\IS@innertrue} +\DeclareOption{no-script}{\IS@scriptfalse} +\DeclareOption{no-scriptscript}{\IS@scriptscriptfalse} +\DeclareOption{no-inner}{\IS@innerfalse} +\ProcessOptions* +% \end{macrocode} +% Check whether |\Umathordordspacing| is defined. If not, issue an error and |\endinput|. We won't be able to print multiple spaces at once because \TeX\ collapses multiple space characters, so within a group, we change |+| to active and define it to be a space. +% \begin{macrocode} +\ifx\Umathordordspacing\@undefined + \bgroup\catcode`\+=13 + \def+{ } + \def\IS@LuaTeXError{\GenericError{} + {\MessageBreak\MessageBreak + Package innerscript error: + \MessageBreak\MessageBreak + ++*******************\MessageBreak + ++*+++++++++++++++++*\MessageBreak + ++*+++CANNOT LOAD+++*\MessageBreak + ++*+++INNERSCRIPT+++*\MessageBreak + ++*++LuaTeX Needed++*\MessageBreak + ++*+++++++++++++++++*\MessageBreak + ++*******************\MessageBreak\@gobbletwo} + {See the innerscript package documentation for explanation.} + {I need LuaTeX to make the innerscript package work. It\MessageBreak + looks like the current engine is something else, so I\MessageBreak + can't load the package file. To use innerscript, please\MessageBreak + typeset with LuaLaTeX. To continue without innerscript,\MessageBreak + press return.}} + \IS@LuaTeXError + \egroup + \expandafter\endinput% we \endinput with a balanced conditional +\fi +% \end{macrocode} +% First we set the spacing for |\scriptstyle| and |\crampedscriptstyle| atoms. Each command has the form +% \begin{code} +% |\Umath|\argtext{math classes}|spacing\|\argtext{math style}|=|\argtext{factor}|\thinmuskip|, +% \end{code} +% where the \textit{math classes} are a pair of choices from |ord|, |op|, |bin|, |rel|, |open|, |close|, |punct|, and |inner|. The \textit{math style} is either |scriptstyle| or |crampedscriptstyle|, and the \textit{factor} corresponds to the spacing listed in Table~2. We set the |\scriptstyle| and |\scriptscriptstyle| spacing before handling |\mathinner| subformulas because we want to use updated spacing values for the |\mathinner| space adjustments. Otherwise, the |\scriptstyle| and |\scriptscriptstyle| adjustments will override changes to |\mathinner| spacing. +% \begin{macrocode} +\ifIS@script + \wlog{Package innerscript Info: + Adjusting spacing for \string\scriptstyle.} + \Umathordopspacing\scriptstyle=0.6\thinmuskip + \Umathordbinspacing\scriptstyle=0.7\thinmuskip + \Umathordrelspacing\scriptstyle=\thinmuskip + \Umathordinnerspacing\scriptstyle=0.6\thinmuskip + \Umathopordspacing\scriptstyle=0.6\thinmuskip + \Umathopopspacing\scriptstyle=0.6\thinmuskip + \Umathoprelspacing\scriptstyle=\thinmuskip + \Umathopinnerspacing\scriptstyle=\thinmuskip + \Umathbinordspacing\scriptstyle=0.7\thinmuskip + \Umathbinopspacing\scriptstyle=0.7\thinmuskip + \Umathbinopenspacing\scriptstyle=0.7\thinmuskip + \Umathbininnerspacing\scriptstyle=0.7\thinmuskip + \Umathrelordspacing\scriptstyle=\thinmuskip + \Umathrelopspacing\scriptstyle=\thinmuskip + \Umathrelopenspacing\scriptstyle=\thinmuskip + \Umathrelinnerspacing\scriptstyle=\thinmuskip + \Umathcloseopspacing\scriptstyle=0.6\thinmuskip + \Umathclosebinspacing\scriptstyle=0.7\thinmuskip + \Umathcloserelspacing\scriptstyle=\thinmuskip + \Umathcloseinnerspacing\scriptstyle=0.6\thinmuskip + \Umathpunctordspacing\scriptstyle=0.6\thinmuskip + \Umathpunctopspacing\scriptstyle=0.6\thinmuskip + \Umathpunctrelspacing\scriptstyle=0.6\thinmuskip + \Umathpunctopenspacing\scriptstyle=0.6\thinmuskip + \Umathpunctclosespacing\scriptstyle=0.6\thinmuskip + \Umathpunctpunctspacing\scriptstyle=0.6\thinmuskip + \Umathpunctinnerspacing\scriptstyle=0.6\thinmuskip + \Umathinnerordspacing\scriptstyle=0.6\thinmuskip + \Umathinneropspacing\scriptstyle=0.6\thinmuskip + \Umathinnerbinspacing\scriptstyle=0.7\thinmuskip + \Umathinnerrelspacing\scriptstyle=\thinmuskip + \Umathinneropenspacing\scriptstyle=0.6\thinmuskip + \Umathinnerpunctspacing\scriptstyle=0.6\thinmuskip + \Umathinnerinnerspacing\scriptstyle=0.6\thinmuskip + \wlog{Package innerscript Info: + Adjusting spacing for \string\crampedscriptstyle.} + \Umathordopspacing\crampedscriptstyle=0.6\thinmuskip + \Umathordbinspacing\crampedscriptstyle=0.7\thinmuskip + \Umathordrelspacing\crampedscriptstyle=\thinmuskip + \Umathordinnerspacing\crampedscriptstyle=0.6\thinmuskip + \Umathopordspacing\crampedscriptstyle=0.6\thinmuskip + \Umathopopspacing\crampedscriptstyle=0.6\thinmuskip + \Umathoprelspacing\crampedscriptstyle=\thinmuskip + \Umathopinnerspacing\crampedscriptstyle=\thinmuskip + \Umathbinordspacing\crampedscriptstyle=0.7\thinmuskip + \Umathbinopspacing\crampedscriptstyle=0.7\thinmuskip + \Umathbinopenspacing\crampedscriptstyle=0.7\thinmuskip + \Umathbininnerspacing\crampedscriptstyle=0.7\thinmuskip + \Umathrelordspacing\crampedscriptstyle=\thinmuskip + \Umathrelopspacing\crampedscriptstyle=\thinmuskip + \Umathrelopenspacing\crampedscriptstyle=\thinmuskip + \Umathrelinnerspacing\crampedscriptstyle=\thinmuskip + \Umathcloseopspacing\crampedscriptstyle=0.6\thinmuskip + \Umathclosebinspacing\crampedscriptstyle=0.7\thinmuskip + \Umathcloserelspacing\crampedscriptstyle=\thinmuskip + \Umathcloseinnerspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctordspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctopspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctrelspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctopenspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctclosespacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctpunctspacing\crampedscriptstyle=0.6\thinmuskip + \Umathpunctinnerspacing\crampedscriptstyle=0.6\thinmuskip + \Umathinnerordspacing\crampedscriptstyle=0.6\thinmuskip + \Umathinneropspacing\crampedscriptstyle=0.6\thinmuskip + \Umathinnerbinspacing\crampedscriptstyle=0.7\thinmuskip + \Umathinnerrelspacing\crampedscriptstyle=\thinmuskip + \Umathinneropenspacing\crampedscriptstyle=0.6\thinmuskip + \Umathinnerpunctspacing\crampedscriptstyle=0.6\thinmuskip + \Umathinnerinnerspacing\crampedscriptstyle=0.6\thinmuskip +\fi +% \end{macrocode} +% Set the spacing for |\scriptscriptstyle| and |\crampedscriptscriptstyle|. The process is the same as it was for |\scriptstyle| except with different |\muskip| \textit{factors}. +% \begin{macrocode} +\ifIS@scriptscript + \wlog{Package innerscript Info: + Adjusting spacing for \string\scriptscriptstyle.} + \Umathordopspacing\scriptscriptstyle=0.4\thinmuskip + \Umathordbinspacing\scriptscriptstyle=0.5\thinmuskip + \Umathordrelspacing\scriptscriptstyle=0.7\thinmuskip + \Umathordinnerspacing\scriptscriptstyle=0.4\thinmuskip + \Umathopordspacing\scriptscriptstyle=0.4\thinmuskip + \Umathopopspacing\scriptscriptstyle=0.4\thinmuskip + \Umathoprelspacing\scriptscriptstyle=0.7\thinmuskip + \Umathopinnerspacing\scriptscriptstyle=0.7\thinmuskip + \Umathbinordspacing\scriptscriptstyle=0.5\thinmuskip + \Umathbinopspacing\scriptscriptstyle=0.5\thinmuskip + \Umathbinopenspacing\scriptscriptstyle=0.5\thinmuskip + \Umathbininnerspacing\scriptscriptstyle=0.5\thinmuskip + \Umathrelordspacing\scriptscriptstyle=0.7\thinmuskip + \Umathrelopspacing\scriptscriptstyle=0.7\thinmuskip + \Umathrelopenspacing\scriptscriptstyle=0.7\thinmuskip + \Umathrelinnerspacing\scriptscriptstyle=0.7\thinmuskip + \Umathcloseopspacing\scriptscriptstyle=0.4\thinmuskip + \Umathclosebinspacing\scriptscriptstyle=0.5\thinmuskip + \Umathcloserelspacing\scriptscriptstyle=0.7\thinmuskip + \Umathcloseinnerspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctordspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctopspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctrelspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctopenspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctclosespacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctpunctspacing\scriptscriptstyle=0.4\thinmuskip + \Umathpunctinnerspacing\scriptscriptstyle=0.4\thinmuskip + \Umathinnerordspacing\scriptscriptstyle=0.4\thinmuskip + \Umathinneropspacing\scriptscriptstyle=0.4\thinmuskip + \Umathinnerbinspacing\scriptscriptstyle=0.5\thinmuskip + \Umathinnerrelspacing\scriptscriptstyle=0.7\thinmuskip + \Umathinneropenspacing\scriptscriptstyle=0.4\thinmuskip + \Umathinnerpunctspacing\scriptscriptstyle=0.4\thinmuskip + \Umathinnerinnerspacing\scriptscriptstyle=0.4\thinmuskip + \wlog{Package innerscript Info: + Adjusting spacing for \string\crampedscriptscriptstyle.} + \Umathordopspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathordbinspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathordrelspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathordinnerspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathopordspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathopopspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathoprelspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathopinnerspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathbinordspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathbinopspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathbinopenspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathbininnerspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathrelordspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathrelopspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathrelopenspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathrelinnerspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathcloseopspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathclosebinspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathcloserelspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathcloseinnerspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctordspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctopspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctrelspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctopenspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctclosespacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctpunctspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathpunctinnerspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathinnerordspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathinneropspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathinnerbinspacing\crampedscriptscriptstyle=0.5\thinmuskip + \Umathinnerrelspacing\crampedscriptscriptstyle=0.7\thinmuskip + \Umathinneropenspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathinnerpunctspacing\crampedscriptscriptstyle=0.4\thinmuskip + \Umathinnerinnerspacing\crampedscriptscriptstyle=0.4\thinmuskip +\fi +% \end{macrocode} +% Now set the spacing for |\mathinner| subformulas. Each command has the form +% \begin{code} +% |\Umath|\argtext{math class}|innerspacing\|\argtext{math style}|=|\\ +% | \Umath|\argtext{math class}|ordspacing\|\argtext{math style} +% \end{code} +% or +% \begin{code} +% |\Umathinner|\argtext{math class}|spacing\|\argtext{math style}|=|\\ +% | \Umathord|\argtext{math class}|spacing\|\argtext{math style}, +% \end{code} +% where \textit{math class} is one of |ord|, |op|, |bin|, |rel|, |open|, |close|, |punct|, or |inner|. The \textit{math style} is either |displaystyle|, |textstyle|, |scriptstyle|, |scriptscriptstyle|, or the cramped version of any of those four. +% \begin{macrocode} +\ifIS@inner + \wlog{Package innerscript Info: + Adjusting spacing for \string\mathinner.} + \Umathordinnerspacing\displaystyle= + \Umathordordspacing\displaystyle + \Umathordinnerspacing\textstyle= + \Umathordordspacing\textstyle + \Umathordinnerspacing\scriptstyle= + \Umathordordspacing\scriptstyle + \Umathordinnerspacing\scriptscriptstyle= + \Umathordordspacing\scriptscriptstyle + \Umathordinnerspacing\crampeddisplaystyle= + \Umathordordspacing\crampeddisplaystyle + \Umathordinnerspacing\crampedtextstyle= + \Umathordordspacing\crampedtextstyle + \Umathordinnerspacing\crampedscriptstyle= + \Umathordordspacing\crampedscriptstyle + \Umathordinnerspacing\crampedscriptscriptstyle= + \Umathordordspacing\crampedscriptscriptstyle + \Umathopinnerspacing\displaystyle= + \Umathopordspacing\displaystyle + \Umathopinnerspacing\textstyle= + \Umathopordspacing\textstyle + \Umathopinnerspacing\scriptstyle= + \Umathopordspacing\scriptstyle + \Umathopinnerspacing\scriptscriptstyle= + \Umathopordspacing\scriptscriptstyle + \Umathopinnerspacing\crampeddisplaystyle= + \Umathopordspacing\crampeddisplaystyle + \Umathopinnerspacing\crampedtextstyle= + \Umathopordspacing\crampedtextstyle + \Umathopinnerspacing\crampedscriptstyle= + \Umathopordspacing\crampedscriptstyle + \Umathopinnerspacing\crampedscriptscriptstyle= + \Umathopordspacing\crampedscriptscriptstyle + \Umathbininnerspacing\displaystyle= + \Umathbinordspacing\displaystyle + \Umathbininnerspacing\textstyle= + \Umathbinordspacing\textstyle + \Umathbininnerspacing\scriptstyle= + \Umathbinordspacing\scriptstyle + \Umathbininnerspacing\scriptscriptstyle= + \Umathbinordspacing\scriptscriptstyle + \Umathbininnerspacing\crampeddisplaystyle= + \Umathbinordspacing\crampeddisplaystyle + \Umathbininnerspacing\crampedtextstyle= + \Umathbinordspacing\crampedtextstyle + \Umathbininnerspacing\crampedscriptstyle= + \Umathbinordspacing\crampedscriptstyle + \Umathbininnerspacing\crampedscriptscriptstyle= + \Umathbinordspacing\crampedscriptscriptstyle + \Umathrelinnerspacing\displaystyle= + \Umathrelordspacing\displaystyle + \Umathrelinnerspacing\textstyle= + \Umathrelordspacing\textstyle + \Umathrelinnerspacing\scriptstyle= + \Umathrelordspacing\scriptstyle + \Umathrelinnerspacing\scriptscriptstyle= + \Umathrelordspacing\scriptscriptstyle + \Umathrelinnerspacing\crampeddisplaystyle= + \Umathrelordspacing\crampeddisplaystyle + \Umathrelinnerspacing\crampedtextstyle= + \Umathrelordspacing\crampedtextstyle + \Umathrelinnerspacing\crampedscriptstyle= + \Umathrelordspacing\crampedscriptstyle + \Umathrelinnerspacing\crampedscriptscriptstyle= + \Umathrelordspacing\crampedscriptscriptstyle + \Umathopeninnerspacing\displaystyle= + \Umathopenordspacing\displaystyle + \Umathopeninnerspacing\textstyle= + \Umathopenordspacing\textstyle + \Umathopeninnerspacing\scriptstyle= + \Umathopenordspacing\scriptstyle + \Umathopeninnerspacing\scriptscriptstyle= + \Umathopenordspacing\scriptscriptstyle + \Umathopeninnerspacing\crampeddisplaystyle= + \Umathopenordspacing\crampeddisplaystyle + \Umathopeninnerspacing\crampedtextstyle= + \Umathopenordspacing\crampedtextstyle + \Umathopeninnerspacing\crampedscriptstyle= + \Umathopenordspacing\crampedscriptstyle + \Umathopeninnerspacing\crampedscriptscriptstyle= + \Umathopenordspacing\crampedscriptscriptstyle + \Umathcloseinnerspacing\displaystyle= + \Umathcloseordspacing\displaystyle + \Umathcloseinnerspacing\textstyle= + \Umathcloseordspacing\textstyle + \Umathcloseinnerspacing\scriptstyle= + \Umathcloseordspacing\scriptstyle + \Umathcloseinnerspacing\scriptscriptstyle= + \Umathcloseordspacing\scriptscriptstyle + \Umathcloseinnerspacing\crampeddisplaystyle= + \Umathcloseordspacing\crampeddisplaystyle + \Umathcloseinnerspacing\crampedtextstyle= + \Umathcloseordspacing\crampedtextstyle + \Umathcloseinnerspacing\crampedscriptstyle= + \Umathcloseordspacing\crampedscriptstyle + \Umathcloseinnerspacing\crampedscriptscriptstyle= + \Umathcloseordspacing\crampedscriptscriptstyle + \Umathpunctinnerspacing\displaystyle= + \Umathpunctordspacing\displaystyle + \Umathpunctinnerspacing\textstyle= + \Umathpunctordspacing\textstyle + \Umathpunctinnerspacing\scriptstyle= + \Umathpunctordspacing\scriptstyle + \Umathpunctinnerspacing\scriptscriptstyle= + \Umathpunctordspacing\scriptscriptstyle + \Umathpunctinnerspacing\crampeddisplaystyle= + \Umathpunctordspacing\crampeddisplaystyle + \Umathpunctinnerspacing\crampedtextstyle= + \Umathpunctordspacing\crampedtextstyle + \Umathpunctinnerspacing\crampedscriptstyle= + \Umathpunctordspacing\crampedscriptstyle + \Umathpunctinnerspacing\crampedscriptscriptstyle= + \Umathpunctordspacing\crampedscriptscriptstyle + \Umathinnerordspacing\displaystyle= + \Umathordordspacing\displaystyle + \Umathinnerordspacing\textstyle= + \Umathordordspacing\textstyle + \Umathinnerordspacing\scriptstyle= + \Umathordordspacing\scriptstyle + \Umathinnerordspacing\scriptscriptstyle= + \Umathordordspacing\scriptscriptstyle + \Umathinnerordspacing\crampeddisplaystyle= + \Umathordordspacing\crampeddisplaystyle + \Umathinnerordspacing\crampedtextstyle= + \Umathordordspacing\crampedtextstyle + \Umathinnerordspacing\crampedscriptstyle= + \Umathordordspacing\crampedscriptstyle + \Umathinnerordspacing\crampedscriptscriptstyle= + \Umathordordspacing\crampedscriptscriptstyle + \Umathinneropspacing\displaystyle= + \Umathordopspacing\displaystyle + \Umathinneropspacing\textstyle= + \Umathordopspacing\textstyle + \Umathinneropspacing\scriptstyle= + \Umathordopspacing\scriptstyle + \Umathinneropspacing\scriptscriptstyle= + \Umathordopspacing\scriptscriptstyle + \Umathinneropspacing\crampeddisplaystyle= + \Umathordopspacing\crampeddisplaystyle + \Umathinneropspacing\crampedtextstyle= + \Umathordopspacing\crampedtextstyle + \Umathinneropspacing\crampedscriptstyle= + \Umathordopspacing\crampedscriptstyle + \Umathinneropspacing\crampedscriptscriptstyle= + \Umathordopspacing\crampedscriptscriptstyle + \Umathinnerbinspacing\displaystyle= + \Umathordbinspacing\displaystyle + \Umathinnerbinspacing\textstyle= + \Umathordbinspacing\textstyle + \Umathinnerbinspacing\scriptstyle= + \Umathordbinspacing\scriptstyle + \Umathinnerbinspacing\scriptscriptstyle= + \Umathordbinspacing\scriptscriptstyle + \Umathinnerbinspacing\crampeddisplaystyle= + \Umathordbinspacing\crampeddisplaystyle + \Umathinnerbinspacing\crampedtextstyle= + \Umathordbinspacing\crampedtextstyle + \Umathinnerbinspacing\crampedscriptstyle= + \Umathordbinspacing\crampedscriptstyle + \Umathinnerbinspacing\crampedscriptscriptstyle= + \Umathordbinspacing\crampedscriptscriptstyle + \Umathinnerrelspacing\displaystyle= + \Umathordrelspacing\displaystyle + \Umathinnerrelspacing\textstyle= + \Umathordrelspacing\textstyle + \Umathinnerrelspacing\scriptstyle= + \Umathordrelspacing\scriptstyle + \Umathinnerrelspacing\scriptscriptstyle= + \Umathordrelspacing\scriptscriptstyle + \Umathinnerrelspacing\crampeddisplaystyle= + \Umathordrelspacing\crampeddisplaystyle + \Umathinnerrelspacing\crampedtextstyle= + \Umathordrelspacing\crampedtextstyle + \Umathinnerrelspacing\crampedscriptstyle= + \Umathordrelspacing\crampedscriptstyle + \Umathinnerrelspacing\crampedscriptscriptstyle= + \Umathordrelspacing\crampedscriptscriptstyle + \Umathinneropenspacing\displaystyle= + \Umathordopenspacing\displaystyle + \Umathinneropenspacing\textstyle= + \Umathordopenspacing\textstyle + \Umathinneropenspacing\scriptstyle= + \Umathordopenspacing\scriptstyle + \Umathinneropenspacing\scriptscriptstyle= + \Umathordopenspacing\scriptscriptstyle + \Umathinneropenspacing\crampeddisplaystyle= + \Umathordopenspacing\crampeddisplaystyle + \Umathinneropenspacing\crampedtextstyle= + \Umathordopenspacing\crampedtextstyle + \Umathinneropenspacing\crampedscriptstyle= + \Umathordopenspacing\crampedscriptstyle + \Umathinneropenspacing\crampedscriptscriptstyle= + \Umathordopenspacing\crampedscriptscriptstyle + \Umathinnerclosespacing\displaystyle= + \Umathordclosespacing\displaystyle + \Umathinnerclosespacing\textstyle= + \Umathordclosespacing\textstyle + \Umathinnerclosespacing\scriptstyle= + \Umathordclosespacing\scriptstyle + \Umathinnerclosespacing\scriptscriptstyle= + \Umathordclosespacing\scriptscriptstyle + \Umathinnerclosespacing\crampeddisplaystyle= + \Umathordclosespacing\crampeddisplaystyle + \Umathinnerclosespacing\crampedtextstyle= + \Umathordclosespacing\crampedtextstyle + \Umathinnerclosespacing\crampedscriptstyle= + \Umathordclosespacing\crampedscriptstyle + \Umathinnerclosespacing\crampedscriptscriptstyle= + \Umathordclosespacing\crampedscriptscriptstyle + \Umathinnerpunctspacing\displaystyle= + \Umathordpunctspacing\displaystyle + \Umathinnerpunctspacing\textstyle= + \Umathordpunctspacing\textstyle + \Umathinnerpunctspacing\scriptstyle= + \Umathordpunctspacing\scriptstyle + \Umathinnerpunctspacing\scriptscriptstyle= + \Umathordpunctspacing\scriptscriptstyle + \Umathinnerpunctspacing\crampeddisplaystyle= + \Umathordpunctspacing\crampeddisplaystyle + \Umathinnerpunctspacing\crampedtextstyle= + \Umathordpunctspacing\crampedtextstyle + \Umathinnerpunctspacing\crampedscriptstyle= + \Umathordpunctspacing\crampedscriptstyle + \Umathinnerpunctspacing\crampedscriptscriptstyle= + \Umathordpunctspacing\crampedscriptscriptstyle + \Umathinnerinnerspacing\displaystyle= + \Umathordordspacing\displaystyle + \Umathinnerinnerspacing\textstyle= + \Umathordordspacing\textstyle + \Umathinnerinnerspacing\scriptstyle= + \Umathordordspacing\scriptstyle + \Umathinnerinnerspacing\scriptscriptstyle= + \Umathordordspacing\scriptscriptstyle + \Umathinnerinnerspacing\crampeddisplaystyle= + \Umathordordspacing\crampeddisplaystyle + \Umathinnerinnerspacing\crampedtextstyle= + \Umathordordspacing\crampedtextstyle + \Umathinnerinnerspacing\crampedscriptstyle= + \Umathordordspacing\crampedscriptstyle + \Umathinnerinnerspacing\crampedscriptscriptstyle= + \Umathordordspacing\crampedscriptscriptstyle +\fi +% \end{macrocode} +% +% \iffalse +%</package> +% \fi +% +% +% \check@checksum +% +% +\endinput
\ No newline at end of file diff --git a/macros/luatex/latex/innerscript/innerscript.pdf b/macros/luatex/latex/innerscript/innerscript.pdf Binary files differnew file mode 100644 index 0000000000..3a23d5eea7 --- /dev/null +++ b/macros/luatex/latex/innerscript/innerscript.pdf |