[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] auto compile for auctex?
From: |
Thorsten Grothe |
Subject: |
Re: [AUCTeX] auto compile for auctex? |
Date: |
Fri, 17 Oct 2014 12:57:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 |
Hi Tassilo & Lars,
thank you for your responses, very nice group here :-) I use this
function to compile my documents:
########################################################################
(defun run-latexmk ()
(interactive)
(let ((TeX-save-query nil)
(TeX-process-asynchronous nil)
(master-file (TeX-master-file)))
(TeX-save-document "")
(TeX-run-TeX "latexmk"
(TeX-command-expand "latexmk %t" 'TeX-master-file)
master-file)
(if (plist-get TeX-error-report-switches (intern master-file))
(TeX-next-error t)
(minibuffer-message "LatexMK fertig"))))
########################################################################
and bound it to C-s, this works fine and error messages are displayed.
But I would be nicer *not to press C-s*, like in ATP or in the Editor
Gummi. I mean Auctex should recognize automatically if someting changed
in the buffer and execute this function. Another approach would be if
Auctex automatcally saves the document from time to time and executes
this function or the other functions supposed by you.
Is that possible?
Regards
Thorsten