* [NTG] How to split a cell of a table by a diagonal line? by using natural table.
@ 2011-04-11 12:00 seasoul
2011-04-12 6:45 ` Mojca Miklavec
0 siblings, 1 reply; 2+ messages in thread
From: seasoul @ 2011-04-11 12:00 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 250 bytes --]
a ----------------------------
|
|
--------- -b------------------
as the illustration, by using natural table, how to split the cell by a
diagonal line from a to b, and have texts in the resulted splited triangular
cells?
[-- Attachment #1.2: Type: text/html, Size: 275 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [NTG] How to split a cell of a table by a diagonal line? by using natural table.
2011-04-11 12:00 [NTG] How to split a cell of a table by a diagonal line? by using natural table seasoul
@ 2011-04-12 6:45 ` Mojca Miklavec
0 siblings, 0 replies; 2+ messages in thread
From: Mojca Miklavec @ 2011-04-12 6:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Apr 11, 2011 at 14:00, seasoul wrote:
> a ----------------------------
> |
> |
> --------- -b------------------
>
>
> as the illustration, by using natural table, how to split the cell by a
> diagonal line from a to b, and have texts in the resulted splited triangular
> cells?
I once used some cheating:
\startuseMPgraphic{LineBack}
draw (\overlaywidth,0)--(0,\overlayheight);
\stopuseMPgraphic
\defineoverlay[LineBack][\useMPgraphic{LineBack}]
followed by
\setupTABLE[c][1][width=2.6cm]
\setupTABLE[1][1][background=LineBack,align={flushleft,low}]
\bTABLE
\bTR
\bTD \hbox to 2.5cm{{\setbox0=\hbox{first}\wd0=0pt\box0}\hfill
\raise1.1\bodyfontsize\hbox{second}} \eTD
% ...
\eTR
\eTABLE
This is ugly and doesn't scale well (you need to adjust the
parameters), but it was the only possibility I was able to come up
with quickly.
Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-12 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-11 12:00 [NTG] How to split a cell of a table by a diagonal line? by using natural table seasoul
2011-04-12 6:45 ` Mojca Miklavec
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).