* Reset a setup directive
@ 2007-07-10 14:10 Saji Njarackalazhikam Hameed
2007-07-11 6:36 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Saji Njarackalazhikam Hameed @ 2007-07-10 14:10 UTC (permalink / raw)
To: ntg-context
Hi Folks,
Is there a way to reset a \setupSomeThing[ ] directive?
Consider for instance a complex setup for TABLES. Imagine
I have used this setup for some parts of the document, but
later on I want to have a radically different setup for TABLES, say.
Is there a convenient way to do this as we can do with \reset[counter].
saji
--
Saji N. Hameed
APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji@apcc21.net
KOREA
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Reset a setup directive
2007-07-10 14:10 Reset a setup directive Saji Njarackalazhikam Hameed
@ 2007-07-11 6:36 ` Wolfgang Schuster
2007-07-11 7:17 ` Saji Njarackalazhikam Hameed
2007-07-11 7:43 ` Aditya Mahajan
0 siblings, 2 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2007-07-11 6:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/7/10, Saji Njarackalazhikam Hameed <saji@apcc21.net>:
> Hi Folks,
>
> Is there a way to reset a \setupSomeThing[ ] directive?
>
> Consider for instance a complex setup for TABLES. Imagine
> I have used this setup for some parts of the document, but
> later on I want to have a radically different setup for TABLES, say.
>
> Is there a convenient way to do this as we can do with \reset[counter].
>
> saji
Hi Saji,
there is currently no command to reset the global TABLE setups
but you set them local for every table:
\start
\setupTABLE[...]
\bTABLE
...
\eTABLE
\stop
or you can define setups with often used setup parameters in the preamble
and use call them in your document for the corresponding table.
\startsetups table:noframe
\setupTABLE[frame=off]
\stopsetups
\startsetups table:colorlines
\setupTABLE[row][odd][background=screen]
\stopsetups
\startsetups table:normal
\setupTABLE[background=,frame=on]
\stopsetups
\setupcolors[state=start]
\starttext
\startbuffer
\bTABLE
\dorecurse{10}
{\bTR
\bTD Text \eTD\bTD Text \eTD
\eTR}
\eTABLE
\stopbuffer
\start
\setups{table:noframe}
\getbuffer
\stop
\start
\setups{table:colorlines}
\getbuffer
\stop
\getbuffer
\stoptext
@Hans: Is it possible to integrate a setups key into \bTABLE to write
something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
and \setups{..} commands as I did in my example above.
Wolfgang
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Reset a setup directive
2007-07-11 6:36 ` Wolfgang Schuster
@ 2007-07-11 7:17 ` Saji Njarackalazhikam Hameed
2007-07-11 7:43 ` Aditya Mahajan
1 sibling, 0 replies; 5+ messages in thread
From: Saji Njarackalazhikam Hameed @ 2007-07-11 7:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Wolfgang,
Thanks very much for the detailed response. I have been organizing a
co-ordinated document development project (more in the next mail)
with my colleagues. We use a wiki to input contents, which I then
scrape with hapricot and filter into a context document. Having
a setup like what you suggested eases up the process.
Thanks again,
saji
...
* Wolfgang Schuster <schuster.wolfgang@googlemail.com> [2007-07-11 08:36:39 +0200]:
> 2007/7/10, Saji Njarackalazhikam Hameed <saji@apcc21.net>:
> > Hi Folks,
> >
> > Is there a way to reset a \setupSomeThing[ ] directive?
> >
> > Consider for instance a complex setup for TABLES. Imagine
> > I have used this setup for some parts of the document, but
> > later on I want to have a radically different setup for TABLES, say.
> >
> > Is there a convenient way to do this as we can do with \reset[counter].
> >
> > saji
>
> Hi Saji,
>
> there is currently no command to reset the global TABLE setups
> but you set them local for every table:
>
> \start
> \setupTABLE[...]
> \bTABLE
> ...
> \eTABLE
> \stop
>
> or you can define setups with often used setup parameters in the preamble
> and use call them in your document for the corresponding table.
>
> \startsetups table:noframe
> \setupTABLE[frame=off]
> \stopsetups
>
> \startsetups table:colorlines
> \setupTABLE[row][odd][background=screen]
> \stopsetups
>
> \startsetups table:normal
> \setupTABLE[background=,frame=on]
> \stopsetups
>
> \setupcolors[state=start]
>
> \starttext
>
> \startbuffer
> \bTABLE
> \dorecurse{10}
> {\bTR
> \bTD Text \eTD\bTD Text \eTD
> \eTR}
> \eTABLE
> \stopbuffer
>
> \start
> \setups{table:noframe}
> \getbuffer
> \stop
>
> \start
> \setups{table:colorlines}
> \getbuffer
> \stop
>
> \getbuffer
>
> \stoptext
>
> @Hans: Is it possible to integrate a setups key into \bTABLE to write
> something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
> and \setups{..} commands as I did in my example above.
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--
Saji N. Hameed
APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji@apcc21.net
KOREA
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Reset a setup directive
2007-07-11 6:36 ` Wolfgang Schuster
2007-07-11 7:17 ` Saji Njarackalazhikam Hameed
@ 2007-07-11 7:43 ` Aditya Mahajan
2007-07-11 11:57 ` Saji Hameed
1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2007-07-11 7:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 11 Jul 2007, Wolfgang Schuster wrote:
> @Hans: Is it possible to integrate a setups key into \bTABLE to write
> something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
> and \setups{..} commands as I did in my example above.
I second this request. In fact, a setups (or setup?) key will be
useful for other commands also. Recently, I had to do something
similar for flowcharts.
Aditya
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Reset a setup directive
2007-07-11 7:43 ` Aditya Mahajan
@ 2007-07-11 11:57 ` Saji Hameed
0 siblings, 0 replies; 5+ messages in thread
From: Saji Hameed @ 2007-07-11 11:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
I think this concept would help keep the styling (setups) away from
the structural markup (section, tables etc). This would be a much
desirable feature.
saji
On Jul 11, 2007, at 4:43 PM, Aditya Mahajan wrote:
> On Wed, 11 Jul 2007, Wolfgang Schuster wrote:
>
>> @Hans: Is it possible to integrate a setups key into \bTABLE to write
>> something like \bTABLE[setups=table:noframe] to avoid the \start/
>> \stop
>> and \setups{..} commands as I did in my example above.
>
> I second this request. In fact, a setups (or setup?) key will be
> useful for other commands also. Recently, I had to do something
> similar for flowcharts.
>
> Aditya
> ______________________________________________________________________
> _____________
> 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
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ______________________________________________________________________
> _____________
___________________________________________________________________________________
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
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-11 11:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-10 14:10 Reset a setup directive Saji Njarackalazhikam Hameed
2007-07-11 6:36 ` Wolfgang Schuster
2007-07-11 7:17 ` Saji Njarackalazhikam Hameed
2007-07-11 7:43 ` Aditya Mahajan
2007-07-11 11:57 ` Saji Hameed
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).