Re: [AUCTeX] Parsing first line

2015-02-20 Thread Mosè Giordano
Hi Tassilo, 2015-02-17 9:31 GMT+01:00 Tassilo Horn : > Alistair Windsor writes: > > Hi Alistair, > >> I would like to use the first line of my tex file to specify an >> alternative destination for the output file using %& >> -output-directory. This works fine when I do pdflatex myfile.tex but >>

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Tassilo Horn
Mosè Giordano writes: >> I'm not exactly sure why the default is to compile a document with >> >> latex "\input yourfile.tex" >> >> instead of just >> >> latex yourfile.tex >> >> when using latex/pdflatex but I guess there's a reason, so that >> suggestion might have some caveat I'm not awa

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Mosè Giordano
2015-02-20 10:19 GMT+01:00 Tassilo Horn : >> Last year I tried to work on implementing a local variable to specify >> the output directory, and so indirectly fix Alistair's problem, but >> I've never finished it. > > Couldn't you simply put the -output-directory option into > `TeX-command-extra-opt

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Tassilo Horn
Mosè Giordano writes: >>> (One of) The main problem was how to share such variable across >>> multiple files of the same document (store it in the auto file?), >>> but there is the same problem for other variables like >>> `TeX-engine'.4 >> >> Is that necessary? I mean, tex commands are either i

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Mosè Giordano
2015-02-20 11:50 GMT+01:00 Tassilo Horn : > Mosè Giordano writes: >> but I think those variables are evaluated in the buffer calling the >> commands, not in the master file. > > If that's the case, I'd suggest that we change that and alway call them > from the master file buffer. Otherwise, we ne

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Tassilo Horn
Mosè Giordano writes: >> If that's the case, I'd suggest that we change that and alway call >> them from the master file buffer. Otherwise, we need to make many >> buffer-local variables (TeX-engine, extra-options, ...) >> document-local by stuffing them into the auto file. Or do you see a >> u

[AUCTeX] Forcing indentation in math environments

2015-02-20 Thread Julien Cubizolles
I want to control indentation in math environments. I've defined the following function --8<---cut here---start->8--- (defun jc-math-mode-indent () "Force indentation in math mode. " (interactive "p") ;; (delete-horizontal-space) (cond ((equal curre

Re: [AUCTeX] Forcing indentation in math environments

2015-02-20 Thread Julien Cubizolles
Julien Cubizolles writes: > The thing is I'm not sure why it's working :-) since strange things also > happen: > > * If yas-minor-mode is on, the point is at the beginning of the text > after using TAB, which is what I want; it's at the beginning of the > line if yas is not on. I could choos