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

learn more… | top users | synonyms

10
votes
1answer
2k views

How to configure Emacs and AUCTeX to perform Forward and Inverse Search

I have emacs23 and AucTeX installed on my Ubuntu system. I would like to change the default pdf viewer in emacs and enable forward and inverse search. How do I do it? I would like to share my ...
6
votes
1answer
55 views

All lines itemized when mark is active

In AUCTeX I would like the behaviour of LaTeX-environment and/or LaTeX-insert-item to create multiple items for every line when called with mark active.
6
votes
1answer
749 views

AucTeX Emacs Compilation Problems

I installed emacs23 on my Ubuntu 13.10 64-bit system. I also downloaded the AucTeX tarball and installed it (./configure then make and finally make install). Now I get the LaTeX commands in the menu ...
0
votes
1answer
433 views

Can not preview latex equation in org-mode. dvipng and imagemagick both failed

I have a tough problem now with my org-mode in windows 7, can anyone help me to find a solution? Here is my problem: When I preview my latex equation with org-preview-latex-fragment function, it ...
2
votes
1answer
114 views

How can I link together outline-mode with RefTeX-TOC?

The question title says it, pretty much. How can I link together RefTeX's TOC functionality with outline-mode such that I can fold sections/subsections/etc.?
2
votes
1answer
69 views

Instant Rebuild & View of LaTeX Buffer in AUCTeX

Is there a command in latex-mode when using Emacs+AUCTeX that combines TeX-command-buffer and TeX-view into one single instant redisplay command? I don't see the point in having two separate key ...
4
votes
1answer
78 views

In Emacs (with AUCTeX), if i use <C-c '> to see errors, it copies the command <C-c %>

I don't know why, but since recently my Emacs is behaving strangely. As usual I compiled using C-c C-c to call LaTeX, then there were errors and it asked me to type (as usual) C-c '. but when I did it ...
1
vote
0answers
109 views

Two problems with Emacs and Latex [closed]

The first problem is that when (in AucTex mode) I click the "view dvi" in emacs, xdvi appears for a millisecond and then disappears. Doesn't happen for files that are just a few pages long. When I ...
2
votes
1answer
438 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 ...
0
votes
0answers
52 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 ...
2
votes
0answers
389 views

Setting up Embedded LaTeX in emacs org-mode

According to the org mode manual for emacs, one can view pieces of LaTeX code embedded in an org-file. This is supposed to be default behavior bound to the keys C-c C-x C-l which invokes the ...
7
votes
1answer
94 views

How to configure flyspell to ignore the content of a given environment?

When using flyspell in emacs, it can be useful to configure flyspell to ignore the contents of certain environments, e.g. tikzcd or tikzpicture. For example, in the document below one would like to ...
10
votes
2answers
504 views

Get emacs to automatically insert \end{} commands after a \begin{} command

I've recently switched from Kile to Emacs/AUCTeX for LaTeX editing. I like AUCTeX a lot more in general, in part because I've put a lot of effort into learning Emacs really well. One feature I really ...
1
vote
0answers
48 views

why did i only use sudo open emacs C-c C-c can work with AUCTeX? [closed]

two question: 1.use sudo open emacs the AUCTeX can work with C-c C-c and C-c C-v 2.sudo open emacs C-c C-c show Latex erros system mac OS X Mavericks, auctex11.87.2, emacs24, zsh.
5
votes
1answer
70 views

Auctex: bug in LaTeX-mark-environment?

Before I send this on to the developers, I'd like to know if others can confirm this problem. Consider these two environments: \begin{flalign*} sdfsdf \end{flalign*} \begin{flalign*} && ...
6
votes
1answer
312 views

Is it possible to compile asymptote(.asy) file without displaying the figure

Today I want to draw several 3D schematic diagrams that could be inserted in my LaTeX files. And I chose asymptote because of its widely known 3D rendering advantage over other tools. I configured ...
0
votes
2answers
85 views

Error message when compiling ConTeXt document from Emacs [duplicate]

The command texexec --once --texutil --engine=xetex --interface=en --nonstop tmp.tex' gives the following error message when called from Emacs, but not when called from Terminal: ...
3
votes
1answer
337 views

