ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Feature request: setuppapersize
@ 2011-01-08 23:45 Aditya Mahajan
  2011-01-10 13:29 ` Hans Hagen
  0 siblings, 1 reply; 21+ messages in thread
From: Aditya Mahajan @ 2011-01-08 23:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-01-08 23:45 Feature request: setuppapersize Aditya Mahajan
@ 2011-01-10 13:29 ` Hans Hagen
  2011-01-10 14:04   ` Peter Münster
                     ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Hans Hagen @ 2011-01-10 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-01-10 13:29 ` Hans Hagen
@ 2011-01-10 14:04   ` Peter Münster
  2011-01-10 14:26     ` Hans Hagen
  2011-01-10 18:02   ` Aditya Mahajan
  2011-01-22 16:34   ` Aditya Mahajan
  2 siblings, 1 reply; 21+ messages in thread
From: Peter Münster @ 2011-01-10 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen <pragma@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
___________________________________________________________________________________

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

* Re: Feature request: setuppapersize
  2011-01-10 14:04   ` Peter Münster
@ 2011-01-10 14:26     ` Hans Hagen
  2011-01-10 15:20       ` Peter Münster
  0 siblings, 1 reply; 21+ messages in thread
From: Hans Hagen @ 2011-01-10 14:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Peter Münster

On 10-1-2011 3:04, Peter Münster wrote:
> Hans Hagen<pragma@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
___________________________________________________________________________________

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

* Re: Feature request: setuppapersize
  2011-01-10 14:26     ` Hans Hagen
@ 2011-01-10 15:20       ` Peter Münster
  2011-01-10 15:51         ` Hans Hagen
  0 siblings, 1 reply; 21+ messages in thread
From: Peter Münster @ 2011-01-10 15:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen <pragma@wxs.nl> writes:

> On 10-1-2011 3:04, Peter Münster wrote:
>> Hans Hagen<pragma@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
___________________________________________________________________________________

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

* Re: Feature request: setuppapersize
  2011-01-10 15:20       ` Peter Münster
@ 2011-01-10 15:51         ` Hans Hagen
  2011-01-10 16:07           ` Peter Münster
  0 siblings, 1 reply; 21+ messages in thread
From: Hans Hagen @ 2011-01-10 15:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Peter Münster

On 10-1-2011 4:20, Peter Münster wrote:
> Hans Hagen<pragma@wxs.nl>  writes:
>
>> On 10-1-2011 3:04, Peter Münster wrote:
>>> Hans Hagen<pragma@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
___________________________________________________________________________________

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

* Re: Feature request: setuppapersize
  2011-01-10 15:51         ` Hans Hagen
@ 2011-01-10 16:07           ` Peter Münster
  0 siblings, 0 replies; 21+ messages in thread
From: Peter Münster @ 2011-01-10 16:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen <pragma@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
___________________________________________________________________________________

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

* Re: Feature request: setuppapersize
  2011-01-10 13:29 ` Hans Hagen
  2011-01-10 14:04   ` Peter Münster
@ 2011-01-10 18:02   ` Aditya Mahajan
  2011-03-19 17:59     ` Aditya Mahajan
  2011-01-22 16:34   ` Aditya Mahajan
  2 siblings, 1 reply; 21+ messages in thread
From: Aditya Mahajan @ 2011-01-10 18:02 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-01-10 13:29 ` Hans Hagen
  2011-01-10 14:04   ` Peter Münster
  2011-01-10 18:02   ` Aditya Mahajan
@ 2011-01-22 16:34   ` Aditya Mahajan
  2011-01-23 19:16     ` Hans Hagen
  2 siblings, 1 reply; 21+ messages in thread
From: Aditya Mahajan @ 2011-01-22 16:34 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-01-22 16:34   ` Aditya Mahajan
@ 2011-01-23 19:16     ` Hans Hagen
  0 siblings, 0 replies; 21+ messages in thread
From: Hans Hagen @ 2011-01-23 19:16 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-01-10 18:02   ` Aditya Mahajan
@ 2011-03-19 17:59     ` Aditya Mahajan
  2011-03-20 21:49       ` C.
  2011-03-21  7:26       ` Otared Kavian
  0 siblings, 2 replies; 21+ messages in thread
From: Aditya Mahajan @ 2011-03-19 17:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-19 17:59     ` Aditya Mahajan
@ 2011-03-20 21:49       ` C.
  2011-03-20 23:43         ` Aditya Mahajan
  2011-03-21  7:26       ` Otared Kavian
  1 sibling, 1 reply; 21+ messages in thread
From: C. @ 2011-03-20 21:49 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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:adityam@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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-20 21:49       ` C.
@ 2011-03-20 23:43         ` Aditya Mahajan
  2011-03-21 11:47           ` C.
  2011-03-21 16:08           ` Wolfgang Schuster
  0 siblings, 2 replies; 21+ messages in thread
From: Aditya Mahajan @ 2011-03-20 23:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-19 17:59     ` Aditya Mahajan
  2011-03-20 21:49       ` C.
@ 2011-03-21  7:26       ` Otared Kavian
  1 sibling, 0 replies; 21+ messages in thread
