Merge pull request #3208 from jfbu/fixlatexdurole

fix latex issue with references from inside parsed-literal (ref #3207)
This commit is contained in:
Jean-François B authored and GitHub committed 2016-12-10 18:27:53 +01:00
commit db97f37a23
1 file changed
+4 -4
+4 -4
View File
@@ -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