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? ...nothing I have found in the selection of downloadable documentation or on the wiki suggests that it is possible... Thanks Ian
On Thu, Feb 24, 2011 at 10:40 AM, Ian Lawrence
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
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
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
On Thu, Feb 24, 2011 at 10:40 AM, Ian Lawrence
wrote: 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
___________________________________________________________________________________
On 2011-02-24 Ian Lawrence
Thanks for taking the trouble for what was really simple, but seems undocumented (?)
Some other units: mm Millimetres cm Centimetres in Inches em em width, depends on the font ex ex height, depends on the font pc Picas (1pc = 12pt) pt Points (1in = 72.27pt) Marco
Am 2011-02-24 um 11:34 schrieb Marco:
On 2011-02-24 Ian Lawrence
wrote: Thanks for taking the trouble for what was really simple, but seems undocumented (?)
Some other units: mm Millimetres cm Centimetres in Inches em em width, depends on the font ex ex height, depends on the font pc Picas (1pc = 12pt) pt Points (1in = 72.27pt)
There’s also bp (big points). We have the difference between TeX points (pt) and PostScript points (bp) in ConTeXt like in every other TeX: 1 pt = 1/72,27 in = 0,3515 mm (traditional American printer’s point) 1 bp = 1/72 in = 0,3528 mm (after the Anglo-Saxon compromise inch of 1959 = 25.4 mm) (1 "Didot" point, traditionally used in Europe, was 0,376 mm) See also http://en.wikipedia.org/wiki/Point_(typography) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
So many things I am only vaguely aware of....!
But I think that pixels are
a) undocumented
b) work....
And I'm pretty sure i'll put both (ignorant) feet in it in trying to add
something to the Wiki...
Greetings from the grey England..
Ian
On 24 February 2011 13:32, Henning Hraban Ramm
Am 2011-02-24 um 11:34 schrieb Marco:
On 2011-02-24 Ian Lawrence
wrote: Thanks for taking the trouble for what was really simple, but seems
undocumented (?)
Some other units: mm Millimetres cm Centimetres in Inches em em width, depends on the font ex ex height, depends on the font pc Picas (1pc = 12pt) pt Points (1in = 72.27pt)
There’s also bp (big points). We have the difference between TeX points (pt) and PostScript points (bp) in ConTeXt like in every other TeX: 1 pt = 1/72,27 in = 0,3515 mm (traditional American printer’s point) 1 bp = 1/72 in = 0,3528 mm (after the Anglo-Saxon compromise inch of 1959 = 25.4 mm) (1 "Didot" point, traditionally used in Europe, was 0,376 mm)
See also http://en.wikipedia.org/wiki/Point_(typography)
Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________ 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
___________________________________________________________________________________
On Tue, Mar 1, 2011 at 9:29 AM, Ian Lawrence
So many things I am only vaguely aware of....! But I think that pixels are a) undocumented b) work.... And I'm pretty sure i'll put both (ignorant) feet in it in trying to add something to the Wiki... Greetings from the grey England.. Ian It's a pdftex feature. -- luigi
participants (4)
-
Henning Hraban Ramm
-
Ian Lawrence
-
luigi scarso
-
Marco