* help needed with special macro
@ 2005-02-17 16:45 Peter Münster
2005-02-17 17:30 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2005-02-17 16:45 UTC (permalink / raw)
Hello,
could someone help me please with the following little macro?
Every line in the table should be different, but all are as the last one.
I've tried a lot with commands like \expanded{} or \expandafter etc, but
without results...
Perhaps the only solution is a temporary file?
\newcount\MyVersion
\def\MyMacro#1{%
\getgparameters[XXX][#1]
\global\advance\MyVersion by 1
\bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR
}
\starttext
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=1.2.2005}
\MyMacro{Date=3.4.2005}
\MyMacro{Date=5.6.2005}
\eTABLE
\stoptext
TIA for any hint!
Cheers, Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help needed with special macro
2005-02-17 16:45 help needed with special macro Peter Münster
@ 2005-02-17 17:30 ` Hans Hagen
2005-02-17 18:22 ` Peter Münster
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-02-17 17:30 UTC (permalink / raw)
Peter Münster wrote:
> Hello,
> could someone help me please with the following little macro?
> Every line in the table should be different, but all are as the last one.
> I've tried a lot with commands like \expanded{} or \expandafter etc, but
> without results...
> Perhaps the only solution is a temporary file?
>
> \newcount\MyVersion
> \def\MyMacro#1{%
> \getgparameters[XXX][#1]
> \global\advance\MyVersion by 1
> \bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR
\expanded{\bTR ... \eTR}
> }
table data is collected and processed four times so you need to freeze the content
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help needed with special macro
2005-02-17 17:30 ` Hans Hagen
@ 2005-02-17 18:22 ` Peter Münster
2005-02-18 9:39 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2005-02-17 18:22 UTC (permalink / raw)
On Thu, 17 Feb 2005, Hans Hagen wrote:
> \expanded{\bTR ... \eTR}
> > }
>
> table data is collected and processed four times so you need to freeze
> the content
This one of the possibilities, that I've tried, but I get this error:
ERROR: Use of \dododecrement doesn't match its definition.
Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help needed with special macro
2005-02-17 18:22 ` Peter Münster
@ 2005-02-18 9:39 ` Hans Hagen
2005-02-18 18:52 ` Peter Münster
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-02-18 9:39 UTC (permalink / raw)
Peter Münster wrote:
> On Thu, 17 Feb 2005, Hans Hagen wrote:
>
>
>> \expanded{\bTR ... \eTR}
>>
>>>}
>>
>>table data is collected and processed four times so you need to freeze
>>the content
can you send me a small sample
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help needed with special macro
2005-02-18 9:39 ` Hans Hagen
@ 2005-02-18 18:52 ` Peter Münster
2005-02-18 23:45 ` looking for a grammar checker in linux/tex/context - or alternative Ciro A. Soto
2005-02-21 12:09 ` help needed with special macro Hans Hagen
0 siblings, 2 replies; 8+ messages in thread
From: Peter Münster @ 2005-02-18 18:52 UTC (permalink / raw)
On Fri, 18 Feb 2005, Hans Hagen wrote:
> Peter Münster wrote:
> > On Thu, 17 Feb 2005, Hans Hagen wrote:
> >
> >> \expanded{\bTR ... \eTR}
> >>
> >>table data is collected and processed four times so you need to freeze
> >>the content
>
> can you send me a small sample
Of course:
\newcount\MyVersion
\def\MyMacro#1{%
\getgparameters[XXX][#1]
\global\advance\MyVersion by 1
\expanded{\bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR}
}
\starttext
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=1.2.2005}
\MyMacro{Date=3.4.2005}
\MyMacro{Date=5.6.2005}
\eTABLE
\stoptext
Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 8+ messages in thread
* looking for a grammar checker in linux/tex/context - or alternative
2005-02-18 18:52 ` Peter Münster
@ 2005-02-18 23:45 ` Ciro A. Soto
2005-02-21 12:09 ` help needed with special macro Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Ciro A. Soto @ 2005-02-18 23:45 UTC (permalink / raw)
Some time ago I asked for a speller in linux.
I found that aspell does a good job. Now I want
one step up: a grammar checker. Since there is
no such thing in linux (AFAIK), then
my question is:
Is there any
way to ask context to output the file in a format
importable by MS Office? (sorry, I don't like this
solution, but if you have one within the realm of
linux/gnu licenses, let me know). May be plain 'text'
format, or rtf? So I can use the grammar in MS.
I listen to any other idea...
thank you
Ciro
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: help needed with special macro
2005-02-18 18:52 ` Peter Münster
2005-02-18 23:45 ` looking for a grammar checker in linux/tex/context - or alternative Ciro A. Soto
@ 2005-02-21 12:09 ` Hans Hagen
2005-02-21 17:25 ` Peter Münster
1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-02-21 12:09 UTC (permalink / raw)
Peter Münster wrote:
> On Fri, 18 Feb 2005, Hans Hagen wrote:
>
>
>>Peter Münster wrote:
>>
>>>On Thu, 17 Feb 2005, Hans Hagen wrote:
>>>
>>>
>>>> \expanded{\bTR ... \eTR}
>>>>
>>>>table data is collected and processed four times so you need to freeze
>>>>the content
>>
>>can you send me a small sample
>
>
> Of course:
>
> \newcount\MyVersion
> \def\MyMacro#1{%
> \getgparameters[XXX][#1]
> \global\advance\MyVersion by 1
> \expanded{\bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR}
> }
> \starttext
> \bTABLE
> \bTR \bTD Version \eTD \bTD Date \eTD \eTR
> \MyMacro{Date=1.2.2005}
> \MyMacro{Date=3.4.2005}
> \MyMacro{Date=5.6.2005}
> \eTABLE
> \stoptext
>
> Peter
>
\def\MyMacro#1{%
\getgparameters[XXX][#1]
\global\advance\MyVersion by 1
\bTR \bTR\expanded{\bTD \the\MyVersion \eTD} \expanded{\bTD \XXXDate \eTD}\eTR
}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-02-21 17:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17 16:45 help needed with special macro Peter Münster
2005-02-17 17:30 ` Hans Hagen
2005-02-17 18:22 ` Peter Münster
2005-02-18 9:39 ` Hans Hagen
2005-02-18 18:52 ` Peter Münster
2005-02-18 23:45 ` looking for a grammar checker in linux/tex/context - or alternative Ciro A. Soto
2005-02-21 12:09 ` help needed with special macro Hans Hagen
2005-02-21 17:25 ` Peter Münster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).