[NTG-context] texmfstart texexec --pdf --pages=1:2 => empty PDF

Hans Hagen pragma at wxs.nl
Tue May 23 17:35:30 CEST 2006


Tobias Burnus wrote:
> Hello,
>
> Tobias Burnus schrieb:
>   
>> I freshly switched to the ruby script and have now a problem:
>>    texmfstart texexec --pdf --pages=1:2
>> produces: No pages of output.
>>    texmfstart texexec --pdf
>> however, works: Output written on tmp_.pdf (3 pages, 103204 bytes)
>>   
>>     
> I do not know what that option does. It seems to do something, but not
> the right thing.
> Actually, looking at texexec.rb I get the impression that --pages= is
> not supported. One finds there
> -------------
> # so far for compatibility
> @@extrastringvars = [
>     'pages', 'background', 'backspace', 'topspace', 'boxtype', 'tempdir',
> -------------
>
> Could the --pages option made to work in texexec.rb? In texexec.pl I
> find the following. I probably should learn ruby [and python for that
> matter] ...
>
>   
actually, the code is there ... scripts/context/ruby/tex.rb 

but there is a buglet in there: 

  opt << "\\def\\pagestoshipout\{pagelist.join(',')\}\n";

should be: 

  opt << "\\def\\pagestoshipout\{#{pagelist.join(',')}\}\n";

#{..} evaluates inside a string 

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



More information about the ntg-context mailing list