Odp: ntg-context digest, Vol 1 #484 - 13 msgs
Hi,
I try to define new command with typing in this way: Don't mess with verbatim stuff in commands. Don't ask why, just don't do it ;-) \definetyping [nitram] [before=\startframedtext, after=\stopframedtext] \starttext \startnitram crazy \stopnitram \stoptext
It works but if I use \startnitram \getbuffer \stopnitram I have as result: \getbuffer ;) I would like to define some code in buffer and use it as example (typing this code) and show how it works (use this code). I can use \getbuffer and \typebuffer, but I would like to put code into a 'nice' frame ;) I can do it by \framed[number of options]{\typebuffer}, but I would like to do it in better way - by defining own command and use \Command{\getbuffer}. Is it impossible? -- Best regards Martin
Hi,
It works but if I use \startnitram \getbuffer \stopnitram
I have as result: \getbuffer ;)
right, that is verbatim mode :)
I would like to define some code in buffer and use it as example (typing this code) and show how it works (use this code). I can use \getbuffer and \typebuffer, but I would like to put code into a 'nice' frame ;)
I wasn't able to notice what you want in the first mail. Sorry.
I can do it by \framed[number of options]{\typebuffer}, but I would like to do it in better way - by defining own command and use \Command{\getbuffer}.
Is it impossible?
Is this a real question? \setuptyping[before=\startMyFrame,after=\stopMyFrame] \defineframedtext [MyFrame] [width=fit] \starttext \startbuffer [nitram] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam a sapien. Fusce commodo. Nunc eleifend leo vitae magna. \stopbuffer \getbuffer [nitram] \typebuffer[nitram] \stoptext If you really want your \Command: \define[1]\Command% {\typebuffer[#1]} \Command{nitram} Patrick -- Silent is the goldfish in its bowl
participants (2)
-
^Nitram^
-
Patrick Gundlach