ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Johan Sandblom" <jsandblom@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setuppapersize and \startMPpage
Date: Thu, 11 May 2006 09:11:14 +0200	[thread overview]
Message-ID: <97a06f070605110011r7fe3c358t3b08ff716465f0@mail.gmail.com> (raw)
In-Reply-To: <Pine.WNT.4.63.0605101931070.2728@nqvgln>

2006/5/11, Aditya Mahajan <adityam@umich.edu>:
> On Wed, 10 May 2006, Johan Sandblom wrote:
>
> > Thank you, this almost works, but the title graphic (of thesis size)
> > is not centered on the A4 paper, but in the lower right corner. How
> > can I make it go to the right place?
> >
> > \definepapersize[thesis][width=169mm, height=239mm]
> > \setuppapersize[thesis][A4]
> > \starttext
> > \startMPgraphic
> > % Some metafun
> > \stopMPgraphic
> > \loadcurrentMPgraphic{possibly something should go here?}
> > \placeMPgraphic
> > % Some text
> > \stoptext
>
>
> Untested, but how about
>
> \loadcurrentMPgraphic %{width=\textwidth}
> %Try with and without textwidth
> \placefigure
>   [here]
>   {none}
>   {\placeMPgraphic}
>

Yes, I tried that; with no arguments to \loadcurrentMPgraphic the
thesis page is placed on the bottom of the A4 and not quite in the
middle (?). with width=\textwidth or \makeupwidth the result is the
same.

>
> Aditya
>
> PS: In future, also copy to the list, others may have better idea on
> how to do this.
>

Yes, I had intended to, and thought I did, but apparently I am more
trigger happy than I allow for ...

Thank you for your help, Johan


>
>
>
>
>
> >
> > Regards, Johan
> >
> > 2006/5/9, Aditya Mahajan <adityam@umich.edu>:
> >> On Tue, 9 May 2006, Johan Sandblom wrote:
> >>
> >> > Dear expertise,
> >> >
> >> > I have the following:
> >> >
> >> > \definepapersize[thesis][width=169mm, height=239mm]
> >> > \setuppapersize[thesis][A4]
> >> > \setuplayout
> >> > [location=middle, marking=on]
> >> > \setuppagenumbering
> >> > [alternative=doublesided, location=marginedge, state=stop]
> >> >
> >> > \starttext
> >> >
> >> > % Title page
> >> > \startMPpage
> >> > % Some metafun
> >> > \stopMPpage
> >> >
> >> > % Some text
> >> > \stoptext
> >> >
> >> > The resulting pdf has a smaller first page (thesis size) while the
> >> > rest are A4 with the thesis pages place centrally. I would like to see
> >> > the title page placed on an A4 sheet as well. What am I doing wrong?
> >>
> >> MPpage creates a page with dimensions equal to the bounding box of the
> >> graphic. If you want to center a MP figure on your title page, use
> >> \startMPgraphic
> >>
> >> Aditya
> >>
> >> --
> >> Aditya Mahajan, EECS Systems, University of Michigan
> >> http://www.eecs.umich.edu/~adityam || Ph: 7342624008
> >>
> >
> >
> > --
> > Johan Sandblom  N8, MRC, Karolinska sjh
> > t +46851776108  17176 Stockholm
> > m +46735521477  Sweden
> > "What is wanted is not the will to believe, but the
> > will to find out, which is the exact opposite"
> > - Bertrand Russell
> >
> >
> >
>
> --
> Aditya Mahajan, EECS Systems, University of Michigan
> http://www.eecs.umich.edu/~adityam || Ph: 7342624008
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell

  parent reply	other threads:[~2006-05-11  7:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09 12:53 Johan Sandblom
2006-05-09 13:31 ` Aditya Mahajan
     [not found]   ` <97a06f070605100041u72a34d98se01c740f101b427@mail.gmail.com>
     [not found]     ` <Pine.WNT.4.63.0605101931070.2728@nqvgln>
2006-05-11  7:11       ` Johan Sandblom [this message]
2006-05-11  8:51         ` Hans Hagen
2006-05-11 12:04           ` Johan Sandblom

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=97a06f070605110011r7fe3c358t3b08ff716465f0@mail.gmail.com \
    --to=jsandblom@gmail.com \
    --cc=johan.sandblom@ki.se \
    --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).