Re: [AUCTEX] question: bibtex on separate files
Guy Durrieu a écrit : > > By the way, I think it perhaps would be a good idea to include this > ability in a later version of AUCTEX, since it is the right way when > working with the chapterbib package. > Rethinking of that, a better way, for a future version, could be to put a check box in the "Texing Options" submenu, telling whether bibtex has to be run globally or locally... Thanks again! Regards. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Guy DURRIEU e-mail [EMAIL PROTECTED] ONERA /DTIM CEntRe de Toulouse, 2, avenue Edouard Belin B.P. 74025 31055 TOULOUSE CEDEX 4 FRANCE tel(33) 05.62.25.26.59 fax(33) 05.62.25.25.93 avertissement http://www.onera.fr/onera-en/emails-terms =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] AUCTeX, MSYS and Vista
Hi I'm posting this in case it's useful to users of Windows Vista who now need to use MSYS to install the latest AUCTeX. I downloaded the precompiled Emacs 22.1 for windows together with AUCTeX 11.85. I used MSYS to install AUCTeX on my PC at work (which runs Windows XP) without a hitch. On my new PC at home (which runs Windows Vista), I had no problems with Emacs 22.1 but when I came to install AUCTeX, configure and make were fine, but make install didn't get very far without being denied permission. I tried fiddling with permissions on various programs, but nothing worked. Then I tried enabling the Administrator account and installing from there: problem solved! (A bit of Googling had produced this idea (among others which didn't work) and very different ways to implement it. I chose the easiest.) Ciaran Taylor. ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTEX] question: bibtex on separate files
Ralf Angeli a écrit : > > > Now I understand. [...] > Great ! That works. Thanks a lot for your help ! By the way, I think it perhaps would be a good idea to include this ability in a later version of AUCTEX, since it is the right way when working with the chapterbib package. Regards. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Guy DURRIEU e-mail [EMAIL PROTECTED] ONERA /DTIM CEntRe de Toulouse, 2, avenue Edouard Belin B.P. 74025 31055 TOULOUSE CEDEX 4 FRANCE tel(33) 05.62.25.26.59 fax(33) 05.62.25.25.93 avertissement http://www.onera.fr/onera-en/emails-terms =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Command completion
* José Carlos Santos (2008-02-13) writes: > On 13-02-2008 6:41, Ralf Angeli wrote: > >>> and then I do M-. Then I get this error message: >>> >>> Searching for program: no such file or directory, egrep >> >> What's the output of `C-h k M-' in a LaTeX buffer? > > M-TAB (translated from ) runs the command ispell-complete-word >which is an interactive compiled Lisp function in `ispell.el'. > It is bound to M-TAB,. Are you actually in a buffer with an AUCTeX mode? Is there a "Command" menu? Perhaps some error occurs while starting Emacs or loading a LaTeX file which prevents the mode from being loaded completely. You could check this by putting (setq debug-on-error t) as the first line into your init file, restarting Emacs and loading a LaTeX file. If there is an error you should get a very visible backtrace. -- Ralf ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTEX] question: bibtex on separate files
* Guy Durrieu (2008-02-13) writes: > I don't need so much! When using chapterbib (and the master being > specified), the only thing one needs is, being within an included file, > have the ability to run bibtex on that file just as if it was alone > (i.e. some C-c C-b without any copy beforehand, I guess). Now I understand. This is a bit easier. First you'll need an entry for the list of commands accessible with `C-c C-c' which runs bibtex on the current file. You could customize `TeX-command-list' for this, but it is better to leave the default value alone and just add an entry programmatically. Like this you don't have to worry about the value when updating AUCTeX. So here is the code for adding the entry: (add-to-list 'TeX-command-list '("BibTeX (current file)" "bibtex %(buffile)" TeX-run-BibTeX nil t :help "Run BibTeX on current file") t) This will add the entry "BibTeX (current file)" to `TeX-command-list'. When the entry is chosen through `C-c C-c', bibtex is called with an argument computed by expanding "%(buffile)" and run through the filter `TeX-run-BibTeX' which can parse the BibTeX output and make sense of it for error messages. So we obviously need some code expanding "%(buffile)". Expanders can be configured in `TeX-expand-list'. Again, we will add an entry programmatically instead of customizing it. We need a function which returns the file name accociated with the current buffer. The name should be stripped of the directory part and the extension. Here is the code to do all of this: (add-to-list 'TeX-expand-list '("%(buffile)" (lambda () (file-name-sans-extension (file-name-nondirectory (buffer-file-name) t))) Since we can add the new entries to the variables mentioned above only once they are defined we have to wrap both code snippets above into a call to `eval-after-load'. And with some assembly here is the full code snippet you can paste into your init file. (eval-after-load "tex" '(progn (add-to-list 'TeX-command-list '("BibTeX (current file)" "bibtex %(buffile)" TeX-run-BibTeX nil t :help "Run BibTeX on current file") t) (add-to-list 'TeX-expand-list '("%(buffile)" (lambda () (file-name-sans-extension (file-name-nondirectory (buffer-file-name) t))) So when you restart Emacs and load a LaTeX file you should be able to call `C-c C-c BibTeX ' to call the new command. -- Ralf ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] filling in texinfo mode
"Ralf Angeli" wrote: >> I am using AUC-TeX version 11.85 on Emacs 22.1.1 under >> Linux; when I indent a paragraph with M-q under Texinfo the >> mode misinterprets "@code" for comment starts and inserts >> "@c" directives: how to fix it? > >Filling in Texinfo mode is not handled by AUCTeX but by Emacs proper. >So you could try to run Emacs with `emacs -Q' and check if the problem >persists. If it does, send a bug report the the Emacs developers with >`M-x report-emacs-bug '. Sorry, it was my fault; for some historical, forgotten, wrong reason I had: (setq comment-start "@c") in my ".emacs", rather than the current default: (setq comment-start "@c ") ;; ^ which causes correct indentation. I dunno why it worked with Emacs 21 and old AUC-TeX. -- Marco Maggi "Now feel the funk blast!" Rage Against the Machine - "Calm like a bomb" ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Command completion
On 13-02-2008 6:41, Ralf Angeli wrote: According to the AucTeX manual, command completion could be obtained using M-. However, this is not working for me. Suppose that I write \dat and then I do M-. Then I get this error message: Searching for program: no such file or directory, egrep What's the output of `C-h k M-' in a LaTeX buffer? M-TAB (translated from ) runs the command ispell-complete-word which is an interactive compiled Lisp function in `ispell.el'. It is bound to M-TAB,. (ispell-complete-word &optional interior-frag) Try to complete the word before or under point (see `lookup-words'). If optional interior-frag is non-nil then the word may be a character sequence inside of a word. Standard ispell choices are then available. Does it work if you use `M-C-i'? No; I get again the error message: Searching for program: no such file or directory, egrep Best regards, Jose Carlos Santos ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex