tabulate with lp columns
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
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
Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:
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
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster