ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Screen document design
@ 2011-02-24  9:40 Ian Lawrence
  2011-02-24  9:47 ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Lawrence @ 2011-02-24  9:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 653 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-02-24  9:40 Screen document design Ian Lawrence
@ 2011-02-24  9:47 ` luigi scarso
  2011-02-24 10:14   ` Ian Lawrence
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2011-02-24  9:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-02-24  9:47 ` luigi scarso
@ 2011-02-24 10:14   ` Ian Lawrence
  2011-02-24 10:34     ` Marco
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Lawrence @ 2011-02-24 10:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-02-24 10:14   ` Ian Lawrence
@ 2011-02-24 10:34     ` Marco
  2011-02-24 13:32       ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Marco @ 2011-02-24 10:34 UTC (permalink / raw)
  To: ntg-context

On 2011-02-24 Ian Lawrence <physics.rooted@gmail.com> 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)


Marco


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-02-24 10:34     ` Marco
@ 2011-02-24 13:32       ` Henning Hraban Ramm
  2011-03-01  8:29         ` Ian Lawrence
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2011-02-24 13:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 2011-02-24 um 11:34 schrieb Marco:

> On 2011-02-24 Ian Lawrence <physics.rooted@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-02-24 13:32       ` Henning Hraban Ramm
@ 2011-03-01  8:29         ` Ian Lawrence
  2011-03-01  8:52           ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Lawrence @ 2011-03-01  8:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <hraban@fiee.net> wrote:

>
> Am 2011-02-24 um 11:34 schrieb Marco:
>
>
>  On 2011-02-24 Ian Lawrence <physics.rooted@gmail.com> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3312 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen document design
  2011-03-01  8:29         ` Ian Lawrence
@ 2011-03-01  8:52           ` luigi scarso
  0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2011-03-01  8:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 1, 2011 at 9:29 AM, Ian Lawrence <physics.rooted@gmail.com> wrote:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-01  8:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24  9:40 Screen document design Ian Lawrence
2011-02-24  9:47 ` luigi scarso
2011-02-24 10:14   ` Ian Lawrence
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

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).