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. Another way would be to ask context to do that by himself. Is there a way to do that? Thanks for your reply, -AJ
On Tue, Jan 20, 2009 at 9:20 AM, 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.
Another way would be to ask context to do that by himself. Is there a way to do that? look here http://archive.contextgarden.net/message/20080623.074757.6c4176a1.en.html Hope that helps
-- Diego Depaoli
Hi,
"Diego Depaoli"
On Tue, Jan 20, 2009 at 9:20 AM, Antoine Junod
wrote: 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.
Another way would be to ask context to do that by himself. Is there a way to do that?
look here http://archive.contextgarden.net/message/20080623.074757.6c4176a1.en.html Hope that helps
Thanks Diego, it seems to do exactly what I need :) A+ -AJ
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 Wolfgang
Hi,
Wolfgang Schuster
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 :) All the best, -AJ
Antoine Junod
Hi,
Wolfgang Schuster
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
Am 20.01.2009 um 16:25 schrieb Antoine Junod:
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 :)
You can solve it with twopassdata and a few wrapper macros to hide the underlying macros in your document. Take a look in my example how this can be done. You need the "arrange" key for texexec to let it work in imposition mode. Wolfgang
Hi Wolfgang,
Wolfgang Schuster
Am 20.01.2009 um 16:25 schrieb Antoine Junod:
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 :)
You can solve it with twopassdata and a few wrapper macros to hide the underlying macros in your document. Take a look in my example how this can be done.
You need the "arrange" key for texexec to let it work in imposition mode.
That is a lot of things I haven't heard about :) But thanks, it's doing the job in a perfect way. Would it be constructive to put that in the wiki or is it just a hack that won't be needed anymore with a future release? If it's not a temporary hack, tell me and I'll edit the wiki. Thanks, -AJ
On Wed, Jan 21, 2009 at 10:16 AM, Antoine Junod
You can solve it with twopassdata and a few wrapper macros to hide the underlying macros in your document. Take a look in my example how this can be done.
That is a lot of things I haven't heard about :) But thanks, it's doing the job in a perfect way.
Would it be constructive to put that in the wiki or is it just a hack that won't be needed anymore with a future release? If it's not a temporary hack, tell me and I'll edit the wiki.
I use this method myself in a document in it's harmless if you know what you do und what are the limitations e.g. the header above the table should be longer than one line and you need a page break before the first savetopassdata command and one after the second. Wolfgang
participants (3)
-
Antoine Junod
-
Diego Depaoli
-
Wolfgang Schuster