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

learn more… | top users | synonyms

6
votes
2answers
998 views

How can I get my LaTeX set up on Emacs/AUCTeX to use the -file-line-error option when calling pdfTeX

I have been puzzling over this for the past few hours and can't quite figure it out. I am using AUCTeX 11.87 and MiKTeX 2.9 on Emacs 24.2 (obtained from Vincent Goulet with AUCTeX pre-packaged): I ...
2
votes
1answer
55 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 ...
0
votes
0answers
15 views

Setting Emacs TeX-engine locally does not work

I'd like to follow the advice from @egreg in http://tex.stackexchange.com/a/21212/24483, however the given code does not work for me. I have \documentclass{article} \usepackage{fontspec} ...
1
vote
0answers
15 views

Emacs “built-in output viewer”

I'm learning Emacs and I was reading the mighty LaTeX Editors/IDEs, where it says that Emacs has a "built-in output viewer". However I can't seem to find it. According to my understanding, a ...
19
votes
4answers
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 ...
5
votes
3answers
587 views

Indentation in AUCTEX and algorithmic package

When working with EMACS+AUCTEX I encountered the problem of proper indentation when using the algorithmic package. In this MWE: \documentclass[12pt]{article} \usepackage{algorithmic} ...
4
votes
1answer
356 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 ...
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
182 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: ...
0
votes
1answer
78 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 ...
0
votes
1answer
42 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 ") ...
4
votes
2answers
299 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 ...
3
votes
2answers
252 views

Set up SyncTeX with Emacs DocView

I have the source in one emacs buffer and the compiled pdf in another DocView buffer with auto-revert-mode enabled. Using latexmk -pvc to compile gives me live previews. Now I want to setup forward ...
2
votes
1answer
372 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 ...
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
56 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 ...
2
votes
1answer
147 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 ...
7
votes
2answers
3k 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 ...
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
250 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
55 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?
7
votes
3answers
3k 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 ...
3
votes
1answer
100 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, ...
16
votes
6answers
18k 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 ...
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 ...
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 ...
4
votes
1answer
474 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 ...
4
votes
0answers
69 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
25 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
39 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 ...
3
votes
1answer
364 views

turn numbering off, but keep Table of Contents intact?

I have a LaTeX template I created for use with Emacs org-mode, to export to PDF via LaTeX using xelatex. I don't edit LaTeX directly, I just generate from org-mode. This works perfectly for me ...
0
votes
0answers
51 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 ...
7
votes
1answer
206 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
70 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 ...
3
votes
2answers
199 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
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 ...
9
votes
4answers
984 views

emacs auctex: how to get \frac{}{} and \bm{}?

How can I find out (in AUCTeX) if \frac{}{} and \bm{} have predefined keyboard shortcuts? I couldn't find these two.
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 ...
2
votes
0answers
50 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 ...
2
votes
1answer
115 views

Can WhizzyTeX be used with XeTeX?

I have tried to make WhizzyTeX work with XeTeX (or, specifically, XeLaTeX), but just adding LATEX=xelatex in whizzytex.conf (or changing this setting by any other means) and specifying PDF output ...
5
votes
1answer
56 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 ...
5
votes
1answer
645 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
2answers
382 views

Exporting accented characters from org-mode to LaTeX

I'd like to export text from org-mode to LaTeX that contains accented characters. I am using curly brackets, following the guide from the top answer in this question. # This: Foo B{\"u}chi automaton ...
8
votes
1answer
774 views

Delete comments in tex file with Emacs+Auctex

I am working with other people LaTeX files and sometimes they look very messed up. I am looking for a way to delete all comments without changing the code. The problem is that I want to preserve all ...
2
votes
0answers
179 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: ...
3
votes
1answer
247 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. ...
46
votes
2answers
7k 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 ...
3
votes
1answer
86 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 ...