ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Vertical lines for tabulate
@ 2009-02-10 21:18 Wolfgang Schuster
  2009-02-21 16:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Schuster @ 2009-02-10 21:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

there was a question in the german TeX newgroupd how create
a table with borders on all which allows one to split the
content at the end of the page.

Although he used LaTeX I was looking for a ConTeXt solution,
splitting the content is possible with tabulate but vertical
lines are a problem.

A found a solution with textackground but it did only work
for the longest column. I guess I can solve it with twopass
data but does any of you know a simpler solution.

\definetextbackground
   [tableframe]
   [background=,
    location=paragraph,
    leftoffset=.5em]

\starttext

\starttabulate[|j0p(2cm)|i0p|]
\NC \starttableframe knuth \stoptableframe
\NC \starttableframe \input knuth \stoptableframe \NC\NR
\NC \starttableframe tufte \stoptableframe
\NC \starttableframe \input tufte \stoptableframe \NC\NR
\NC \starttableframe ward  \stoptableframe
\NC \starttableframe \input ward  \stoptableframe \NC\NR
\NC \starttableframe zapf  \stoptableframe
\NC \starttableframe \input zapf  \stoptableframe \NC\NR
\NC \starttableframe knuth \stoptableframe
\NC \starttableframe \input knuth \stoptableframe \NC\NR
\NC \starttableframe tufte \stoptableframe
\NC \starttableframe \input tufte \stoptableframe \NC\NR
\NC \starttableframe ward  \stoptableframe
\NC \starttableframe \input ward  \stoptableframe \NC\NR
\NC \starttableframe zapf  \stoptableframe
\NC \starttableframe \input zapf  \stoptableframe \NC\NR
\stoptabulate

\stoptext

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Vertical lines for tabulate
  2009-02-10 21:18 Vertical lines for tabulate Wolfgang Schuster
@ 2009-02-21 16:26 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2009-02-21 16:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Feb 10, 2009 at 10:18 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:

> Hi,
>
> there was a question in the german TeX newgroupd how create
> a table with borders on all which allows one to split the
> content at the end of the page.
>
> Although he used LaTeX I was looking for a ConTeXt solution,
> splitting the content is possible with tabulate but vertical
> lines are a problem.
>
> A found a solution with textackground but it did only work
> for the longest column. I guess I can solve it with twopass
> data but does any of you know a simpler solution.
>
> \definetextbackground
>  [tableframe]
>  [background=,
>   location=paragraph,
>   leftoffset=.5em]
>
> \starttext
>
> \starttabulate[|j0p(2cm)|i0p|]
> \NC \starttableframe knuth \stoptableframe
> \NC \starttableframe \input knuth \stoptableframe \NC\NR
> \NC \starttableframe tufte \stoptableframe
> \NC \starttableframe \input tufte \stoptableframe \NC\NR
> \NC \starttableframe ward  \stoptableframe
> \NC \starttableframe \input ward  \stoptableframe \NC\NR
> \NC \starttableframe zapf  \stoptableframe
> \NC \starttableframe \input zapf  \stoptableframe \NC\NR
> \NC \starttableframe knuth \stoptableframe
> \NC \starttableframe \input knuth \stoptableframe \NC\NR
> \NC \starttableframe tufte \stoptableframe
> \NC \starttableframe \input tufte \stoptableframe \NC\NR
> \NC \starttableframe ward  \stoptableframe
> \NC \starttableframe \input ward  \stoptableframe \NC\NR
> \NC \starttableframe zapf  \stoptableframe
> \NC \starttableframe \input zapf  \stoptableframe \NC\NR
> \stoptabulate
>
> \stoptext
>
> Wolfgang
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-21 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 21:18 Vertical lines for tabulate Wolfgang Schuster
2009-02-21 16:26 ` Wolfgang Schuster

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).