Re: [NTG-context] verb-c.tex
2007/9/6, Wolfgang Werners-Lucchini [EMAIL PROTECTED]: Hmm! I can not find the problem. Here is a short example, showing the error. Hope that someone can give me a hint! \usemodule[verb-c] \starttext \startC *\0 \stopC \stoptext use \definetyping and not \usemodule, the following works. \definetyping[C][option=C] \starttext \startC *\0 \stopC \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] verb-c.tex
Hmm! I can not find the problem. Here is a short example, showing the error. Hope that someone can give me a hint! \usemodule[verb-c] \starttext \startC *\0 \stopC \stoptext and the errormessage: ! Extra \else. \doCtypefiveA ...mment \getpretties {#1}{#2}\else \ifinCsingle \getprettydat... \doCtypefourfour ...pretty \expandafter #2\fi \fi \fi \fi \fi argument *\ 0\relax \flushrestofverbatimline \processverbatimline #1-#1 \dodoverbatimline ...ax \flushrestofverbatimline } \endverbatimline \global \... \presetlastverbatimline ...r \doflushverbatimline \else \kern \zeropoint \do... ... l.16 \stopC ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] verb-c.tex
can it be that the (here commented) \beginofpretty[\!!prettyeight]% \beginofpretty[\!!prettynine]% pickup is not needed? i guess that it has no matching stop and since colors are grouped ... Yes, works! Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] verb-c.tex
On 8/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hallo! I have a little problem with the module 'verb-c'. Backslashes in verbatim text seem to disturb colors. \usemodule[verb-c] \setupcolors[state=start] \setuptyping[C][color=blue,palet=colorpretty, numbering=line] \starttext Davor \startC #include stdio.h int main() { printf(Hallo\n); } \stopC Danach \stoptext Problem: 'Danach' is blue! Last line number has the same color as the quotet String Hallo ConTeXt\n. Delete the newline char and all is ok! How can this be fixed? puts(Hallo); nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context