[NTG-context] 3 questions about xtables after reading manuals

Andres Conrado Montoya andresconrado at gmail.com
Mon Jan 18 22:24:08 CET 2021

I've been trying out xtables and reading the manual, some things I can't
find how to do (or if it's possible on xtables):

1. How to align whole columns. It seems I have to add [align=middle] to
each cell I want to have centered in a raggedright aligned table. In
tabulate you can use [|l|c|] to do this, is it possible in xtables? Seems
weird if it's not. Or did I miss something?

2. I know how to use [option=stretch] to fill the textwidth, but can I make
specific columns "tight", so they don't get stretched beyond their content?

3. When I use [option=tight] sometimes columns are narrowed so much as to
break a line of 4 or 5 words. MWE:

%\startxtable[align={middle,lohi},option=tight] % This makes the first
column too narrow. Lines are not that long
\startxcell[align=right] \strong{Concepto}\crlf\small{Cifras en miles de
pesos} \stopxcell
\startxcell \strong{Dato} \stopxcell
\startxcell[align=right] Bono \stopxcell
\startxcell Ordinario \stopxcell
\startxcell[align=right] Valor nominal \stopxcell
\startxcell \$100\,000 \stopxcell
\startxcell[align=right] Tasa cupón - periodicidad anual \stopxcell
\startxcell 12,50\,\letterpercent{} \stopxcell
\startxcell[align=right] Cupón \stopxcell
\startxcell \$12\,500 \stopxcell
\startxcell[align=right] Vencimiento en años \stopxcell
\startxcell 5 \stopxcell
\startxcell[align=right] Tasa de negociación (tasa de mercado) \stopxcell
\startxcell 12,50\,\letterpercent{} \stopxcell
\startxcell[align=right] Precio de venta \stopxcell
\startxcell \$100\,000 \stopxcell
\startxcell[align=right] Costos de transacción/ precio de venta \stopxcell
\startxcell 0 \stopxcell
\startxcell[align=right] Fecha de emisión \stopxcell
\startxcell 30-mar-X6 \stopxcell

Can I make this table to be "tight" but only so much as to allow "short
lines" (i.e: lines that don't make the table go wider than textwidth). I
can do it with manual width, but wondering if it's possible.

Thank you .

Andrés Conrado Montoya
Andi Kú
andresconrado at gmail.com
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210118/c5dad06f/attachment-0001.htm>

More information about the ntg-context mailing list