From: Mark Wooding Date: Sat, 5 Sep 2020 13:51:39 +0000 (+0100) Subject: at.dtx: Don't use `@'-commands in section headings. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mdwtools/commitdiff_plain/1ae155da74f82d3b5ab944a1b98647af7d2b5ea7?ds=sidebyside at.dtx: Don't use `@'-commands in section headings. Alas, they don't -- and, I think, can't -- work in PDF strings, since scanning the command name works using `\futurelet', which is a TeX command rather than an expansion. --- diff --git a/at.dtx b/at.dtx index b8a9251..a9b7d00 100644 --- a/at.dtx +++ b/at.dtx @@ -58,6 +58,8 @@ %<*driver> \input{mdwtools} \describespackage{at} +\def\atsign{@} +\def\athyphen{@\mbox{-}} \aton \atlet p=\package \atdef at{\package{at}} @@ -106,7 +108,7 @@ % usual scoping rules. Both of these commands have corresponding % environments with the same names (without the leading `|\|', obviously). % -% \subsection{Defining @-commands} +% \subsection{Defining \athyphen commands} % % \DescribeMacro{\newatcommand} % \DescribeMacro{\renewatcommand} @@ -147,7 +149,7 @@ % use fragile commands in their definitions. Unless you start doing very % strange things, @-commands never need |\protect|ing. % -% \subsection{Predefined @-commands} +% \subsection{Predefined \athyphen commands} % % A small number of hopefully useful commands are provided by default. % These are described in the table below: @@ -545,7 +547,7 @@ % \end{macro} % % -% \subsection{Robustness of @-commands} +% \subsection{Robustness of \athyphen commands} % % We want all @-commands to be robust. We could leave them all being % fragile, although making robust @-commands would then be almost impossible. @@ -723,7 +725,7 @@ % \end{macro} % \end{macro} % -% \subsection{Default @-commands} +% \subsection{Default \athyphen commands} % % We define some trivial examples to get the user going. %