From 41ef6870051e05cad1cccc70281783fc3ccd539a Mon Sep 17 00:00:00 2001 From: milde Date: Mon, 1 Dec 2008 07:31:53 +0000 Subject: failsave implementation of custom roles in latex2e The latex2e writer currently translates nodes with a class argument (e.g. produced by a custom role or the upcoming syntax-highlighting souce-code directive) to specific LaTeX macros, which allows a style sheet to define this macro but leaves the document uncompilable without a special style sheet. The patch below lets the latex2ewriter produce code that 1. compiles without error ignoring the unknown classes 2. allows styling of the marked-up code in a custom stylesheet git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5742 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/test/functional/expected/standalone_rst_latex.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docutils/test') diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index bf960f87e..5a9578faf 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -1653,17 +1653,17 @@ A role based on an existing role. \item {} A new role. -\docutilsrolecustomnew{one two three} +\DUspan{customnew}{one two three} \item {} A role with class attribute. -\docutilsrolespecial{interpreted text} +\DUspan{special}{interpreted text} \item {} A role with class attribute. -\docutilsrolevery{\docutilsrolespecial{interpreted text}} +\DUspan{very,special}{interpreted text} \end{itemize} -- cgit v1.2.1