mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7205 from jfbu/latex_7197
LaTeX, fix \sphinxhref + \includegraphics problem with platex
This commit is contained in:
commit
942dbc6be6
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Features added
|
|||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
* #7197: LaTeX: platex cause error to build image directive with target url
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -1407,7 +1407,8 @@
|
|||||||
% \sphinxcode). Sphinx uses \#, \%, \& ... always inside \sphinxhref.
|
% \sphinxcode). Sphinx uses \#, \%, \& ... always inside \sphinxhref.
|
||||||
\protected\def\sphinxhref#1#2{{%
|
\protected\def\sphinxhref#1#2{{%
|
||||||
\sphinxunactivateextrasandspace % never do \scantokens with active space!
|
\sphinxunactivateextrasandspace % never do \scantokens with active space!
|
||||||
\endlinechar\m@ne\everyeof{{#2}}% keep catcode regime for #2
|
% for the \endlinechar business, https://github.com/latex3/latex2e/issues/286
|
||||||
|
\endlinechar\m@ne\everyeof{{\endlinechar13 #2}}% keep catcode regime for #2
|
||||||
\scantokens{\href{#1}}% normalise it for #1 during \href expansion
|
\scantokens{\href{#1}}% normalise it for #1 during \href expansion
|
||||||
}}
|
}}
|
||||||
% Same for \url. And also \nolinkurl for coherence.
|
% Same for \url. And also \nolinkurl for coherence.
|
||||||
|
Loading…
Reference in New Issue
Block a user