[NTG-context] Setting tabulate table width with \textwidth inside an item group

Clyde Johnston context at couthies.com
Wed Feb 27 22:49:57 CET 2019


Dear List:

 

I have a tabulate table inside an indented item group and I would like to
set the width of the table to the \hbox size of the surrounding text.  If I
use \textwidth as a width parameter, the table spills into the right margin
(see attached).

 

What is the correct parameter to use to set the width of the table to the
width of the text in the item group?

 

MWE

 

\starttext

\showframe

\startitemize[n,3*broad]

    \startitem{%

        \input ward

        \starttabulate[|cp(.25\textwidth)|cp(.75\textwidth)|]

            \HL

            \NC Column A \NC Column B \NC \NR

            \HL

            \NC 1 \NC 2 \NC \NR

            \NC 2 \NC 3 \NC \NR

            \NC 3 \NC 4 \NC \NR

            \NC 4 \NC 5 \NC \NR

            \NC 5 \NC 6 \NC \NR

            \BL

        \stoptabulate

        \input ward

        }

    \stopitem

\stopitemize

\stoptext

 

Thanks,

Clyde

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190227/17fd93bb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwe.pdf
Type: application/pdf
Size: 10371 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190227/17fd93bb/attachment-0001.pdf>


More information about the ntg-context mailing list