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 ...
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
20 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 ...
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
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
52 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
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 ...
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 ...
3
votes
1answer
49 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 ...
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} ...
4
votes
2answers
79 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
44 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 ...
0
votes
0answers
35 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
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 ...
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
62 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
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
86 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
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
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
72 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 ...
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 ...
2
votes
1answer
83 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
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 ...
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 ...
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
238 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.
6
votes
1answer
100 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 ...
0
votes
1answer
65 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 ...
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.?
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
0answers
132 views

Setting up Embedded LaTeX in emacs org-mode

According to the org mode manual for emacs, one can view pieces of LaTeX code embedded in an org-file. This is supposed to be default behavior bound to the keys C-c C-x C-l which invokes the ...
5
votes
1answer
40 views

How to configure flyspell to ignore the content of a given environment?

When using flyspell in emacs, it can be useful to configure flyspell to ignore the contents of certain environments, e.g. tikzcd or tikzpicture. For example, in the document below one would like to ...
10
votes
2answers
215 views

Get emacs to automatically insert \end{} commands after a \begin{} command

I've recently switched from Kile to Emacs/AUCTeX for LaTeX editing. I like AUCTeX a lot more in general, in part because I've put a lot of effort into learning Emacs really well. One feature I really ...
1
vote
0answers
35 views

why did i only use sudo open emacs C-c C-c can work with AUCTeX? [closed]

two question: 1.use sudo open emacs the AUCTeX can work with C-c C-c and C-c C-v 2.sudo open emacs C-c C-c show Latex erros system mac OS X Mavericks, auctex11.87.2, emacs24, zsh.
5
votes
1answer
54 views

Auctex: bug in LaTeX-mark-environment?

Before I send this on to the developers, I'd like to know if others can confirm this problem. Consider these two environments: \begin{flalign*} sdfsdf \end{flalign*} \begin{flalign*} && ...
6
votes
1answer
107 views

Is it possible to compile asymptote(.asy) file without displaying the figure

Today I want to draw several 3D schematic diagrams that could be inserted in my LaTeX files. And I chose asymptote because of its widely known 3D rendering advantage over other tools. I configured ...
0
votes
2answers
53 views

Error message when compiling ConTeXt document from Emacs [duplicate]

The command texexec --once --texutil --engine=xetex --interface=en --nonstop tmp.tex' gives the following error message when called from Emacs, but not when called from Terminal: ...
3
votes
1answer
125 views

Emacs Indentation Problem

I started using Emacs/AUCTeX for writing my LaTeX documents. I now have an \begin{inparaenum}[(1)] \item An Item \item an other Item \item this is an item, too ! \end{inparaenum} ...
3
votes
1answer
252 views

AUCTex Installation

I installed Emacs with AUCTex using the following code in Ubuntu 13.10: sudo apt-get install texlive-base emacs23 auctex preview-latex I followed these instructions, but the Code that should be ...
1
vote
0answers
256 views

Emacs 24 with AUCTeX in Ubuntu 13.10

I installed AUCTeX from the Emacs package manager. Then I configured it by typing ./configure OPTIONS. It doesn't complain and I typed make and make install. I tried to open a simple LaTeX document. ...
4
votes
0answers
50 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is ...
2
votes
0answers
67 views

Emacs' Preview LaTeX: Using different background colors depending on environment

In Emacs' Preview LaTeX, I would like included graphics (e.g., what's inside \includegraphics) to look different than all other previewed environments. Otherwise, graphics that have black lines ...