ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Screen document design
Date: Thu, 24 Feb 2011 10:14:09 +0000	[thread overview]
Message-ID: <AANLkTi=bMgmFwoy_y6ggxv95rMezedibj_SpFm8iueNY@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinFF1ZRJsdF0iNaw3QL7KmVEKOkxig8nW12vvuQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1525 bytes --]

Thanks for taking the trouble for what was really simple, but seems
undocumented (?)
It does, and then all the offsets etc, seem to work in pixels as well.

eg.

\definelayer [topmatter] % name of the layer
[x= 0 px, y=20 px, % from upper left corner of paper
width=\paperwidth, height=\paperheight] % let the layer cover the full paper

Ian

On 24 February 2011 09:47, luigi scarso <luigi.scarso@gmail.com> wrote:

> On Thu, Feb 24, 2011 at 10:40 AM, Ian Lawrence <physics.rooted@gmail.com>
> wrote:
> > Morning all,
> > Quick question.
> > I want to design a screen document at 1024 by 768 pixels, so ideally work
> in
> > pixels as units, and not mm / cm.
> > I know pdfs are scalable and about \setuppapersize[S6][S6], but I'd
> prefer
> > to work in pixels (I have swfs / images to embed, and these come in x by
> y
> > pixels).
> > Anyone have an easy answer?
> \definepapersize[Screen][width=1024px,height=768px]
> \setuppapersize[Screen][Screen]
>
> You should check if it's ok, I'm not sure.
> --
> luigi
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2698 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

  reply	other threads:[~2011-02-24 10:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24  9:40 Ian Lawrence
2011-02-24  9:47 ` luigi scarso
2011-02-24 10:14   ` Ian Lawrence [this message]
2011-02-24 10:34     ` Marco
2011-02-24 13:32       ` Henning Hraban Ramm
2011-03-01  8:29         ` Ian Lawrence
2011-03-01  8:52           ` luigi scarso

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='AANLkTi=bMgmFwoy_y6ggxv95rMezedibj_SpFm8iueNY@mail.gmail.com' \
    --to=physics.rooted@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).