From: Otared Kavian @ 2011-03-21  7:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Aditya,

Testing your minimal example:
\setuppapersize[A5] 
\showframe
\starttext
\dorecurse{10}{\input knuth \endgraf}
\stoptext

it seems that I do get an A5 papersize (ConTeXt version 2011.02.25 22:03, and LuaTeX, 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



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



[-- Attachment #1.2.1: Type: text/html, Size: 650 bytes --]

[-- Attachment #1.2.2: test-A5.pdf --]
[-- Type: application/pdf, Size: 18008 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 3174 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] 21+ messages in thread

* Re: Feature request: setuppapersize
  2011-03-20 23:43         ` Aditya Mahajan
@ 2011-03-21 11:47           ` C.
  2011-03-21 16:08           ` Wolfgang Schuster
  1 sibling, 0 replies; 21+ messages in thread
From: C. @ 2011-03-21 11:47 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

... 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:adityam@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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-20 23:43         ` Aditya Mahajan
  2011-03-21 11:47           ` C.
@ 2011-03-21 16:08           ` Wolfgang Schuster
  2011-03-21 16:46             ` Aditya Mahajan
  2011-03-22 13:28             ` Hans Hagen
  1 sibling, 2 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2011-03-21 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-21 16:08           ` Wolfgang Schuster
@ 2011-03-21 16:46             ` Aditya Mahajan
  2011-03-22 13:28             ` Hans Hagen
  1 sibling, 0 replies; 21+ messages in thread
From: Aditya Mahajan @ 2011-03-21 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 623 bytes --]

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

[-- 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] 21+ messages in thread

* Re: Feature request: setuppapersize
  2011-03-21 16:08           ` Wolfgang Schuster
  2011-03-21 16:46             ` Aditya Mahajan
@ 2011-03-22 13:28             ` Hans Hagen
  2011-03-22 15:59               ` Aditya Mahajan
  1 sibling, 1 reply; 21+ messages in thread
From: Hans Hagen @ 2011-03-22 13:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Feature request: setuppapersize
  2011-03-22 13:28             ` Hans Hagen
@ 2011-03-22 15:59               ` Aditya Mahajan
  2011-03-22 16:10                 ` Cecil Westerhof
  2011-05-22 18:33                 ` Aditya Mahajan
  0 siblings, 2 replies; 21+ messages in thread
From: Aditya Mahajan @ 2011-03-22 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1232 bytes --]

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

[-- 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] 21+ messages in thread

* Re: Feature request: setuppapersize
  2011-03-22 15:59               ` Aditya Mahajan
@ 2011-03-22 16:10                 ` Cecil Westerhof
  2011-05-22 18:33                 ` Aditya Mahajan
  1 sibling, 0 replies; 21+ messages in thread
From: Cecil Westerhof @ 2011-03-22 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/22 Aditya Mahajan <adityam@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

[-- Attachment #1.2: Type: text/html, Size: 570 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] 21+ messages in thread

* Re: Feature request: setuppapersize
  2011-03-22 15:59               ` Aditya Mahajan
  2011-03-22 16:10                 ` Cecil Westerhof
@ 2011-05-22 18:33                 ` Aditya Mahajan
  1 sibling, 0 replies; 21+ messages in thread
From: Aditya Mahajan @ 2011-05-22 18:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-05-22 18:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-08 23:45 Feature request: setuppapersize Aditya Mahajan
2011-01-10 13:29 ` Hans Hagen
2011-01-10 14:04   ` Peter Münster
2011-01-10 14:26     ` Hans Hagen
2011-01-10 15:20       ` Peter Münster
2011-01-10 15:51         ` Hans Hagen
2011-01-10 16:07           ` Peter Münster
2011-01-10 18:02   ` Aditya Mahajan
2011-03-19 17:59     ` Aditya Mahajan
2011-03-20 21:49       ` C.
2011-03-20 23:43         ` Aditya Mahajan
2011-03-21 11:47           ` C.
2011-03-21 16:08           ` Wolfgang Schuster
2011-03-21 16:46             ` Aditya Mahajan
2011-03-22 13:28             ` Hans Hagen
2011-03-22 15:59               ` Aditya Mahajan
2011-03-22 16:10                 ` Cecil Westerhof
2011-05-22 18:33                 ` Aditya Mahajan
2011-03-21  7:26       ` Otared Kavian
2011-01-22 16:34   ` Aditya Mahajan
2011-01-23 19:16     ` Hans Hagen

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