From: Mark Wooding Date: Sat, 5 Sep 2020 14:06:50 +0000 (+0100) Subject: mdwtools.tex (\env, \package): Define using `\def', not `\let'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mdwtools/commitdiff_plain/5be706c3d3d538aa34385b90a41c59334b9686ad?hp=06ac62a34c1f80687b46f460e18af79ce6e9e92b 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. --- diff --git a/mdwtools.tex b/mdwtools.tex index fce377c..bf5ac76 100644 --- a/mdwtools.tex +++ b/mdwtools.tex @@ -421,8 +421,8 @@ % 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