ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Issues with linetables
@ 2012-04-10 10:48 Marco
  2012-04-10 17:41 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Marco @ 2012-04-10 10:48 UTC (permalink / raw)
  To: ntg-context

There are some issues with linetables. In the current version:
2012.04.07 14:42 linetables don't compile at all, example:

\starttext
  \setuplinetable [n=2]
  \startlinetable
    \NC \input knuth \NC \input knuth \NC\NR
    \NC \input knuth \NC \input knuth \NC\NR
  \stoplinetable
\stoptext

Given the context version 2011.05.18 18:04 there seems to be a
bug in linetables; the lines are not aligned when the columns are
distributed on several pages and the lines don't fall on the same
page. One-page linetables work fine. Example:

\setuplinetable [n=2]
\starttext

\startbuffer
  \startlinetable
    \NC \input knuth    \NC \input ward \NC\NR
    \NC \bf\input ward  \NC \bf\input knuth  \NC\NR
  \stoplinetable
\stopbuffer

% linetable on one single page
\setuplinetable [c][1] [width=.5\textwidth]
\setuplinetable [c][2] [width=.5\textwidth]
\getbuffer

\page

% linetable streched over two pages
\setuplinetable [c][1] [width=\textwidth]
\setuplinetable [c][2] [width=\textwidth]
\getbuffer

\stoptext

Regards

Marco Patzer


___________________________________________________________________________________
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: Issues with linetables
  2012-04-10 10:48 Issues with linetables Marco
@ 2012-04-10 17:41 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2012-04-10 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco

On 10-4-2012 12:48, Marco wrote:
> There are some issues with linetables. In the current version:
> 2012.04.07 14:42 linetables don't compile at all, example:
>
> \starttext
>    \setuplinetable [n=2]
>    \startlinetable
>      \NC \input knuth \NC \input knuth \NC\NR
>      \NC \input knuth \NC \input knuth \NC\NR
>    \stoplinetable
> \stoptext

the \dostoptatributes can go (a leftover from mkii)

> Given the context version 2011.05.18 18:04 there seems to be a
> bug in linetables; the lines are not aligned when the columns are
> distributed on several pages and the lines don't fall on the same
> page. One-page linetables work fine. Example:
>
> \setuplinetable [n=2]
> \starttext
>
> \startbuffer
>    \startlinetable
>      \NC \input knuth    \NC \input ward \NC\NR
>      \NC \bf\input ward  \NC \bf\input knuth  \NC\NR
>    \stoplinetable
> \stopbuffer
>
> % linetable on one single page
> \setuplinetable [c][1] [width=.5\textwidth]
> \setuplinetable [c][2] [width=.5\textwidth]
> \getbuffer
>
> \page
>
> % linetable streched over two pages
> \setuplinetable [c][1] [width=\textwidth]
> \setuplinetable [c][2] [width=\textwidth]
> \getbuffer
>
> \stoptext

there is no width checking

linetables were written for a specific project and never completed to be 
more multi-purpose

adding some support for the height alignment is not too complex 
(although I would probably write the code from scratch) but is not on 
the agenda for now (maybe when I need it or when I've finished cleaning 
up the other code)

(maybe I will extend xtable with horizontal splitting)

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2012-04-10 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 10:48 Issues with linetables Marco
2012-04-10 17:41 ` Hans Hagen

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