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

learn more… | top users | synonyms

1
vote
0answers
56 views

The hyperref package breaks AUCTeX preview with two different journal style files

The following LaTeX MWE compiles, but AUCTeX preview does not work. This file tests for two different journal style files. One is Bayesian Analysis, the other is Oxford Bioinformatics (links are to ...
2
votes
0answers
204 views

How to change (Mac)Vim's syntax highlighting rules for (La)TeX files? [closed]

I'm a long-time AUCTeX/Emacs user that switched to Vim/LaTeX-Box recently. I got everything working the way I want and grew pretty fond of Vim, but there's still one unusual thing that bothers me: ...
0
votes
0answers
46 views

AUCTeX Emacs TeX-quote-after-quote shortcut when \usepackage{csquotes} is in inputed file

I load all my packages through one file which I include with \input{loadPackages.tex}. But with this procedure my Emacs Aquamacs preference ;; " expands into csquotes macros (setq ...
2
votes
0answers
34 views

how to change default editor for latex when compiling in the bash? [duplicate]

When you compile a latex file in bash (e.g., via a makefile), if latex encounters an error it stops for you to enter a command, for example R to continue running or Q to run quietly. Entering E calls ...
1
vote
0answers
26 views

How can I follow input links in auctex [duplicate]

Is it possible to do the following with AucTeX: Suppose you have a master file (master.tex) like: \documentclass{minimal} \begin{document} \input{fileA} \input{fileB} \end{document} and for ...
1
vote
0answers
41 views

eqref in reftex [closed]

I'm using Emacs + AUCTeX + refTeX. I've added (setq reftex-plug-into-AUCTeX t) to my init.elfile and everything seems to work fine except for one thing. When I choose to reference a label using C-c ) ...
0
votes
1answer
123 views

Cannot get Skim to open on C-x C-v

I have been trying to get Skim to start from emacs. I always get no "matching viewer found". Here are the settings of my .emacs and I am sure something is wrong here, but cannot figure it out. Any ...
0
votes
0answers
91 views

AUCTeX can't find file when there is an umlaut in its name (on Mac OS X)

I'm using AUCTeX for Emacs. I've got a LaTeX document that compiles fine outside of AUCTeX (so the file itself is fine). However, when I try to compile it from inside Emacs using Ctrl-C Ctrl C, I get ...
3
votes
0answers
80 views

Edit Tabular-like Environment using Emacs+AUCTeX [closed]

I am using Emacs+AUCTeX to write all my LaTeX files. So far so good except every time when I need to edit some tabular-like environment. I need some tricks or key bindings to take advantage of Emacs ...
1
vote
1answer
54 views

AUCTeX/ RefTeX: ignore files by extension

I'm writing a very long document with dozens of figures that are all generated with matplotlib and exported as pgf files. Each figure environment then looks something like \begin{figure} ...
2
votes
1answer
102 views

AucTeX - Turning inline mode into displaymath and vice versa

Usually, when redacting math stuff, I deal many times with the following situation : I have written some formula in a displaymath environment and, when compiling, realize it should look better inline ...
4
votes
1answer
52 views

How to call \enquote by pressing only one time " key in Emacs?

I'm using \enquote command of csquotes package to handle (multilingual) quotations. With Emacs+AUCTeX, I use the three following lines (in .emacs) to be able to call \enquote command by pressing to " ...
0
votes
0answers
63 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 ...
4
votes
2answers
201 views

Double-quote produces guillemets in emacs

I am having a totally bizarre problem with typing quote marks in tex documents in emacs. I work as an editor, so I receive tex source files from a publisher and I work on them. I work in emacs 24.3.1 ...
3
votes
2answers
313 views

Compile with emacs and update the view in docview

I'm using Emacs with AUCTeX under Ubuntu 14.04. My frame is splitted into two windows like this: ------------------------------ | | | | | | | ...
2
votes
1answer
118 views

How can I have titles with normal font size with AUCTeX+Emacs?

I'm wondering how to modify the way AUCTeX show titles. By defaut, the titles are too big for me and they take too much place in my screen. (ignore the red underlining created by flyspell set with ...
1
vote
1answer
256 views

