From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Specifying last page when using imposition
Date: Mon, 2 Jun 2008 11:59:12 +0200 [thread overview]
Message-ID: <115224fb0806020259r5dadc6dy735115e63f7bb762@mail.gmail.com> (raw)
In-Reply-To: <87y75o89kr.fsf@cordelia.devereux.me.uk>
On Mon, Jun 2, 2008 at 11:33 AM, John Devereux
<jdREMOVE@thisdevereux.me.uk> wrote:
> "Wolfgang Schuster" <schuster.wolfgang@googlemail.com> writes:
>
>> Hi John,
>>
>>>> Wolfgang, thanks - but this does not seem to fix the problem. The
>>>> "last page" appears opposite page 3 instead of opposite page 1.
>>>>
>>>> To be clear, I am looking for a way to specify that content is to be
>>>> placed on the outside of the cover, i.e. printed on the same side of
>>>> the same sheet as page 1, when "arranged".
>>
>> Could you try the following page brake method.
>>
>> \unprotect
>>
>> \installpagebreakhandler {newquadruple}%
>> {\ifdoublesided
>> \!!counta\realpageno
>> \!!countb\realpageno
>> \advance\!!counta 4
>> \divide\!!counta 4
>> \multiply\!!counta 4
>> \advance\!!countb 1
>> \advance\!!counta-\!!countb
>> \executepagebreakhandler\v!yes
>> \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
>> \fi}
>>
>> \protect
>>
>>>> \setuppapersize[A5][A4]
>>>> \setuparranging[2UP,rotated,doublesided]
>>>> \setuppagenumbering[alternative=doublesided]
>>>>
>>>> \setuplayout[margin=0pt,width=fit]
>>>> \setupbodyfont[16pt]
>>>>
>>>> \starttext
>>>>
>>>> \dorecurse{11}{\input tufte \par \input knuth \par}
>>>>
>>>> \page[8]
>>>
>>> \page[8] is useless in this example because you're already beyound
>>> the eight page and the argument is useless in this case.
>>>
>>> \page[quadruple]
>>
>> \page[newquadruple]
>
> Well, this worked, thank you!
>
> I can safely say I would not have found that on my own...
>
> Could I trouble you for a version to take me to the page *before*,
> i.e. the inside back cover? I now realise I may need to put content
> there too, and if not I can just do another \page to get to the
> outside back cover.
\unprotect
\installpagebreakhandler {beforequadruple}%
{\ifdoublesided
\!!counta\realpageno
\!!countb\realpageno
\advance\!!counta 5
\divide\!!counta 4
\multiply\!!counta 4
\advance\!!countb 2
\advance\!!counta-\!!countb
\executepagebreakhandler\v!yes
\dorecurse\!!counta{\executepagebreakhandler\v!empty}%
\fi}
\protect
\setuppagenumbering[alternative=doublesided]
\starttext
\showframe
\subject Front Cover
\dorecurse{10}{\input tufte \par}
%\dorecurse{8}{\input tufte \par}
\page[beforequadruple]
Imprint
\page
Back Cover
\stoptext
>>>> texexec --arrange --paperformat=a5a4 --printformat=up test2.tex
>>>
>>> texexec test2
>>>
>>> you need --arrange only for documents with a table of content, indices ...
>
> OK, but my real document *will* have these - this was just a minimal
> example. Originally I wanted to put the arrangment commands outside
> the document, but I then put them inside too in case it helped.
You could use modes for a imposed and a normal document.
\startmode[fold]
\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\stopmode
\startnotmode[fold]
\setuppapersize[A5][A5]
\stopnotmode
and process it with
texexec --arrange --mode=fold mydocument
and
texexec mydocument
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
___________________________________________________________________________________
prev parent reply other threads:[~2008-06-02 9:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-02 23:36 standardmakeup, frontmatter, bodymatter & page numbering Mojca Miklavec
2007-10-03 10:54 ` Peter Rolf
2007-10-03 17:33 ` Mojca Miklavec
2007-10-03 18:51 ` Peter Rolf
2007-11-29 19:14 ` Wolfgang Schuster
2007-12-07 16:29 ` Mojca Miklavec
2007-12-08 12:09 ` Wolfgang Schuster
2008-06-01 18:25 ` Specifying last page when using imposition John Devereux
2008-06-02 6:06 ` Wolfgang Schuster
2008-06-02 8:11 ` John Devereux
2008-06-02 8:22 ` Wolfgang Schuster
2008-06-02 8:44 ` Wolfgang Schuster
2008-06-02 9:33 ` John Devereux
2008-06-02 9:59 ` Wolfgang Schuster [this message]
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=115224fb0806020259r5dadc6dy735115e63f7bb762@mail.gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).