On Sat, 18 Dec 2010 19:35:53 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com
wrote:
Am 18.12.2010 um 17:52 schrieb Aditya Mahajan:
I am not sure what you want to do, and why you want to
use buffers. Wont a simple token list work?
I can only agree with this, token lists are the
On Sun, Dec 19 2010, Thomas Schmitz wrote:
and this doesn't:
\newtoks\mytoks
\def\TestMacro#1#2#3%
{\item[#1] #2\par
\appendtoks \in[#1]: {#3} \to\mytoks}
\doglobal \appendtoks \in[#1]: {#3} \to\mytoks}
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact/
On Sun, 19 Dec 2010 13:21:26 +0100
Peter Münster pmli...@free.fr wrote:
On Sun, Dec 19 2010, Thomas Schmitz wrote:
and this doesn't:
\newtoks\mytoks
\def\TestMacro#1#2#3%
{\item[#1] #2\par
\appendtoks \in[#1]: {#3} \to\mytoks}
\doglobal \appendtoks \in[#1]: {#3} \to\mytoks}
Hooray, not it works!!!
s/not/now/
Thomas
___
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
On 19-12-2010 12:28, Thomas Schmitz wrote:
So: I have been trying to write a macro that will retrieve problems from
the database (successful, with help by Hans), pack them in an itemize
list (successful), and store the solution somewhere so it can be typeset
Why do you store the solutions if
On Sun, Dec 19 2010, Thomas Schmitz wrote:
easy, yet my knowledge of TeX wasn't advanced enough to see this. Is
it because I'm inside a group and TeX empties the tokenlist once I
get out of the group?
In this case yes, because the list was empty before the group. In general
you get the value,
Hi all,
i guess this is easy, but I can't find an example to help
me: I want to write a macro that will collect one of its
arguments in a buffer and then collect the other argument
in a buffer. Difficult to make a minimal example since I
don't know how to do this, so here is some pseudo-code;
On Sat, 18 Dec 2010, Thomas Schmitz wrote:
i guess this is easy, but I can't find an example to help
me: I want to write a macro that will collect one of its
arguments in a buffer and then collect the other argument in a buffer.
Difficult to make a minimal example since I don't know how to do
Am 18.12.2010 um 17:52 schrieb Aditya Mahajan:
I am not sure what you want to do, and why you want to use buffers. Wont a
simple token list work?
I can only agree with this, token lists are the easiest solution but the new
cld manuals mentions the “context.tobuffer” function which allows