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

learn more… | top users | synonyms

0
votes
1answer
41 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 ") ...
2
votes
1answer
40 views

Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, ...
0
votes
1answer
54 views

Ispell in Emacs without a middle mouse button

Ispell/Flyspell in Emacs uses the mouse middle button to activate the context menu for a misspelled word. The problem is that my laptop doesn't have a middle button. So is there any way to tell Ispell ...
6
votes
1answer
50 views

Emacs / AUCTeX search/replace in multifile documents

Is there a way to let emacs automatically search and replace strings/regex in all files that are part of a multifile document? With C-s or M-% only the current buffer is included in the search, even ...
5
votes
1answer
247 views

AUCTeX View and Compile commands in Emacs 24.4

With Emacs 24.3 on Mac OS X, I have used the method described in the answer by CodeKingPlusPlus at Emacs AUCTeX View command to use C-c C-v to open compiled latex PDFs using Preview.app. After ...
3
votes
0answers
53 views

How to set up forward/inverse searches with AUCTeX and Zathura

I haven't been able to find much on how to set up Zathura to work with AUCTeX/Emacs in terms of forward/inverse-searching. Has anyone been successful in this?
0
votes
1answer
43 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. ...
3
votes
1answer
98 views

latex preview in emacs unable to run ghostscript

So, on Windows 8, emacs, trying to use preview-latex. Each time I get the same error: Preview-PDF2DSC finished at Mon Oct 13 12:55:42 PDF2DSC sentinel: Searching for program: permission denied, ...
2
votes
0answers
39 views

Auctex and beamer: TeX-error: Error occured after last TeX file closed

I use Auctex to create a beamer document. Frequently I run into this rather uninformative error message: TeX-error: Error occured after last TeX file closed I found a similar thread here and ...
1
vote
0answers
47 views

Exporting from Org-mode without LaTeX preamble?

Is it possible to export an *.org file to LaTeX file, without the usual preamble of \documentclass[...]{article} and a number of \usepackage[]{xyz}, yet take advantage of LaTeX and org-mode's math and ...
4
votes
0answers
66 views

AuCTeX Preview “Finds No Preview Images”

I am currently trying to set up AuCTeX in emacs, but I'm encountering difficulty in getting the preview feature to work. For reference, I'm using Windows 7 64-bit, GNU Emacs 24.3.1, AuCTeX 11.87.7 ...
2
votes
0answers
24 views

Forcing a default class in emacs org-mode other than Article?

Looking for some help on how to set org-latex-default-class inside my .emacs file. Currently I have to put this in my documents to switch out of article mode: #+:LaTex_CLASS: hitec In the ...
0
votes
0answers
37 views

AucTex minted package not finding pygmentize

