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

learn more… | top users | synonyms

4
votes
1answer
43 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 ...
-1
votes
0answers
31 views

What can I do to make my AucTeX installation work?

I installed AucTeX through emacs but it is not working; therefore I troubleshoot to find out that it is 'unsigned'; what can I do to get it signed? Pls, see the image of what I got in this attachment: ...
3
votes
1answer
884 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
1answer
65 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]] ...
1
vote
0answers
40 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
44 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
1answer
113 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 ...
0
votes
0answers
49 views

I cannot latex from within emacs

I just got UBUNTU installed in my computer. Using the C-c C-f I get the reply: Searching for program: resource temporarily unavailable Any ideas? Thank you
13
votes
4answers
756 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
25 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 ...
2
votes
0answers
30 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 ...
20
votes
6answers
27k 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 ...
1
vote
1answer
101 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 ") ...
3
votes
1answer
102 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
269 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
29 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
84 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
21 views

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

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
316 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
281 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
44 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
38 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
101 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
58 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
34 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
56 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
926 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
97 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
307 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
71 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
54 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
5k 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
170 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 ...
4
votes
1answer
2k views

How to uninstall TeX Live on Mac which is installed through command “sudo port install texlive +full”?

At the beginning, my purpose is to set up AUCTeX with Emacs. I just do like below Download AUCTeX, then cd to the directory, make and sudo make install. It works well when the .tex file only ...
1
vote
1answer
35 views

Auctex command on region - backward search leads to region.tex instead of main.tex

In auctex I can run a command only on a certain region to speed up compiling. This works great, however if then I use the backward search to jump from the .pdf to the .tex source code, it opens the ...
20
votes
4answers
5k views

How to get BibTeX to work with Org mode LaTeX export?

I am trying to get Emacs (24.3.1), Org-mode (8.0.3, from ELPA) and BibTeX (from TeX Live 2012) to work together. I have followed the instructions under the Bibliography section in ...
5
votes
0answers
103 views

What are the advantages of switching to Emacs for TeX/knitR work?

Currently, I am using TeXStudio. Now, I am considering to switch to Emacs because I heard that is has its advantages when it comes to R and knitR. But what are the specific advantages? Yet, I am still ...
3
votes
0answers
222 views

How can I change the color of a \enquote quotation inside Emacs?

When I paste a text inside quotation marks into Emacs+AUCTeX, AUCTeX formats it with a soft red color (see the screenshot below at the first line). I like this color. However, I'm using csquotes ...
2
votes
1answer
71 views

Making pdftex default

The default TeXing option is LaTeX and for each document I have to use the menu item Command|Texing options|Generte PDF to change it to PDFLaTeX. How can I make PDFTeX the default TeX engine? ...
3
votes
1answer
110 views

How to properly make reftex work with multiple biblatex bibs?

I saw a comment in here that support for multiple addbibresource has been integrated into Emacs. However I'm using a few custom stys from where I require biblatex package with all the necessary ...
2
votes
2answers
62 views

reftex: include from `tex/`

In order to keep doc dir clean, I keep a master file in the top level of the doc, and other files in folders: . ├── bib │ └── refs.bib ├── img │ ├── img1.png │ └── img2.png ├── tex │ ├── ...
3
votes
1answer
72 views

Unable to produce bibliographic references in Emacs+AUCTex

I am trying to include references in a document of mine but I have a problem. First of all I use Emacs+AUCTex in Ubuntu. I have the following .tex and .bib files: Document File ...