Emacs: using emacsclient

I always set up emacs running in server mode, and every time I update Ubuntu, the procedure to do this changes. Even though I have all the same setting in my /.bash_aliases and /.emacs, it will not ...
3
votes
1answer
102 views

How can I set RefTex default reference format?

I'm using RefTex and cleveref. When I want to add a cross-reference I need to enter C-c ) C <SPC> to select the uppercase (\Cref) reference format and show all label types. I use this method to ...
5
votes
2answers
100 views

Emacs key binding open environment

On Emacs, I used to have "C-c C-e" as a shortcut to "open an environment with begin and end". I changed my computer and reinstalled emacs: Mac OS 10.9 and Emacs 24.3, and now in LaTeX mode, "C-c C-e" ...
3
votes
1answer
163 views

Installing the latest AUCTeX from within Emacs

Emacs 24+ comes with a package manager (M-x list-packages). This allows the user to install (and upgrade packages) by simply pressing I on the selected packages, with Emacs pulling from the right ...
5
votes
1answer
58 views

Tex-shell in AUCTeX

Whenever I compile a file in AUCTeX (e.g. C-c C-c and then choosing an option) , it creates a buffer tex-shell where I can see the output of the compilation command. Once the compilation finishes this ...
1
vote
1answer
53 views

Inserting Custom Commands with Emacs+AucTeX

I would like Emacs or AucTeX to do the following: here's some SELECTED TEXT for testing Then, I could hit a key stroke and convert the highlighted text "SELECTED TEXT" to here's some ...
0
votes
0answers
62 views

emacs macro: A sentence on each line

It is not a a latex question, rather an emacs one but related to latex! Does anyone know of a macro or ... that makes the following formatting possible: I want each line to contain only a single ...
0
votes
0answers
16 views

problem running Tex on os 10.9.2 [duplicate]

After installing OS 10.9.2 on my computer I can no longer use LaTeX. Every time I try to typeset a document I get an error message: The program 'pdftex' was not found. Searched in directories: ...
3
votes
0answers
63 views

XeLaTeX crashing only in AUCTeX

I'm running xelatex installed from TeXLive 2013 running on Cygwin, and it works fine compiling from the commandline with xelatex input.tex or latexmk, but for some reason running the same file through ...
2
votes
1answer
383 views

Synctex between Emacs and Evince, which would move focus for backward search