Emacs Indentation Problem

I started using Emacs/AUCTeX for writing my LaTeX documents. I now have an \begin{inparaenum}[(1)] \item An Item \item an other Item \item this is an item, too ! \end{inparaenum} ...
3
votes
1answer
408 views

AUCTex Installation

I installed Emacs with AUCTex using the following code in Ubuntu 13.10: sudo apt-get install texlive-base emacs23 auctex preview-latex I followed these instructions, but the Code that should be ...
1
vote
0answers
633 views

Emacs 24 with AUCTeX in Ubuntu 13.10

I installed AUCTeX from the Emacs package manager. Then I configured it by typing ./configure OPTIONS. It doesn't complain and I typed make and make install. I tried to open a simple LaTeX document. ...
4
votes
0answers
68 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is ...
2
votes
0answers
126 views

Emacs' Preview LaTeX: Using different background colors depending on environment

In Emacs' Preview LaTeX, I would like included graphics (e.g., what's inside \includegraphics) to look different than all other previewed environments. Otherwise, graphics that have black lines ...
6
votes
1answer
102 views

Why does AUCTeX have \autocite taking two arguments?

Obviously, compiling this just yields A sample citation: [1, p. 1]arg two?no arg three. so \autocite itself definitely isn't using the argument. Why is this so, and how can it be fixed? Note ...
5
votes
1answer
739 views

Use of templates in org mode of emacs

How can I use following template in an org mode on latex. This will help me understand the org mode latex. Kindly explain the changes you make in the template so that I understand the org mode better ...
4
votes
1answer
151 views

Configuring auctex for pdf viewer

I'm on Ubuntu 13.10, Emacs 24.3.50.1, TeX Live 2013, AucTeX 11.87.2 (from ELPA). I've followed the instructions given by this page on enabling Okular (I'd rather use Evince, though), but this doesn't ...
2
votes
0answers
47 views

Are AUCTeX forward search and inverse search meant to work with C-c C-r and C-c C-b too?

Background: C-c C-r is like C-c C-c except it's for compiling & viewing just a fixed portion (specified by the user) of a TeX buffer. C-c C-b is like C-c C-c except it's for compiling & ...
1
vote
1answer
258 views

latex in org mode of emacs and regular latex

What is the difference, advantage or disadvantage of using org mode in emacs? If there are advantages, would you like to explain how it is used and what codes goes into using it. I am new (3 days) to ...
1
vote
0answers
59 views

LaTeX tricks with emacs+auctex [duplicate]

I am interested by Emacs+AUCTex tricks. By "tricks" I understand lines of code to put in the .emacs and which enhance the use of Emacs+AUCTex for producing .tex documents. My .emacs uses only reftex ...
3
votes
0answers
85 views

Is it possible to make AUCTeX preview of equations work with beamer?

When I generate preview images (using C-c C-p C-p) for the following document, the images are correctly generated but they are placed in wrong places in the buffer. Is it just me or MS Windows users? ...
6
votes
3answers
496 views

How to organize a .bib file edited by hand?

Normally I use zotero and its bibtex/biblatex export tool to create a .bib file. But this method doesn't put you in charge of the bibliography and you could reproduces errors in the references if ...
6
votes
1answer
78 views

How to make AUCTeX recognize asymptote environment for correct commenting out

Is it possible to make AUCTeX recognize the asy and asydef environments to use the correct symbol for commenting out? In latex-mode the command comment-region does add % at the beginning of the line. ...
2
votes
1answer
166 views

tikz library calc and auctex preview in emacs fails

The emacs-variable preview-default-preamble contains the statement \PreviewEnvironment{tikzpicture} so tikz pictures are processed by preview, which usually works fine. But preview in emacs fails if ...
1
vote
0answers
249 views

emacs as an editor and document management system [closed]

Though I use texstudeo for my latex editing and lyx for day to day work, Is there any advantage in moving to emacs in terms of ease of use document management revision control document search ...
2
votes
1answer
290 views

Make predictive mode default emacs

Every time I fire up Emacs, I run M-x predictive-mode. Is there a way to automate that and preferably while editing TeX.
4
votes
1answer
299 views

How can I streamline insertion of LaTeX-math-mode symbols in AUCTeX?

In AUCTeX, you can enable a minor mode called LaTeX-math-mode that instructs the prefix character ` to insert various common macros. For example, ` t inserts \tau@ when you are in a math environment ...
5
votes
1answer
130 views

Choosing TeX distribution in AUCTeX

I'm using AUCTeX version 11.86 in GNU Emacs 23.2.1 in Windows 7, and I've just updated MiKTeX from version 2.8 to 2.9. How do I tell AUCTeX to use version 2.9 rather than 2.8? A similar hypothetical ...
9
votes
3answers
245 views

RefTeX: shortcut to open the .bib file of the current document

I would like the have a simple keyboard shortcut/command in emacs that opens the .bib file of the current (possible multifile) document. This should be possible with RefTeX, as it can figure out the ...
1
vote
1answer
71 views

Folding file-specific macros in AUCTeX

What is the best way to have AUCTeX fold some math macros specifically for one file? For example in this very trivial example: \documentclass{minimal} \newcommand{\foo}{\lambda} \begin{document} ...
3
votes
1answer
176 views

AucTeX and Chapterbib

Executing BibTeX via Auctex (RefTeX) in emacs (24.2.1) only creates a .bbl file for the master file in a multifile document. Yet, if one wants bibliographies for each chapter, BibTeX has to be run on ...
2
votes
1answer
434 views

Multiple bibliography/addbibresource in reftex

It seems that reftex only scans the file associated with the first bibliography/addbibresource command: \usepackage[backend=biber,bibencoding=utf8,url=false, isbn=false, doi=false, ...
2
votes
0answers
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 ...
2
votes
1answer
52 views

Set csquote macros in AUCTeX preference to work also with included files

I use to keep most of my documents in separate branch files and then /include them in the main tree document. Of course I don't need a preamble for all separate files. In my AUCTeX preferences I set ...
4
votes
1answer
499 views

Disabling the “select reference format” menu in reftex

I'm not sure if this is the right place to ask this question, so if not, please let me know where it would be more appropriate. Since upgrading to Ubuntu 13.10, something seems to have gone wonky ...
1
vote
1answer
516 views

shell-escape is not enabled with emacs

I use Emacs as an editor, and I would like to compile a file that contains PSTricks code with LuaLaTeX. The version of Emacs is : GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.18). My ...
2
votes
0answers
71 views

Tell speck-mode to not highlight commands?

As flyspell-mode is slow, I use speck-mode. With LaTeX files, this mode also spell checks commands. For example, not being an English word, documentclass is highlighted: Can I tell speck-mode to ...
0
votes
0answers
71 views

In Auctex, bibtex cannot create reference

Everything goes well in TeXshop. In Emacs, I went through following steps: C-c C-c latex C-c C-c bibtex C-c C-c latex C-c C-c latex but it keeps saying insolvable reference. Log file says: ...
3
votes
1answer
46 views

Is Inverse Search possible after the PDF file has been modified (e.g. annotated) (with Auctex and Okular)

I have configured Okular and Auctex so that forward and inverse search work like a charm when I have the *.tex file open and after I compiled the PDF file. I do, however, often encounter a scenario ...
2
votes
1answer
359 views

finding tex-site.el from emacs on mac os x 10.8

I am writing a question hoping to find some clue what's going on in my auctex/emacs combination. I use emacs/auctex to typeset latex document. In my macbook pro, I am using GNU emacs 22.3.1. With ...
2
votes
2answers
659 views

how to automatically open pdf file after dvi2ps2pdf in emacs

i want to let emacs automatically open pdf file after i type C-c C-c dvi2ps2pdf RET, so i add the following code in my .emacs file ;;dvi2ps2pdf (add-to-list 'TeX-command-list (list "dvi2ps2pdf" " ...
1
vote
1answer
103 views

Extra characters in reftex citation yasnippet

I am having an issue with a YASnippet for inserting a RefTeX citation. As many others have, I'm trying to use this snippet from GitHub with the following syntax \cite{${1:label$(unless ...