Am 25.03.2014 10:03, schrieb Lenz Grimmer:
> Hi,
>
> On Monday, March 24, 2014 2:19:16 PM UTC+1, Lenz Grimmer wrote:
>
> I've observed a quite nasty behaviour of the "literal" and
> "parsed-literal"
> blocks when creating PDFs using the "latexpdf" target - single quotes (')
> seem to get replaced with a different kind of quote (’), which makes
> cutting
> and pasting the resulting PDF quite difficult. Is there a way to disable
> this quote conversion? I could not find any option to change this in both
> the sphinx or textutils documentation.
>
>
> I forgot one piece of information: I am running
> python-sphinx-1.1.3+dfsg-7ubuntu2 from the stock Ubuntu 13.10 package
> repository
> (64 bit). Any hints would be appreciated - thanks in advance!
Hi Lenz,
this was indeed still a bug, I've just fixed it for the next bugfix release of
1.2.
In the meantime, you can add this to your latex_elements preamble:
\usepackage{upquote}
This will at least work for parsed-literal blocks. For anything highlighted,
you will need to add this:
\renewcommand\PYGZsq{\textquotesingle}
manually *after* the Pygments style commands in the .tex files unfortunately.
cheers,
Georg
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.