![](https://secure.gravatar.com/avatar/dcbf96cd3f427201f285e64a6f64d5fe.jpg?s=120&d=mm&r=g)
I have two questions: 1. How to define a start-stop command to accept options? I want to define a start-stop command which can accept options (as \startitemize [packed]), however the \definestartstop does not support this. I found a solution in the list: http://www.ntg.nl/pipermail/ntg- context/2007/025969.html Unfortunately, when I use \startbuffer in it, context prints "*" in the terminal and waits for input. So it comes to the second question 2. Can \startbuffer be used in other commands? My code is as following: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\startabstract{% \dosingleempty\dostartabstract} \long\def\dostartabstract[#1]#2\stopabstract{% \startbuffer[#1] #2\stopbuffer} \let\stopabstract\relax \startabstract [long] a long abstract \stopabstract \startabstract [short] a short abstract \stopabstract %%%%%%%%%%%%%%%% -- ruini
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Thu, Oct 23, 2008 at 10:46 AM, Ruini Xue
I have two questions:
1. How to define a start-stop command to accept options?
I want to define a start-stop command which can accept options (as \startitemize [packed]), however the \definestartstop does not support this. I found a solution in the list: http://www.ntg.nl/pipermail/ntg- context/2007/025969.html
Unfortunately, when I use \startbuffer in it, context prints "*" in the terminal and waits for input. So it comes to the second question
2. Can \startbuffer be used in other commands?
My code is as following:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\startabstract{% \dosingleempty\dostartabstract}
\long\def\dostartabstract[#1]#2\stopabstract{% \startbuffer[#1] #2\stopbuffer}
\let\stopabstract\relax
\def\dostartabstract {\dostartbuffer[abstract][startabstract][stopabstract]}
\startabstract [long] a long abstract \stopabstract
\startabstract [short] a short abstract \stopabstract
Wolfgang
participants (2)
-
Ruini Xue
-
Wolfgang Schuster