ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with texexec & pdfarrange
@ 2006-11-16 19:54 Marcus Vinicius Mesquita de So
  2006-11-16 21:17 ` Willi Egger
  2006-11-16 23:24 ` Sanjoy Mahajan
  0 siblings, 2 replies; 6+ messages in thread
From: Marcus Vinicius Mesquita de So @ 2006-11-16 19:54 UTC (permalink / raw)



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

Hello, everybody

In page 8 of the mtexexec manual we can see the following command:

texexec --pdfarrange --paper=A5A4 --print=up  live.pdf

If I try it with a PDF file, for example, 


texexec --pdfarrange --paper=A5A4 --print=up   --print gri.pdf

I get an error message:

! Missing number, treated as zero.
<to be read again>
                   A
\@@ppoffset ->A
               5A4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
                                                  \divide \scratchdimen \arr...
<argument> ...dth }\fi \calculatepaperoffsets {A4}
                                                  \xdef \papersize {A4}
\firstofoneargument #1->#1

\next1 #1,->\docommand {#1}
                           \doprocesscommaitem
...
l.3 \setuplayout

?


Do I miss something?


Greetings

Marcus Vinicius


Details from the command:

D:\context>texexec --pdfarrange --paper=A5A4 gri.pdf

TeXExec | arranging file gri.pdf
TeXExec | processing document 'texexec'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | writing option file texexec.top
TeXExec | using randomseed 761
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5)
 \write18 enabled.
 (d:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
entering extended mode
(./texexec.tex

ConTeXt  ver: 2006.11.16 12:02 MK II  fmt: 2006.11.16  int: english/english

language        : language en is active
system          : cont-new loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.mkii))
system          : cont-old loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(d:\context\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex)
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 en->ec:e
c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 da->ec:e
c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 deo->ec:ec-
>30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 ro->ec:ec->34
->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : texexec.top loaded
(./texexec.top
specials        : loading definition file tpd
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex
(d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are enabled
! Missing number, treated as zero.
<to be read again>
                   A
\@@ppoffset ->A
               5A4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
                                                  \divide \scratchdimen \arr...
<argument> ...dth }\fi \calculatepaperoffsets {A4}
                                                  \xdef \papersize {A4}
\firstofoneargument #1->#1

\next1 #1,->\docommand {#1}
                           \doprocesscommaitem
...
l.3 \setuplayout

?

 
---------------------------------
Sponsored Link

Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo -   Calculate new house payment

[-- Attachment #1.2: Type: text/html, Size: 7310 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Problems with texexec & pdfarrange
  2006-11-16 19:54 Problems with texexec & pdfarrange Marcus Vinicius Mesquita de So
@ 2006-11-16 21:17 ` Willi Egger
  2006-11-16 23:20   ` Sanjoy Mahajan
  2006-11-16 23:24 ` Sanjoy Mahajan
  1 sibling, 1 reply; 6+ messages in thread
From: Willi Egger @ 2006-11-16 21:17 UTC (permalink / raw)


Hi,

In the meantime the paper command option is --paperformat=A4A5.
in my opinion the print command option is --print=2up

Willi

Marcus Vinicius Mesquita de So wrote:
> Hello, everybody
>
> In page 8 of the mtexexec manual we can see the following command:
>
> texexec --pdfarrange --paper=A5A4 --print=up  live.pdf
>
> If I try it with a PDF file, for example,
>
>
> texexec --pdfarrange --paper=A5A4 --print=up   --print gri.pdf
>
> I get an error message:
>
> ! Missing number, treated as zero.
> <to be read again>
>                    A
> \@@ppoffset ->A
>                5A4
> \calculatepaperoffsets ...lue {\??pp #1\c!offset }
>                                                   \divide 
> \scratchdimen \arr...
> <argument> ...dth }\fi \calculatepaperoffsets {A4}
>                                                   \xdef \papersize {A4}
> \firstofoneargument #1->#1
>
> \next1 #1,->\docommand {#1}
>                            \doprocesscommaitem
> ...
> l.3 \setuplayout
>
> ?
>
>
> Do I miss something?
>
>
> Greetings
>
> Marcus Vinicius
>
>
> Details from the command:
>
> D:\context>texexec --pdfarrange --paper=A5A4 gri.pdf
>
> TeXExec | arranging file gri.pdf
> TeXExec | processing document 'texexec'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | writing option file texexec.top
> TeXExec | using randomseed 761
> TeXExec | tex engine: pdftex
> TeXExec | tex format: cont-en
> TeXExec | progname: context
> This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5)
>  \write18 enabled.
>  (d:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
> entering extended mode
> (./texexec.tex
>
> ConTeXt  ver: 2006.11.16 12:02 MK II  fmt: 2006.11.16  int: 
> english/english
>
> language        : language en is active
> system          : cont-new loaded
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.mkii))
> system          : cont-old loaded
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex
> loading         : Context Old Macros
> )
> system          : cont-fil loaded
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex
> loading         : Context File Synonyms
> )
> system          : cont-sys loaded
> (d:\context\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex)
> bodyfont        : 12pt rm is loaded
> language        : patterns nl->texnansi:texnansi->1->2:3 
> nl->ec:ec->2->2:3 fr->
> texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 
> de->texnansi:texnansi->5->2:3 de->e
> c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 
> pt->texnansi:texna
> nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 
> pl->ec:e
> c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 
> sk->il2:i
> l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 
> en->ec:e
> c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 
> da->ec:e
> c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 
> deo->ec:ec-
> >30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 
> ro->ec:ec->34
> ->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
> specials        : tex,postscript,rokicki loaded
> system          : texexec.top loaded
> (./texexec.top
> specials        : loading definition file tpd
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex
> specials        : loading definition file fdf
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex
> (d:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.mkii))
> specials        : fdf loaded
> )
> specials        : fdf,tpd loaded
> )
> systems         : system commands are enabled
> ! Missing number, treated as zero.
> <to be read again>
>                    A
> \@@ppoffset ->A
>                5A4
> \calculatepaperoffsets ...lue {\??pp #1\c!offset }
>                                                   \divide 
> \scratchdimen \arr...
> <argument> ...dth }\fi \calculatepaperoffsets {A4}
>                                                   \xdef \papersize {A4}
> \firstofoneargument #1->#1
>
> \next1 #1,->\docommand {#1}
>                            \doprocesscommaitem
> ...
> l.3 \setuplayout
>
> ?
>
> ------------------------------------------------------------------------
> Sponsored Link
>
> Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo - 
> Calculate new house payment 
> <http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9134-16416&moid=4119> 
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   

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

* Re: Problems with texexec & pdfarrange
  2006-11-16 21:17 ` Willi Egger
@ 2006-11-16 23:20   ` Sanjoy Mahajan
  0 siblings, 0 replies; 6+ messages in thread
From: Sanjoy Mahajan @ 2006-11-16 23:20 UTC (permalink / raw)


> in my opinion the print command option is --print=2up

It shouldn't matter (2up vs up).  The tex.rb script has this:

	    case getvariable('printformat')
		when ''         then arrangement << "\\v!normal"
		when /.*up/oi   then arrangement << ["2UP","\\v!rotated"]
		when /.*down/oi then arrangement << ["2DOWN","\\v!rotated"]
		when /.*side/oi then arrangement << ["2SIDE","\\v!rotated"]
	    end

So --printformat looks whether 'up', 'down', or 'side' is given as the
key and then chooses 2UP, 2DOWN, or 2SIDE accordingly.

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

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

* Re: Problems with texexec & pdfarrange
  2006-11-16 19:54 Problems with texexec & pdfarrange Marcus Vinicius Mesquita de So
  2006-11-16 21:17 ` Willi Egger
@ 2006-11-16 23:24 ` Sanjoy Mahajan
  2006-11-17 10:05   ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Sanjoy Mahajan @ 2006-11-16 23:24 UTC (permalink / raw)


> texexec --pdfarrange --paper=A5A4 --print=up  live.pdf

It needs to be given as '--paperformat'.  I'm pretty sure '--paper'
gets disambiguated as --paperoffset, so ConTeXt looks for a dimension
but gets "A5A4", and then complains about a missing number.

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

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

* Re: Problems with texexec & pdfarrange
  2006-11-16 23:24 ` Sanjoy Mahajan
@ 2006-11-17 10:05   ` Hans Hagen
  2006-11-17 11:38     ` Marcus Vinicius Mesquita de So
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-11-17 10:05 UTC (permalink / raw)


Sanjoy Mahajan wrote:
>> texexec --pdfarrange --paper=A5A4 --print=up  live.pdf
>>     
>
> It needs to be given as '--paperformat'.  I'm pretty sure '--paper'
> gets disambiguated as --paperoffset, so ConTeXt looks for a dimension
> but gets "A5A4", and then complains about a missing number.
>   
indeed

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

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

* Re: Problems with texexec & pdfarrange
  2006-11-17 10:05   ` Hans Hagen
@ 2006-11-17 11:38     ` Marcus Vinicius Mesquita de So
  0 siblings, 0 replies; 6+ messages in thread
From: Marcus Vinicius Mesquita de So @ 2006-11-17 11:38 UTC (permalink / raw)



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

Ok. With --paperformat texexec works nice.
Thank you for the answers.

Greetings from Brazil

Marcus Vinicius

Hans Hagen <pragma@wxs.nl> wrote: Sanjoy Mahajan wrote:
>> texexec --pdfarrange --paper=A5A4 --print=up  live.pdf
>>     
>
> It needs to be given as '--paperformat'.  I'm pretty sure '--paper'
> gets disambiguated as --paperoffset, so ConTeXt looks for a dimension
> but gets "A5A4", and then complains about a missing number.
>   
indeed

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


 	
---------------------------------
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - Click now for info

[-- Attachment #1.2: Type: text/html, Size: 1600 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

end of thread, other threads:[~2006-11-17 11:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-16 19:54 Problems with texexec & pdfarrange Marcus Vinicius Mesquita de So
2006-11-16 21:17 ` Willi Egger
2006-11-16 23:20   ` Sanjoy Mahajan
2006-11-16 23:24 ` Sanjoy Mahajan
2006-11-17 10:05   ` Hans Hagen
2006-11-17 11:38     ` Marcus Vinicius Mesquita de So

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