Re: [NTG-context] Typing in new command problems
Hi, > > Is it impossible? > Is this a real question? No ;) But the real should be '... for newbie' :) [cut] Thank you very much. I did it in this way: \defineframedtext[Frame][width=broad,bodyfont=9pt,align=right] %but align is a little strange = see new post Aligment? \def\Command#1#2 {\setuptyping[before=\startFrame,after=\stopFrame] \setupTABLE[frame=off]\bTABLE\bTR\bTD[width=.2\textwidth,align=left] %align again \bfx #2\eTD\bTD \typebuffer[#1] \eTD\eTR\eTABLE \setuptyping[before=,after=]} And now it is what I want ;) Probably there is another way to do this but I'm in ConTeXt since 1-2 months ;) -- Best regards Martin ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Typing in new command problems
At 16:00 23/09/2003 +0200, you wrote: Hi, I try to define new command with typing in this way: \def\Command#1% { \framed[options] { \starttyping #1 \stoptyping } } and use it in this way: \Command{\getbuffer[name]} but I have an error: ! Argument of \copyverbatimline has an extra }. If I change to \def\Command#1#2% I have: ! Paragraph ended before \Command was complete. How I can do it - put ConTeXt code to own frame ?... definetyping [MyCode] [before=\startMyFrame, after=\stopMyFrame] \defineframedtext [MyFrame] [width=fit] \startMyCode \Command{\getbuffer[name]} \stopMyCode (btw, this kind of framed texts knwo quite well how to get rid of white space) Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Typing in new command problems
Hi, I try to define new command with typing in this way: \def\Command#1% { \framed[options] { \starttyping #1 \stoptyping } } and use it in this way: \Command{\getbuffer[name]} but I have an error: ! Argument of \copyverbatimline has an extra }. If I change to \def\Command#1#2% I have: ! Paragraph ended before \Command was complete. How I can do it - put ConTeXt code to own frame ?... -- Best regards Martin ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context