ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* python parse/formatter example on the wiki
@ 2013-05-11 14:22 seasoul
  2013-05-11 16:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: seasoul @ 2013-05-11 14:22 UTC (permalink / raw)
  To: ntgcontext


[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]

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?

[-- Attachment #1.2: Type: text/html, Size: 900 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: python parse/formatter example on the wiki
  2013-05-11 14:22 python parse/formatter example on the wiki seasoul
@ 2013-05-11 16:48 ` Wolfgang Schuster
  2013-05-11 17:14   ` seasoul
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-05-11 16:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.05.2013 um 16:22 schrieb seasoul <bioseasoul@gmail.com>:

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: python parse/formatter example on the wiki
  2013-05-11 16:48 ` Wolfgang Schuster
@ 2013-05-11 17:14   ` seasoul
  0 siblings, 0 replies; 3+ messages in thread
From: seasoul @ 2013-05-11 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1423 bytes --]

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 <bioseasoul@gmail.com>:
>
> > 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

[-- Attachment #1.2: Type: text/html, Size: 2338 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-11 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-11 14:22 python parse/formatter example on the wiki seasoul
2013-05-11 16:48 ` Wolfgang Schuster
2013-05-11 17:14   ` seasoul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).