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

learn more… | top users | synonyms

0
votes
1answer
113 views

Emacs interacting with MS Windows: how to minimize windows [closed]

Title says it: Is there a way to hide MS windows windows from within Emacs? What I would like to do is create a function to: Hide all windows including Emacs Restore Emacs Restore SumatraPDF (which ...
1
vote
1answer
199 views

How to show tabular environment in a fixed-width font in AUCTeX?

I would like Emacs/AUCTeX to show the contents of tabular environments in a fixed-width font, so table boundaries line up. Is it possible to set the font face of specific environments like this? The ...
0
votes
1answer
201 views

How to set up texi2dvi with synctex and error handling?

I would like to set up texi2dvi (with error-handling, synctex for forward and backward syncronization, and Okular as viewer) to compile .tex documents (under Ubuntu 12.04 with Emacs 24). (In case ...
6
votes
1answer
258 views

Why is aucTeX compiling my file like pdflatex “input” foo.tex rather than just pdflatex foo.tex?

When I compile a file using Emacs AucTeX with C-c C-c (which runs TeX-command-master which runs TeX-run-TeX) the top line of the log output looks like this: Running `LaTeX' on `mwe' with ``pdflatex ...
6
votes
1answer
1k views

Best practices for LaTeX code in org-mode-beamer (especially url links)

I'm using org-mode to produce beamer presentations. I'm having trouble figuring out the best way of including Latex snippets. As far as I can tell, there are two ways of signalling to org-mode to ...
3
votes
1answer
306 views

AUCTeX: How to enable auto expansion of sub and superscript in custom math environment

With help from the question How to add custom math-environments I taught AUCTeX that IEEEeqnarray and its starred counterpart are math environments. I added the following to my .emacs ;; teach auctex ...
8
votes
2answers
375 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 two coarse, and I am ...
1
vote
0answers
115 views

Emacs (AUCTeX) not writing to vc.tex file when using VC bundle in LaTeX document [closed]

I'm using GNU Emacs 24.1 for Mac OS X on Lion with the latest version of AUCTeX and the VC bundle to print version information in a footer on my LaTeX documents. The problem is that when I typeset my ...
0
votes
1answer
200 views

Default bibliography with bib-cite

I'm using Emacs 23 with bib-cite-minor-mode. However, this minor mode requires a \bibliography{} statement in the file. I have a master LaTeX file in which I have \include commands, so each section ...
4
votes
2answers
1k views

Automatically run Latex command after saving .tex file in Emacs

How can I have Emacs call the Latex command every time after I save my .tex file? Thanks A solution: while playing with ELisp and looking around, I added this to .emacs and it seems to work quite ...
6
votes
1answer
479 views

Defining a new key combination in emacs to run Latex

I want to define a new key combination in my .emacs such that it will directly run the latex command, unlike C-c C-c Ret which gives me different options every time (like view). I am using xdvik for ...
2
votes
1answer
4k views

How to change AUCTeX latex compile command? (using Emacs 23)

I'd like to configure AUCTeX to compile without stopping on errors. I can do it from a terminal with pdflatex -interaction=nonstopmode filename.tex but AUCTeX apparently does pdflatex ...
6
votes
1answer
306 views

I want to disable auto-fill-mode when editing equations

How can I disable auto-fill-mode when editing equations? I like auto-fill-mode in general, but I'd like to turn it off in specific situations, e.g. between a \begin{equation} and \end{equation} or ...
6
votes
1answer
307 views

AUCTeX detecting modified files using different output directory

I'm using AUCTeX in Emacs, and would like to store all output files (.aux, .log, .pdf etc) in a sub-directory "output" rather than directly in the current working directory. To achieve this, I have ...
0
votes
1answer
212 views

preview-latex generates .png previews but does not place them in the buffer

When generating previews, I get a small, empty white box with a border around it. I looked inside the .prv folder and the .png files are indeed being created. emacs has support for .png (e.g. ...
3
votes
1answer
187 views

limiting align-current in LaTeX-mode

When working on a LaTeX document in Emacs align-current aligns & and \\, but does so for entire sections at a time. Anyone have any idea as to how one limits its range (in a new macro) to say the ...
8
votes
3answers
1k views

flyspell, emacs and aspell seem to diverge

I'm using the following configuration for aspell in my .emacs file (setq ispell-program-name "/opt/local/bin/aspell") (setq ispell-list-command "list") (setq ispell-extra-args ...
2
votes
0answers
41 views

Emacs doesn't recognize the latex commands (pdflatex, etc.) after installing MacTeX [duplicate]

Possible Duplicate: pdflatex fails within Emacs.app, but works in terminal I installed MacTex on my Mac running Lion, but emacs is not able to run the latex functions (like pdflatex) to ...
2
votes
0answers
107 views

AUCTeX, preview-latex and Xelatex [duplicate]

Possible Duplicate: AUCTeX and Xetex sometimes I have to edit tex files with xelatex. Those files can be successfully compiled from the console. Auctex work fine with regular tex files and ...
5
votes
1answer
127 views

Open images from AUCTeX with your favourite image editor

Suppose I edit a LaTeX-file with AUCTeX and the point is on a \includgraphics{myimage.jpg} line. Is there a possibility in AUCTeX to open myimage.jpg with my favourite image editor, say gimp by just ...
16
votes
3answers
3k views

Does AucTeX Autocomplete?

The quick start guide for AUCTeX says As nearly everywhere in AUCTeX, you can use the TAB or SPC key to get a list of available level names, and to auto-complete what you started typing. Which ...
4
votes
1answer
3k views

change default emacs view command

The C-c C-v command in emacs. Sometimes it asks what viewer to use, and sometimes it just shows the document. If possible (within reasonable effort), I'd like it to never ask, just show. Also, where ...
1
vote
2answers
769 views

Error when trying to open pdf file from AUCTeX

I'm new to Emacs and AUCTeX. On my home computer (with Windows XP) I can successfully compile .tex files and then, using C-c C-c again, launch a pdf viewer (Adobe Reader or Sumatra) to view the file. ...
9
votes
3answers
625 views

Open included files in emacs+AUCTeX

When working with emacs+AUCTeX I would like to consider a project with one main.tex in which you have many include's. Is it possible somehow to open the included files from within the buffer where ...
17
votes
3answers
3k views

RefTeX won't find my .bib file in local library tree

RefTeX gives out the following error when trying to insert a citation: No valid bibliography in this document, and no default available I keep a master .bib file in ...
41
votes
2answers
5k 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 ...
4
votes
0answers
280 views

TeX-run-Tex wrong type argument in emacs

I use such a function for compiling LaTeX in emacs (AUCTeX) taken from here (accepted answer by Jouni K. Seppänen): (defun run-latexmkk () (interactive) (let ((TeX-save-query nil) ...
4
votes
2answers
270 views

Typeset directly in Spanish

I am typesetting in emacs with AucTeX. I generally write in English and Spanish, and, therefore, use the following in my preamble: \usepackage[english,spanish]{babel} \usepackage[utf8]{inputenc} ...
1
vote
0answers
358 views

Can't debug init.el [closed]

I get the following error when I open emacs in Mac OSX: Warning (initialization): An error occurred while loading `/Users/my-user-name/.emacs.d/init.el': Symbol's value as variable is void: Synctex ...
5
votes
4answers
2k views

How to change default compiler?

I have been using LaTeX for about a year now and I am fairly proficient in TextMate. I am currently experimenting with Emacs and AucTeX. I installed the starter kit that Keiran Healy has available. ...
0
votes
1answer
375 views

Auctex preview: How to suppress opening a new window?

I have emacs+gtk installed on Ubuntu11. I'm just new to Auctex but very interested in it. When completed my .tex document, command C-c,C-c compiles successfully. But repeating C-c,C-c yields option ...
2
votes
2answers
312 views

Strange behaviour debugging a document with AUCTeX-GNUEmacs in math mode

When I try to compile this document \documentclass{article} \usepackage{amsmath} \begin{document} A simple fraction with an error $\frac{a}{b$ \end{document} I obviously get an error because there ...
0
votes
1answer
393 views

Preview-latex background color

I'm using AUCTeX + preview-latex to preview math formulas. In addition, I'm using the zenburn color scheme, which has a dark background. Unfortunately, the rendered math previews have a white ...
8
votes
2answers
2k 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} ...
33
votes
7answers
6k views

What is your favorite Emacs and/or AUCTeX command/trick?

What is your favorite Emacs and/or AUCTeX command/trick? The point here is that I don't know what I don't know. I'm an Emacs and AUCTeX user looking to improve my Emacs & AUCTeX use, especially ...
4
votes
4answers
970 views

SumatraPDF with AucTeX and Foxit Reader as the default viewer

I like to use Foxit Reader to view PDF's but it locks the file so i cannot use synctex with it. So I'd like to use SumatraPDF with AuCTeX when making my PDF's but still have Foxit Reader as my default ...
0
votes
0answers
104 views

Setup Synctex with Emacs in Windows with Sumatra PDF [duplicate]

Possible Duplicate: A simpleton's guide to (…)TeX workflow with emacs I want to setup SyncTeX in GNU Emacs 23.3.1 with Auctex 11.86 to work with Sumatra PDF 2.0.1. I use Windows ...
4
votes
1answer
194 views

Is forward search meant to work from an include file?

I am able to forward search from an emacs buffer containing my top level tex file to sumatrapdf by using the f8 key which is bound to Sumatra-jump-to-line. If i visit a buffer with a file included in ...
3
votes
0answers
501 views

Emacs - Predictive mode [closed]

I am trying to setup the Predictive Mode of Emacs and to use it with the LaTeX-mode. I have one problem: as soon as LaTeX-mode is loaded, it loads "auto-overlays" and it takes up to two minutes before ...
3
votes
2answers
290 views

AUCTeX: ` a inserts \alpha{}: How can one omit the curly braces to be inserted?

According to an AUCTeX reference card, ` a inserts \alpha{} and this works well in my setup. I just don't see any reason I ever used a greek letter with curly braces. This means I always have to ...
61
votes
3answers
9k views

A simpleton's guide to (…)TeX workflow with emacs

Progress Report Four months on, I thought it a good idea to "report back" here, and I wrote something. Then, I had better thoughts and turned it into a blog post. You can read it on the TeX.sx blog. ...
5
votes
3answers
398 views

Rebinding keys in AUCTeX

I'm trying to rebind a few keys in AUCTeX, mainly \textit and the like. So, as a test I've added to .emacs (add-hook 'LaTeX-mode-hook (lambda () (define-key LaTeX-mode-map (kbd "C-S-i") ...
2
votes
1answer
260 views

AUCTeX write only region file

Since I'm used to use latexmk -pvc I'd like to do the following: Run latexmk -pvc (externally) on the _region_.tex file Use AUCTeX to just write the region file instead of compiling. Is there a ...
2
votes
1answer
471 views

Yasnippet, Sweave: How to make snippets work from .Rnw files?

I use yasnippet's defined in ~/.emacs.d/plugins/yasnippet-0.6.1c/snippets/text-mode/latex-mode to insert small pieces of code when working with LaTeX. I recently started to use Sweave and therefore ...
4
votes
1answer
224 views

Permanent Highlighting in AUCTeX

I want to highlight text regions in my Emacs/AUCTeX/LaTeX document in a "textmarker style". Furthermore, the highlighting should save permanently. These features are provided by highlight.el and ...
5
votes
1answer
310 views

Enable parentheses bib entry with RefTeX

I have built my .bib file using parentheses, like this: @ARTICLE(Campbell2006, author="Campbell, K. and McKay, M.D. and Williams, B.J.", title="Sensitivity Analysis when Model Outputs are Functions", ...
4
votes
1answer
711 views

Adding custom macros to completion list with AUCTeX

I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (M-Tab or C-Ret) than it does by default. I would like to have macros from packages I have ...
9
votes
1answer
585 views

Emacs and latex math delimiters

The forward-sexp command in EMACS can be used to find the $ that closes an inline equation: if the point is before the $ that opens the equation, then forward-sexp moves the point after the closing $. ...
5
votes
1answer
546 views

How to specify default contents for a new .tex file in Emacs?

I would like have Emacs copy, by default, the contents of some defined file in the buffer of any non-existent .tex file I visit. I am using AUCTeX and I believe that would be feasible by editing the ...
7
votes
2answers
2k views

Setting up forward search between Emacs+AUCTeX and Evince

Did anyone succeed setting up forward search between Emacs+AUCTeX and evince? In order to establish inverse/forward search between Emacs+AUCTeX and evince, it is necessary to: install new TeX Live ...