ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \ifcase changes default align in xtables
Date: Tue, 10 Apr 2018 21:05:09 +0200	[thread overview]
Message-ID: <deca6006-4ae1-89f2-ece8-ae4ed5644d7c@gmx.es> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2018-04-10 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 19:05 Pablo Rodriguez [this message]
     [not found] ` <5ACD2823.2060104@gmail.com>
2018-04-11 18:03   ` Pablo Rodriguez

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=deca6006-4ae1-89f2-ece8-ae4ed5644d7c@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).