GNU Emacs is an extensible, customizable text editor written primarily in Emacs Lisp.

learn more… | top users | synonyms

1
vote
1answer
33 views

Exporting .org files to LaTeX - Error

I'm new to EMACS (on Ubuntu) and I have started using the org mode to begin with. I tried to convert my .org files into LaTeX only to see an error saying pdf was not produced Upon checking the error ...
3
votes
1answer
40 views

AUCTeX beamer class does not auto-insert section label

I am now using AUCTeX 11.89.1 on emacs. When I start a beamer class document, the label is not automatically added after using C-c C-s to start a new section. I have to use C-c C-( to add the label ...
4
votes
2answers
100 views

how to make (TeX-command-run-all) save automatically without asking?

I have just upgraded to AUCTeX 11.89.1 in emacs and find the new command (TeX-command-run-all) quite convenient. One problem is that after modifying the file and typing C-c C-a, confirmation is needed ...
1
vote
1answer
20 views

Howto use Okular with Emacs Auctex?

When I follow subham soni's instructions to connect emacs with Okular, I get the error message "Symbol's function definition is void: nil" when emacs tries to call the viewer "Command: (default View)" ...
1
vote
0answers
20 views

AuCTeX doens't compile inline equations

I installed on my Ubuntu emacs and AuCTeX (by sudo apt-get install emacs; apt-get install auctex) and when I want to get the preview I get it only for display-style. Here is a screen shot of MWE, Is ...
1
vote
1answer
37 views

Org Mode Latex fragment preview fails to convert tex to png [closed]

I have a windows 10 machine, and MikTex. Whenever I try to toggle the preview of the I get an error in messages buffer below: org-create-formula-image-with-dvipng: Failed to create png file from ...
3
votes
1answer
57 views

Handling left-to-right inside right-to-left paragraphs using Emacs and AUCTeX [closed]

I'm using Emacs to typeset a document which has English as its main language but which will use Hebrew and Greek as well. You can see on my screenshot how the \footnote command shows two open ...
1
vote
0answers
21 views

Opening an External PDF in Emacs from Terminal [migrated]

I am using Emacs on the Mavericks OSX Terminal. I can open the TeX file fine, but I can compile a pdf via C-c C-c. Is there some way that I can open the pdf in an external window via the command line? ...
2
votes
2answers
67 views

Insert unicode character in auctex math mode

I use emacs with auctex to run lualatex. Is there a way to modify the math input of auctex, e.g. modify LaTeX-math-zeta, bound to the keystroke <`z>, so the unicode character ζ instead of \zeta is ...
2
votes
0answers
30 views

AUCTeX LaTeX-insert-item not environment-specific for tabular [closed]

When Emacs is in AUCTeX's LaTeX mode, the command LaTeX-insert-item (C-c C-j or M-<Ret>) starts with a new \item in an itemize (or similar) environment. According to the AUCTeX manual, the ...
1
vote
1answer
43 views

emacs, twoside option doesn't go in documentclass, why?

I'm typing up some notes in Org-mode (emacs). When I try to export the *.org file as *.tex file and then get a pdf, I see the EVEN page numbers don't appear on the outside of the page as I want them ...
4
votes
1answer
64 views

Inverse search with Emacs/AucTeX and SumatraPDF [on Windows 10]

I've been trying to use Emacs/AucTeX along with SumatraPDF to view my output. In particular, I would like to make the forward and inverse search work. I use Windows 10. Problem Every time I double ...
2
votes
1answer
28 views

Biblatex entries in bibtex-mode (emacs)

Biblatex introduces new entries such as journaltitle (see Compatibility of bibtex and biblatex bibliography files?). Biblatex manual, section 2.3: In sum, the following items are different from ...
1
vote
1answer
70 views

Trouble getting AUCTeX to load with emacs update

I have just updated to Gnu Emacs 24 and am having trouble getting AUCTeX working. I have used the Emacs package manager to install AUCTeX 11.89, and I have (require 'tex-site) in my .emacs file. But ...
3
votes
1answer
36 views

AucTeX preview-latex temporary files

How can I tell preview-latex to store all temporary files (especially the folder _region_.prv which contains the preview images) in /tmp and not in the folder of my actual .tex file, when I'm using it ...
1
vote
1answer
32 views

moderncv in AUCTeX doesn't produce accented vowel, why?

I'm trying to write a resumé with the moderncv class in AUCTEX (special LaTeX mode in emacs). I actually wrote the *.tex file in TeXmaker months ago then recently tried to re-ran the file with AUCTEX. ...
3
votes
1answer
32 views

Make Emacs ignore “mismatched” \index parentheses

I'm indexing a LaTeX document using Emacs and AUCTeX and RefTeX. One thing that makes it harder to match delimiters in the document (or to spot mismatched ones) is the propensity of Emacs (or maybe ...
1
vote
1answer
68 views

Error exporting from org-mode to beamer

When trying to export from org to beamer I get this msg: Processing LaTeX file ./ppt.tex... org-latex-compile: PDF file ./ppt.pdf wasn't produced: [undefined control sequence] I don't know ...
2
votes
0answers
174 views

Emacs and MacTex in El Capitan

I am a newbie to Emacs and have just installed GNU Emacs from emacsformacos.com on OSX "El Capitan" but couldn't figure out how to correctly link Mactex 2015 to Emacs. When trying to Latex a tex ...
0
votes
1answer
27 views

reftex-cite-format customizations not loading

RefTeX will no longer load my custom citations commands when using the lines from Setting up RefTeX with biblatex citation commands in my init file. Nothing changed in my init file, but it no longer ...
1
vote
1answer
53 views

Compile Latex in Emacs.app with AucTex

I installed emacs 24.5 and auctex 11.88 on os 10.9. The compilation (C-c C-c) of a tex file does not work in the GUI (Emacs.app), but it does work in the terminal. I get the following error I ...
1
vote
1answer
36 views

Forward search from dependent file, b/w emacs and Sumatra on Win7?

I have GNU Emacs 24.4.1 (i686-pc-mingw32) with AUCTeX 11.88.9. In a recent document, I've noticed that the forward search (source to pdf) from a file that has been included in main.tex via the \input ...
2
votes
1answer
98 views

How to get \cref to print “Fig.” in emacs?

I'm having trouble using \cref in emacs' AUCTeX + RefTeX mode. The pdf shows the reference to a picture as "section 1.3" instead of "Fig.1a" (see snapshot below) as it should, when ...
4
votes
1answer
31 views

Emacs is not recognizing files as latex and going into latex-mode?

I understand that the tex-mode command of Emacs is supposed to try to identify whether a file is TeX, LaTeX or some other TeX-variant when opening a .tex file, and switch automatically into the ...
3
votes
1answer
72 views

auctex forward search in multifile tex with sumatra and arara

Forward inverse search work properly for single-file documents. As for multifile document, I use local file variable to indicate the master tex file. When editing in some included document, auctex can ...
0
votes
1answer
21 views

Emacs / AUCTeX Preserve highlights from other modes after apply style hooks

I use additional Emacs modes in conjunction with AUCTeX, such as writegood-mode and rainbow-delimiters-mode, which each add their custom highlights to the current buffer. Unfortunately, after ...
2
votes
1answer
42 views

How to load and use AucTeX when editing LaTeX snippets in Markdown files in Emacs?

I edit lots of Markdown files where LaTeX snippets are embedded between a pair of $ or $$. Is there a way to load and use AucTeX package to preview these snippets in Emacs? The motivation is to ...
0
votes
0answers
51 views

Preview-latex images wrong locations. (offset by 1)

I've been writing up homework assignments with various equations in align blocks using latex. I've recently begun using AUCTeX with its preview functionality, which is really cool. Things start out ...
6
votes
2answers
2k views

How to use Auctex in MacOS El Capitan?

I'm using GNU Emacs from emacsformacos.com After Migration to OSX 10.11 "El Capitan", Auctex can't run the *tex utilities anymore: Running `LaTeX' on `poisson' with ``pdflatex -file-line-error ...
3
votes
1answer
68 views

How can I change the colors AUCTeX set for some keywords?

I am using emacs + AUCTeX to edit my documents. AUCTeX seems to override many colors, which are annoyingly high contrast. It made keywords stand out so much more than the contents, which is not what ...
3
votes
2answers
107 views

References and bibliography with knitr, ESS and AUCTEX

I'm trying to get references working in a knitr Rnw document using ESS, AUCTex, TeXLive, and natbib. Here is a minimal example: \documentclass{article} \usepackage{natbib} \begin{document} ...
1
vote
0answers
45 views

PDF preview in emacs24 does not pop-open [closed]

On a previous distro (lubuntu) I was running, I was using emacs24 to write my .tex files (along with Acutex). When I wanted to see what the file looked like, I would click "Latex" and then I would ...
2
votes
0answers
44 views

Auctex not finding package [closed]

This question is the same as a previous question, although I'm using emacs24. On attempting to compile a latex document, after starting emacs from ubuntu's launcher, the file, or the terminal, I get ...
3
votes
1answer
192 views

AUCTeX, “preview image not supported”?

I'm trying to set up Emacs 24.3.1 to work with AUCTeX on Win7. When I try to use the Preview feature on the testing 'circ.tex' file I get the following error: TeX Output exited as expected with code ...
1
vote
1answer
102 views

Emacs + Auctex: pdflatex command not found on terminal

I'm new to emacs and latex, in general. I'm trying to compile a basic latex file after having installed auctex on emacs. However, when I run C-c C-c on emacs (inside a terminal) I get bash: pdflatex: ...
2
votes
1answer
50 views

How to omit comfirmation when I compile the files in emacs?

When I update my document and compile it, I will experience as follows: Save file /home/*****/test2.tex? (y or n) y command: (default LaTeX) LateX I want them to perform default. And not show ...
1
vote
1answer
120 views

auctex: in-document emacs font style for latex macros and environments

Is it possible to define in the latex document also the auctex font for user macros and environments? Here is an example of what I would like to do: \newcommand{\nothing}[1]{} %% ;;; \nothing color ...
1
vote
0answers
115 views

Cygwin Emacs+Auctex+Evince?

I am trying to get emacs, auctex and evince working together on Cygwin. The forward search works, but not the reverse search (Evince->Emacs). I tried in vain to find out if the emacs bundled with ...
1
vote
1answer
85 views

LaTeXTidy in Emacs

I often use Eric Tsu's LaTeXTidy script to neaten LaTeX files in TextMate, which includes it in the LaTeX bundle. I press a key-binding and LaTeXTidy formats the file. One can do this multiple times ...
0
votes
0answers
63 views

Emacs and Auctex, problem setting master file

I'm using emacs 25 and auctex 11.88. I have several tex files in the same folder, and one of them is the master file: main.tex: section1.tex %%% Local Variables %%% mode: latex %%% Local ...
4
votes
1answer
75 views

How to input file with relative paths within

In most of my work, I use a specific .tex ("main".tex) file with a preamble and \begin- and \end{document}. In the document I use \input{...} to another .tex file, with no preamble. Let's say ...
4
votes
1answer
129 views

Auctex, view a pdf already opened in Emacs 25

I have emacs 25.0.50 and auctex 11.88. The auctex command C-c C-v opens a window with the pdf file (compiled with pdflatex). If that command is executed a second time, it does nothing. But in a ...
1
vote
0answers
62 views

Indentation inside align environment in Emacs + AUCTeX

I use Emacs + AUCTeX for writing LaTeX. I want in my code to have 4 spaces of indentation so I used these in my .emacs file: (setq LaTeX-indent-level 4) (setq LaTeX-item-indent 0) Everything works ...
0
votes
1answer
220 views

LaTeX error for siunitx in a longtable environment

I've been working on a large document which makes frequent use of \include{}ed longtable environments and siunitx. Recently, longer expressions using siunitx have been causing compile errors which I ...
1
vote
0answers
31 views

Why the option label are always put in before command in Auctex mode and How to fix it [closed]

dMy editing LaTeX environment is Emacs with Auctex. When I used C-c C-s to create section or C-c Ret to create environments, I am always asked to input some label for options the section or ...
2
votes
2answers
51 views

Biblatex is printing a 5 digit number when converting to pdf

I am using Emacs Org-Mode to export to pdf. I get a five digit number printing out in the references like the 00005 below. Schneier, B., (2004, January), Secrets and Lies: Digital Security in a ...
1
vote
1answer
75 views

Indentation of tabular-like environments in AUCTeX 11.88

AUCTeX 11.88 introduced a new style of indentation for tabular-like environments. I understand this is implemented in LaTeX-indent-tabular. Is there an easy way to revert to the old style?
1
vote
0answers
76 views

How to add self defined environment to verbatim environments

Using the following code in emacs configuration file makes the listed environment as verbatim. (setq LaTeX-verbatim-environments-local '("Verbatim" "lstlisting")) How can I add following ...
4
votes
2answers
134 views

Using math symbols within lstlisting

I am using $ and _ symbols within lstlisting environment and the output pdf looks OK but I am having an issue within emacs editor where the occurrence of $ changes the colour of the whole document and ...
0
votes
1answer
70 views

Strange behaviour when compiling auctex from MELPA inside Cygwin's Emacs (w32 version)

I tried to compile the auctex from Emacs MELPA. The version is: 11.88.4 When I first open a .tex file, compile AUCTEX, and change to "TeX-latex-mode", Emacs will work properly, the menu bar also ...