1

How does one include a command name, including its backslash, in the message issued by a \typeout command?

For example, I want to issue the message >>> Using \cmd to the log. How must the following be modified to do it?

\documentclass{article}
\typeout{>>> Using \cmd.}
\begin{document}
Hello.
\end{document
murray
  • 7,944

1 Answers1

3

\string\cmd or \protect\cmd depending on space requirements.

David Carlisle
  • 757,742