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

learn more… | top users | synonyms

1
vote
0answers
186 views

emacs as an editor and document management system [closed]

Though I use texstudeo for my latex editing and lyx for day to day work, Is there any advantage in moving to emacs in terms of ease of use document management revision control document search ...
2
votes
1answer
187 views

Make predictive mode default emacs

Every time I fire up Emacs, I run M-x predictive-mode. Is there a way to automate that and preferably while editing TeX.
4
votes
1answer
177 views

How can I streamline insertion of LaTeX-math-mode symbols in AUCTeX?

In AUCTeX, you can enable a minor mode called LaTeX-math-mode that instructs the prefix character ` to insert various common macros. For example, ` t inserts \tau@ when you are in a math environment ...
5
votes
1answer
116 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 ...
9
votes
3answers
190 views

RefTeX: shortcut to open the .bib file of the current document

I would like the have a simple keyboard shortcut/command in emacs that opens the .bib file of the current (possible multifile) document. This should be possible with RefTeX, as it can figure out the ...
0
votes
0answers
23 views

LaTeX: \endnote doesn't work [duplicate]

The following sample LaTeX document is supposed to create an end note. In practice, it creates the superscript for the end note, but the end note's text is nowhere to be seen. What might be the ...
1
vote
1answer
51 views

Folding file-specific macros in AUCTeX

What is the best way to have AUCTeX fold some math macros specifically for one file? For example in this very trivial example: \documentclass{minimal} \newcommand{\foo}{\lambda} \begin{document} ...
3
votes
1answer
149 views

AucTeX and Chapterbib

Executing BibTeX via Auctex (RefTeX) in emacs (24.2.1) only creates a .bbl file for the master file in a multifile document. Yet, if one wants bibliographies for each chapter, BibTeX has to be run on ...
2
votes
1answer
312 views

Multiple bibliography/addbibresource in reftex

It seems that reftex only scans the file associated with the first bibliography/addbibresource command: \usepackage[backend=biber,bibencoding=utf8,url=false, isbn=false, doi=false, ...
2
votes
0answers
1k views

How to uninstall TeX Live on Mac which is installed through command “sudo port install texlive +full”?

At the beginning, my purpose is to set up AUCTeX with Emacs. I just do like below Download AUCTeX, then cd to the directory, make and sudo make install. It works well when the .tex file only ...
2
votes
1answer
46 views

Set csquote macros in AUCTeX preference to work also with included files

I use to keep most of my documents in separate branch files and then /include them in the main tree document. Of course I don't need a preamble for all separate files. In my AUCTeX preferences I set ...
3
votes
1answer
323 views

RefTeX broken in Emacs 24.3.1?

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 ...
1
vote
1answer
351 views

shell-escape is not enabled with emacs

I use Emacs as an editor, and I would like to compile a file that contains PSTricks code with LuaLaTeX. The version of Emacs is : GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.18). My ...
1
vote
0answers
49 views

Tell speck-mode to not highlight commands?

As flyspell-mode is slow, I use speck-mode. With LaTeX files, this mode also spell checks commands. For example, not being an English word, documentclass is highlighted: Can I tell speck-mode to ...
0
votes
0answers
49 views

In Auctex, bibtex cannot create reference

Everything goes well in TeXshop. In Emacs, I went through following steps: C-c C-c latex C-c C-c bibtex C-c C-c latex C-c C-c latex but it keeps saying insolvable reference. Log file says: ...
3
votes
1answer
40 views

Is Inverse Search possible after the PDF file has been modified (e.g. annotated) (with Auctex and Okular)

I have configured Okular and Auctex so that forward and inverse search work like a charm when I have the *.tex file open and after I compiled the PDF file. I do, however, often encounter a scenario ...
2
votes
1answer
213 views

finding tex-site.el from emacs on mac os x 10.8

