ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Antoine Junod <toto@tots-ns.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: 2NUP, spreading a table on 2 pages
Date: Tue, 20 Jan 2009 16:25:45 +0100	[thread overview]
Message-ID: <87sknevw1y.fsf@zapata.tots-ns.net> (raw)
In-Reply-To: <87hc3uxjp4.fsf@zapata.tots-ns.net> (Antoine Junod's message of "Tue, 20 Jan 2009 13:09:43 +0100")

Antoine Junod <toto@tots-ns.net> writes:

> Hi,
>
> Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:
>
>> Am 20.01.2009 um 09:20 schrieb Antoine Junod:
>>
>>> Hello List,
>>>
>>> I'm trying to design a little booklet on the form two A5 pages on a A4
>>> sheet. It's not hard to do as it is well documented.
>>>
>>> The problem is the following: I would like to add a table (actually a
>>> people list with firstname, lastname, mobile, address and so on and so
>>> on) that is quite wide. The idea is to put it on a double page (ie,
>>> when you open the booklet, the table is on both the left and the right
>>> page).
>>>
>>> The easy way would be to 1) manually cut the table in two tables (a
>>> left one and a right one) that fit on a page and 2) to put them each
>>> on their own page, beeing sure the left one is on a left page. Here,
>>> the difficulty is to align both tables accross the pages.
>>
>>
>> How about linetables?
>>
>> \setuplinetable[nx=2,width=.125\textwidth]
>>
>> \starttext
>>
>> \startlinetable
>> \NC firstname \NC lastname \NC phone       \NC mobile      \NC postal
>> code \NC city    \NC address        \NC\NR
>> \NC John      \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC  12345
>> \NC New TeX \NC Meta street 12 \NC\NR
>> \stoplinetable
>>
>> \stoptext
>
> Excellent, thanks Wolfgang. It exactly matches my needs :)

In fact my reply was a bit fast: in the example below the table is
split on pages 2 and 3. But the lines of the table are not
aligned. I'll dig the sources too see if it's possible to do that. But
if anyone has a solution, I'm interested :)

Thanks for your help,
-AJ

%%%%%%%%%%%%%%%% Page setup
% Use A5 pages on A4 paper
\setuppapersize[A5][A4]

% Arrange the A5 pages such that there are two of them on each A4
% sheet. They are arranged such that they can be send to the printer
% set to print on both pages, flipping on the long edge.
\setuparranging[2UP,rotated,doublesided]

% The layout of the page
\setuplayout[margin=1cm,width=middle,height=middle,topspace=0cm,backspace=1.2cm]

%%%%%%%%%%%%%%%% Colors
% Enable the use of colors for the whole document
\setupcolors[state=start]

%%%%%%%%%%%%%%%% Debug
% Display the layout borders
\showframe

% Display the grid
\showgrid

% Display the current layout setup value
%\showsetups

%%%%%%%%%%%%%%%% Font
% Accept accents by default as input, like é, à and others.
\enableregime[utf]

%%%%%%%%%%%%%%%% Beginning of the document
\starttext

\section{Le mot du président}
\dorecurse{2}{\input tufte \par}

\section{Les comptes}

\section{Les récits}
\subsection{La dora}
\subsection{Mon premier match de polo}
\subsection{La piscine}

\section{List des membres}
% magic
\setuplinetable[nx=2,width=.125\textwidth]
\startlinetable
\NC firstname \NC lastname \NC phone       \NC mobile      \NC postal
code \NC city    \NC address        \NC\NR
\NC John      \NC Jonhsons \NC 0800/987654 \NC 0171/123456 \NC  12345
\NC New TeX \NC Meta street 12 \NC\NR
\stoplinetable

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2009-01-20 15:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20  8:20 Antoine Junod
2009-01-20  9:18 ` Diego Depaoli
2009-01-20 10:10   ` Antoine Junod
2009-01-20 11:25 ` Wolfgang Schuster
2009-01-20 12:09   ` Antoine Junod
2009-01-20 15:25     ` Antoine Junod [this message]
2009-01-20 16:09       ` Wolfgang Schuster
2009-01-21  9:16         ` Antoine Junod
2009-01-21 10:02           ` Wolfgang Schuster

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=87sknevw1y.fsf@zapata.tots-ns.net \
    --to=toto@tots-ns.net \
    --cc=ntg-context@ntg.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).