ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* texexec --help
@ 2003-09-19  7:52 Jens-Uwe Morawski
  2003-09-19 10:03 ` Tobias Burnus
  2003-09-19 10:41 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Jens-Uwe Morawski @ 2003-09-19  7:52 UTC (permalink / raw)



Hi,

yesterday i've updated context and was surprised that texexec --help
only shows:
[jens@melior context]$ texexec --help        

 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

             --arrange   process and arrange
               --batch   run in batch mode (don't pause)
          --centerpage   center the page on the paper
               --color   enable color (when not yet enabled)
         --environment   load some environments first
                           =name     : list of environments
                --fast   skip as much as possible
             --figures   typeset figure directory
                           =a        : room for corrections
                           =b        : just graphics
                           =c        : one (cropped) per page
             --nonstop   run in non stop mode (don't pause)
           --usemodule   load some modules first
                           =name     : list of modules
           --xmlfilter   apply XML filter
                           =name     : list of filters

Even 'texexec --help interface' results in no message at all.
How can i get the remaining command line options listed?

Thanks. Jens

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

* Re: texexec --help
  2003-09-19  7:52 texexec --help Jens-Uwe Morawski
@ 2003-09-19 10:03 ` Tobias Burnus
  2003-09-19 10:40   ` Jens-Uwe Morawski
  2003-09-19 10:47   ` Hans Hagen
  2003-09-19 10:41 ` Hans Hagen
  1 sibling, 2 replies; 6+ messages in thread
From: Tobias Burnus @ 2003-09-19 10:03 UTC (permalink / raw)
  Cc: Hans Hagen

On Fri, Sep 19, 2003 at 09:52:54AM +0200, Jens-Uwe Morawski wrote:
> yesterday i've updated context and was surprised that texexec --help
> only shows:
> [jens@melior context]$ texexec --help        
Try texexec --help all

There is somewhere a bug hidden in the new help system since this is
never shown:
      "                --help   overview of all options and their values\n"
      . "            --help all   all about all options\n"
      . "          --help short   just the main options\n"
      . "   --help mode ... pdf   all about a few options\n"
      . "        --help '*.pdf'   all about options containing 'pdf'\n";


I also encountered a bug:

Use of uninitialized value in integer gt (>) at/home/tburnus/bin/texexec line 903.
Use of uninitialized value in integer gt (>) at/home/tburnus/bin/texexec line 903.

Patch:

--- /home/tburnus/texmf/context/perltk/texexec.pl       Tue Sep 16
20:57:04 2003
+++ texexec.pl  Fri Sep 19 11:54:40 2003
@@ -900,9 +900,11 @@
     my $JobName   = shift;
     my $MPfile    = shift;
     my $MPJobName = '';
-    if ( -s "$JobName-$MPfile.mp" > 100 ) { $MPJobName =
     "$JobName-$MPfile.mp" }
-    elsif ( -s "$MPfile.mp" > 100 ) { $MPJobName = "$MPfile.mp" }
-    else { $MPJobName = "" }
+    if ( -e "$JobName-$MPfile.mp" && -s "$JobName-$MPfile.mp" > 100 ) {
+       $MPJobName = "$JobName-$MPfile.mp"
+    } elsif ( -e "$JobName-$MPfile.mp" && -s "$MPfile.mp" > 100 ) {
+       $MPJobName = "$MPfile.mp"
+    } else { $MPJobName = "" }
     return $MPJobName;
 }
 

Tobias

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

* Re: texexec --help
  2003-09-19 10:03 ` Tobias Burnus
@ 2003-09-19 10:40   ` Jens-Uwe Morawski
  2003-09-19 12:12     ` Hans Hagen
  2003-09-19 10:47   ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Jens-Uwe Morawski @ 2003-09-19 10:40 UTC (permalink / raw)


On Fri, 19 Sep 2003 12:03:03 +0200
Tobias Burnus <tobias.burnus@physik.fu-berlin.de> wrote:

> On Fri, Sep 19, 2003 at 09:52:54AM +0200, Jens-Uwe Morawski wrote:
> > yesterday i've updated context and was surprised that texexec --help
> > only shows:
> > [jens@melior context]$ texexec --help        
> Try texexec --help all
> 

this only shows some few more options, but still not all. 

For example '--help pdf' should show many options, i.e. --pdf, --pdfarange,
--pdfselect, but it only gives:
[jens@melior jens]$ texexec --help pdf  

 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003


There is something wrong in the help system...
Jens

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

* Re: texexec --help
  2003-09-19  7:52 texexec --help Jens-Uwe Morawski
  2003-09-19 10:03 ` Tobias Burnus
@ 2003-09-19 10:41 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-09-19 10:41 UTC (permalink / raw)


At 09:52 19/09/2003 +0200, you wrote:

>yesterday i've updated context and was surprised that texexec --help
>only shows:
>
>Even 'texexec --help interface' results in no message at all.
>How can i get the remaining command line options listed?

ah, this version is kind of cleaned up (made strict safe by wybo) and 
somethign got lost in the help system; i fixed it

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: texexec --help
  2003-09-19 10:03 ` Tobias Burnus
  2003-09-19 10:40   ` Jens-Uwe Morawski
@ 2003-09-19 10:47   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-09-19 10:47 UTC (permalink / raw)


At 12:03 19/09/2003 +0200, you wrote:
>-    if ( -s "$JobName-$MPfile.mp" > 100 ) { $MPJobName =
>      "$JobName-$MPfile.mp" }
>-    elsif ( -s "$MPfile.mp" > 100 ) { $MPJobName = "$MPfile.mp" }
>-    else { $MPJobName = "" }
>+    if ( -e "$JobName-$MPfile.mp" && -s "$JobName-$MPfile.mp" > 100 ) {
>+       $MPJobName = "$JobName-$MPfile.mp"
>+    } elsif ( -e "$JobName-$MPfile.mp" && -s "$MPfile.mp" > 100 ) {

                     ^^^^^^^^^ delete this

>+       $MPJobName = "$MPfile.mp"
>+    } else { $MPJobName = "" }

ok, i fixed this, btw, your patch introduces a new bug -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: texexec --help
  2003-09-19 10:40   ` Jens-Uwe Morawski
@ 2003-09-19 12:12     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-09-19 12:12 UTC (permalink / raw)


At 12:40 19/09/2003 +0200, you wrote:

>There is something wrong in the help system...

i'll leave that to Wybo (when he's back from vacation)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

end of thread, other threads:[~2003-09-19 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-19  7:52 texexec --help Jens-Uwe Morawski
2003-09-19 10:03 ` Tobias Burnus
2003-09-19 10:40   ` Jens-Uwe Morawski
2003-09-19 12:12     ` Hans Hagen
2003-09-19 10:47   ` Hans Hagen
2003-09-19 10:41 ` 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).