2

I have the command \underline in several parts of my document. I would like to check how it looks without any underlining. But I don't want to recover all the instances of the \underline command in case I change my mind.

How can I achieve this? Instructing the compiler to ignore all instances of a command would work, I guess? But I don't know how to.

I use the Overleaf platform.

1
  • Welcome to TeX.SE.
    – Mico
    Feb 12 at 4:58

1 Answer 1

4

I suggest you run

\renewcommand\underline[1]{#1}

enter image description here

\documentclass{article}
\begin{document}
$\underline{abcde}$

\renewcommand\underline[1]{#1}
$\underline{abcde}$
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .