From: "Procházka Lukáš" <lpr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Scaling with \filterpages not working?
Date: Sat, 20 Nov 2010 13:37:26 +0100 [thread overview]
Message-ID: <op.vmgyoom78lgizc@lk-2008-nbk> (raw)
In-Reply-To: <4CE6E1A0.2090105@wxs.nl>
[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]
Thanks all for the answers.
The solution by both Peters works well:
---
\starttext
\filterpages[1.pdf][1:2]
\page
\setuplayout[page]
\filterpages[1.pdf][1:2]
\setuplayout[reset]
\page
\stoptext
---
To Hans:
I really needed to filter out some pages.
(In this case, I wanted to use pages 1-2 from a pdf which has exactly 2 pages, but it won't happen in general - this was only a special sample case.)
My task IN GENERAL is - let's have a pdf of a scanned document. Let it have e.g. 20 pages. And I need to insert pages 1-10 at one place and 16-20 at another place (scanned pages 11-15 won't be used).
These pages are to be placed UNSCALED to the document. So:
- I can't use \externalfigure as it places just ONE specific page to the document.
- I can't use \insertpages as I can determine only the NUMBER of pages to include, but not the FIRST page (see the "n=..." option).
- I can't use \copypages for the same reason as \insertpages.
- So the one possibility is to use \filterpages as it offers possibility to select exact pages or their ranges.
The initial problem was that \filterpages scales inserted pages to \textwidth so I tried to play with the "width" option. And the "width" option works - how exactly? (See the previous trials.)
Best regards,
Lukas
On Fri, 19 Nov 2010 21:44:16 +0100, Hans Hagen <pragma@wxs.nl> wrote:
> On 18-11-2010 2:12, Peter Rolf wrote:
>> Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
>>> Hello,
>>>
>>> I'm trying similar code as described on
>>> http://wiki.contextgarden.net/Including_pages_from_PDF_document:
>>>
>>> ---
>>> \starttext
>>> \filterpages[1.pdf][2][width=15cm]
>>> \page
>>> \filterpages[1.pdf][2][width=5cm]
>>> \stoptext
>>> ---
>
> commands like \filterpages are for special purposes (and will probably
> move to modules), you probably want:
>
> \starttext
> \externalfigure[1.pdf][page=2,width=15cm]
> \page
> \externalfigure[1.pdf][page=2,width=5cm]
> \stoptext
[-- Attachment #2: 1.pdf --]
[-- Type: application/pdf, Size: 10965 bytes --]
[-- Attachment #3: IncSc3.mkiv --]
[-- Type: application/octet-stream, Size: 148 bytes --]
%\showframe
\starttext
\filterpages[1.pdf][1:2]
\page
\setuplayout[page]
\filterpages[1.pdf][1:2]
\setuplayout[reset]
\page
\stoptext
[-- Attachment #4: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-11-20 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 9:53 Procházka Lukáš Ing. - Pontex s. r. o.
2010-11-18 13:12 ` Peter Rolf
2010-11-18 13:39 ` Peter Münster
2010-11-18 14:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
2010-11-19 20:44 ` Hans Hagen
2010-11-20 12:37 ` Procházka Lukáš [this message]
2010-11-20 13:29 ` Hans Hagen
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=op.vmgyoom78lgizc@lk-2008-nbk \
--to=lpr@pontex.cz \
--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).