ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: Joel via ntg-context <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: How to create cell data that spans four rows in a table?
Date: Sat, 8 Jan 2022 23:55:40 -0500 (EST)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2201082353400.10944@nqv-guvaxcnq> (raw)
In-Reply-To: <1716703798.1835455.1641677975773@mail.yahoo.com>

On Sat, 8 Jan 2022, Joel via ntg-context wrote:

> I created a table that has some cells span multiple rows. This works good with cells that span an odd-number of rows, but when I try to span 4 rows, the text isn't quite vertically centered. How can I get the cell with the text "Archaeon Eon" to be a little lower, so it is centered within its box?

I would also recommend natural tables. But, for tables, you can use \Lower(dims){....} to improve vertical alignment. For example:

\starttext

\starttable[|c|c|]
\NC {\bf Eons} \NC {\bf Eras} \NC \AR
\HL
\NC Hadeon Eon \VL \NC \AR
\HL
\NC \VL Eoarchean Era \NC \AR
\DC \DL[1] \DR
\NC \Lower(1\lineheight){Archaeon Eon} \VL Paleoarchean Era \NC \AR
\DC \DL[1] \DR
\NC \VL Mesoarchean Era \NC \AR
\DC \DL[1] \DR
\NC \VL Neoarchean Era \NC \AR

\HL\NC \VL Paleoproterozoic Era \NC \AR
\DC \DL[1] \DR
\NC Proterozoic Eon \VL Mesoproterozoic Era \NC \AR
\DC \DL[1] \DR
\NC \VL Neoproterozoic Era \NC \AR
\HL


\HL\NC \VL Paleozoic Era \NC \AR
\DC \DL[1] \DR
\NC Phanerozoic Eon \VL Mesozoic Era \NC \AR
\DC \DL[1] \DR
\NC \VL Cenozoic Era \NC \AR
\HL
\stoptable

\stoptext


Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

      parent reply	other threads:[~2022-01-09  4:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1716703798.1835455.1641677975773.ref@mail.yahoo.com>
2022-01-08 21:39 ` Joel via ntg-context
2022-01-08 22:57   ` Willi Egger via ntg-context
2022-01-09  3:51     ` Joel via ntg-context
2022-01-09 11:38     ` Wolfgang Schuster via ntg-context
2022-01-09  4:55   ` Aditya Mahajan via ntg-context [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=nycvar.YAK.7.78.908.2201082353400.10944@nqv-guvaxcnq \
    --to=ntg-context@ntg.nl \
    --cc=adityam@umich.edu \
    /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).