ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mirrored pages
Date: Thu, 19 Apr 2007 11:11:35 +0300 (EEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0704191046190.9859@lagavulin.sappho.net> (raw)
In-Reply-To: <BAY121-F9C8F76B115EE7CE3EA69CB4500@phx.gbl>



On Wed, 18 Apr 2007, Horacio Suarez wrote:
> Is there a way to obtain a mirrored pdf?

Mirrored in what way? (I use Acrobat when necessary, but I'm not familiar 
with the plug-ins, which is why I have to ask...)


Do you mean mirror margins, i.e. inside and outside margins instead of 
left and right? For double-sided printing? Are you doing your pdf from 
ConTeXt source or do you just want to rearrange an existing pdf for mirror 
margin layout?

Mirror margins can be done in ConTeXt code. This wiki page gives the first 
hint on margins: http://wiki.contextgarden.net/Layout
Note that you always layout the 'odd' page, i.e the right-hand page and 
then define a double-sided layout (nb. even though the command 
\showlayout will give you several pages of layout, it will *only* show 
the right-hand layout - look at the text itself to make sure you got the 
mirror margins right).


I frankly don't know if my solution is the most elegant one, but this 
works for me:

\setuplayout
      [footer=1cm,
      backspace=5.5cm, %inside margin
      width=12cm] %textwidth, leaves 3.5cm for outside margin on A4

\setuppagenumbering
 	[alternative=doublesided, %this is where doublesided comes in
 	location={header,margin}] %pagenumber location

If you use the above page number location, the page number is placed just 
outside of outer margin in the header and you can see very easily if 
mirroring is in place.


I'm not sure if rearranging existing pdf works A4->A4, but if you need to 
do a book layout or leaflet or something similar, "imposition" is the term 
you want and pdfarrange can be the answer, see 
http://wiki.contextgarden.net/Imposition for more information and tips.



The other meaning for 'mirrored':
Do you, for some reason, really want to mirror a page like a mirror 
would reflect it, i.e. text backwards etc? Like for printing on t-shirt 
transfer?

I don't know if this can be done... I'd assume ConTeXt or texexec knows 
how to do it, I just haven't needed to find out (yet). :-)



Hope this helps,

Mari
(who found out about mirrored margins with the trial-and-error method 
before the wiki existed...)

  reply	other threads:[~2007-04-19  8:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12  5:37 Interesting interview Thomas A. Schmitz
2007-04-13  6:29 ` Maurice Diamantini
2007-04-13  7:20   ` Aditya Mahajan
2007-04-13  8:00     ` Jelle Huisman
2007-04-13 10:40       ` The ConTeXt Companion (was: Interesting interview) Ulf Martin
2007-04-14  8:58         ` The ConTeXt Companion Patrick Gundlach
2007-04-14 15:25           ` Ulf Martin
2007-04-14 15:40             ` Andrea Valle
2007-04-14 20:40             ` Hans Hagen
2007-04-18 20:41               ` mirrored pages Horacio Suarez
2007-04-19  8:11                 ` Mari Voipio [this message]
2007-04-19  9:51                   ` luigi scarso
2007-04-19  9:24                 ` Hans Hagen
2007-04-19 17:39                   ` Horacio Suarez
2007-04-19 18:40                     ` Wolfgang Schuster
2007-04-19 19:28                       ` Horacio Suarez
2007-04-19 20:27                     ` Hans Hagen
2007-04-19 20:47                       ` Horacio Suarez
2007-04-14 17:01           ` The ConTeXt Companion Idris Samawi Hamid
2007-04-14 20:36             ` Hans Hagen
2007-04-14 20:58               ` luigi scarso
2007-04-25 23:34             ` Martin Schröder
2007-04-26 10:40               ` Johannes Graumann
2007-04-13  8:16   ` Interesting interview luigi scarso

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=Pine.LNX.4.64.0704191046190.9859@lagavulin.sappho.net \
    --to=mari.voipio@iki.fi \
    --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).