[tabulate] colored background
Hi all, the background mechanism of tabulations is quite simplistic: it extends only to the first line of a cell irrespective of its length. Example: ······································································· \starttext \starttabulate[|p|r|] \CM [red] \input knuth \NC was said by The Don \NC \AR \stoptabulate \stoptext ······································································· Is there a way to get the whole cell covered? (Textbackgrounds only color the area where text is, not the entire cell.) Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On Fri, 28 Sep 2012, Philipp Gesang wrote:
Hi all,
the background mechanism of tabulations is quite simplistic: it extends only to the first line of a cell irrespective of its length. Example:
······································································· \starttext \starttabulate[|p|r|] \CM [red] \input knuth \NC was said by The Don \NC \AR \stoptabulate \stoptext ·······································································
Is there a way to get the whole cell covered? (Textbackgrounds only color the area where text is, not the entire cell.)
The TABLE macros are more flexible than tabulate. (Untested) \startsetups table:setup \setupTABLE[frame=off] \setupTABLE[r][1][background=color, color=red, width=0.5\hsize] \stopsetups \startTABLE[setups={table:setup}] \NC \input knuth \NC was said by the Don \NC \NR \stopTABLE Aditya
···
On Fri, 28 Sep 2012, Philipp Gesang wrote:
Hi all,
the background mechanism of tabulations is quite simplistic: it extends only to the first line of a cell irrespective of its length. Example:
······································································· \starttext \starttabulate[|p|r|] \CM [red] \input knuth \NC was said by The Don \NC \AR \stoptabulate \stoptext ·······································································
Is there a way to get the whole cell covered? (Textbackgrounds only color the area where text is, not the entire cell.)
The TABLE macros are more flexible than tabulate.
Yes, I know that, but I cannot rule out that I will be needing page breaks inside paragraphs. (Besides, the wiki doesn’t mention this behavior and afair I’m partially responsible for that omission ;-)) Philipp
(Untested)
\startsetups table:setup \setupTABLE[frame=off] \setupTABLE[r][1][background=color, color=red, width=0.5\hsize] \stopsetups
\startTABLE[setups={table:setup}] \NC \input knuth \NC was said by the Don \NC \NR \stopTABLE
Aditya
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (2)
-
Aditya Mahajan
-
Philipp Gesang