I'm trying to compile a document in overleaf where I need to quote a reviewer comment. The comment has underscores in a word i.e. Number_of_Nodes.
For some reason I think the compiler sees the underscores and tries to be helpful by adding $ to enter inline math mode. Firstly, I don't want math mode, and secondly this conflicts with the quote environment.
How can I stop this "helpful" behaviour?
MWE:
\documentclass{article}
\begin{document}
\begin{quote}
\itshape
(Number_of_Nodes_at_step(n)).
\end{quote}
\end{document}
(Number\textunderscore of\textunderscore Nodes\textunderscore at\textunderscore step(n)).._has a special meaning: it creates subscripts in math mode, which is why TeX switches to math mode. – May 05 '21 at 02:57(Number\_of\_Nodes\_at\_step(n))? – Zarko May 05 '21 at 03:19{\it (Number_of_Nodes_at_step(n))}without problems. :). – wipet May 06 '21 at 16:21