chiark / gitweb /
mdwtools.tex (\env, \package): Define using `\def', not `\let'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Sep 2020 14:06:50 +0000 (15:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Sep 2020 15:46:47 +0000 (16:46 +0100)
This allows the commands to be used in PDFstrings, and hence in section
headings.  The `hyperref' machinery builds the PDFstring by making many
control sequences, such as `\textsf', be nops, but `\package' or `\env'
will still cause trouble if they're aliases of the old font-changing
commands.

mdwtools.tex

index fce377c4478efcf437609a76453bda10d20ed6d1..bf5ac7685b57a64e32f81e6f8fcae2d2ba371c5d 100644 (file)
 % names and environment names (both in the sans serif font, for now).
 %
 %    \begin{macrocode}
-\tlet\package\textsf
-\tlet\env\textsf
+\tdef\package{\textsf}
+\tdef\env{\textsf}
 %    \end{macrocode}
 %
 % I'll define the |\<|\dots|>| shortcut for syntax items suggested in the