ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: scale A4 pdf with surrounding box
Date: Mon, 22 Jul 2002 21:57:27 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020722214714.02be4dc8@remote-1> (raw)
In-Reply-To: <3D3C5745.5050702@WbMT.TUDelft.NL>

At 09:04 PM 7/22/2002 +0200, Ron van Ostayen wrote:

>Hans Hagen wrote:
>
>>At 04:35 PM 7/22/2002 +0200, you wrote:
>>
>>>Could you please help me to copy a a4-pdf file to a 80% scaled version 
>>>on a4, but with each page surrounded by a box.
>>>
>>>texexec --pdfcopy --scale 0.8 --markings file.pdf
>>>
>>>produces almost what I want, but instead of cutmarks I would like a box 
>>>surrounding the scaled page.
>>>I assume there is something I can change in the produced "texexex.tex" 
>>>file to obtain the desired result?
>>>
>>>Thanks for any help,
>>
>>you can try to add something:
>>\setupbackgrounds[text][frame=on]
>
>
>Thanks Hans,
>
>After some experimenting I got this to work.
>However, I have to use a two-step approach.
>
>
>1) Copy the original pdf file to a pdf file with a frame around the paper.
>         1a) texexec --pdfcopy file.pdf --result _temp_.pdf
>         1b) edit the resulting texexec.tex and add 
> \setupbackgrounds[text][frame=on]
>         1c) texexec texexec.tex --result _temp_.pdf
>
>2) Then scale the temporary pdf file
>         1c) texexec --pdfcopy _temp_.pdf --scale 0.8 --result file_out.pdf
>
>This works ok, but there must be a one-step approach I could use?

-  copy the texexec.tex file to t-myfile.tex

-  replace the filename in there by \jobfilename

-  then run texexec as follows: texexec --use=myfile filename.tex

simple example:

======== u-myfile.tex ==========

\starttext

filename: \jobfilename

% uncomment this line as example : \input \jobfilename

\stoptext

================================

now run : texexec --use=myfile tufte.tex

and see what happens

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-07-22 19:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22 14:35 Ron van Ostayen
2002-07-22 17:22 ` Hans Hagen
2002-07-22 19:04   ` Ron van Ostayen
2002-07-22 19:57     ` Hans Hagen [this message]
2002-07-22 21:24       ` Ron van Ostayen

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=5.1.0.14.1.20020722214714.02be4dc8@remote-1 \
    --to=pragma@wxs.nl \
    --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).