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

learn more… | top users | synonyms

0
votes
1answer
124 views

Including a forward slash within org mode italics block

In org mode (Emacs-24.4.1) I am trying to include a forward slash in a sentence that is italic but it is used as the italic boundary e.g. /Using double Flk1^{-/-} mutants/ where I want the whole ...
23
votes
6answers
28k views

Mavericks upgrade screwed up my pdflatex (command not found)

so everything was working fine ... until i upgraded to os x mavericks (version 10.9.2) a couple days ago. using emacs version 24.3 (9.0) auctex version 11.87.3 after upgrade, tried to compile and ...
3
votes
1answer
62 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
1answer
15 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
2answers
62 views

Setting Emacs TeX-engine locally does not work

I'd like to follow the advice from @egreg in his answer to the question AUCTeX and XeTeX. However the given code does not work for me. I have: \documentclass{article} \usepackage{fontspec} ...
1
vote
1answer
70 views

Emacs “built-in output viewer”

I'm learning Emacs and I was reading the mighty LaTeX Editors/IDEs, where it says that Emacs has a "built-in output viewer". However I can't seem to find it. According to my understanding, a ...
1
vote
1answer
83 views

Emacs Org-mode ignors #+ATTR_LATEX

I use beamer org-mode 8.2.10 to produce presentations. In the following the width attribute (here 0.45) gets just ignored and replaced by 0.9 #+ATTR_LATEX: :width=0.45\linewidth [[file:/osx.png]] ...
0
votes
0answers
56 views

How to cleanly post-process PDF compilation in AUCTeX and ESS?

This question is somewhat related to this one, but separate. Thanks to Jan Gleixner's utility, One can obtain synchronization between a source foo.Rnw compiled by knitr and the resultant foo.pdf. ...
3
votes
1answer
98 views

add lines into tex file

