From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: professional looking tables
Date: Thu, 22 Dec 2016 20:26:53 +0100 (CET) [thread overview]
Message-ID: <freemail.20161222202653.70386.1@fmxmldata06.freemail.hu> (raw)
In-Reply-To: <13fa69c1-187e-3169-bdc8-2789efbf3ae2@wxs.nl>
Hans Hagen írta:
>On 12/22/2016 4:02 PM, Csikos Bela wrote:
>> Pablo Rodriguez írta:
>>> On 12/18/2016 07:19 PM, Csikos Bela wrote:
>>>> Dear context users:
>>>> [...]
>>>> I see that context offers several table environments. Which one of them
>>>> is suitable for making professional (publication quality) tables?
>>>> [...]
>>>> Is this feasible in current context?
>>>
>>> Dear Csikos,
>>>
>>> http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
>>> friend here.
>>
>> Thank you. I started to learn xtables but I have problems. When I use
>> toffset and boffset the table is not rendered correctly. The width of the
>> columns are not correct, the defined widths are not applied to the columns.
>> See my example code below and the corresponding pdf result, xtables example 1.
>> I use context beta standalone: ConTeXt ver: 2016.10.12 17:26 MKIV beta fmt: 2016.10.13 int: english/english.
>>
>> Code:
>>
>> \starttext
>>
>> xtables example 1
>>
>> \startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
>> \startxrow
>> \startxcell[width=4cm] First Column \stopxcell
>> \startxcell[width=5cm] Second Column \stopxcell
>> \startxcell[width=2cm] Third Column \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. \stopxcell
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. \stopxcell
>> \startxcell Lorem ipsum \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Pellentesque habitant morbi tristique senectus et netus \stopxcell
>> \startxcell Pellentesque habitant morbi tristique senectus et netus \stopxcell
>> \startxcell Pellentesque \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
>> \startxcell Donec \stopxcell
>> \stopxrow
>> \stopxtable
>>
>> \stoptext
>>
>> How can I fix this?
>
>\setupxtable[one] [width=4cm]
>\setupxtable[two] [width=5cm]
>\setupxtable[three][width=2cm]
>
>\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
> \startxrow
> \startxcell[one] First Column \stopxcell
> \startxcell[two] Second Column \stopxcell
> \startxcell[three] Third Column \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one] Lorem ipsum dolor sit amet, consectetur
>adipiscing elit. Curabitur massa turpis, semper quis fringilla ut,
>viverra nec risus. \stopxcell
> \startxcell[two] Lorem ipsum dolor sit amet, consectetur
>adipiscing elit. \stopxcell
> \startxcell[three] Lorem ipsum \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one] Pellentesque habitant morbi tristique
>senectus et netus \stopxcell
> \startxcell[two] Pellentesque habitant morbi tristique
>senectus et netus \stopxcell
> \startxcell[three] Pellentesque \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one] Donec nunc lorem, sollicitudin vel sodales
>eget \stopxcell
> \startxcell[two] Donec nunc lorem, sollicitudin vel sodales
>eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
> \startxcell[three] Donec \stopxcell
> \stopxrow
>\stopxtable
>
OK, this works.
Thank you for the very fast answer!
bcsikos
_________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-12-22 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-18 18:19 Csikos Bela
2016-12-18 21:01 ` Pablo Rodriguez
2016-12-22 15:02 ` Csikos Bela
2016-12-22 15:56 ` Hans Hagen
2016-12-22 19:26 ` Csikos Bela [this message]
2016-12-23 12:36 ` Csikos Bela
2016-12-30 15:28 ` xtables feature request, (professional looking tables) Csikos Bela
2016-12-23 2:53 ` professional looking tables Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=freemail.20161222202653.70386.1@fmxmldata06.freemail.hu \
--to=bcsikos425@freemail.hu \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).