ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Patzer <lists@homerow.info>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: 6-sided letter fold (TRYPTICHON) with unequal page size
Date: Tue, 19 Jun 2018 22:15:31 +0200	[thread overview]
Message-ID: <20180619221531.4102b4a7@homerow> (raw)

Hi,

I try getting a 6-sided letterfold with unequal page size to work.
This is how it's supposed to look like:

  https://www.saxoprint.co.uk/blog/wp-content/uploads/2013/06/roll-fold-leaflets-02-01.png

This is easy with the arranging option TRYPTICHON. *But* the page
sizes are not equal and manually adjusting them shifts them not the
way they're supposed to. Page 4 and 5 need to be a bit less wide to
be able to fold neatly.

  Page width 1,2,3,6: 10cm
  Page width 4,5:      9.7cm

How to adapt for the changed page size without an overlapping page 4
and a page with clearance to the adjacent 6th page? Suggestions
welcome!

Here the example you've all been waiting for:

%% 6-sided letter fold
%% https://www.saxoprint.co.uk/blog/wp-content/uploads/2013/06/roll-fold-leaflets-02-01.png

\definepapersize
  [flyer]
  [width=10cm, height=21cm]

\definepapersize
  [flyer-small]
  [width=9.7cm, height=21cm]

\setuppapersize
  [flyer]
  [A4, landscape]

\setuplayout [page]
\setuparranging [TRYPTICHON]

\starttext
\showframe

10cm:\blank \rightaligned{\blackrule[width=10cm]}\vfill{\tfd\currentpage}

\page
10cm:\blank[5mm] \blackrule[width=10cm]\vfill{\tfd\currentpage}

\page
10cm:\blank[8mm] \blackrule[width=10cm]\vfill{\tfd\currentpage}

\page
%% shifts page to the left, why?
\setuppapersize [flyer-small] [A4, landscape]
9.7cm:\blank[11mm] \rightaligned{\blackrule[width=9.7cm]}\vfill{\tfd\currentpage}

\page
\setuppapersize [flyer-small] [A4, landscape]
9.7cm:\blank[14mm] \blackrule[width=9.7cm]\vfill{\tfd\currentpage}

\page
\setuppapersize [flyer] [A4, landscape]
10cm:\blank[10mm] \blackrule[width=10cm]\vfill{\tfd\currentpage}

\stoptext

Marco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2018-06-19 20:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-19 20:15 Marco Patzer [this message]
2018-06-27 16:35 ` Marco Patzer
2018-06-27 16:42   ` Henning Hraban Ramm
2018-06-27 16:57     ` Marco Patzer
2018-06-27 17:54   ` Wolfgang Schuster
2018-06-27 18:40     ` Pablo Rodriguez
2018-06-27 19:18       ` Wolfgang Schuster
2018-06-28 15:01       ` Marco Patzer

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=20180619221531.4102b4a7@homerow \
    --to=lists@homerow.info \
    --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).