I have this tex file coming from matlab. \begin{tikzpicture} \begin{axis}[% width=\figurewidth, height=\figureheight, scale only axis, xmin=1, xmax=5, ymin=2, ymax=10 ] \addplot [color=red,line ...
4
votes
1answer
87 views

Disabling input method inside a math formula in Emacs with AUCTeX

I am typing a math document in Russian using Emacs 24.3.1 and AUCTeX 11.87. I am using the russian-computer input method to type Russian. It would be very convenient to disable this input method ...
2
votes
1answer
31 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 ...
0
votes
1answer
76 views

Glue 2 documents, rename all labels in one of them

I need to combine several documents into one. Unfortunately both documents started e.g the equation labeling by \label{eq:1}. Is there a neat way to work with both TeX files and are cross references ...
1
vote
2answers
71 views

How to set up automatic build in Emacs

I've done this with Texclipse in Eclipse using a script that is called after every edit or refresh. I wonder if this is possible in Emacs? For Emacs, I manually compile by calling M-x tex-compile ...
27
votes
2answers
615 views

Click on package name to open corresponding style file?

I think it would be super if, in my LaTeX editor, I could click on the name of package... \usepackage{blob} ... and the corresponding style file, blob.sty, would be opened. Do any LaTeX editors ...
1
vote
1answer
86 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 ...
4
votes
1answer
52 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 ...
3
votes
1answer
941 views

Adding an option to the PDFLaTeX call from AUCTeX

In my .emacs I have '(TeX-PDF-mode t) set. So I'm using PDFLaTeX. I'm not sure why this is not the default these days. I had also set '(LaTeX-command "latex -shell-escape") In hindsight this ...
1
vote
0answers
57 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
0answers
50 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 ...
13
votes
4answers
780 views

Navigate a TeX code using emacs

Are there useful navigation shortcuts in emacs when editing a TeX source? For example jump to the beginning/end of section, or similar thing for environment, etc. C-v and M-v are too coarse, and I am ...
0
votes
0answers
34 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 ...
51
votes
2answers
8k views

Org-mode export to LaTeX: temptation or nuisance?

We are talking about Emacs and Org-mode: There are several advantages of drafting papers with Org-mode and to have them transferred later to LaTeX, e.g.: I'd like to avoid »programming while ...
1
vote
1answer
107 views

Add key binding to emacs in AucTeX does not fully work

Based on the discussion in these questions (1, 2, 3), I created the following key bindings for AucTeX in emacs. (defun AucTeX-LaTeX-beginendgroup () (local-set-key (kbd "C-{") "\\begingroup ") ...
4
votes
1answer
114 views

citing from zotero for workflow in emacs/AUCTex

I am trying to develop a workflow as I begin writing my dissertation (in the social sciences). I am using emcas as my LaTeX editor, Zotero as my citation manager, and Linux Mint as OS. I had a ...
0
votes
2answers
326 views

Emacs gives me “Latex: problems after [0] pages”

Yesterday, out of the blue, my emacs+auctex configuration stopped working and I started getting the following error when trying to do pdflatex, "Latex: problems after [0] pages". Hitting Ctrl+C+L I ...
10
votes
2answers
4k views

Change view-command in Emacs and AUCTeX (pdf mode)

My version of Emacs and AUCTeX[1] uses TeX-evince-sync-view for viewing pdf. This command is not working for some reason. Evince is launched but Emacs freezes and I have an error Couldn't find ...
1
vote
0answers
35 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
98 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 ...
12
votes
3answers
3k views

How can numbering of specific headings be disabled in Org-mode's LaTeX export?

By default Org-mode exports to numbered LaTeX headings. For example, the following #+title: Test * Introduction * Heading * Heading * References exports to \section{Introduction} \label{sec-1} ...
22
votes
3answers
4k views

Uninformative error message when using AUCTeX

I often have this error when using AUCTeX: TeX-error: Error occured after last TeX file closed However, when running for instance pdflatex on the command line, I have a proper error message. But the ...
1
vote
0answers
27 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 ...
3
votes
3answers
358 views

Include custom file into header with org-mode

I have a LaTeX file with some directives for my TeX documents (\usepackage and such things). Now I want to reuse this file in different org-mode files. I know I can include files with #+include: ...
4
votes
1answer
288 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: ...
2
votes
2answers
46 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
41 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?
4
votes
2answers
110 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 ...
1
vote
0answers
62 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 ...
0
votes
1answer
40 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 ...
2
votes
1answer
69 views

Make a new AucTEX command

I'm writing a document using eps graphics so I need to compile with Latex to produce a dvi file. In that file graphics don't show (they're a combination of .tex and .eps files), but if I do dvipdf ...
2
votes
1answer
930 views

Getting AUCTeX and amsmath to work with multiple files

I'm using Emacs 23.1.1, with AUCTeX plugged in, to edit my .tex files, but I'm having a small problem with my amsmath environments. The current document I'm editing is divided into multiple files. ...
5
votes
3answers
4k views

Aquamac, AUCTeX should open PDF in external viewer, not render it in Emacs buffer

I use AUCTeX in my Mac Emacs, which is Aquamac 23.1. Typically in AUCTeX, when I type C-c C-c it runs pdflatex, then C-c C-c again and it opens it in a PDF viewer. But in this Aquamac emacs version, ...
13
votes
2answers
3k views

How to turn on flyspell mode with AUCTeX?

I'm using flyspell mode, but unfortunatly I have to M-x flyspell-mode in each AUCTeX buffer. Somehow (add-hook 'LaTeX-mode-hook 'flyspell-mode) doesn't work for me. What is the correct flyspell-hook ...
2
votes
1answer
118 views

Adding keybord shortcut for AUCTeX in Emacs

Disclaimer: This is a question about Emacs and AUCTeX. Sorry if this is out of the scope of tex.sx. How can I add a new command to AUCTeX? I want my AUCTeX mode to have the command C-c C-f C-p ...
0
votes
1answer
337 views

Problem setting master file to current file with Emacs/AucTeX

I have a TeX file containing these few lines at the end: %%% Local Variables: %%% mode: latex ...
2
votes
0answers
78 views

emacsclient issue when using pdfsync on Mac OS X

I'm trying to sync between emacs and skim, and this is the site that I reference: http://stackoverflow.com/questions/7899845/emacs-synctex-skim-how-to-correctly-set-up-syncronization-none-of-the-exi ...
1
vote
0answers
77 views

AUCTeX (wrong-type-argument stringp nil) error when clicking the button

I have my AUCTeX/emacs setup following this site: http://www.stefanom.org/setting-up-a-nice-auctex-environment-on-mac-os-x/. Everything works fine, C-c C-c gives me correct pdf, and C-c C-v shows the ...
47
votes
1answer
3k views

AucTeX extension for TikZ

Is there an AucTeX extension which supports the TikZ syntax and that one of the tkz-collection as well? In particular I want thinks like: syntax highlighting proper indentation that ...
8
votes
3answers
6k views

Emacs AUCTeX View command

I need help using the View command in AUCTeX running in Emacs. This is essential for viewing PDFs and without it I can not make TeX documents. In my .emacs file I have the following (which was created ...
2
votes
1answer
98 views

texdoc finds no results for any package

Whatever package name I use when invoking texdoc, I get no results. Which seems to indicate that something is missing from the setup. I made sure that several documentation packages are installed. ...
2
votes
1answer
229 views

How to get Emacs to load Auctex using an init file in my HOME directory?

I am making the transition to Emacs from TexStudio because I can see that it's gonna really speed up things even though it's going to be a tough learning curve. So far all my initialisation code ...