ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* tabulate with lp columns
@ 2021-09-19 10:44 Henning Hraban Ramm via ntg-context
  2021-09-19 11:01 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-19 10:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

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.

With \NS the alignment is also wrong in the same way.


\starttext

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text Proc \NC LibreOffice \NC Apple Pages   \NC MS Office (Word) \NC\NR
PDF Viewer\NC Evince      \NC Preview       \NC Edge \NC\NR
\stoptabulate


\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text processor \NS[3][l] LibreOffice or else \NC\NR
Drawing        \NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


\stoptext


Additional question: How would I define those columns to use the whole \textwidth ?


Hraban
___________________________________________________________________________________
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] 5+ messages in thread

* Re: tabulate with lp columns
  2021-09-19 10:44 tabulate with lp columns 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
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-19 11:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

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.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tabulate with lp columns
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-19 11:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm


> 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


Hraban
___________________________________________________________________________________
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] 5+ messages in thread

* Re: tabulate with lp columns
  2021-09-19 11:14   ` Henning Hraban Ramm via ntg-context
@ 2021-09-19 11:27     ` Wolfgang Schuster via ntg-context
  2021-09-19 11:36       ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-19 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tabulate with lp columns
  2021-09-19 11:27     ` Wolfgang Schuster via ntg-context
@ 2021-09-19 11:36       ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-09-19 11:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm



> Am 19.09.2021 um 13:27 schrieb Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>:
> 
> 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.

Ah, i.e. one less than I was expecting from any other column span syntax...

Thank you!

Hraban
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2021-09-19 11:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 10:44 tabulate with lp columns 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
2021-09-19 11:36       ` Henning Hraban Ramm via ntg-context

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).