I am trying to compile a latex document with the minted package. I can do this quite happily from the terminal (I'm using texlive on os x) with the following code: xelatex --shell-escape demo.tex ...
0
votes
0answers
47 views

Emacs not rendering PDF correctly

I'm using AUCTeX, preview-latex and latex-preview-pane to compile and preview documents written in LaTeX. However, whenever I compile my document and it is shown in the preview pane, it is not ...
1
vote
1answer
46 views

RIS & crufty bibtex to biblatex without an OCD tool?

I have 30 years of bibtex in a file with some other notes. Bibtex doesn't mind, but biblatex does. Also, certain publishers (Nature, APA, MIT) don't provide bibtex but do provide dois or ris. I've ...
1
vote
0answers
34 views

Do I use preview-latex correctly?

I open a LaTeX file in Emacs, and press C-c C-p C-b (M-x preview-buffer) to generate math/graphics previews for the entire buffer. I find that a pdf file is generated with each page containg a math ...
2
votes
0answers
69 views

How to be productive with latex in Emacs?

I am using the default latex mode for Emacs. I haven't tried Auctex yet. I am making mistakes here and there and spending a lot of time, while switching between editing tex files in emacs and viewing ...
0
votes
0answers
18 views

Strange interaction between emacs (auctex) and hyperref [duplicate]

I just upgraded from Precise Pangolin to Trusty Tahr (Ubuntu) and found that both the new emacs24 and the older emacs23 are now not able to locate compile errors when I use the hyperref package. This ...
0
votes
0answers
30 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 ...
7
votes
1answer
203 views

Emacs org-mode minted export with #+ATTR_LATEX

When I try to export a file like this: #+LaTeX_CLASS: tufte #+ATTR_LaTeX: :float t :options label={test} #+begin_src c #include <iostream> using namespace std; int main() { ...
2
votes
0answers
48 views

Error adding new value to LaTeX-math-list with custom function

I am using Auctex with math mode enabled. One of my favorite features is insert \mathcal with the key sequence "[backtick] c". I decided to try and customize the variable LaTeX-math-list so I can do ...
3
votes
1answer
242 views

Using bibtex from Org mode: .bbl and .aux files are incorrectly generated

I've searched this site as well as other resources, and I understand it that this is a common problem, however, no single place can explain what exactly are the steps for debugging or troubleshooting. ...
3
votes
0answers
41 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 ...
3
votes
1answer
83 views

AucTeX insert-environment C-c C-e (no label prompt)?

Does anybody know how to configure Emacs or Auctex such that when you insert an environment for example with C-c C-e equation RET? Avoid having to type RET for (Optional) What label? question? Or ...
1
vote
1answer
35 views

how to set preview-latex left indentation on formulas?

Preview-latex is good to leave some left indentation on formulas. When the window is small, however, the left indentation on preview is a bit excessive, is there any way to change the amount of ...
2
votes
1answer
145 views

How do I fix 'org-reftex-citation: No bibliography defined in file' error?

I am using Debian Wheezy with Emacs24.4.50.1 and Org-Mode 8.2.6. I am using Kieren Healy's Emacs Starter Kit for the Social Science. http://kieranhealy.org/resources/emacs-starter-kit/ With this ...
0
votes
1answer
77 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 ...
5
votes
1answer
374 views

Check if TeX installed is MikTeX

Is there a way to check from command line whether tex and other commands belong to MiKTeX or some other distribution (I want to only (require 'tex-mik) in Emacs initialization if it's needed)?
0
votes
0answers
109 views

How to change text direction from Right to Left in Emacs24 and write Hindi numbers?

I use GNU Emacs 24.3.1. I want to write Arabic text with and without English text in one buffer. when I write the Arabic letters do appear (I use Consolas font) but what I miss is the direction of ...
4
votes
1answer
349 views

What is the best side-by-side preview method for Emacs24 AUCTeX?

I am new to the Emacs world. I did this transition from one of the best latex editors and despite of the complexity of Emacs at every turn, I can still see there is future in learning it on the long ...
2
votes
0answers
175 views

Emacs + Skim + Live Preview?

I have been using Latexian for a while, but some of its limitations and my natural tendency to use emacs, is prompting me to take a look at my work environment again (OSX 10.9.2). I have seen some ...
1
vote
0answers
31 views

.tex alignment works only for the main

The text alignment (using the tab in emacs) works only for the main tex document but not for the included tex files. Is there any option for that? it is not really a problem but the appearance ...
5
votes
2answers
147 views

Cannot form a string with a backslash in it when editing a template in yasnippet using lisp command

I am writing a template with yasnippet. Writing a equation in latex using {eqnarray} means I will cite it somewhere so I will give it a label. When using {eqnarray*}, there don't need to be a label. ...
4
votes
2answers
292 views

Auctex, how to use doc-view-mode?

Newbie here. I have just installed emacs/auctex on my mac. I don't like xdvi to view the dvis, I like to use emacs' builtin pdf viewer to view pdf on its own split window on the right. It used to be ...
1
vote
0answers
18 views

Auctex go to corresponding block between pdf and tex file

Texshop's CMD+Click can take you to the location of the current texts on its pdf/tex file. I am wondering how to do this in emacs/auctex?
3
votes
1answer
121 views

With orgtbl, how to ensure that braces and dollars are not escaped?

The minor mode orgtbl is a wonderful tool for easily creating latex tables (you should check it out!). However, I am running into an issue with its exporter. If I have content surrounded by braces in ...
1
vote
1answer
59 views

Issue with forward search (single PDF but multiple tex files) Emacs + SyncTex + Evince

I have a single master file and several other .tex files are included in this master file. TeX-source-correlate mode is enabled for forward search. For the master file forward search is working ...
2
votes
0answers
111 views

skim cannot reload file after auctex preview-latex

I am using emacs+skim to preview latex on macs, and I use auctex preview-latex from time to time. the problem is, after I run C-c C-p C-d in emacs to preview entire document, the pdf file is now ...
1
vote
0answers
154 views

Emacs + SyncTex + Evince

I am trying to setup forward search and inverse search between Emacs 24.3.1 and Auctex under Ubuntu 14.04. Forward search is working fine by enable TeX-source-correlate-mode in Emacs but while ...
4
votes
1answer
121 views

How to add braces automatically after \hat (or \tilde, \bar) in emacs auctex math mode

When typing operators in quantum mechanics, there is a lot of stuff like "\hat{...}" going on. But in math mode, typing apostrophe+^ only gives \hat inside math environment. How can I modify the ...
5
votes
1answer
213 views

How to increase (relevant) verbosity of compilation errors with Emacs+AucTeX?

I often debug LaTeX files and Emacs+AUCTeX does not show many informations about errors. I always have the following message in the minibuffer: LaTeX errors in `*~/my/file output*'. Use C-c ` to ...
1
vote
0answers
54 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
178 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
38 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
104 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
83 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
74 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 ...