auctex

How can you have a xEmacs-like-Auctex in MacVim?

I would like to have a figures right in my MacVim, similarly as in xEmacs' AucTex. ...

emacs, auctex, noweb-mode - how to keep screen from recentering around point?

When in auctex and noweb-mode (using Sweave in emacs), I find it distracting when the screen recenters itself as I use next-line, previous-line, etc. (C-n, C-p, and mouse-1). Does anyone know how to turn it off? Thanks much! ...

Emacs/AUCTex: run command on file that is not currently open

I edit my LaTeX files in Emacs using AUCTeX. To compile, I press C-c C-c, which will run pdflatex root, if root.tex is the file in the current buffer. But what if I want it to run pdflatex on a file that is not in the current buffer? For example, I am editing an included .tex file chapter2.tex and press C-c C-c. The command I want it ...

How to call latexmk in emacs, and jump to next-error

I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error, which is typically called with C-x `, and jumps to the next LaTeX error in the document. I would like to call latexmk either using C-x compile or the AUCTeX C-c C-c. First, I set latexmk to use $pdflatex = 'pdflat...

emacs M-e doesn't work properly in tex-mode

I'm using emacs and auctex to write LaTeX documents. For some reason, M-e doesn't move to the end of the sentence in tex-mode as it did when I went through the tutorial. It moves to the end of the paragraph. (That is, it moves to just before the next double line break) What is wrong? Do I need to turn on/off some mode to skip to the nex...

emacs auctex: can one auto-fill section labels?

Hi all, I am currently using emacs and auctex to author my latex documents. This is, of course, fantastic. However, I would like to have emacs and/or auctex auto-fill the section label when using C-c C-e to make a new header. It should end up looking like this: \section{This is a section title} \label{sec:this-is-a-section-title} wit...

suggestion for \cite in emacs with auctex

Hi, i would like to now how can i get the suggestion when i do a \cite in emacs-auctex. The minibuffer tells me when i do C-c [ that "No valid bibliography in this document, and no default available". So how can i set this default?, i have a separated file with my bibtex references that is call by a master document, and i want the sugge...

How can I tell if AUCTeX is available?

I have a package which has various features that depend on AUCTeX. As it stands, it requires hand-configuration: (defvar AucTeX-used nil) (if AucTeX-used (progn (require 'tex-site) (require 'latex)) (require 'latex-mode) (setq TeX-command-list nil)) Is there a way to find out whether AUCTeX is available on the machine, ...

In AucTeX, new item in itemized list after comment results in commented next item

In AucTeX, when editing an itemized list: \begin{itemize} \item My item % note to self \end{itemize} when I do C-c C-j after 'self' I get: \begin{itemize} \item My item % note to self % \item \end{itemize} when I want: \begin{itemize} \item My item % note to self \item \end{itemize} Is there a setting a can modify to make t...

Autocompleting \cite{} with emacs + auctex gives "cite: no such database entry"

Hi: I am running Emacs 23.1.1 and AucTeX 11.85 in an Ubuntu 8.10 machine. After opening a tex file, the first time I try to use the autocompletion of the \cite{} command, I get "cite: info not available, use `C-c &' to get it." in the minibuffer. After doing the 'C-c &', I get "byte-code: No BibTeX entry with citation key". Subseque...

Error trying to compile latex document. Where can I find the file "report output*"?

Help!!! I am trying to compile a LaTeX document that has been compiled before, but now for some reason it just won't go through. The error message I am getting is not very informative, and I can't even find the file it is pointing to. The details: I am using Aquamacs, and when I try to compile the document the mini-buffer displays the ...

Emacs: Define macro in comment and automatically execute it.

Hello, I'm using Emacs/AucTeX for editing LaTeX files. In some of my LaTeX files, I have defined some "file-specific" command (e.g. \todo{...} in one file, \compute{...} in another, and so on), so I can keep track of what open problems I have in my documents. The Emacs command highlight-regexp does quite a good joob in highlightning al...

Match Aquamacs' settings in emacs

How can I match Aquamacs' settings in Mac OS X emacs' AucTeX? Because of some reason I tried to install AucTeX to emacs for Mac OS X. For Aquamacs that has pre-installed AucTeX, everything is pretty cool. It runs SKIM pdf viewer for viewing the result. It can use pdfsync for reverse/forward link between Aquamacs and SKIM. ...

Escaping spaces when calling (buffer-file-name) in emacs

So, I had a question about getting word count to work properly in emacs LaTeX mode (auctex, actually, but never mind.) That was answered fine. Then I found I had trouble when the (buffer-file-name) included spaces. This made it mess up. This problem was got around too. Now the problem is that the solution breaks when there AREN'T any spa...

Using minted (source code LaTeX package) with emacs/auctex

As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use 'pdflatex -shell-escape SOURCE', but Q1 : How can I modify the AucTeX to insert the -shell-escape? I mean, how to change the action for C-c C-c? Q2 : Do I need s...

emacs, auctex and query-replace strings with newline

I use emacs+auctex and auto-fill-mode. Now sometimes I want to search (and replace) a string containing spaces like "test1 test2". The problem is, that auto-fill-mode replaces space-characters sometimes by newline characters. So search and replace of "test1 test2" does not find those occurrences of this string where auto-fill replaced ...

Emacs/Auctex: Automatically enabling/disabling LaTeX-Math-mode

Hello, I'm using Emacs in conjunction with AucTeX (running Ubuntu 10.04, if that matters). Does anyone know if there is a way to automatically enable LaTeX-math-mode (a minor mode of AucTeX) if the point is in any maths environment (i.e. in a $...$, a $$...$$, begin{equation}...\end{equation}, and so on)? I suppose there is a relative...

Emacs-AucTex-LaTex compilation problem

I use LaTex with Emacs and AucTex since 2 year and I haven't had any problem but, yesterday when I tried to compile the master-file LaTex give to me a strange kind of error: ERROR: Package inputenc Error: Unicode char \u8:\303\lst@FillFixed@ not set up for use --- TeX said --- with LaTeX. See the inputenc package documen...