[texworks] message from TeXworks user re showing of quotes

Stefan Löffler st.loeffler at gmail.com
Thu Apr 5 17:33:17 CEST 2012


Hi,

On 2012-04-05 13:57, Ian Balchin wrote:
> I have just started using Texworks, and am preparing a document
> with code examples in.

See
http://stackoverflow.com/questions/432349/how-do-you-display-straight-quotes-instead-of-curly-quotes-when-using-latexs-l#432387
- for code samples, I'd suggest the "listings" package with the
"upquote" option. Minimal example (on TL):

\documentclass{article}

\usepackage{textcomp}

\usepackage{listings}

\begin{document}

\begin{lstlisting}[upquote=true]

'a'

\end{lstlisting}

\end{document}



HTH
Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20120405/204d22dd/attachment.html>


More information about the texworks mailing list