diff options
Diffstat (limited to 'macros/latex-dev/base/ltnews35.tex')
-rw-r--r-- | macros/latex-dev/base/ltnews35.tex | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/macros/latex-dev/base/ltnews35.tex b/macros/latex-dev/base/ltnews35.tex index 31bce8a115..e798d4c2e4 100644 --- a/macros/latex-dev/base/ltnews35.tex +++ b/macros/latex-dev/base/ltnews35.tex @@ -323,6 +323,40 @@ layer)) which was also used in the example above. \section{Code improvements} + +\subsection{A small update to \cs{obeylines} and \cs{obeyspaces}} + +The plain \TeX{} versions of \cs{obeylines} and \cs{obeyspaces} make +\verb=^^M= and \verb*= = active and force them to execute \cs{par} +and \cs{space}, respectively. Don Knuth makes a remark in the \TeX{}book +that one can then use a trick such as +\begin{verbatim} + \let\par=\cr \obeylines \halign{... +\end{verbatim} +However, redefining \cs{par} like this is not really a great idea in \LaTeX{}, +because it may lead to all kind of problems. We have therefore changed +the commands to use an indirection: the active characters now execute +\cs{obeyedline} and \cs{obeyedspace}, which in turn do what the +hardwired solution did before. + +\begin{quote} + \renewcommand\obeyedspace{\ \textbullet\ } + \footnotesize\obeyspaces% +But this means that it is now possible to % +achieve special effects in a safe way. % +This paragraph, for example, was produced by % +making \cs{obeyedspace} generate % +\texttt{\{\cs{\verbvisiblespace}\cs{textbullet}\cs{\verbvisiblespace}\}} and % +enabling \cs{obeyspaces} within a % +quote environment. +\end{quote} +Thus, if you are keen to use the plain \TeX{} trick, you need to say +\cs{let}\cs{obeyedlines}\texttt{=}\cs{cr} now. +% +\githubissue{367} + + + \subsection{\class{ltxdoc} gets a \option{nocfg} option} The \LaTeX{} sources are formatted with the \class{ltxdoc} class, @@ -472,6 +506,28 @@ is now fixed. \section{Changes to packages in the \pkg{amsmath} category} + +\subsection{\pkg{amsopn} Do not reset \cs{operator@font}} + +The package \pkg{amsopn} used to define \cs{operator@font} but this +command is already provided by the \LaTeX{} format (for at least 14 +years). As a result the definition in \pkg{amsopn} is equivalent to a +reset to the kernel definition, which is unnecessary and suprising if +you alter the math setup (e.g., by loading a package) and at a later +stage add \pkg{amsmath}, which then undoes part of your setup. For +this reason the definition was taken out and +\pkg{amsmath}/\pkg{amsopn} now relies on the format definition. + +In the unlikely event that you want the resetting to happen, use +\begin{verbatim} + \makeatletter + \def\operator@font{\mathgroup\symoperators} + \makeatother +\end{verbatim} +after loading the package. +% +\githubissue{734} + \subsection{???} % \githubissue{???} @@ -516,6 +572,7 @@ spacing. Thus, the above example can now be written as \begin{verbatim} \[ X = \mathcolor{red}{\sum}_{i=1}^n x_i \] \end{verbatim} +This command is \emph{only} allowed in formulas. For details and further examples, see \file{mathcolor.pdf}. |