[NTG-context] two issues with xtables

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Feb 16 20:22:14 CET 2016


> Pablo Rodriguez <mailto:oinos at gmx.es>
> 16. Februar 2016 um 20:11
> Dear list,
>
> I have the following table:
>
> \starttext
> \startalign[center]
> \startxtable[location=middle, frame=off, bottomframe=on,
> topframe=on, rulethickness=2em,
> %~ before={\startalign[center]}, after={\stopalign}
> ]
> \startxrow
> \startxcell test \stopxcell
> \stopxrow
> \stopxtable
> \stopalign
> \stoptext
>
> Well, I thought location would center the table. Before and after (with
> \startalign) crash compilation. Aligning the whole table doesn’t seem to
> make any difference. Sorry, but how can I center the table and not its
> contents?
Use

\startlinealignment[middle]
    \startxtable
     ...
     \stopxtable
\stoplinealignment

or

\startplacetable[location={force,none}]
    \startxtable
     ...
     \stopxtable
\stopplacetable
> The second issue is about rulethickness: would it be possible to specify
> different dimensions for each frame (top, bottom, left, right)?
Disable the normal frame and use a metapost background with
different values for all borders.

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160216/1eb1e396/attachment.html>


More information about the ntg-context mailing list