From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: \ifcase changes default align in xtables
Date: Wed, 11 Apr 2018 20:03:55 +0200 [thread overview]
Message-ID: <d3914709-437e-74fb-e9b8-9d50b0e39191@gmx.es> (raw)
In-Reply-To: <5ACD2823.2060104@gmail.com>
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
___________________________________________________________________________________
prev parent reply other threads:[~2018-04-11 18:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 19:05 Pablo Rodriguez
[not found] ` <5ACD2823.2060104@gmail.com>
2018-04-11 18:03 ` Pablo Rodriguez [this message]
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=d3914709-437e-74fb-e9b8-9d50b0e39191@gmx.es \
--to=oinos@gmx.es \
--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).