mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Merge pull request #3208 from jfbu/fixlatexdurole
fix latex issue with references from inside parsed-literal (ref #3207)
This commit is contained in:
commit
db97f37a23
1 file changed
+4
-4
@@ -946,11 +946,11 @@
|
||||
% inline markup (custom roles)
|
||||
% \DUrole{#1}{#2} tries \DUrole#1{#2}
|
||||
\providecommand*{\DUrole}[2]{%
|
||||
\ifcsname DUrole#1\endcsname
|
||||
\csname DUrole#1\endcsname{#2}%
|
||||
\ifcsname DUrole\detokenize{#1}\endcsname
|
||||
\csname DUrole\detokenize{#1}\endcsname{#2}%
|
||||
\else% backwards compatibility: try \docutilsrole#1{#2}
|
||||
\ifcsname docutilsrole#1\endcsname
|
||||
\csname docutilsrole#1\endcsname{#2}%
|
||||
\ifcsname docutilsrole\detokenize{#1}\endcsname
|
||||
\csname docutilsrole\detokenize{#1}\endcsname{#2}%
|
||||
\else
|
||||
#2%
|
||||
\fi
|
||||
|
||||
Reference in new issue
Block a user