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)
commit5be706c3d3d538aa34385b90a41c59334b9686ad
treecc56dfae54f671356e25e5accdf662fefdd1cb7b
parent06ac62a34c1f80687b46f460e18af79ce6e9e92b
mdwtools.tex (\env, \package): Define using `\def', not `\let'.

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