ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: tabulate with lp columns
Date: Sun, 19 Sep 2021 13:27:15 +0200	[thread overview]
Message-ID: <053cc512-c134-cc0a-9bf4-66ecc5472405@gmail.com> (raw)
In-Reply-To: <D0073F00-57B3-4127-8DDE-3545149364E3@fiee.net>

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:
>> Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>:
>>
>> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:
>>> There are some problems in the following MWEs.
>>>
>>> First example looks the same with MkIV and LMTX, second uses \NS that is only in LMTX.
>>>
>>> The first column is justified even if it’s defined as left aligned; this happens also with a simple "l" column. With "p" the width is ignored.
>> You're missing a \NC at the start of each row.
> You’re right; in testing I got an empty column when I started with \NC (and wasn’t sure any more if something changed that I forgot), but I probably missed one line or something.
>
> The problem with \NS remains:
>
> \starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
> \NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
> \HL
> \NC Text processor \NS[3][l] LibreOffice or else \NC\NR
> \NC Drawing        \NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
> \NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
> \stoptabulate

You have to pass the number of additional columns are argument.

\starttext

\starttabulate[|*{4}{lp|}]
\NC Default        \NC Linux \NC MacOS    \NC Windows    \NC\NR
\HL
\NC Text processor \NS[2][p] LibreOffice or else         \NC\NR
\NC Drawing        \NS[1][p]Inkscape      \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano  \NC TextEdit \NC Notepad    \NC\NR
\stoptabulate

\stoptext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-09-19 11:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 10:44 Henning Hraban Ramm via ntg-context
2021-09-19 11:01 ` Wolfgang Schuster via ntg-context
2021-09-19 11:14   ` Henning Hraban Ramm via ntg-context
2021-09-19 11:27     ` Wolfgang Schuster via ntg-context [this message]
2021-09-19 11:36       ` Henning Hraban Ramm via ntg-context

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=053cc512-c134-cc0a-9bf4-66ecc5472405@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).