python parse/formatter example on the wiki
I was trying the example of "writing a parse/formatter" under "Verbatim text". The python formatter runs successfully. But when I compile the text file with all the definitions included, an error occurs. <inserted text> } <to be read again> \endgroup \buff_verbatim_type_block_verbatim_indeed ...ines \dostoptagged \csname #2\e... It could be implemented forcefully, but definitely not an excuse to ignore this error. Any solutions?
Am 11.05.2013 um 16:22 schrieb seasoul
I was trying the example of "writing a parse/formatter" under "Verbatim text".
The python formatter runs successfully. But when I compile the text file with all the definitions included, an error occurs.
<inserted text> } <to be read again> \endgroup \buff_verbatim_type_block_verbatim_indeed ...ines \dostoptagged \csname #2\e...
It could be implemented forcefully, but definitely not an excuse to ignore this error.
You have to change the color settings from {\color[…]…} to \color[…]{…} because the command expects the text as argument. Wolfgang
Yes, it is solved. On Sun, May 12, 2013 at 12:48 AM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote:
Am 11.05.2013 um 16:22 schrieb seasoul
: I was trying the example of "writing a parse/formatter" under "Verbatim text".
The python formatter runs successfully. But when I compile the text file with all the definitions included, an error occurs.
<inserted text> } <to be read again> \endgroup \buff_verbatim_type_block_verbatim_indeed ...ines \dostoptagged \csname #2\e...
It could be implemented forcefully, but definitely not an excuse to ignore this error.
You have to change the color settings from
{\color[…]…}
to
\color[…]{…}
because the command expects the text as argument.
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Yours Sincerely Ba Te
participants (2)
-
seasoul
-
Wolfgang Schuster