A person has asked for a solution to this problem: print a dual magazine where the first half is a regular magazine, but the second half is a magazine with the pages upside down with respect to the first half. In other words the back cover is really the front cover of the second magazine. I assume that the page counts of each magazine are equal. I know that Context has an extensive imposition capability but I don't think this particular problem has been addressed. -- John Culleton "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html
Hi John, I do not have the complete answer to your question. The problem lies in the fact that one should have the second document in a rotated form. Once you have one document upright and the second rotated, you could use the mechanisms described in page-imp.mkII/mkiv to create a single document from the two base-documents. Once the two documents are combined into one you could invoke arranging. You can do things like: \definepapersize [offset=15pt] \setuppapersize [A5,landscape][A4,portrait] \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \setuppagenumbering[location=,alternative=doublesided] \setuparranging[2DOWN] \starttext % \copypages % [the-review.pdf] % [scale=1000, % offset=0pt] % \filterpages % [the-review.pdf][1:16][width=0pt] \insertpages[the-review.pdf][width=0pt] \stoptext On Feb 18, 2010, at 12:41 AM, John Culleton wrote:
A person has asked for a solution to this problem: print a dual magazine where the first half is a regular magazine, but the second half is a magazine with the pages upside down with respect to the first half. In other words the back cover is really the front cover of the second magazine. I assume that the page counts of each magazine are equal.
I know that Context has an extensive imposition capability but I don't think this particular problem has been addressed. -- John Culleton "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
On 18-2-2010 10:29, Willi Egger wrote:
Hi John,
I do not have the complete answer to your question. The problem lies in the fact that one should have the second document in a rotated form. Once you have one document upright and the second rotated, you could use the mechanisms described in page-imp.mkII/mkiv to create a single document from the two base-documents. Once the two documents are combined into one you could invoke arranging.
You can do things like:
\definepapersize [offset=15pt] \setuppapersize [A5,landscape][A4,portrait] \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt]
\setuppagenumbering[location=,alternative=doublesided] \setuparranging[2DOWN] \starttext % \copypages % [the-review.pdf] % [scale=1000, % offset=0pt] % \filterpages % [the-review.pdf][1:16][width=0pt] \insertpages[the-review.pdf][width=0pt] \stoptext
I wonder how this imposes \starttext \setuppapersize[A4] \dorecurse{10}{test\page} \setuppapersize[A4,rotated,180] \dorecurse{10}{test\page} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
So, that is a short cut! I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf? Kind regards Willi On Feb 18, 2010, at 1:19 PM, Hans Hagen wrote:
On 18-2-2010 10:29, Willi Egger wrote:
Hi John,
I do not have the complete answer to your question. The problem lies in the fact that one should have the second document in a rotated form. Once you have one document upright and the second rotated, you could use the mechanisms described in page-imp.mkII/mkiv to create a single document from the two base-documents. Once the two documents are combined into one you could invoke arranging.
You can do things like:
\definepapersize [offset=15pt] \setuppapersize [A5,landscape][A4,portrait] \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt]
\setuppagenumbering[location=,alternative=doublesided] \setuparranging[2DOWN] \starttext % \copypages % [the-review.pdf] % [scale=1000, % offset=0pt] % \filterpages % [the-review.pdf][1:16][width=0pt] \insertpages[the-review.pdf][width=0pt] \stoptext
I wonder how this imposes
\starttext \setuppapersize[A4] \dorecurse{10}{test\page} \setuppapersize[A4,rotated,180] \dorecurse{10}{test\page} \stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ______________________________________________________________________ _____________
On 18-2-2010 14:35, Willi Egger wrote:
So, that is a short cut!
I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf?
externalfigure has no rotation key, and this does not work out well \defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}] \framed{\externalfigure[cow.pdf][background=realdirty]} (no time now) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 18.02.10 14:46, schrieb Hans Hagen:
On 18-2-2010 14:35, Willi Egger wrote:
So, that is a short cut!
I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf?
externalfigure has no rotation key, and this does not work out well
\defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}]
\framed{\externalfigure[cow.pdf][background=realdirty]} \externalfigure[cow][orientation=180]
Wolfgang
On Thursday 18 February 2010 14:35:00 Willi Egger wrote:
So, that is a short cut!
I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf?
Kind regards
Willi
pdftk is a pretty powerful tool: http://www.accesspdf.com/pdftk/ Alan
On Thu, Feb 18, 2010 at 2:35 PM, Willi Egger
So, that is a short cut!
I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf?
like a rolling stone ? %%test-willy \starttext \dorecurse{5}{\startTEXpage\framed[width=10cm,align=right]{\ss \input knuth\relax}\stopTEXpage} \stoptext \starttext \startTEXpage \dorecurse{5}{% \rotate[rotation=\numexpr 72 * (\recurselevel-1)\relax]{\externalfigure[test-willy][page=\recurselevel]}% } \stopTEXpage \stoptext -- luigi
Great, nicely packed in a joke! - This has not come to my mind as a solution and I am sure that I will need this idea later on! Thanks! Willi On Feb 18, 2010, at 4:52 PM, luigi scarso wrote:
On Thu, Feb 18, 2010 at 2:35 PM, Willi Egger
wrote: So, that is a short cut!
I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf?
like a rolling stone ?
%%test-willy \starttext \dorecurse{5}{\startTEXpage\framed[width=10cm,align=right]{\ss \input knuth\relax}\stopTEXpage} \stoptext
\starttext \startTEXpage \dorecurse{5}{% \rotate[rotation=\numexpr 72 * (\recurselevel-1)\relax]{\externalfigure[test-willy][page= \recurselevel]}% } \stopTEXpage \stoptext
-- luigi ______________________________________________________________________ _____________ 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 ______________________________________________________________________ _____________
On Wed, 17 Feb 2010, John Culleton wrote:
A person has asked for a solution to this problem: print a dual magazine where the first half is a regular magazine, but the second half is a magazine with the pages upside down with respect to the first half. In other words the back cover is really the front cover of the second magazine. I assume that the page counts of each magazine are equal.
I know that Context has an extensive imposition capability but I don't think this particular problem has been addressed.
No imposition, but I have added a reverse feature in a module that I am working on. http://github.com/adityam/cut-n-paste \usemodule[cut-n-paste] \starttext \processcutNpaste[name={file1}] \processcutNpaste[name={file2},rotation=180, alternative=reverse] \stoptext Due to a bug in \getfigureddimensions in MkIV, this only works correctly in MkII. To use MkIV, you have to add \setupcutNpaste[width=..., height=...] Aditya
participants (7)
-
Aditya Mahajan
-
Alan BRASLAU
-
Hans Hagen
-
John Culleton
-
luigi scarso
-
Willi Egger
-
Wolfgang Schuster