ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Patzer <lists@homerow.info>
To: ntg-context@ntg.nl
Subject: Re: Creating flyers with ConTeXt
Date: Wed, 26 Sep 2018 09:03:36 +0200	[thread overview]
Message-ID: <20180926090336.250e8d9e@homerow> (raw)
In-Reply-To: <7332e534-ffbb-ef06-2030-3bd3c6da22d6@mailbox.org>

On Tue, 25 Sep 2018 12:57:54 +0200
"Jan U. Hasecke" <juh+ntg-context@mailbox.org> wrote:

> \definemeasure
> 	[bleed]
> 	[3mm]
> 
> I used this value to generalize the A4-flyer dimensions.
> 
> \definepapersize
> 	[A4-flyer]
> 	[width=\dimexpr297mm+2\measured{bleed}\relax,
> 	 height=\dimexpr210mm+2\measured{bleed}\relax]

That looks good. Note that the value 297 needs to be changed if
“shortfold” is changed. Which is unlikely because it's based on an
A4 paper size. Still, keep that in mind.

> But horizontal pageshift is beyond my grasp.
> 
> I can't see how to generalize the values.

I looked into it and this is what I came up with:

\definepageshift
  [flyer]
  [horizontal]
  [\dimexpr\measure{bleed}/2-\measure{shortfold}\relax,
   \dimexpr\measure{bleed}/2\relax,
   \dimexpr\measure{bleed}/2\relax,
   \dimexpr\measure{bleed}/2+2\measured{shortfold}\relax,
   \dimexpr\measure{bleed}/2\relax,
   \dimexpr\measure{bleed}/2-\measure{shortfold}\relax]

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-09-26  7:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-21 13:27 Jan U. Hasecke
2018-09-21 13:48 ` Wolfgang Schuster
2018-09-21 14:03   ` Jan U. Hasecke
2018-09-21 14:11     ` Wolfgang Schuster
2018-09-21 13:49 ` Brian Ballsun-Stanton
2018-09-21 14:56 ` Marco Patzer
2018-09-21 15:13   ` Jan U. Hasecke
2018-09-24 20:25   ` Jan U. Hasecke
2018-09-25  7:56     ` Marco Patzer
2018-09-25 10:57       ` Jan U. Hasecke
2018-09-26  7:03         ` Marco Patzer [this message]
2018-09-26 10:56           ` Jan U. Hasecke
2018-09-26 15:49             ` Jan U. Hasecke
2018-09-27  6:19               ` Jan U. Hasecke

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=20180926090336.250e8d9e@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).