[TxMt] Re: Shell escape with Latex watch

enas textmate at alxp.gr
Thu Oct 2 12:56:31 UTC 2008


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 at lists.macromates.com
>>> http://lists.macromates.com/listinfo/textmate
>>
>> <pastedGraphic.png>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list