[NTG-context] options for \setuppapersize

2014-06-15 Thread Pablo Rodriguez
Dear list,

I’m trying to explain the options of \setuppapersize in a book, but I’m
not sure they work.

With latest beta from 2014.06.15 15:54, this is the results I get with a
minimal document such as:

\setuppapersize[A5]
\starttext
\input zapf
\stoptext

I cannot make the options mirrored, rotated, 90, 180, 270 and negative work.

Do they work as expected or am I doing something wrong?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] options for \setuppapersize

2014-06-15 Thread Wolfgang Schuster

Am 15.06.2014 um 20:19 schrieb Pablo Rodriguez oi...@gmx.es:

 Dear list,
 
 I’m trying to explain the options of \setuppapersize in a book, but I’m
 not sure they work.
 
 With latest beta from 2014.06.15 15:54, this is the results I get with a
 minimal document such as:
 
\setuppapersize[A5]
\starttext
\input zapf
\stoptext
 
 I cannot make the options mirrored, rotated, 90, 180, 270 and negative work.
 
 Do they work as expected or am I doing something wrong?

You have to set the right values for the paper with the second argument when 
you use rotation and mirroring.

\setuppapersize[A5,90][A5,landscape]
%\setuppapersize[A5,180][A5]
%\setuppapersize[A5,270][A5,landscape]
%\setuppapersize[A5,mirrored][A5]
%\setuppapersize[A5,rotated][A5,landscape]
%\setuppapersize[A5,negative]

\starttext
\input zapf
\stoptext

The negative keyword doesn’t work for me, I even tried a minimal example with 
the internal function but got no result.

\setuppapersize[A6]

\starttext

\setbox\scratchbox\hbox{\framed[background=color,backgroundcolor=blue,foregroundcolor=red]{Blue
 test?}}

\negatecolorbox\scratchbox

\box\scratchbox

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] options for \setuppapersize

2014-06-15 Thread Pablo Rodriguez
On 06/15/2014 09:03 PM, Wolfgang Schuster wrote:

 I’m trying to explain the options of \setuppapersize in a book, but I’m
 not sure they work.
 [...]
 Do they work as expected or am I doing something wrong?
 
 You have to set the right values for the paper with the second
 argument when you use rotation and mirroring.

Many thanks for your reply, Wolfgang.

Now I understand how it works.

 The negative keyword doesn’t work for me, I even tried a minimal
 example with the internal function but got no result.

Many thanks for confirming it.


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] \setuppapersize \externalfigure

2012-01-14 Thread Peter Münster
On Fri, Jan 13 2012, Gerben Wierda wrote:

 The following snippet:

 \page\setuppapersize[A4,portrait][A4,portrait]
 \externalfigure[foo.pdf][factor=fit,orientation=90]

 behaves like this:

 the size is set to what fits *before* rotation. The order of orientation and
 factor does not matter. Is there anything I can do about that?

Perhaps with something like:

\scale[width=\textwidth,height=\textheight]{\externalfigure[foo.pdf][orientation=90]}

(not tested...)

-- 
   Peter
___
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
___


[NTG-context] \setuppapersize \externalfigure

2012-01-13 Thread Gerben Wierda
\externalfigure[foo.pdf][factor=fit]

nicely fits the mage on the page.

The following snippet:

\page\setuppapersize[A4,portrait][A4,portrait]
\externalfigure[foo.pdf][factor=fit,orientation=90]

behaves like this:

the size is set to what fits *before* rotation. The order of orientation and 
factor does not matter. Is there anything I can do about that?

Thanks,

G
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-05-22 Thread Aditya Mahajan

On Tue, 22 Mar 2011, Aditya Mahajan wrote:


On Tue, 22 Mar 2011, Hans Hagen wrote:
so i changed it a bit in the next beta .. i also made middle the default 
location


Thank you. I will document all this in the next TUGBoat article on Context 
for users.


http://wiki.contextgarden.net/PaperSetup

Aditya
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-22 Thread Hans Hagen

On 21-3-2011 5:08, Wolfgang Schuster wrote:


Am 21.03.2011 um 00:43 schrieb Aditya Mahajan:


About two months back I had requested that the second argument be made 
optional. Hans had implemented that request, but it does not always work (I 
don't know if this is a regression over the original implemenetation, or it 
never worked correctly).


I doubt if it has ever worked because after i looked at the source for the 
defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work.


well, it works if one specifies [A5][samesize] but it looks like folks 
want even more automatism ... so i changed it a bit in the next beta .. 
i also made middle the default location


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-22 Thread Aditya Mahajan

On Tue, 22 Mar 2011, Hans Hagen wrote:


On 21-3-2011 5:08, Wolfgang Schuster wrote:


Am 21.03.2011 um 00:43 schrieb Aditya Mahajan:

About two months back I had requested that the second argument be made 
optional. Hans had implemented that request, but it does not always work 
(I don't know if this is a regression over the original implemenetation, 
or it never worked correctly).


I doubt if it has ever worked because after i looked at the source for the 
defintion of \setuppapersize i see that Hans (i mean samesized) code can’t 
work.


well, it works if one specifies [A5][samesize]


Yes, but [A5][A5] is simpler than [A5][samesize] :)


but it looks like folks want even more automatism ...


and easier explanation. The trouble with [A5][A5] is that you need to 
explain the difference between papersize and printpapersize before you can 
explain how to change the papersize. Most users don't care about this 
difference, so the additional syntax gets confusing.


so i changed it a bit in the next beta .. i also made middle the default 
location


Thank you. I will document all this in the next TUGBoat article on 
Context for users.


Aditya___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-22 Thread Cecil Westerhof
2011/3/22 Aditya Mahajan adit...@umich.edu

 well, it works if one specifies [A5][samesize]

 Yes, but [A5][A5] is simpler than [A5][samesize] :)


With the former if the size changes to A6, you only have to change one
thing. So in light of maintenance it is better.

