Re: [code] [textadept] open file and latex lexer

From: Robert Gieseke <rob.g.att.web.de>
Date: Wed, 08 Jan 2014 12:51:15 +0100

Am 1/8/14, 11:15 AM, schrieb Robert Gieseke:
> It would be possible to parse the variables (of either style) but I
> would probably rather change the compilation process.
>
> In your LaTeX module:
>
> textadept.run.compile_commands.tex = ''
>
> And a short cut to set the master file, e.g.:
> f4 = function()
> if textadept.run.compile_commands.tex == '' then
> textadept.run.compile_commands.tex =
> 'pdflatex "'..buffer.filename..'"'
> ui.statusbar_text = 'Master file is '..buffer.filename
> end
> end,
>
> Then you can use the default compile short cut from the included file.
>

The if-stuff and emptying the default command are of course only
necessary if the run command is in the same function after the if-block
(as I originally intended).

Cheers,
Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 08 Jan 2014 - 06:51:15 EST

This archive was generated by hypermail 2.2.0 : Thu 09 Jan 2014 - 06:49:06 EST