From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66350 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: Re: Screen document design Date: Thu, 24 Feb 2011 10:14:09 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1420578401==" X-Trace: dough.gmane.org 1298542483 30892 80.91.229.12 (24 Feb 2011 10:14:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 10:14:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 24 11:14:39 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsYDV-0007sQ-8o for gctc-ntg-context-518@m.gmane.org; Thu, 24 Feb 2011 11:14:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D785DCAA66; Thu, 24 Feb 2011 11:14:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UWXlA5trg4ii; Thu, 24 Feb 2011 11:14:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07275CAA5D; Thu, 24 Feb 2011 11:14:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DD4ACAA5D for ; Thu, 24 Feb 2011 11:14:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LihUaNVsSvqN for ; Thu, 24 Feb 2011 11:14:12 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 0C383CAA58 for ; Thu, 24 Feb 2011 11:14:12 +0100 (CET) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1OAEAZm024617 for ; Thu, 24 Feb 2011 11:14:10 +0100 Original-Received: by iwl42 with SMTP id 42so284768iwl.14 for ; Thu, 24 Feb 2011 02:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=eEvcPuTiime0Jjlhc5dPe8xj1ZmH7ETgw1JzHJbCnlU=; b=WvjFahDUI0PKCuDvas2VZTaWOych572Z1DQXLgKUUbk1bM7P+6LBLFnvYLcFA3Himm /D8ZZBFvliOhmxSCif+VNFmAbNHrRD4lfrTKXyKYqCVWm0V1vuVB4rYtwxygMdlxUjHQ lMJ0GTG3pGOfHbYH2wuv7MjR3oJS5VCHD0B7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ROcS3aNeliTCh/EoMlwCwuS46yrPYYxBSCRqYc4bqOueGXLmadiz+Ad1D3JZQ1/wF/ gjaWrdMhEssl9p/4g/bnGInH4pcygpUxlBticBpIc8ZMx5SlBhI6Kh41lXyKkvtiMhtm Bjy1uNfVJaFIL0w+JtXYKHhv3Xrs0PMY2dH3U= Original-Received: by 10.231.34.130 with SMTP id l2mr1103850ibd.135.1298542449528; Thu, 24 Feb 2011 02:14:09 -0800 (PST) Original-Received: by 10.231.31.74 with HTTP; Thu, 24 Feb 2011 02:14:09 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07EbKeax3 - 3dc003527066 - 20110224 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66350 Archived-At: --===============1420578401== Content-Type: multipart/alternative; boundary=00032555510a6e1074049d0479ba --00032555510a6e1074049d0479ba Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > On Thu, Feb 24, 2011 at 10:40 AM, Ian Lawrence > 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 > > ___________________________________________________________________________________ > --00032555510a6e1074049d0479ba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for taking the trouble for what was really simple, but seems un= documented (?)
It does, and then all the offsets etc, seem to work in = pixels as well.=A0

eg.

\de= finelayer [= topmatter] = % name of the layer
[x= =3D 0 px, y=3D20 px, % from upper left corner of paper
width=3D\paperwidth, height=3D= \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> wrot= e:
> Morning all,
> Quick question.
> I want to design a screen document at 1024 by 768 pixels, so ideally w= ork 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=3D1024px,height=3D768px]
\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 t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--00032555510a6e1074049d0479ba-- --===============1420578401== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1420578401==--