[NTG-context] \installprettytype problem

Matthieu Leroy matt57.leroy at orange.fr
Fri Aug 21 11:54:43 CEST 2015


Bonjour Renaud,

Thank you !
It works but there is some problem with the "<=" or "<" operator. Please
see the attached files.

Regards,

Matthieu

Le 21/08/15 00:21, Renaud AUBIN a écrit :
> Bonsoir Matthieu,
>
> Give a try to https://github.com/nibua-r/pretty-c and tell me if anything goes wrong…
>
> It's basically a rewrite of Peter's module adapted to mkiv + new verbatim (new at the time of writing)
>
> I'll test it tomorrow… Anyway, you're welcome to contribute and/or submit issues.
>
> Best regards,
> Renaud
>
> Le 20 août 2015 10:43 PM, Matthieu Leroy <matt57.leroy at orange.fr> a écrit :
>> Hello,
>>
>> I want to use the "
>> C-Pretty-Printing" module. 
>> According to the "Verbatim" page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : "undefined control sequence").
>>
>> I'm using the 2015.08.13 19:33 Context version.
>>
>> Example :
>>
>> \installprettytype[C][C]
>>
>> \definetyping[C][option=C]
>>
>> \startC
>>   int func(int a){
>>     if(a > 4)
>>       return 0; // comment
>>     else        /* comment */
>>       return 10;
>>   }
>> \stopC
>>
>>
>> Thank you.
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_pretty_c.pdf
Type: application/pdf
Size: 11789 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150821/24cb6b8a/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_pretty_c.tex
Type: application/x-tex
Size: 812 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150821/24cb6b8a/attachment.tex>


More information about the ntg-context mailing list