I am writing a question hoping to find some clue what's going on in my auctex/emacs combination. I use emacs/auctex to typeset latex document. In my macbook pro, I am using GNU emacs 22.3.1. With ...
2
votes
2answers
465 views

how to automatically open pdf file after dvi2ps2pdf in emacs

i want to let emacs automatically open pdf file after i type C-c C-c dvi2ps2pdf RET, so i add the following code in my .emacs file ;;dvi2ps2pdf (add-to-list 'TeX-command-list (list "dvi2ps2pdf" " ...
1
vote
1answer
94 views

Extra characters in reftex citation yasnippet

I am having an issue with a YASnippet for inserting a RefTeX citation. As many others have, I'm trying to use this snippet from GitHub with the following syntax \cite{${1:label$(unless ...
3
votes
1answer
135 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: ...
1
vote
1answer
71 views

Command: Emacs selection → \command{regexp'ed-selection}

Suppose I have the following text: …as shown in figure (24). Now, suppose I select "(24)." Then, I want a command to convert it to: …as shown in figure \command{eq:24}. Viz., how would I ...
5
votes
1answer
82 views

Navigating arguments with AUCTeX

Is there a key combination to move the insertion point backward and forward through arguments using AUCTeX? For example, where "|" is my insertion point: \frac{|}{} Then I would want a command to ...
0
votes
0answers
14 views

AUCTex problem with \citep [duplicate]

In my emacs, .tex file extension isn't enough to highlight \citep command. I found that \usepackage{natbib} needs to be in preamble to make it working. The problem is that when secondary files ...
0
votes
0answers
76 views

\citep not working if natbib is in the master file

I am building a thesis with a master file and some included files. For example, let say master.tex contains \include{chap1}. The \citep command does highlight in master.tex but not in chap1.tex. I ...
0
votes
0answers
27 views

WhizzyTeX custom folder for files

Is there a way to have Emacs' WhizzyTex preview mode store the files in a designated folder rather than the current folder (we're talking 6 files per previewed document)? I feel like LaTeX, BibTeX and ...
1
vote
0answers
74 views

Jump from PDF line into .Rnw (with Skim)

I have a LaTeX document saved as .Rnw which I compile with Sweave to get a .tex document and finally-once compiled with LaTeX, a PDF. Now with Skim I can jump from a line in the PDF back into the ...
1
vote
0answers
55 views

AUCTeX/RefTeX, the `import` package and cross reference

Today I switched to the import package with the hope that it will simplify the management of the files of my text. It surely did that, but.... It broke RefTex in emacs. Now, I cannot lookup my labels ...
2
votes
1answer
108 views

How to escape inline R command to avoid issue with “while-typing” spelling check

I have a problem with my text editor Aquamacs Emacs (GNU Emacs 23.4.1) when use it with \Sexpr to print inline the output from R functions. The problem results when the R command includes special ...
5
votes
1answer
212 views

Changing AUCTeX processor in the file itself

I'm using AUCTeX 11.86 in Emacs 23.3.1, under Linux (Ubuntu 12.04.1). Some of my files I compile with LaTeX, a few with XeLaTeX. I'd just like to be able to enter C-c C-c to compile, and have the file ...
3
votes
0answers
119 views

Can't get AUCTeX to do a preview

I'm running Arch Linux, latest version of Emacs, and trying to get a preview of the document using c-c c-p c-p or any that will do a preview after c-c c-p ... and just can't get the thing to preview. ...
2
votes
1answer
297 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 ...
2
votes
1answer
108 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. ...
0
votes
0answers
105 views

Control Auctex Preview colors

In the Auctex Preview Appearance section in customize, it is possible to set "Preview Reference Face". This is the only place I can find where the colour of the small .png files created by Preview ...
3
votes
2answers
96 views

Latex info help on Ubuntu?

If this is better as an Ubuntu question, I'll direct it there. Anyway, as a diehard emacs/AucTeX user I'm used to opening up latex-info (which uses GNU texinfo) for quick confirmation or reminder on ...
8
votes
1answer
512 views

get emacs to automatically use biber instead of bibtex

I was reading the question titled Customizing emacs to use biblatex-biber instead of bibtex. In that question, user @PLK mentions that as of auctex 11.87, auctex should automatically check if you are ...
4
votes
1answer
89 views

Emacs, preview-latex, sseq

I like using preview-latex in Emacs. I have been working a lot with spectral sequences lately and so I would like to get the figures I draw in sseq to show up in preview-latex. So far no luck. Does ...
3
votes
1answer
72 views

Maintain display of arguments for certain folded environments with AUCTeX

When working with some environments (function and friends from l3doc prompted this), it is desirable to have the environment's arguments visible at all times: Some text that, in reality, shouldn't be ...
8
votes
1answer
96 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 ...
1
vote
1answer
219 views

Beamer Multifile and Figure Issues in Emacs 24.3.1 / AucTeX-11.87 in Ubuntu 12.04

I'm trying to edit multifile beamer presentation documents in AUCTeX. I use Emacs 24.3.1 / AucTeX-11.87 / TeX 3.1415926 (TeX Live 2012/Debian) in Ubuntu 12.04. The most simple code that explains my ...
3
votes
2answers
444 views

Xdvi to Emacs inverse search not working in Emacs 24.3.1 / AucTeX-11.87 in Ubuntu 12.04

I'm trying to use AUCTeX to write my LaTeX documents. However I'm having issues with performing inverse search from Xdvi to Emacs. Software Specifications I currently use Emacs 24.3.1 / AUCTeX-11.87 ...
6
votes
1answer
486 views

AUCTeX/Emacs not recognizing correct commands automatically

On my previous OS install, Debian Squeeze with FluxBox, my workflow was as follows: With *.bib file open, I enter C-c C-c. The BibTeX command was recognized as necessary and ret executed it. Then I ...
3
votes
1answer
474 views

TikZ: compiling a standalone picture

I am not sure if this is recreate-able through a MWE. Whenever I compile a standalone TikZ picture, it compiles all my standalone figures in the same folder. I am using Ubuntu 13.04 and Emacs with ...
4
votes
1answer
999 views

Emacs and latexmk setup for --shell-escape

If I want --shell-escape, do I just need to add it to my .latexmkrc file as $pdf_mode = 1; $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode %O %S -file-line-error -synctex=1'; ...
1
vote
1answer
465 views

RefTex Multiple files problems

I have multi files and each file refers to the master file properly and the document can be compiled without problems .... RefTeX can only refer to the environments , figures, equations, etc when it ...
4
votes
2answers
3k views

BibTex doesn't create .bbl file (Using Emacs/AUCTEX)

I am having a real issue with compiling BibTeX (has previously worked fine). When I compile LaTeX, an aux file is created. Here is my test.aux \relax \citation{carron2013big} \bibdata{rhian} ...
5
votes
3answers
341 views

import R data frame into org-mode table

I have an R script that generates a data frame, that I export to a CSV file. The data looks something like this: "","Variant","Xaxis","N","mean","sd","se" "1","line1",10,5,111.11,9.33,3.11 ...
15
votes
3answers
2k views

Uninformative error message when using AUCTeX

I often have this error when using AUCTeX: "TeX-error: Error occured after last TeX file closed" However, when running for instance pdflatex on the command line, I have a proper error message. But ...
7
votes
1answer
136 views

does LaTeX support native multifile management?

This is not really a practical question, but more of an academic one: I use emacs to write my LaTeX files and in order to process multifile documents I include at the end of each file a local ...
4
votes
1answer
274 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 ...
3
votes
1answer
112 views

Can I specify an output file name/path in AUCTeX?

I know I can use C-u C-c C-c LaTeX to edit the command before it is run, but is there any way I can generically specify an output file name without editing the command manually?