32
votes
Accepted
Mavericks upgrade screwed up my pdflatex (command not found)
Note: users on more recent versions of macOS will not be able to follow these instructions due to new restrictions introduced in those versions. See comments for workarounds.
It seems that the ...
22
votes
Accepted
AUCTeX says "LaTeX: problems after {1} page"
AUCTeX parses the output buffer in order to report errors and warnings, and if there is none of them, it looks for a line like
LaTeX2e <date>
However, since April 2017, the date format of ...
19
votes
Accepted
Making AUCTeX aware of the TeX engine set in master file
If all LaTeX files in this directory will use the same engine, then you can set TeX-engine for all of them using Emacs per-directory local variables. Create a file in this directory named .dir-locals....
17
votes
Accepted
how to make (TeX-command-run-all) save automatically without asking?
The variable TeX-save-query controls this behavior:
User Option: TeX-save-query
If non-nil, then query the user before saving each file with TeX-save-document.
Add the following line to your ...
14
votes
Accepted
What does 'Tex-master' mean?
The tex master tells emacs which document to pass to latex.
So you can have a section or even just a single equation in a file that is \input into your master document, and when you use C-c C-c or ...
12
votes
Accepted
Emacs / AUCTeX search/replace in multifile documents
When ever you use emacs and auctex always remember to enable reftex as well or you will miss out on all sorts of useful goodies. In this case reftex-query-replace-document and reftex-search-document. ...
12
votes
Accepted
how to cite using emacs+auctex+reftex
Like for any other macro you want to insert in AUCTeX, you should use C-c RET cite RET (or C-c C-m cite RET; for more information about autocompletion in AUCTeX see the quick start or Completion ...
11
votes
What is your favorite Emacs and/or AUCTeX command/trick?
I just found this: C-c = makes a buffer with the TOC of the document appear which allows you select and navigate through your document.
Community wiki
11
votes
Accepted
How to set up forward/inverse searches with AUCTeX and Zathura
The Zathura SyncTeX interface has recently changed (I'm using v0.3.2 at time of writing): there is now no -s flag to activate SyncTeX. It might be the case that SyncTeX is active all the time.
The ...
11
votes
citing from zotero for workflow in emacs/AUCTex
Better BibTeX for Zotero allows for automated export to BibTeX/BibLaTeX (a.o.). It's set-and-forget; you export a collection to a file, tick "Keep updated", and Bob's your proverbial uncle. Any ...
11
votes
Accepted
How to use Auctex in MacOS El Capitan?
The problem was the PATH variable that Emacs uses (and passes on to shells it runs) is different from the users PATH variable. To customize Emacs' PATH one can use
(setenv "PATH" "/usr/local/bin:/...
10
votes
How to configure Emacs and AUCTeX to perform Forward and Inverse Search
Following subham soni's instructions will add the following lines to your .emacs
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, ...
9
votes
Accepted
Changing language of flyspell (Emacs) with a shortcut
Add the following code to your .emacs:
(global-set-key
[f3]
(lambda ()
(interactive)
(ispell-change-dictionary "francais")))
(global-set-key
[f4]
(lambda ()
(interactive)
(ispell-...
9
votes
Accepted
Add own macros to ".emacs"
The proper way to add support for a new style file is to create a style hook file, as explained in the AUCTeX manual.
Note that you can autogenerate the style hook file for a *TeX source issuing M-x ...
9
votes
Accepted
How to increase (relevant) verbosity of compilation errors with Emacs+AucTeX?
Since version 11.88, AUCTeX comes with an error overview, accessible via TeX-error-overview.
There are two possible setups: overview in the same frame of the TeX buffer and in a separate dedicated ...
9
votes
Accepted
AUCTeX View and Compile commands in Emacs 24.4
Having just made the same update to Emacs 24.4, I had similar symptoms. The view prompts are coming from the built in tex mode, not AuCTeX. Looking at the loading messages, there is a report that ...
9
votes
Accepted
Adding keybord shortcut for AUCTeX in Emacs
AUCTeX actually makes this very easy: customize LaTeX-font-list.
(add-to-list 'LaTeX-font-list
'(?\C-p "\\pname{" "}"))
should work. You'll have to re-run LaTeX-mode in the appropriate buffers if ...
9
votes
Accepted
Make a new AucTEX command
Use TeX-command-list for this job :)
(add-to-list
'TeX-command-list
'("DVI to PDF"
"dvipdf %d"
TeX-run-command
nil ; ask for confirmation
t ...
8
votes
Accepted
Installing the latest AUCTeX from within Emacs
Just as with other dired-like modes, you have simply marked the package for install. To actually do the installation, press x within the package manager after you mark it.
You can also delete old ...
8
votes
Accepted
Show document structure in AucTeX
There is an outline window: C-c =, it displays the table of contents. You can navigate inside this buffer to any headline.
When I installed AucTeX and RefTeX years ago, I put -- among others -- those ...
8
votes
how to cite using emacs+auctex+reftex
The command you need here is reftex-citation, which is bound to C-c [ by default. There is more info in the manual
Alternatively, you can use helm-bibtex in place of reftex. Helm-bibtex is more ...
8
votes
Accepted
Emacs AUCTeX & TL 2018 - Problems with non ASCII characters in the file name
We (for some definition of "we") will sort something out, but for now you can customize the latex command as follows (thanks jfbu)
customize TeX-command-list to contain
("LaTeX" "%`%l%(mode)%' \\\\...
7
votes
RefTeX won't find my .bib file in local library tree
I solved this problem by inserting '(reftex-use-external-file-finders t) into my emacs init file.
It makes RefTeX use the appropriate command from reftex-external-file-finders to find the file. In ...
7
votes
Accepted
How can I set RefTex default reference format?
Looking to the reftex-ref.el source code I found the following (undocumented) solution: add to your .emacs the line
(setq reftex-refstyle "\\Cref")
Please note that this will make \Cref the default ...
7
votes
Accepted
How can I have titles with normal font size with AUCTeX+Emacs?
If you want to use the color value of the font-latex-fontify-sectioning variable add the following code to your .emacs
(setq font-latex-fontify-sectioning 'color)
You must use 'color and not 'color' ...
7
votes
Accepted
What is the best side-by-side preview method for Emacs24 AUCTeX?
I installed the AUCTeX according to its manual. I wrote a small tex file, but I did not figure out how to get a side-by-side preview like that of TeXStudio for example.
I found one here called latex-...
7
votes
Auctex support for building using makefile in subdirectory?
Add the following code to your init file:
(eval-after-load "tex" '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-compile nil t)))
Then you'll be able to call the make program with C-c C-c ...
7
votes
Accepted
Emacs gives me "Latex: problems after [0] pages"
I would search your init files for references to TeX-expand-list. It's possible you're removing the value, though it seems unlikely.
Next, try updating AUCTeX (M-x list-packages) and restarting Emacs....
7
votes
Accepted
Indentation of tabular-like environments in AUCTeX 11.88
You can restore the old behavior by removing LaTeX-indent-tabular from LaTeX-indent-environment-list: M-x customize-variable RET LaTeX-indent-environment-list RET and remove all LaTeX-indent-tabular ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
auctex × 561emacs × 402
reftex × 43
preview × 42
forward-inverse-search × 28
pdftex × 22
mac × 16
biblatex × 15
math-mode × 14
compiling × 14
aquamacs × 14
errors × 12
editors × 12
bibtex × 11
xetex × 11
cross-referencing × 11
tikz-pgf × 10
indentation × 10
windows × 10
viewers × 10
ghostscript × 10
beamer × 9
macros × 9
latexmk × 9
installing × 8