ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Curiouslearn <curiouslearn@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: increase space on the left of pages included using \copypages
Date: Wed, 23 Feb 2011 07:41:11 -0500	[thread overview]
Message-ID: <AANLkTinLL25CXicFtq7Op3O5Dhe9DaN9auWAFW_QWAoo@mail.gmail.com> (raw)
In-Reply-To: <24B131E6-09D9-4EC0-9E37-DD1E96DBFF22@uni-bonn.de>

Hi Thomas,

I am preparing notes for my lectures and I would like to include some
online news articles (such as NY times) that I save as PDF,  in my
notes (these notes are for me). When I save these online articles as
pdf, I often get a small left margin and big right margin (just as in
includethis.pdf; I deliberately made it similar to these news
articles).

I will try to do this using lua loop. I should learn it. I am learning
so many new things currently that I have not had a chance to learn
Lua.

I was wondering if Aditya's filter module could be used to use Python
instead of Lua, but I suppose I should ask that as a new question.

Thanks for your help.

Bharat


On Wed, Feb 23, 2011 at 6:33 AM, Thomas A. Schmitz
<thomas.schmitz@uni-bonn.de> wrote:
> "Curiouslearn" (if you're older than 13 years, I'd appreciate a real name), it's not easy to see what you want to do. The included pages, like the document where you want to include them, are letter size. If you simply include them, they will take the entire width. The small margin left and big margin right are already in you includethis.pdf. If you want more margin left, all you can do is scale the image. Or adjust the papersize of the file you want to include. But if you want to have some special effect (like pushing part of your included image off the page), you'll have to use something like \externalfigure, as Hans suggested. Btw, if you know the number of pages you want to include, it's relatively trivial to write a simple loop, both in mkii (with \dorecurse and \recurselevel) or with a lua loop.
>
> Thomas
>
> On Feb 23, 2011, at 12:11 PM, Curiouslearn wrote:
>
>> Anyone? If it cannot be done, I would appreciate if someone can say that. I
>>
>> Thanks you.
>>
>> On Tue, Feb 22, 2011 at 9:16 AM, Curiouslearn <curiouslearn@gmail.com> wrote:
>>> Can someone please help me with this? I suppose I have not received an
>>> answer because there is no minimal example. I thought it would be
>>> straightforward for someone in the forum without seeing an example.
>>>
>>> Anyhow I have attached a pdf file (includethis.pdf) and a tex file in
>>> which I am trying to include pages from the pdf file. I want to
>>> increase the left side margin on the pages on which included file is
>>> present.
>>>
>>> Thank you in advance.
>>>
>>> On Mon, Feb 21, 2011 at 10:58 AM, Curiouslearn <curiouslearn@gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I am trying to use the \copypages command to include a pdf file,
>>>> say file3pages.pdf with three pages in my context
>>>> document. First, I issued the command:
>>>>
>>>>    \copypages[file3pages.pdf]
>>>>
>>>> The pages from file3pages.pdf are too close to the left
>>>> margin. There is not enough white space on the left whereas,
>>>> there is a lot of space on the right of the included pages. So, I tried
>>>>
>>>>    \hskip 0.5in \copypages[file3pages.pdf]
>>>>
>>>> This creates appropriate space on the left of the included pages,
>>>> but only for the first page of file3pages.pdf. The second and
>>>> third pages of file3pages.pdf are the same as before (too close
>>>> to the left margin).
>>>>
>>>> How can I apply \hskip 0.5in to each of the pages included from the
>>>> file3pages.pdf.
>>>> Can someone please suggest if there is a better way to
>>>> increase the space on the left. Please note that the included
>>>> pages do not respect the margins I have set for the document.
>>>>
>>>> Thanks a lot.
>>>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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:[~2011-02-23 12:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 15:58 Curiouslearn
2011-02-22 14:16 ` Curiouslearn
2011-02-23 11:11   ` Curiouslearn
2011-02-23 11:21     ` Hans Hagen
2011-02-23 11:26       ` Curiouslearn
2011-02-23 11:33     ` Thomas A. Schmitz
2011-02-23 12:41       ` Curiouslearn [this message]
2011-02-23 14:10         ` Thomas A. Schmitz
2011-02-23 14:22           ` luigi scarso
2011-02-23 15:27         ` Aditya Mahajan
2011-02-23 15:33           ` Andreas Harder
2011-02-23 16:01             ` Marco
2011-02-23 15:53           ` Curiouslearn

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=AANLkTinLL25CXicFtq7Op3O5Dhe9DaN9auWAFW_QWAoo@mail.gmail.com \
    --to=curiouslearn@gmail.com \
    --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).