* \ifcase changes default align in xtables @ 2018-04-10 19:05 Pablo Rodriguez [not found] ` <5ACD2823.2060104@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Pablo Rodriguez @ 2018-04-10 19:05 UTC (permalink / raw) To: mailing list for ConTeXt users Dear list, I have the following sample: \setupxtable[mytable] [option={stretch, height}, align={\ifcase\currentxtablerow\fi}] \starttext \startxtable[mytable] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable \startxtable[option={stretch, height}] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable \stoptext For some strange reason, when using \ifcase in align, default is changed from {high, left} to {lohi, center}. Shouldn’t defaults be the same? BTW, if I set align to {\ifodd\currentxtablerow\fi}. I wonder whether this might be a bug. Many thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <5ACD2823.2060104@gmail.com>]
* Re: \ifcase changes default align in xtables [not found] ` <5ACD2823.2060104@gmail.com> @ 2018-04-11 18:03 ` Pablo Rodriguez 0 siblings, 0 replies; 2+ messages in thread From: Pablo Rodriguez @ 2018-04-11 18:03 UTC (permalink / raw) To: ntg-context On 04/10/2018 11:09 PM, Wolfgang Schuster wrote: > In your example the argument for the align key is always empty which results > in the default alignment for a frame which put the content in the middle > of the box. Wolfgang, I understand now that I wasn’t assigning values in the conditional. And this was the same reason why {\ifodd\currentxtablerow\fi} broke the xtable complation. Many thanks for your help, Pablo >> Pablo Rodriguez 10. April 2018 um 21:05 >> Dear list, >> >> I have the following sample: >> >> \setupxtable[mytable] >> [option={stretch, height}, >> align={\ifcase\currentxtablerow\fi}] >> \starttext >> \startxtable[mytable] >> \startxrow >> \startxcell 1 \stopxcell >> \startxcell 2 \stopxcell >> \stopxrow >> \startxrow >> \startxcell 3 \stopxcell >> \startxcell 4 \stopxcell >> \stopxrow >> \stopxtable >> \startxtable[option={stretch, height}] >> \startxrow >> \startxcell 1 \stopxcell >> \startxcell 2 \stopxcell >> \stopxrow >> \startxrow >> \startxcell 3 \stopxcell >> \startxcell 4 \stopxcell >> \stopxrow >> \stopxtable >> \stoptext >> >> For some strange reason, when using \ifcase in align, default is changed >> from {high, left} to {lohi, center}. Shouldn’t defaults be the same? >> >> BTW, if I set align to {\ifodd\currentxtablerow\fi}. I wonder whether >> this might be a bug. >> >> Many thanks for your help, >> >> Pablo > > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > -- http://www.ousia.tk ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-11 18:03 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-04-10 19:05 \ifcase changes default align in xtables Pablo Rodriguez [not found] ` <5ACD2823.2060104@gmail.com> 2018-04-11 18:03 ` Pablo Rodriguez
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).