New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving from Sphinx 1.3.1 to 1.5.3 breaks LaTeX compilation of links rendered as code #3533
Comments
Can you please paste lines 485 to 495 of the actually I expect this is from https://github.com/cms-dev/cms/blob/17a924e333025bc4e70e675731f09cf8a8305313/docs/Running%20CMS.rst#configuring-cms Currently I can not get same LaTeX error, but I do observe (expected) problems with for example this
in LaTeX file, as the link target in PDF contains some TeX macros and is not valid. |
I expect this to have same causes as those which gave #3200 (fixed at #3206). The Perhaps the encode_uri in LaTeX writer should get is |
Looks similar. The offending tex is: |
[I already updated the repo to remove the code formatting from that macro, that's probably why you weren't seeing it.] |
no I downloaded the
Then I added manually what you indicated
but at my locale, there is no LaTeX error on compilation; sure the hyperlinks are wrong as is to expected from the way |
ah, I reproduce your error in an |
arrrgh, apologies, all my testing was on a project I used for issue #3200 and it was left with |
Hi @jfbu - just to set expectations, I am fine with the current workaround (just render the link with the regular style). Thanks for looking into it! |
Sorry in advance if I am a bit longish here, but I am documenting for future, as immediate all-around fix does not present itself in an obvious way. The underlying issue is that inline literals, using But the Getting back to your issue. As workaround, add this to preamble:
You may need to drop Investigating this, I realized that the related but distinct issue #3317 (which as fixed as consequence of #3340) about URLs inside parsed-literals are still a problem there if the I hope workaround above will be enough for your project. |
I forgot to say the obvious: Just use
if you want to revert to Sphinx LaTeX 1.3.1 behaviour in this regard. This may be the simpler solution for your use-case, but you lose wrapping at line-breaks and non-curly single quotes in PDF output for inline literals |
It seems I need to talk a lot before acting. I have fixed this issue at PR #3538. Thanks for reporting. |
fixed at 3128a43 for Sphinx 1.5.4. Please re-open in case |
Hi! Not urgent as we just used a workaround, but in case you care...
We have an extension that creates a link to a file in our GitHub repo, and renders it as code.
With 1.3.1 it worked. With 1.5.3 I get errors like these:
I get the same error both locally (stock TeXlive distro in Ubuntu 14.04) and in ReadTheDocs.
The text was updated successfully, but these errors were encountered: