From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Reset a setup directive
Date: Wed, 11 Jul 2007 08:36:39 +0200 [thread overview]
Message-ID: <115224fb0707102336t75a9e61ct26cbb599820c23c8@mail.gmail.com> (raw)
In-Reply-To: <20070710141050.GA7861@apcc21.net>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-07-11 6:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 14:10 Saji Njarackalazhikam Hameed
2007-07-11 6:36 ` Wolfgang Schuster [this message]
2007-07-11 7:17 ` Saji Njarackalazhikam Hameed
2007-07-11 7:43 ` Aditya Mahajan
2007-07-11 11:57 ` Saji Hameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=115224fb0707102336t75a9e61ct26cbb599820c23c8@mail.gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).