# Tag Info

4

Within AUCTeX, latex.el provides support for vanilla LaTeX. Additions by packages are catered via AUCTeX style files. In this case, this is a shortcoming in cleveref.el which didn't have support for an optional argument in \label macro. This issue is now fixed and will be available with next AUCTeX release. If you want to use it now, customize the ...

3

I finally managed to do this like so (defun begin-end-regexps (env) (list env (replace-regexp-in-string "{\$$[a-zA-Z]+\$$\\*}" "{\\1\\\\*}" (concat "\\\\begin{" env "}\$$[^\0]*?\$$\\\\end{" env "}")) (concat "\\\\begin{" env "}\\1\\\\end{" env "}"))) (defun loop-math-modes (step) (if (texmathp) (let ((math-modes (list '("...

3

If you open your example file above and do C-h v TeX-complete-list RET, you see in the value a list item like this: (LaTeX--after-math-macro-prefix-p 1 (lambda nil (append (mapcar #'cadr LaTeX-math-list) (mapcar #'...

3

AUCTeX's built-in support for SumatraPDF was improved with the release of version 11.90. So make sure you have the latest version installed, which can be easily done from ELPA. You need to touch three areas: Win10's PATH environment variable This step is optional: Adjust the PATH environment variable and add the directory containing SumatraPDF.exe to it. ...

3

David Carlile has a point in mentioning TeX-newline-function, which is, by default, set to newline. Looking the latter's docstring, we find: If ‘electric-indent-mode’ is enabled, this indents the final new line that it adds, and reindents the preceding line. To just insert a newline, use M-x electric-indent-just-newline. I can reproduce the behavior ...

2

Note that if \usepackage{biblatex} is written in different lines as, e.g., \usepackage[ backend=biber, style=numeric, sorting=none ] {biblatex} AUCTeX will not notice it and leaves LaTeX-biblatex-use-Biber false.

2

The \label should be placed after the \caption, for it's the latter which generates the number \label refers to (see Why does an environment's label have to appear after the caption?). As a matter of fact, \label will always refer to the previous generated reference number in the document. RefTeX also applies this logic, in searching for the context to ...

1

Customize the variable bibtex-dialect to biblatex: bibtex-dialect is a variable defined in bibtex.el. Its value is BibTeX This variable is safe as a file local variable if its value satisfies the predicate symbolp. You can customize this variable. Documentation: Current BibTeX dialect. For allowed values see bibtex-dialect-list. To ...

1

1

Preview-LaTeX relies heavily on Ghostscript. Ghostscript went through some bigger changes lately and Preview-LaTeX now follows these changes with the latest release 12.2. Currently, the best combination is to update Ghostscript to 9.50 and AUCTeX to 12.2. The version from ELPA is numbered 12.2.0.

1

AUCTeX manual has provides: 5.2 Multifile Documents [...] AUCTeX keeps track of macros, environments, labels, and style files that are used in a given document. For this to work with multifile documents, AUCTeX has to have a place to put the information about the files in the document. This is done by having an auto subdirectory placed in ...

1

I think that latexmk is designed for this kind of situation. It's included in some TeX distributions, so you may have it already. Once it's configured properly, you should just have to run it once, and it will automatically detect whether Python needs to be run, run it, and then rerun LaTeX if needed. Anyway, once you have latexmk, in Emacs, run M-x ...

1

I suggest you don't hack on AUCTeX's commands but define your own one. You can define a series of shell commands to run via TeX-command-sequence. (TeX-command-sequence COMMAND &optional RESET FILE-FN) Run a sequence of TeX commands defined by COMMAND. The COMMAND argument may be nil: no command will be run in this case a string ...

1

In a comment, @ArashEsbati speculated I had multiple AUCTeXs installed, and suggested trying M-x list-load-path-shadows RET in Aquamacs after triggering the odd status message in a .tex file. @ArashEsbati was correct: M-x list-load-path-shadows RET revealed that I did indeed have two AUCTeXs installed. I removed one, then found that my .tex files failed to ...

1

AUCTeX doesn't have a full-fledged TeX parser. Therefore, it's not easy to implement something which indents the \if statements correctly. Reg. fontification of package writing macros: This is rather easy. I'd guess they are just missing as package writers don't turn fontification on -- it gives strange results in a .dtx or .sty file. At any rate, I ...

1

To add XeLaTeX explicitly in the TeX-command-list might get things to work (I haven't tried), but it is certainly not very "AUCTeXy", so to speak. AUCTeX tries to guess the correct engine to be used (say, if you load fontspec it will ask you about it), and lets you set it for the current file easily, with local variables. As to your use of TeX-command-...

1

Zathura+AUCTeX's forward search is almost perfect, but one thing is missing: Zathura's window is not automatically raised. Here's a hacky solution which monitors DBus messages and uses xdotool and wmctrl (yes, both) to raise the window. ~/bin/zathura-raise.sh: #!/bin/bash dbus-monitor --profile "type='method_call', path='/org/pwmt/zathura',member=...

1

My setup in order to get rid of this fontification annoyance started from giordano's answer but has evolved a little bit as I discovered problems. What I do In the Emacs initialization file (~/.emacs.d/init.el, ~/.emacs.el, etc.): (require 'tex-site) ; Load AUCTeX (defun my-font-latex-remove-unwanted-fontification-keywords () (dolist (command '("...

Only top voted, non community-wiki answers of a minimum length are eligible