Re: [AUCTeX] Parsing first line

2015-02-20 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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

Re: [AUCTeX] Parsing first line

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

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Mosè Giordano
Hi Tassilo, 2015-02-17 9:31 GMT+01:00 Tassilo Horn t...@gnu.org: Alistair Windsor awind...@memphis.edu 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

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Mosè Giordano
2015-02-20 11:50 GMT+01:00 Tassilo Horn t...@gnu.org: Mosè Giordano m...@gnu.org 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.

Re: [AUCTeX] Parsing first line

2015-02-20 Thread Tassilo Horn
Mosè Giordano m...@gnu.org 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

[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