* \setupTABLE strangeness @ 2013-10-04 8:57 Peter Münster 2013-10-04 9:03 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Peter Münster @ 2013-10-04 8:57 UTC (permalink / raw) To: ConTeXt users Hi, Is this wanted or a bug? If it's wanted, then why? --8<---------------cut here---------------start------------->8--- \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \section{Workaround} \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \stoptext --8<---------------cut here---------------end--------------->8--- TIA for any explanation, -- Peter ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE strangeness 2013-10-04 8:57 \setupTABLE strangeness Peter Münster @ 2013-10-04 9:03 ` Wolfgang Schuster 2013-10-04 11:31 ` Procházka Lukáš Ing. - Pontex s. r. o. 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2013-10-04 9:03 UTC (permalink / raw) To: mailing list for ConTeXt users Am 04.10.2013 um 10:57 schrieb Peter Münster <pmlists@free.fr>: > Hi, > > Is this wanted or a bug? If it's wanted, then why? > > --8<---------------cut here---------------start------------->8--- > \starttext > \section{Why is the align key not used?} > \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] > \bTABLE > \bTR \bTD bla \eTD \eTR > \eTABLE > > \section{Workaround} > \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] > \bTABLE > \bTR \bTD bla \eTD \eTR > \eTABLE > \stoptext The \bTABLE does set its own values for the align-key which overwrites your settings from \setupTABLE. The arguments in the second argument are processed at a later stage (this happens always when you use row/columns setups) and taken into account when the cells are typeset. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE strangeness 2013-10-04 9:03 ` Wolfgang Schuster @ 2013-10-04 11:31 ` Procházka Lukáš Ing. - Pontex s. r. o. 2013-10-05 9:54 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-10-04 11:31 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1605 bytes --] Hello Peter, two more ways which work OK (my preferred ways): ---- \section{Alt 1} \bTABLE \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE... \bTR \bTD bla \eTD \eTR \eTABLE \section{Alt 2} \bTABLE[width=3cm, height=3cm, align={middle, lohi}] % ... or perform setup in the scope of \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE ---- Best regards, Lukas On Fri, 04 Oct 2013 11:03:38 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > > Am 04.10.2013 um 10:57 schrieb Peter Münster <pmlists@free.fr>: > >> Hi, >> >> Is this wanted or a bug? If it's wanted, then why? >> >> --8<---------------cut here---------------start------------->8--- >> \starttext >> \section{Why is the align key not used?} >> \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] >> \bTABLE >> \bTR \bTD bla \eTD \eTR >> \eTABLE >> >> \section{Workaround} >> \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] >> \bTABLE >> \bTR \bTD bla \eTD \eTR >> \eTABLE >> \stoptext > > The \bTABLE does set its own values for the align-key which overwrites your > settings from \setupTABLE. The arguments in the second argument are > processed at a later stage (this happens always when you use row/columns setups) > and taken into account when the cells are typeset. > > Wolfgang -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 [-- Attachment #2: t2.mkiv --] [-- Type: application/octet-stream, Size: 556 bytes --] \starttext \section{Why is the align key not used?} \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \section{Workaround} \setupTABLE[each][each][width=3cm, height=3cm, align={middle, lohi}] \bTABLE \bTR \bTD bla \eTD \eTR \eTABLE \section{Alt 1} \bTABLE \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTR \bTD bla \eTD \eTR \eTABLE \section{Alt 2} \bTABLE[width=3cm, height=3cm, align={middle, lohi}] \bTR \bTD bla \eTD \eTR \eTABLE \stoptext [-- Attachment #3: t2.pdf --] [-- Type: application/pdf, Size: 9106 bytes --] [-- Attachment #4: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupTABLE strangeness 2013-10-04 11:31 ` Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-10-05 9:54 ` Wolfgang Schuster 0 siblings, 0 replies; 4+ messages in thread From: Wolfgang Schuster @ 2013-10-05 9:54 UTC (permalink / raw) To: mailing list for ConTeXt users Am 04.10.2013 um 13:31 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>: > Hello Peter, > > two more ways which work OK (my preferred ways): > > ---- > \section{Alt 1} > > \bTABLE > \setupTABLE[width=3cm, height=3cm, align={middle, lohi}] % Place setup just after \bTABLE... > \bTR \bTD bla \eTD \eTR > \eTABLE This isn’t good style and you would loose the option to use \setupTABLE[textwidth=<dimenson>]. Better methods are \setupTABLE[start][..,..=..,..] \bTABLE … \eTBALE or \startsetups[table:format] \setupTABLE[..,..=..,..] \stopsetups \bTABLE[setups=table:format] … \eTBALE 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-05 9:54 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-04 8:57 \setupTABLE strangeness Peter Münster 2013-10-04 9:03 ` Wolfgang Schuster 2013-10-04 11:31 ` Procházka Lukáš Ing. - Pontex s. r. o. 2013-10-05 9:54 ` Wolfgang Schuster
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).