-- 
Cecil Westerhof
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-21 Thread Otared Kavian
Hi Aditya,Testing your minimal example:\setuppapersize[A5]\showframe\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextit seems that I do get an A5 papersize (ConTeXt version2011.02.25 22:03, andLuaTeX, Version beta-0.65.0-2010121316). I attach the PDF file for your information (since I don't know how to get pdfinfo…).Best regards: OK

test-A5.pdf
Description: Adobe PDF document
On 19 mars 2011, at 18:59, Aditya Mahajan wrote:[…]I don't know if something changed, but this has stoopped working.\setuppapersize[A5]\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextWith MkII I get$pdfinfo page-test.pdfTitle: page-testSubject:Keywords:Author:Creator: ConTeXt - 2011.02.25 22:03Producer: pdfTeX-1.40.11CreationDate: Sat Mar 19 13:50:49 2011ModDate: ConTeXt - 2011.02.25 22:03Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 33436 bytesOptimized: noPDF version: 1.5With MkIV:$pdfinfo page-test.pdf Title: page-testCreator: ConTeXt - 2011.02.25 22:03Producer: LuaTeX-0.65.0CreationDate: Sat Mar 19 13:53:29 2011ModDate: Sat Mar 19 13:53:29 2011Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 16057 bytesOptimized: noPDF version: 1.6Notice that the page size is still A4! Any idea why this is happening?(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4).Aditya___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : http://foundry.supelec.fr/projects/contextrev/wiki : http://contextgarden.net___
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-21 Thread C.
... and that's what happens if I don't read the whole thread :D sorry.
@Kavian: the attached PDF is A4 (does your PDF-reader not show the paper
dimensions in some kind of proprieties dialog?! Adobe Reader sure does)
As for the issue: same behavior here. I, too, find it confusing when I don’t
get the desired size by using only one argument. +1 for change.

 -Ursprüngliche Nachricht-
 Von: Aditya Mahajan [mailto:adit...@umich.edu]
 Gesendet: Montag, 21. März 2011 00:43
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Feature request: setuppapersize
 
 On Sun, 20 Mar 2011, C. wrote:
 
  Did you try \setuppapersize[A5][A5] ?
  According to http://wiki.contextgarden.net/Reference/en/setuppapersize
  second argument (the print paper size) is A4 by default.
 
 About two months back I had requested that the second argument be made
 optional. Hans had implemented that request, but it does not always work
(I
 don't know if this is a regression over the original implemenetation, or
it
 never worked correctly).
 
 Aditya


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


Re: [NTG-context] Feature request: setuppapersize

2011-03-21 Thread Wolfgang Schuster

Am 21.03.2011 um 00:43 schrieb Aditya Mahajan:

 About two months back I had requested that the second argument be made 
 optional. Hans had implemented that request, but it does not always work (I 
 don't know if this is a regression over the original implemenetation, or it 
 never worked correctly).

I doubt if it has ever worked because after i looked at the source for the 
defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work.

Wolfgang
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-21 Thread Aditya Mahajan

On Mon, 21 Mar 2011, Wolfgang Schuster wrote:



Am 21.03.2011 um 00:43 schrieb Aditya Mahajan:


About two months back I had requested that the second argument be made 
optional. Hans had implemented that request, but it does not always work (I 
don't know if this is a regression over the original implemenetation, or it 
never worked correctly).


I doubt if it has ever worked because after i looked at the source for the 
defintion of \setuppapersize i see that Hans (i mean samesized) code can’t work.


So, my testing was not thorough in the first place :(

Hans, can you look into this again?

Aditya___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-20 Thread C.
Did you try \setuppapersize[A5][A5] ?
According to http://wiki.contextgarden.net/Reference/en/setuppapersize
second argument (the print paper size) is A4 by default.


 -Ursprüngliche Nachricht-
 Von: Aditya Mahajan [mailto:adit...@umich.edu]
 Gesendet: Samstag, 19. März 2011 18:59
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Feature request: setuppapersize
 
 On Mon, 10 Jan 2011, Aditya Mahajan wrote:
 
  On Mon, 10 Jan 2011, Hans Hagen wrote:
 
  more elegant and downward compatible is this:
 
  \definepapersize
   [samesized]
   [ \c!width=\paperwidth,
\c!height=\paperheight]
 
  \setuppapersize
   [A4][samesized]
 
  in page-lay.mkiv
 
  Indeed. This will also work fine.
 
 I don't know if something changed, but this has stoopped working.
 
 \setuppapersize[A5]
 \starttext
 \dorecurse{10}{\input knuth \endgraf}
 \stoptext
 
 With MkII I get
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Subject:
 Keywords:
 Author:
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   pdfTeX-1.40.11
 CreationDate:   Sat Mar 19 13:50:49 2011
 ModDate:ConTeXt - 2011.02.25 22:03
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  33436 bytes
 Optimized:  no
 PDF version:1.5
 
 With MkIV:
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   LuaTeX-0.65.0
 CreationDate:   Sat Mar 19 13:53:29 2011
 ModDate:Sat Mar 19 13:53:29 2011
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  16057 bytes
 Optimized:  no
 PDF version:1.6
 
 Notice that the page size is still A4! Any idea why this is happening?
 (I get the right paper size with letter, A0, A1, A2, A3, but wrong paper
sizes
 with anything smaller than A4).
 
 Aditya


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


Re: [NTG-context] Feature request: setuppapersize

2011-03-20 Thread Aditya Mahajan

On Sun, 20 Mar 2011, C. wrote:


Did you try \setuppapersize[A5][A5] ?
According to http://wiki.contextgarden.net/Reference/en/setuppapersize
second argument (the print paper size) is A4 by default.


About two months back I had requested that the second argument be made 
optional. Hans had implemented that request, but it does not always work 
(I don't know if this is a regression over the original implemenetation, 
or it never worked correctly).


Aditya
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-03-19 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Aditya Mahajan wrote:


On Mon, 10 Jan 2011, Hans Hagen wrote:


more elegant and downward compatible is this:

\definepapersize
 [samesized]
 [ \c!width=\paperwidth,
  \c!height=\paperheight]

\setuppapersize
 [A4][samesized]

in page-lay.mkiv


Indeed. This will also work fine.


I don't know if something changed, but this has stoopped working.

\setuppapersize[A5]
\starttext
\dorecurse{10}{\input knuth \endgraf}
\stoptext

With MkII I get

$pdfinfo page-test.pdf
Title:  page-test
Subject:
Keywords:
Author:
Creator:ConTeXt - 2011.02.25 22:03
Producer:   pdfTeX-1.40.11
CreationDate:   Sat Mar 19 13:50:49 2011
ModDate:ConTeXt - 2011.02.25 22:03
Tagged: no
Pages:  5
Encrypted:  no
Page size:  595.276 x 841.89 pts (A4)
File size:  33436 bytes
Optimized:  no
PDF version:1.5

With MkIV:

$pdfinfo page-test.pdf 
Title:  page-test

Creator:ConTeXt - 2011.02.25 22:03
Producer:   LuaTeX-0.65.0
CreationDate:   Sat Mar 19 13:53:29 2011
ModDate:Sat Mar 19 13:53:29 2011
Tagged: no
Pages:  5
Encrypted:  no
Page size:  595.276 x 841.89 pts (A4)
File size:  16057 bytes
Optimized:  no
PDF version:1.6

Notice that the page size is still A4! Any idea why this is happening?
(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper 
sizes with anything smaller than A4).


Aditya
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-23 Thread Hans Hagen

On 22-1-2011 5:34, Aditya Mahajan wrote:

On Mon, 10 Jan 2011, Hans Hagen wrote:


more elegant and downward compatible is this:

\definepapersize
[samesized]
[ \c!width=\paperwidth,
\c!height=\paperheight]

\setuppapersize
[A4][samesized]

in page-lay.mkiv


Can this also be added to page-lay.mkii. Will make it much easier to
document the feature.


ok
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-22 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Hans Hagen wrote:


more elegant and downward compatible is this:

\definepapersize
 [samesized]
 [ \c!width=\paperwidth,
  \c!height=\paperheight]

\setuppapersize
 [A4][samesized]

in page-lay.mkiv


Can this also be added to page-lay.mkii. Will make it much easier to 
document the feature.


Thanks,
Aditya
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Hans Hagen

On 9-1-2011 12:45, Aditya Mahajan wrote:

Hans,

Since we have some leverage with backward compatibility in MkIV, can we
make \setuppapersize (slightly) more intuitive.

Normally, one would expect

\setuppapersize[A5]

to be equivalent to

\setuppapersize[A5][A5]

but currently it is equivalent to

\setuppapersize[A5][A4]

This is a bit confusing, and means that we always have to specify the
printpaper size; even if it is equal to paper size. Can we modify the
definition of \dodefinepapersize to change this behavior?

\def\dodefinepapersize[#1][#2][#3]%
{\ifsecondargument
\doifsomething{#1} % to be sure
{\doifassignmentelse{#2}
{\getparameters
[\??pp#1] % geen \c!scale, scheelt hash ruimte
[\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]%
%AM: Added these two lines
\setvalue{\??pp:1:#1}{#1}%
\setvalue{\??pp:2:#1}{#1}}%
{\setvalue{\??pp:1:#1}{#2}%
\setvalue{\??pp:2:#1}{#3}}}% (*) see below
\else
\getparameters[\??pp][#1]%
\setuppapersize % hm. this will freeze !
\fi}

Perhaps, in line (*), we should also check if #3 is something, otherwise
set ??p:2:#1 to #2:

\doifsomethingelse{#3}
{\setvalue\??pp:2:#1}{#3}}
{\setvalue\??pp:2:#1}{#2}}


What do you think?


more elegant and downward compatible is this:

\definepapersize
  [samesized]
  [ \c!width=\paperwidth,
   \c!height=\paperheight]

\setuppapersize
  [A4][samesized]

in page-lay.mkiv

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 What do you think?

 \setuppapersize
   [A4][samesized]

Not really an improvement over \setuppapersize[A4][A4] ...

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Hans Hagen

On 10-1-2011 3:04, Peter Münster wrote:

Hans Hagenpra...@wxs.nl  writes:


What do you think?


\setuppapersize
   [A4][samesized]


Not really an improvement over \setuppapersize[A4][A4] ...


why not?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 On 10-1-2011 3:04, Peter Münster wrote:
 Hans Hagenpra...@wxs.nl  writes:

 What do you think?

 \setuppapersize
[A4][samesized]

 Not really an improvement over \setuppapersize[A4][A4] ...

 why not?

Just my personal opinion: more keystrokes to type and more options to
remember.
I prefer Aditya's original idea.
-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Hans Hagen

On 10-1-2011 4:20, Peter Münster wrote:

Hans Hagenpra...@wxs.nl  writes:


On 10-1-2011 3:04, Peter Münster wrote:

Hans Hagenpra...@wxs.nl   writes:


What do you think?


\setuppapersize
[A4][samesized]


Not really an improvement over \setuppapersize[A4][A4] ...


why not?


Just my personal opinion: more keystrokes to type and more options to
remember.


i guess you didn't try it as suggested ... when set up this way the 
second argument defaults to samesize unless set otherwise


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 \setuppapersize
 [A4][samesized]

 Not really an improvement over \setuppapersize[A4][A4] ...

 i guess you didn't try it as suggested ... when set up this way the second
 argument defaults to samesize unless set otherwise

Right! I thought the \setuppapersize[][samesized] was for the user-document...
But in page-lay.mkiv it makes much more sense!
Excuse me, Peter

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___
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
___


Re: [NTG-context] Feature request: setuppapersize

2011-01-10 Thread Aditya Mahajan

On Mon, 10 Jan 2011, Hans Hagen wrote:


more elegant and downward compatible is this:

\definepapersize
 [samesized]
 [ \c!width=\paperwidth,
  \c!height=\paperheight]

\setuppapersize
 [A4][samesized]

in page-lay.mkiv


Indeed. This will also work fine.

Thanks,
Aditya
___
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
___


[NTG-context] Feature request: setuppapersize

2011-01-08 Thread Aditya Mahajan

Hans,

Since we have some leverage with backward compatibility in MkIV, can we 
make \setuppapersize (slightly) more intuitive.


Normally, one would expect

   \setuppapersize[A5]

to be equivalent to

   \setuppapersize[A5][A5]

but currently it is equivalent to

   \setuppapersize[A5][A4]

This is a bit confusing, and means that we always have to specify the 
printpaper size; even if it is equal to paper size. Can we modify the 
definition of \dodefinepapersize to change this behavior?


\def\dodefinepapersize[#1][#2][#3]%
  {\ifsecondargument
 \doifsomething{#1} % to be sure
   {\doifassignmentelse{#2}
  {\getparameters
 [\??pp#1] % geen \c!scale, scheelt hash ruimte
 
[\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]%
 %AM: Added these two lines
 \setvalue{\??pp:1:#1}{#1}%
 \setvalue{\??pp:2:#1}{#1}}%
  {\setvalue{\??pp:1:#1}{#2}%
   \setvalue{\??pp:2:#1}{#3}}}% (*) see below
   \else
 \getparameters[\??pp][#1]%
 \setuppapersize % hm. this will freeze !
   \fi}

Perhaps, in line (*), we should also check if #3 is something, otherwise 
set ??p:2:#1 to #2:


\doifsomethingelse{#3}
  {\setvalue\??pp:2:#1}{#3}}
  {\setvalue\??pp:2:#1}{#2}}


What do you think?

Aditya
___
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
___


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-14 Thread Hans Hagen
Mojca Miklavec wrote:
 On 9/7/06, Mojca Miklavec wrote:
   
 Hello,

 \setuppapersize[XY] is not working properly when paper orientation is
 landscape. The following code results in pages of dimensions 29.5 x
 29.5 cm:

 \setuppapersize
 [XY][A4,landscape]
 \setuppaper
 [nx=3,ny=1]
 \setuparranging
 [XY]
 

 Are there any news about fixing page dimensions in XY papersizes?

   
hm, that sounds desperate ... watch the lunatic definition below:

\unprotect

\definepapersize
  [XY]
  [\c!height=\dimexpr\ifnum\printlandscape\zerocount
   \dimexpr\dimexpr\@@ppwidth 
-\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax
 \else
   
\dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax
 \fi\relax,
   \c!width =\dimexpr\ifnum\printlandscape\zerocount
   
\dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax
 \else
   \dimexpr\dimexpr\@@ppwidth 
-\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax
 \fi\relax]

\setuppapersize
   [XY][A4,landscape]

\setuppaper
  [nx=6,ny=4]

\setuparranging
  [XY]

\starttext

\dorecurse{1}{\recurselevel\space}

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-13 Thread Mojca Miklavec
On 9/7/06, Mojca Miklavec wrote:
 Hello,

 \setuppapersize[XY] is not working properly when paper orientation is
 landscape. The following code results in pages of dimensions 29.5 x
 29.5 cm:

 \setuppapersize
 [XY][A4,landscape]
 \setuppaper
 [nx=3,ny=1]
 \setuparranging
 [XY]

Are there any news about fixing page dimensions in XY papersizes?

Thanks,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Mojca Miklavec
Hello,

\setuppapersize[XY] is not working properly when paper orientation is
landscape. The following code results in pages of dimensions 29.5 x
29.5 cm:

\setuppapersize
[XY][A4,landscape]
\setuppaper
[nx=3,ny=1]
\setuparranging
[XY]

\showframe

\starttext

second page
\page
last page
\page
first page
\page
content in
\page
the middle
\page
three pages

\stoptext

I also have an additional question: I can use
\setupbackgrounds
[page]
[background=...]
for single pages which works perfectly. But how can I place a
background figure on the whole page (i.e. spanning across the
middle three 'conceptual' pages, which is the second page when
printed on paper)

Thank you,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Peter Rolf
Hi Mojca,

Mojca Miklavec wrote:
 Hello,
 
 \setuppapersize[XY] is not working properly when paper orientation is
 landscape. The following code results in pages of dimensions 29.5 x
 29.5 cm:
 
 \setuppapersize
   [XY][A4,landscape]
 \setuppaper
   [nx=3,ny=1]
 \setuparranging
   [XY]
 
 \showframe
 
 \starttext
 
 second page
 \page
 last page
 \page
 first page
 \page
 content in
 \page
 the middle
 \page
 three pages
 
 \stoptext
 
 I also have an additional question: I can use
 \setupbackgrounds
 [page]
 [background=...]
 for single pages which works perfectly. But how can I place a
 background figure on the whole page (i.e. spanning across the
 middle three 'conceptual' pages, which is the second page when
 printed on paper)
 
Have you tried \setupbackgrounds[paper][background=...]?

Peter

 Thank you,
 Mojca
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Mojca Miklavec
On 9/7/06, Peter Rolf wrote:
  I also have an additional question: I can use
  \setupbackgrounds
  [page]
  [background=...]
  for single pages which works perfectly. But how can I place a
  background figure on the whole page (i.e. spanning across the
  middle three 'conceptual' pages, which is the second page when
  printed on paper)
 
 Have you tried \setupbackgrounds[paper][background=...]?

I didn't know about that before. Now I tried it, but it had no effect.

Thanks anyway,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Peter Rolf
Mojca Miklavec wrote:
 On 9/7/06, Peter Rolf wrote:
 I also have an additional question: I can use
 \setupbackgrounds
 [page]
 [background=...]
 for single pages which works perfectly. But how can I place a
 background figure on the whole page (i.e. spanning across the
 middle three 'conceptual' pages, which is the second page when
 printed on paper)

 Have you tried \setupbackgrounds[paper][background=...]?
 
 I didn't know about that before. Now I tried it, but it had no effect.

mhh, works here (but maybe not in your example?)

\setupoutput[pdftex]
\setupcolors[state=start]

\defineoverlay[test][{\bgroup\color[red]\blackrule[height=\paperheight,width=\paperwidth]\egroup}]
\setupbackgrounds[paper][background=test]

\starttext
\null
\stoptext

 Thanks anyway,
 Mojca
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Mojca Miklavec
On 9/7/06, Peter Rolf wrote:
 Mojca Miklavec wrote:
  Have you tried \setupbackgrounds[paper][background=...]?
 
  I didn't know about that before. Now I tried it, but it had no effect.
 
 mhh, works here (but maybe not in your example?)

 \setupoutput[pdftex]
 \setupcolors[state=start]

 \defineoverlay[test][{\bgroup\color[red]\blackrule[height=\paperheight,width=\paperwidth]\egroup}]
 \setupbackgrounds[paper][background=test]

 \starttext
 \null
 \stoptext

Your example works, but the following doesn't:

\setupcolors[state=start]

\defineoverlay[test][{\bgroup\color[red]\blackrule[height=\paperheight,width=\paperwidth]\egroup}]
\setupbackgrounds[paper][background=test]
% or: \setupbackgrounds[paper][background=color,backgroundcolor=red]

\setuppapersize
[XY][A4,landscape]
\setuppaper
[nx=3,ny=1]
\setuparranging
[XY]

\starttext
\null
\stoptext

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation

2006-09-07 Thread Willi Egger
Hi,

Indeed there is a calculation problem. Even if you define your papersize 
as a landscape paper with \definepapersize[Mylandscape][height=210mm, 
width=297mm]
the calculation is incorrect. Apparently the problem is not related to 
the option landscape or rotated.

Willi

Mojca Miklavec wrote:
 Hello,

 \setuppapersize[XY] is not working properly when paper orientation is
 landscape. The following code results in pages of dimensions 29.5 x
 29.5 cm:

 \setuppapersize
   [XY][A4,landscape]
 \setuppaper
   [nx=3,ny=1]
 \setuparranging
   [XY]

 \showframe

 \starttext

 second page
 \page
 last page
 \page
 first page
 \page
 content in
 \page
 the middle
 \page
 three pages

 \stoptext

 I also have an additional question: I can use
 \setupbackgrounds
 [page]
 [background=...]
 for single pages which works perfectly. But how can I place a
 background figure on the whole page (i.e. spanning across the
 middle three 'conceptual' pages, which is the second page when
 printed on paper)

 Thank you,
 Mojca
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Aditya Mahajan [EMAIL PROTECTED]:
 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 [EMAIL PROTECTED]:
  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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Hans Hagen
Johan Sandblom wrote:
 2006/5/11, Aditya Mahajan [EMAIL PROTECTED]:
   
 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 [EMAIL PROTECTED]:
   
 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

 
\definepapersize[thesis][width=169mm, height=239mm]
\setuppapersize[thesis][A4]
\definelayer[page][width=\paperwidth,height=\paperheight]

\starttext
\startTEXpage
\setlayer
  [page]
  [preset=lefttop,x=3cm,y=4cm]
  {\startMPcode
  fill fullcircle scaled 10cm;
   \stopMPcode}
\tightlayer[page]
\stopTEXpage
\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Hans Hagen [EMAIL PROTECTED]:
 \definepapersize[thesis][width=169mm, height=239mm]
 \setuppapersize[thesis][A4]
 \definelayer[page][width=\paperwidth,height=\paperheight]

 \starttext
 \startTEXpage
 \setlayer
   [page]
   [preset=lefttop,x=3cm,y=4cm]
   {\startMPcode
   fill fullcircle scaled 10cm;
\stopMPcode}
 \tightlayer[page]
 \stopTEXpage
 \stoptext

This works if I change \paperwidth and \paperheight to
\printpaperwidth and \printpaperheight and change the dimensions
slightly.

Thank you, Johan



 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -




-- 
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Johan Sandblom
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?

Johan



--
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Aditya Mahajan
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] simplify \setuppapersize call

2006-04-12 Thread Hans Hagen
Sanjoy Mahajan wrote:
 maybe, but i'm hesitant to change this because it has been so from the 
 beginning
 

 Reasonable enough.

 Though the mixed A4/letter dimensions with \setuppapersize[letter] is
 probably not what a user intends and not useful for backward
 compatibility.  They should probably get a PDF with an a4 whateverbox
 (mediabox?).
   
don't worry, when the second arg is missing, context will at least enlarge the 
print paper size to get it fit. 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] simplify \setuppapersize call

2006-04-11 Thread Sanjoy Mahajan
Should \setuppapersize automatically assume the same typesetting and
printing papersizes, if no optional argument is given?  Then you could
do \setuppapersize[letter] instead of \setuppapersize[letter][letter]

Right now 

\setuppapersize[letter]
\starttext
hello
\stoptext

produces a mixture of letter and A4 dimensions:

$ texexec --pdf a  /dev/null  pdfinfo a.pdf | grep 'Page size'
Page size:  612 x 841.89 pts

Shouldn't it be either 612x792 (letter) or 595.276 x 841.89 pts (A4)?

   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2006.03.25 13:21
   cont-en : ver: 2006.03.25 13:21  fmt: 2006.4.11  mes: english

It might be because I once ran 'texconfig' to set the default papersize
to letter?

-Sanjoy
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] simplify \setuppapersize call

2006-04-11 Thread Hans Hagen
Sanjoy Mahajan wrote:
 Should \setuppapersize automatically assume the same typesetting and
 printing papersizes, if no optional argument is given?  Then you could
 do \setuppapersize[letter] instead of \setuppapersize[letter][letter]
   
maybe, but i'm hesitant to change this because it has been so from the 
beginning

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] simplify \setuppapersize call

2006-04-11 Thread Sanjoy Mahajan
 maybe, but i'm hesitant to change this because it has been so from the 
 beginning

Reasonable enough.

Though the mixed A4/letter dimensions with \setuppapersize[letter] is
probably not what a user intends and not useful for backward
compatibility.  They should probably get a PDF with an a4 whateverbox
(mediabox?).

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] French, ? : ; !, and spacing, \setuppapersize problem

2004-05-14 Thread Tobias Burnus
Hello,

(Passing on a question.) Is there a simple methode to automatically add
a thinspace before ?, !, : and ; as it is done commonly in
French? This would make typing easier and would allow to change a
thinspace into a normal space etc.
In addition, I have the following problem. I downloaded the latest (?) 
ConTeXt - 2004.4.9 -, installed it in my $HOMETEXMF tree, added two 
symlinks to make it work with an old TDS tree texmf.cnf configuration, 
run texhash and fmtutil. TeX works rather nicely, except \setuppagersize.

Using \setuppapersize[a5][a4] or a5 a5 I get always one A4 page on a A4 
sheet of paper. Using [a5][a4,landscape] I get a A4 paper on a sheet of 
paper which is as wide and high as the height of an A4 paper.
Can anyone reproduce this? Or is this due to my configuration
(e.g. a file present in the system TEXMF tree which is not in $HOMETEXMF 
and gets included)?

Regards,

Tobias

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French, ? : ; !, and spacing, \setuppapersize problem

2004-05-14 Thread Hans Hagen
At 10:22 14/05/2004, you wrote:
Hello,

(Passing on a question.) Is there a simple methode to automatically add
a thinspace before ?, !, : and ; as it is done commonly in
French? This would make typing easier and would allow to change a
thinspace into a normal space etc.
\useencoding[ffr]

\starttext

\fr test: test

\de test: test

\stoptext 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French, ? : ; !, and spacing, \setuppapersize problem

2004-05-14 Thread Peter Mnster
On Fri, 14 May 2004, Hans Hagen wrote:

 (Passing on a question.) Is there a simple methode to automatically add
 a thinspace before ?, !, : and ; as it is done commonly in
 French? This would make typing easier and would allow to change a
 thinspace into a normal space etc.
 
 \useencoding[ffr]
 
 \starttext
 
 \fr test: test
 
 \de test: test
 
 \stoptext 

Hello,
thanks for this ffr-mode. I took a look into m-tryout.tex and
enco-ffr.tex, but unfortunately I didn't find out where to trigger a
thinspace instead of a full space before the colon.
Could you help please?  (ConTeXt version is 2004.3.16)
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

FilmSearch engine with a lot of new features: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French, ? : ; !, and spacing, \setuppapersize problem

2004-05-14 Thread Hans Hagen
At 19:25 14/05/2004, Peter Münster wrote:
On Fri, 14 May 2004, Hans Hagen wrote:

 (Passing on a question.) Is there a simple methode to automatically add
 a thinspace before ?, !, : and ; as it is done commonly in
 French? This would make typing easier and would allow to change a
 thinspace into a normal space etc.

 \useencoding[ffr]

 \starttext

 \fr test: test

 \de test: test

 \stoptext
Hello,
thanks for this ffr-mode. I took a look into m-tryout.tex and
enco-ffr.tex, but unfortunately I didn't find out where to trigger a
thinspace instead of a full space before the colon.
Could you help please?  (ConTeXt version is 2004.3.16)
Cheers, Peter
deeply burried functionality:

\definehspace[fr][:][.25em]
\definehspace[fr][;][.25em]
\definehspace[fr][!][.25em]
\definehspace[fr][?][.25em]
\useencoding[ffr]

\starttext

\fr test: test

\stoptext

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context