ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: \startpagefigure[]\stoppagefigure enlarges page by 1 mm
Date: Mon, 25 Mar 2013 17:35:50 +0100	[thread overview]
Message-ID: <45B687DF-F51B-4471-A58D-8D96F8B415B6@gmail.com> (raw)
In-Reply-To: <op.wuic45ijtpjj8f@lpr>


Am 25.03.2013 um 16:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

> Hello,
> 
> \startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions.

It’s 0.25ex on each side.

> This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298, the printer doesn't (auto)choose A4 but a nearest BIGGER page (8.5 x 13 in page in my case).

The definition of \startpagefigure in page-app.mkiv needs a change because \externalfigureparameter\c!offset uses always the global setting.

% \def\page_figures_start[#1][#2]%
%   {\bgroup
%    \setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]%
%    \startTEXpage[\c!offset=\externalfigureparameter\c!offset]%
%      \externalfigure[#1][\v!page:\v!figure]\ignorespaces} % so we can put some text below the graphic

\def\page_figures_start[#1][#2]%
  {\bgroup
   \def\currentexternalfigure{\v!page:\v!figure}%
   \setupcurrentexternalfigure[\c!offset=\v!overlay,#2]%
   \startTEXpage[\c!offset=\externalfigureparameter\c!offset]%
     \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic

\def\page_figures_start[#1][#2]%
  {\bgroup
   \setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]%
   \startTEXpage[\c!offset=\namedexternalfigureparameter{\v!page:\v!figure}\c!offset]%
     \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic

BTW: You can use \pagefigure[<image>] instead of \startpagefigure[<image>]\stoppagefigure.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2013-03-25 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 15:25 Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-25 16:35 ` Wolfgang Schuster [this message]
2013-03-28 12:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-28 12:42     ` Wolfgang Schuster
2013-03-28 12:57       ` Procházka Lukáš Ing. - Pontex s. r. o.

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=45B687DF-F51B-4471-A58D-8D96F8B415B6@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).