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
2007/7/10, Saji Njarackalazhikam Hameed
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
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
2007/7/10, Saji Njarackalazhikam Hameed
: 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
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
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 ______________________________________________________________________ _____________
participants (4)
-
Aditya Mahajan
-
Saji Hameed
-
Saji Njarackalazhikam Hameed
-
Wolfgang Schuster