title: Latex printing single slash, backslash r, backslash n
body: <p>I want the following line inside a *.tex file to be printed "as is":</p>
  
  <pre><code>while (tmp[0] == '\r' || tmp[0] == '\n') {tmp++;}
  </code></pre>
  
  <p>When I wrap it in a \verb command like this:</p>
  
  <pre><code>\verb"while (tmp[0] == '\r' || tmp[0] == '\n') {tmp++;}"
  </code></pre>
  
  <p>it doesn't work, and I get:</p>
  
  <pre><code>! Undefined control sequence.
  </code></pre>
  
  <p>All other google answers are <strong>so</strong> complicated.</p>
  
  <p>Surely, there's got to be an easy way to do this, right?
  Thanks!</p>
  
  <p>EDIT:</p>
  
  <p>Here is the minimal counter example requested in the comments:</p>
  
  <pre><code>%%%%%%%%%%%%%%%%%%%%%%%%%%
  % document class: beamer %
  %%%%%%%%%%%%%%%%%%%%%%%%%%
  \documentclass{beamer}
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % no navigation bars please %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \setbeamertemplate{footline}[frame number]{}
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % no navigation symbols please %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \setbeamertemplate{navigation symbols}{}
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % no footers at all please %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \setbeamertemplate{footline}{}
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%
  % center the title please %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%
  \setbeamertemplate{frametitle}[default][center]
  
  %%%%%%%%%%%%%%%%%%
  % begin document %
  %%%%%%%%%%%%%%%%%%
  \begin{document}
  
  %%%%%%%%%
  % title %
  %%%%%%%%%
  \title{Some Title}   
  
  %%%%%%%%%%
  % author %
  %%%%%%%%%%
  \author{Some Author}
  
  %%%%%%%%%%%%
  % date ... %
  %%%%%%%%%%%%
  \date{\today} 
  
  %%%%%%%%%%%%%
  % frame ... %
  %%%%%%%%%%%%%
  \frame{\titlepage} 
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%
  % SECTION :: Introduction %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{Section Introduction} 
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Frame Title :: Introduction %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \frame{\frametitle{Status}
  %%%%%%%%%%%%%%%%%%
  % Items :: Begin %
  %%%%%%%%%%%%%%%%%%
  \begin{itemize}
  \item
  while (tmp[0] == 'A' $||$ tmp[1] == 'B') $\{$tmp++;$\}$
  \end{itemize}
  }
  \end{document}
  </code></pre>