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:

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

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ú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to