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

learn more… | top users | synonyms

0
votes
0answers
32 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 ...
2
votes
1answer
34 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 ...
7
votes
2answers
2k 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 ...
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: ...
1
vote
1answer
49 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 ...
3
votes
0answers
22 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 ...
8
votes
1answer
92 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} ...
3
votes
1answer
58 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} ...
1
vote
1answer
54 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 ...
1
vote
1answer
73 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 ...
4
votes
1answer
45 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
86 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 ...
2
votes
1answer
90 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.?
1
vote
1answer
19 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 ...
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 ...
3
votes
1answer
50 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
37 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 ...
2
votes
1answer
102 views

How can I tell Emacs to correctly fill around Latex comments

When I edit a .tex file in emacs, I frequently use fill-paragraph. Comments indicated with '%' sometimes wrap correctly, and sometimes they do not. It is not clear to me what is making this fail. ...
4
votes
1answer
56 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 ...
8
votes
1answer
91 views

Telling Emacs to mark \iffalse…\fi blocks?

Do you know a simple way to tell GNU Emacs to recognize LaTeX \iffalse ... \fi blocks and to display them in a special way, e.g., using a lighter font, or using font-lock-comment-face. Is there a ...
4
votes
0answers
155 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
2answers
45 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 ...
4
votes
2answers
80 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") ...
0
votes
0answers
36 views

strange preview latex problem with tikz and maketitle

The following example does not procude the expected preview: \documentclass{article} \usepackage{tikz} \begin{document} \title{a} \maketitle $a$ \end{document} Instead of the inline math a ...
2
votes
1answer
47 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
64 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 ...
13
votes
4answers
4k views

AUCTeX and XeTeX

I use Emacs+AUCTeX to write my *-tex. Using the PDF mode, I can run pdfTeX automatically with the C-c C-c command. However, I don't see a way to run XeTeX automatically, or even set up a command ...
1
vote
2answers
56 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 ...
1
vote
1answer
87 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 ...
10
votes
3answers
4k views

pdflatex fails within Emacs.app, but works in terminal

LaTeX rookie here. I'm running OS X 10.7 with Emacs 24, Auctex 11.86 and TexLive 2011 via MacTex. When i run LaTeX through Emacs in the terminal it outputs my test.tex as test.pdf just fine. ...
3
votes
0answers
55 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
42 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
76 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 ...
0
votes
1answer
66 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 ...
1
vote
0answers
31 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 ...
1
vote
1answer
918 views

How can I split long tables in Emacs org-mode latex export?

In LaTeX, when tables get very long one can use the longtable package. But what about org-mode latex export in Emacs? Is it possible to have org-mode split long tables?
5
votes
1answer
77 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 ...
7
votes
1answer
240 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
49 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.
1
vote
1answer
123 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 ...
14
votes
3answers
2k views

How to get BibTeX to work with Org mode LaTeX export?

I am trying to get Emacs (24.3.1), Org-mode (8.0.3, from ELPA) and BibTeX (from TeX Live 2012) to work together. I have followed the instructions under the Bibliography section in ...
6
votes
1answer
102 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 ...
4
votes
1answer
405 views

Preview TikZ figure in AUCTeX?

I am using AUCTeX on Emacs. Recently I began to draw pics using TikZ, but the problem is AUCTeX doesn't generate preview of this environment. (However, it does generate preview for the general figure ...
6
votes
3answers
446 views

Forward Search in Emacs for Okular not working

On Emacs, I am trying to get forward search with Okular. Right now, I have the following command: okular --unique %o#src:%n`pwd`/./%b But, this does not take me to the right line, as I'd expect. ...
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
1answer
41 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 ...
5
votes
1answer
104 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 ...
1
vote
0answers
67 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 ...
13
votes
3answers
7k views

How to preview LaTeX in Emacs?

I want a similar layout as in SO, I use it currently as my editor but I would like to find such tool under my fingers. I am more vi-prone so having hard time to get preview-latex working with emacs. I ...
0
votes
0answers
48 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 ...