From 1ae155da74f82d3b5ab944a1b98647af7d2b5ea7 Mon Sep 17 00:00:00 2001 Message-Id: <1ae155da74f82d3b5ab944a1b98647af7d2b5ea7.1746698912.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 5 Sep 2020 14:51:39 +0100 Subject: [PATCH] at.dtx: Don't use `@'-commands in section headings. Organization: Straylight/Edgeware From: Mark Wooding 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. --- at.dtx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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. % -- [mdw]