There is a great way to make Emacs, Evince and Synctex work together. However it has a minor caveat: when you do backward search, focus is not moved to Emacs (so you have to do that using mouse or ...
5
votes
1answer
137 views

Add own macros to “.emacs”

I'm using KOMA-script, which offers the use of letter-class-options, which can be stored in a file: *.lco. One command I define in a "zrp.lco" is very simple: \newcommand{\Beweis}[1]{Beweis: #1} ...
2
votes
1answer
528 views

How to set spelling dictionary on the fly in Aquamacs [closed]

This is not specifically a TeX question, but I think it might be relevant here since all TeX users are also text editor users. I use the Emacs Aquamacs (v 3.0a) text editor. My locale on my Mac is ...
4
votes
1answer
122 views

How can I fix AucTeX's syntax highlighting for the lstlisting environment when using optional arguments?

The title really says it all, so I'll provide an example and a screenshot: \documentclass{article} \usepackage{listings} \begin{document} For example, if we wished to create a predicate to ...
2
votes
1answer
125 views

Omitting date when exporting from org-mode

How can I omit the date from being displayed when exporting to LaTeX from emacs org-mode? This (within the .org file) works to omit the date when exporting to ascii: #+OPTIONS: timestamp nil But ...
3
votes
2answers
203 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: ...
0
votes
0answers
97 views

TOC does not appears with ox-beamer (no section, just frametitle)

I am using org-mode 8.2.5 with emacs 24.3.2. I want to compile a beamer presentation with ox-beamer. But there is no section/subsection, there is just frametitle in .tex. here is related part of ...
9
votes
1answer
332 views

Making AUCTeX aware of the TeX engine set in master file

Is there a way to make AUCTeX aware of the TeX engine local variable set in a master file when I compile from other files? master.tex: \documentclass{minimal} \usepackage{fontspec} \begin{document} ...
4
votes
2answers
556 views

Changing language of flyspell (Emacs) with a shortcut

I'm using the following code to launch flyspell when I edit LaTeX files with Emacs+AUCTeX. (if (file-exists-p "/usr/bin/hunspell") (progn (setq ispell-program-name "hunspell") ...
3
votes
2answers
75 views

Impossible to select text and, then, autoformat it with Emacs+AUCtex

With Emacs+AUCTeX, I was able to select text (with the shortcut CTRL+SPACE) and, then, format this text. For example, it was possible to select a sentence (the text is highlighted) and to press C-c ...
1
vote
0answers
125 views

strange preview latex problem with tikz and maketitle [closed]

The following example does not produce the expected preview: \documentclass{article} \usepackage{tikz} \begin{document} \title{a} \maketitle $a$ \end{document} Instead of the inline math a ...
2
votes
1answer
58 views

Org: Latex export creates lists instead of subsections

When I export the following org file to latex using C-c C-e d, the resulting tex file does not match my expectations in regards to the way the sections are being created. The exported subsections and ...
2
votes
1answer
94 views

How to get AucTex to prompt me for a name, when inserting an environment using Ctrl-C, Ctrl-E?

I'm using emacs auctex. I've defined an environment template, as follows. \documentclass{article} \newtheorem{definition}{Definition}[section] \begin{document} \end{document} I insert instances ...
3
votes
1answer
231 views

Auto convert LaTeX escape codes to UTF-8 characters?

How do I—e.g., with AucTeX—automatically convert escaped characters like \~n to ñ for use with \usepackage[utf8]{inputenc}? I could do something like this: sed \ -e "s/\\'a/á/" \ -e ...
1
vote
2answers
83 views

Run viewer command works only from master tex But not from child tex file

i am using Auctex under emacs 24.3.1 on mac. I am making master .tex file and many what i call it child .tex files. Run Latex and Run bibtex commands are working nicely from either the master ...
2
votes
1answer
119 views

Emacs — “fancy” LaTeX footer designed for regexp highlighting

I'm looking for some assistance, please, to modify my current footer setup to make it easier to create a reliable regexp for font-lock highlighting. Ideally, I'd like the bottom line of the right ...
4
votes
0answers
190 views

Maths without paper sheet

I would like to know if it is possible to write Maths on latex without having to write a first draft on paper? As far as I'm concerned latex writing seems to demand a separation between the thinking ...
3
votes
0answers
68 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 ...
1
vote
1answer
220 views

Problem with yasnippet in emacs + autex

I am newbie in Emacs + AucTeX and trying to get familiar with auto-complete mode in editing LaTeX. Auto-complete is a fantastic attribute, but I don't understand the follow problem: Auto-complete ...
16
votes
6answers
19k 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
2answers
306 views

How to replace AUCTeX's “LaTeX” command with latex->dvips->ps2pdf chain?

What is the proper way of solving this problem with respect to AUCTeX's design - I mean, how to do that in a way that it will still recognize the errors, display log on demand, make "View" command ...
1
vote
1answer
48 views

Creating 'document' environment using AUCTeX leaves a blank line after \end{document}

If I type C-c C-e document in AUCTeX mode using Eamcs, I end up with a blank line after \end{document}; see Can I stop AUCTeX from producing this extra line at the end? Notes: I use Emacs 24.3-13 ...
2
votes
1answer
117 views

Running latex (pdf) interactively in AucTeX

When I am Running latex interactively, as I like, emacs is opening a new buffer-window with output from the LaTeX compiling process. Fine! -- I like to see the processing outut. BUT I am used to that ...
1
vote
0answers
40 views

How to disable Emacs+AUCTex formating for a particular chapter

Emacs+AUCTeX formats automatically the titles (section, part, ...) by increasing the font and changing the color. I would like to disable this behavior for one (and only one) chapter. This chapter is ...
5
votes
1answer
158 views

Emacs AucTeX Customization - Adding templates

Is it possible to customize emacs (with AucTeX) so that new templates can be added for quicker typesetting. For example, If I want to prepare a letter that has a particular format, then I would like ...