title: How to write programming code containing the ' character in latex?
body: <p>I am trying to write programming code in latex using the verbatim environment, but when I write</p>
  
  <pre><code>  \begin{verbatim}
       char ch = 'x';
    \end{verbatim}
  </code></pre>
  
  <p>then the ' -characters around x are displayed incorrectly (they look "curly"). How can I fix this problem?</p>