Hi all,
How can you add options to the call to the pdflatex engine used by the watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option (apparently it currently runs with that option disabled).
Thanks,
enas
Hi enas,
maybe you just have to update to the latest version of the latex bundle. Then open a *.tex file and press [Command]+[Option]+[Comma] for the bundle options, where you can set pdftex options (shown in the screenshot http://skitch.com/janmichael/ap9p/latex-preferences)
Cheers,
Jan.
On 01.10.2008, at 16:06, enas wrote:
Hi all,
How can you add options to the call to the pdflatex engine used by the watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option (apparently it currently runs with that option disabled).
Thanks,
enas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Jan,
Sure, but that option doesn't seem to affect the "Watch document" command.
I can specifically create a document that uses a \write18{echo "Bla "
file.txt} command that works when compiled ("Typeset & View (PDF)"
command) but do not when using the "Watch document" command.
In the case I use Typeset & View, with the -shell-escape option specified, I get in the .log file an entry showing:
system(echo "Bla " > file.txt)...executed.
(and the file is indeed created), while if I use the Watch document version, the log shows
system(echo "Bla " > file.txt)...disabled.
So, obviously, Watch document doesn't use the shell-escape option, regardless of the option set in the LaTeX bundle preferences.
So my question remains, how to activate it?
Thanks,
enas
On 1 Oct 2008, at 15:13, Jan Michael wrote:
Hi enas,
maybe you just have to update to the latest version of the latex bundle. Then open a *.tex file and press [Command]+[Option]+[Comma] for the bundle options, where you can set pdftex options (shown in the screenshot http://skitch.com/janmichael/ap9p/latex-preferences)
Cheers,
Jan.
On 01.10.2008, at 16:06, enas wrote:
Hi all,
How can you add options to the call to the pdflatex engine used by the watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option (apparently it currently runs with that option disabled).
Thanks,
enas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
<pastedGraphic.png>
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
OK, so I checked a bit the code of latex_watch.pl.
The function get_prefs returns indeed the options in the latex preferences (it returns the engine, the options and the viewer), but then the options fields is completely discarded (only the engine and the viewer are taken into account).
So my question can be reformulated, I guess, to: is it possible to adapt the script so that it takes into account the options given in the latex preferences, and passes them to the engine?
Thanks,
enas
On 1 Oct 2008, at 15:43, enas wrote:
Hi Jan,
Sure, but that option doesn't seem to affect the "Watch document" command.
I can specifically create a document that uses a \write18{echo "Bla "
file.txt} command that works when compiled ("Typeset & View (PDF)"
command) but do not when using the "Watch document" command.
In the case I use Typeset & View, with the -shell-escape option specified, I get in the .log file an entry showing:
system(echo "Bla " > file.txt)...executed.
(and the file is indeed created), while if I use the Watch document version, the log shows
system(echo "Bla " > file.txt)...disabled.
So, obviously, Watch document doesn't use the shell-escape option, regardless of the option set in the LaTeX bundle preferences.
So my question remains, how to activate it?
Thanks,
enas
On 1 Oct 2008, at 15:13, Jan Michael wrote:
Hi enas,
maybe you just have to update to the latest version of the latex bundle. Then open a *.tex file and press [Command]+[Option]+[Comma] for the bundle options, where you can set pdftex options (shown in the screenshot http://skitch.com/janmichael/ap9p/latex-preferences)
Cheers,
Jan.
On 01.10.2008, at 16:06, enas wrote:
Hi all,
How can you add options to the call to the pdflatex engine used by the watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option (apparently it currently runs with that option disabled).
Thanks,
enas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
<pastedGraphic.png>
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi all,
No-one answered, so I finally found out how to make it work (or make it seem to work).
I replaced the lines
fail_unless_system(@tex, ...
by
fail_unless_system(@tex, $prefs{options},
and it seems to take into account correctly my options set in the latex preferences.
Now whether that's the correct thing to do, the right thing to do or what, I have no idea.
Also, that reminds of a previous post that remained unanswered as well, concerning the synctex support. I tried to activate that as well, but it's not as easy, as the files created (the .synctex.gz) start by a "." and thus do not correspond the final pdf file name.
Any idea about these two points? Is there any LaTeX bundle maintainer around?
Thank you all,
enas
On 2 Oct 2008, at 13:56, enas wrote:
OK, so I checked a bit the code of latex_watch.pl.
The function get_prefs returns indeed the options in the latex preferences (it returns the engine, the options and the viewer), but then the options fields is completely discarded (only the engine and the viewer are taken into account).
So my question can be reformulated, I guess, to: is it possible to adapt the script so that it takes into account the options given in the latex preferences, and passes them to the engine?
Thanks,
enas
On 1 Oct 2008, at 15:43, enas wrote:
Hi Jan,
Sure, but that option doesn't seem to affect the "Watch document" command.
I can specifically create a document that uses a \write18{echo "Bla "
file.txt} command that works when compiled ("Typeset & View (PDF)"
command) but do not when using the "Watch document" command.
In the case I use Typeset & View, with the -shell-escape option specified, I get in the .log file an entry showing:
system(echo "Bla " > file.txt)...executed.
(and the file is indeed created), while if I use the Watch document version, the log shows
system(echo "Bla " > file.txt)...disabled.
So, obviously, Watch document doesn't use the shell-escape option, regardless of the option set in the LaTeX bundle preferences.
So my question remains, how to activate it?
Thanks,
enas
On 1 Oct 2008, at 15:13, Jan Michael wrote:
Hi enas,
maybe you just have to update to the latest version of the latex bundle. Then open a *.tex file and press [Command]+[Option]+[Comma] for the bundle options, where you can set pdftex options (shown in the screenshot http://skitch.com/janmichael/ap9p/latex-preferences)
Cheers,
Jan.
On 01.10.2008, at 16:06, enas wrote:
Hi all,
How can you add options to the call to the pdflatex engine used by the watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option (apparently it currently runs with that option disabled).
Thanks,
enas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
<pastedGraphic.png>
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate