texexec command line switches missing in ruby version
Hi all, the ruby version of texexec is missing some command line switches I have been using. I'm missing --result (however, I could live without that) and especially --mode and --passon. Are there any workarounds? Also, texexec doesn't complain when given a command line switch, which it doesn't understand. Regards, - Ralf
Ralf Schmitt wrote:
Hi all,
the ruby version of texexec is missing some command line switches I have been using. I'm missing --result (however, I could live without that) and especially --mode and --passon. Are there any workarounds?
hm, mode and result should work (TeXExec | version 6.2.0 - 1997-2006))
Also, texexec doesn't complain when given a command line switch, which it doesn't understand.
on the todo list 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 -----------------------------------------------------------------
Ralf Schmitt wrote:
Hi all,
the ruby version of texexec is missing some command line switches I have been using. I'm missing --result (however, I could live without that) and especially --mode and --passon. Are there any workarounds?
Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help.
Ralf Schmitt wrote:
Ralf Schmitt wrote:
Hi all,
the ruby version of texexec is missing some command line switches I have been using. I'm missing --result (however, I could live without that) and especially --mode and --passon. Are there any workarounds?
Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help.
strange, since texexec test --result=oeps just works here. Do others have similar problems with --result? 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 -----------------------------------------------------------------
Hans Hagen wrote:
Ralf Schmitt wrote:
Ralf Schmitt wrote:
Hi all,
the ruby version of texexec is missing some command line switches I have been using. I'm missing --result (however, I could live without that) and especially --mode and --passon. Are there any workarounds?
Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help.
strange, since
texexec test --result=oeps
just works here. Do others have similar problems with --result?
oeps works here (yesterdays beta) texmfstart texexec --autopdf --result=oeps test Peter
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
Ralf Schmitt
Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help.
I haven't noticed problems with those. But could you post a short test file and the full command line that you use? Then I can test it here (running Linux, not sure if that's what you are running). I have noticed that --passon hasn't been working since I switched from perl to ruby texexec. I used to use to turn on -file-line-error to get an error output format that more closely matches what a C compiler produces, and is therefore easier for Emacs to parse in a *compilation* buffer. -Sanjoy `A society of sheep must in time beget a government of wolves.' -- Bertrand de Jouvenal
Sanjoy Mahajan wrote:
Ralf Schmitt
wrote: Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help.
I haven't noticed problems with those. But could you post a short test file and the full command line that you use? Then I can test it here (running Linux, not sure if that's what you are running).
I'm also running linux. Complete typescript follows. Regards, - Ralf Script started on Wed 27 Sep 2006 09:02:46 AM CEST ralf@schrotti:~/tmp$ ls [0m[0mt.tex[0m [mralf@schrotti:~/tmp$ cat t.tex \starttext hello \stoptext ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec t.tex -- result bla.pdf TeXExec | processing document 't.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file t.top TeXExec | using randomseed 1402 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en TeXExec | progname: context This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (/home/ralf/texmf/web2c/natural.tcx) entering extended mode (./t.tex ConTeXt ver: 2006.09.25 15:08 MK II fmt: 2006.9.25 int: english/english language : language en is active system : cont-new loaded (/home/ralf/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex ) system : cont-old loaded (/home/ralf/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/home/ralf/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/home/ralf/texmf/tex/context/user/cont-sys.rme (/home/ralf/texmf/tex/context/base/type-exa.tex) (/home/ralf/texmf/tex/context/base/type-syn.tex) (/home/ralf/texmf/tex/context/base/type-enc.tex) (/home/ralf/texmf/tex/context/base/type-siz.tex) (/home/ralf/texmf/tex/context/base/type-map.tex) (/home/ralf/texmf/tex/context/base/type-spe.tex) (/home/ralf/texmf/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials : tex,postscript,rokicki loaded system : t.top loaded (./t.top specials : loading definition file tpd (/home/ralf/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/home/ralf/texmf/tex/context/base/spec-fdf.tex (/home/ralf/texmf/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,tpd loaded ) (/home/ralf/texmf/tex/context/base/sort-def.tex) (/home/ralf/texmf/tex/context/base/sort-lan.tex) systems : begin file t at line 1 fonts : resetting map file list fonts : using map file: texnansi-public-lm fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: 8r-base fonts : using map file: t5-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm (/home/ralf/texmf/tex/context/base/pdfr-ec.tex) [1.1{/home/ralf/texmf/fonts/map /pdftex/context/original-empty.map}{/home/ralf/texmf/fonts/map/pdftex/context/t
exnansi-public-lm.map}{/home/ralf/texmf/fonts/map/pdftex/context/original-base. map}{/home/ralf/texmf/fonts/map/pdftex/context/ec-public-lm.map}{/home/ralf/tex mf/fonts/map/pdftex/context/ec-base.map}{/home/ralf/texmf/fonts/map/pdftex/cont ext/8r-base.map}{/home/ralf/texmf/fonts/map/pdftex/context/t5-base.map}{/home/r alf/texmf/fonts/map/pdftex/context/original-ams-base.map}{/home/ralf/texmf/font s/map/pdftex/context/original-ams-euler.map}{/home/ralf/texmf/fonts/map/pdftex/ context/original-public-lm.map}] systems : end file t at line 3 system : cont-err loaded (/home/ralf/texmf/tex/context/base/cont-err.tex
User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <
) ){/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc} Output written on t.pdf (1 page, 22107 bytes). Transcript written on t.log. TeXUtil | parsing file t.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 19 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | TeX run 2 TeXExec | writing option file t.top TeXExec | using randomseed 1402 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en TeXExec | progname: context This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (/home/ralf/texmf/web2c/natural.tcx) entering extended mode (./t.tex ConTeXt ver: 2006.09.25 15:08 MK II fmt: 2006.9.25 int: english/english language : language en is active system : cont-new loaded (/home/ralf/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex ) system : cont-old loaded (/home/ralf/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/home/ralf/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/home/ralf/texmf/tex/context/user/cont-sys.rme (/home/ralf/texmf/tex/context/base/type-exa.tex) (/home/ralf/texmf/tex/context/base/type-syn.tex) (/home/ralf/texmf/tex/context/base/type-enc.tex) (/home/ralf/texmf/tex/context/base/type-siz.tex) (/home/ralf/texmf/tex/context/base/type-map.tex) (/home/ralf/texmf/tex/context/base/type-spe.tex) (/home/ralf/texmf/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials : tex,postscript,rokicki loaded system : t.top loaded (./t.top specials : loading definition file tpd (/home/ralf/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/home/ralf/texmf/tex/context/base/spec-fdf.tex (/home/ralf/texmf/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,tpd loaded ) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (/home/ralf/texmf/tex/context/base/sort-def.tex) (/home/ralf/texmf/tex/context/base/sort-lan.tex) (./t.tuo) (./t.tuo) systems : begin file t at line 1 fonts : resetting map file list fonts : using map file: texnansi-public-lm fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: 8r-base fonts : using map file: t5-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm (/home/ralf/texmf/tex/context/base/pdfr-ec.tex) [1.1{/home/ralf/texmf/fonts/map /pdftex/context/original-empty.map}{/home/ralf/texmf/fonts/map/pdftex/context/t
exnansi-public-lm.map}{/home/ralf/texmf/fonts/map/pdftex/context/original-base. map}{/home/ralf/texmf/fonts/map/pdftex/context/ec-public-lm.map}{/home/ralf/tex mf/fonts/map/pdftex/context/ec-base.map}{/home/ralf/texmf/fonts/map/pdftex/cont ext/8r-base.map}{/home/ralf/texmf/fonts/map/pdftex/context/t5-base.map}{/home/r alf/texmf/fonts/map/pdftex/context/original-ams-base.map}{/home/ralf/texmf/font s/map/pdftex/context/original-ams-euler.map}{/home/ralf/texmf/fonts/map/pdftex/ context/original-public-lm.map}] systems : end file t at line 3 system : cont-err loaded (/home/ralf/texmf/tex/context/base/cont-err.tex
User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <
) ){/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc} Output written on t.pdf (1 page, 22107 bytes). Transcript written on t.log. TeXUtil | parsing file t.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 19 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | processing document 'bla.pdf' TeXExec | no ctx file found TeXExec | nothing to process TeXExec | runtime: 0.808911 ralf@schrotti:~/tmp$ ls -la [0mtotal 72 drwxr-xr-x 2 ralf ralf 256 2006-09-27 09:03 [01;34m.[0m drwxr-xr-x 150 ralf ralf 8464 2006-09-27 08:53 [01;34m..[0m -rw-r--r-- 1 ralf ralf 5 2006-09-27 09:03 [0mmpgraph.mp[0m -rw-r--r-- 1 ralf ralf 4397 2006-09-27 09:03 [0mt.log[0m -rw-r--r-- 1 ralf ralf 5 2006-09-27 09:03 [0mt-mpgraph.mp[0m -rw-r--r-- 1 ralf ralf 22107 2006-09-27 09:03 [0mt.pdf[0m -rw-r--r-- 1 ralf ralf 27 2006-09-27 09:02 [0mt.tex[0m -rw-r--r-- 1 ralf ralf 248 2006-09-27 09:03 [0mt.tmp[0m -rw-r--r-- 1 ralf ralf 12084 2006-09-27 09:03 [0mt.tui[0m -rw-r--r-- 1 ralf ralf 740 2006-09-27 09:03 [0mt.tuo[0m
I'm not sure if your command got mangled by the mailer disliking long lines, but it looks like you have this line: ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec t.tex -- result bla.pdf i.e. something like "texexec t.tex -- result bla.pdf" The texexec man entry, I think for the perl version, says: --result=FILENAME Allows you to change the basename of the output file. See --mode for an example. And this command works: texexec t.tex --result=bla Although at the end it says: TeXExec | renaming t to bla TeXExec | restoring t TeXExec | fatal error No such file or directory - t.tuo Is the last line anything to worry about, perhaps in a more complex test file that needed the .tuo file? By the way, I use these two executable scripts to shorten the command lines: $ cat /home/sanjoy/bin/texmfstart #!/bin/bash ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@" $ cat /home/sanjoy/bin/texexec #!/bin/sh texmfstart texexec.rb "$@" -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
Sanjoy Mahajan wrote:
I'm not sure if your command got mangled by the mailer disliking long lines, but it looks like you have this line:
ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec t.tex -- result bla.pdf
i.e. something like "texexec t.tex -- result bla.pdf"
it was texexec t.tex --result bla.pdf (i.e. without the space between -- and result).
The texexec man entry, I think for the perl version, says:
--result=FILENAME Allows you to change the basename of the output file. See --mode for an example.
And this command works:
texexec t.tex --result=bla
same here. the equal sign was missing from my command line (the perl version works without an equal sign).
Although at the end it says:
TeXExec | renaming t to bla TeXExec | restoring t TeXExec | fatal error No such file or directory - t.tuo
Is the last line anything to worry about, perhaps in a more complex test file that needed the .tuo file?
By the way, I use these two executable scripts to shorten the command lines:
$ cat /home/sanjoy/bin/texmfstart #!/bin/bash ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
$ cat /home/sanjoy/bin/texexec #!/bin/sh texmfstart texexec.rb "$@"
Thanks, I'm using them too, but I remember there was some confusion about "$@" versus $@ in this command.
And this command works:
texexec t.tex --result=bla
Ralf Schmitt wrote: that's the intended usage (using the = sign)
same here. the equal sign was missing from my command line (the perl version works without an equal sign).
hm, i never tested that and i also never assumed that -) when i started using ruby there was no proper command line handler so i wrote one myself; that one also hooks nicely into other pieces of the system now
By the way, I use these two executable scripts to shorten the command lines:
$ cat /home/sanjoy/bin/texmfstart #!/bin/bash ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
$ cat /home/sanjoy/bin/texexec #!/bin/sh texmfstart texexec.rb "$@"
normally texmfstart is a bit faster because it passes on info to the sub processes about the env used and so 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 -----------------------------------------------------------------
$ cat /home/sanjoy/bin/texmfstart #!/bin/bash ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
$ cat /home/sanjoy/bin/texexec #!/bin/sh texmfstart texexec.rb "$@"
Thanks, I'm using them too, but I remember there was some confusion about "$@" versus $@ in this command.
"$@" is correct. $@ passes on arguments one word at a time whereas "$@" will wrap each argument in quotes. I know that's a cloudy explanation, so here's an example of the difference. If you have a filename with spaces (gah!) like "abc def.tex", then texexec "abc def.tex" will execute (with "$@") texmfstart texexec.rb "abc def.tex" # good whereas using $@ it would execute texmfstart texexec.rb abc def.tex # not good! -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
participants (4)
-
Hans Hagen
-
Peter Rolf
-
Ralf Schmitt
-
Sanjoy Mahajan