Questions tagged [emacs]

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

60 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
5k views

Getting SyncTeX to work with Emacs, AucTeX and Skim (OS X El Capitan)

I'm attempting to set up LaTeX to work with Emacs on my Mac, running OS X El Capitan 10.11.5. I can compile everything all right, but I'm unable to use forward/inverse searches with Skim. From ...
5
votes
0answers
1k views

Emacs + AucteX + Skim (MacOS Sierra) Forward Search Problem

Once I upgraded to MacOS Sierra, I started to having problems in forward search in Skim. Backward search functions well. When I press "Cmd + S + Mouse 1" in Skim, it directly goes to the line in Emacs....
3
votes
0answers
305 views

Emacs-AucTex - Preview-PDF2DSC exited abnormally with code 127 - I can't see preview-latex

Context: I am a Newbee on Emacs and AucTex. I just get started several days ago and installed some packages as some tutorials go along. I installed some packages: company, swiper, auctec, auto-...
3
votes
0answers
106 views

Multiple Emacs/Auctex + Okular instances

Working in Ubuntu with Emacs/Auctex, I switched to Okular because it has a night-mode with less contrast than simply inverting colors. I added the following lines in my .emacs file following this ...
3
votes
0answers
389 views

RefTeX won't find bibliography file

I am using the latest Aquamacs on MacOS (and I am wondering why all these emacs-related questions are posted in tex.stackexchange.com and not in emacs.stackexchange.com). I hope, I have configured my ...
3
votes
0answers
59 views

Have two different master files compiled with AucTeX

I use a template for exercises where I have a ex environnement, and then a sol environnement. Theses files are included in one master file called for instance AF1920_serie4.tex, and in another file ...
3
votes
0answers
266 views

Preview-latex images wrong locations. (offset by 1)

I've been writing some results with various equations in align blocks using latex. I've recently begun using AUCTeX with its preview functionality, which is really cool. Things start out great, but as ...
3
votes
0answers
2k 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 ...
3
votes
0answers
607 views

How can I change the color of a \enquote quotation inside Emacs?

When I paste a text inside quotation marks into Emacs+AUCTeX, AUCTeX formats it with a soft red color (see the screenshot below at the first line). I like this color. However, I'm using csquotes ...
3
votes
0answers
206 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 auto-...
3
votes
0answers
222 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
0answers
74 views

Appropriate way to skip spell-checking certain macros in AUCTeX

I want to skip checking inside the macro \acrshort (also \acrlong and \acrfull) from the glossaries package. I tried the following from the post, where I had some successes in the \cite... macros (...
2
votes
0answers
65 views

AUCTeX inverse search with region or buffer compilation

I have inverse search working great with single-file documents with Zathura. Unfortunately, things break down when I try to do inverse search when viewing a region of my document, or a buffer in the ...
2
votes
2answers
136 views

AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago: AUCTeX/RefTeX, the `import` package and cross reference RefTeX ...
2
votes
0answers
411 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
2
votes
0answers
219 views

automatic tilde(~) before \cite in reftex

The question is the same as in this other post, that I want C-c [ to insert ~\cite instead of just \cite. However, the solution given therein as follows (setq reftex-cite-format '((?\C-m . "~\\cite{...
2
votes
0answers
356 views

AUCTeX opens unwanted compilation buffer

I followed this other post to set up some nomenclature command and ensure command afterwards etc. Everything works perfect except when I type C-c C-c Nomenclature, a compilation buffer will pop up and ...
2
votes
0answers
403 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
786 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 ...
2
votes
0answers
1k 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. ...
2
votes
0answers
83 views

Are AUCTeX forward search and inverse search meant to work with C-c C-r and C-c C-b too?

Background: C-c C-r is like C-c C-c except it's for compiling & viewing just a fixed portion (specified by the user) of a TeX buffer. C-c C-b is like C-c C-c except it's for compiling & ...
2
votes
0answers
144 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 not ...
2
votes
0answers
532 views

Passing aux directory option to AUCTeX

I use Emacs and MikTeX. With the latter comes a PDFLaTeX option to move clutter in a temp-dir directory: -aux-directory temp-dir. I am tentatively trying to pass it to AUCTeX with: (setq tex-start-...
1
vote
0answers
84 views

What Synctex dependencies are missing under WSL?

The setup on my Windows work computer is an Ubuntu instance of Windows Subsystem for Linux (WSL) with an X server and the i3 window manager. I use emacs to edit latex and evince as a viewer. I have ...
1
vote
0answers
62 views

Default preamble for AUCTeX latex-preview (like in LaTeXTools in Sublime Text)

I have a question: I've started using Emacs+AUCTeX for writing LaTeX documents. And I want to know whether there is any possibility for latex-preview to use some predefined preamble like LaTeXTools ...
1
vote
0answers
56 views

how to go from emacs to xdvi

I can go from xdvi to emacs using Ctrl+click but I do not know how to go from emacs to xdvi. I tried to Ctrl+click on the emacs window but it did not work.
1
vote
0answers
26 views

Audible alarm when On Latex compilation error

Hei. — I'm trying to make Emacs give an audible signal in case of a LaTeX compilation error. Normally, Emacs is in "silent" mode, and wants that to continue after an audible LaTeX-alarm. Thanks ...
1
vote
0answers
344 views

How to spellcheck multi-language LaTeX files?

Continuing http://tex.stackexchange.com/questions/325453/flyspell-babel-warning-no-dictionary-installed-for-foreignlanguage and How can I make AUCTeX spell check in the language specified by babel and ...
1
vote
0answers
126 views

Emacs AUCTeX keeping focus to the source buffer after runinng TeX-command-run-all

I am using Emacs AUCTeX with pdf-tools. When I compile my tex file with C-c C-a, i.e., run TeX-command-run-all command. When it is finished, my cursor moves to the generated pdf file. I would like my ...
1
vote
0answers
99 views

C-c C-c does not start a viewer

I'm on a recent install of Ubuntu 18.04, with emacs 25.2.2, and auctex installed via the package manager. When I type C-c C-c to view a recently latex'ed document, Emacs launches the command TeX-...
1
vote
0answers
494 views

Sumatra PDF Forward and Inverse search emacs

I have spent so much time trying to find a way to do both forward and inverse search on Emacs-Sumatra on a windows 10 computer. Whenever I do C-c C-c, I would like to be sent to the part of the PDF ...
1
vote
0answers
321 views

Editing the list of environment autocompletion in AUCTeX

In Emacs the command C-c C-e prompts for an environment to insert. After pressing TAB I'd like to type just two letters eq and get equation or equation*, which I use most of the times. Unfortunately, ...
1
vote
0answers
126 views

Fetch bibtex citation with abstract included

Hello to this great community, I am trying to get a simple way to fetch bibtex citation with abstract. I know there is the option to use Pubmed and convert the nbib file to bib, I am using a great ...
1
vote
0answers
513 views

Problem with Reftex - how to get it to index bib for all files?

edit : here's a screencast of the problem for me : https://vid.me/uBHN I have cloned this project : https://github.com/vermiculus/smppaper I have then created a new file in the sections directory ...
1
vote
0answers
488 views

Cygwin Emacs+Auctex+Evince?

I am trying to get emacs, auctex and evince working together on Cygwin. The forward search works, but not the reverse search (Evince->Emacs). I tried in vain to find out if the emacs bundled with ...
1
vote
0answers
87 views

How to make Reftex menu recursive (or nested)?

I have the fllowing lines in my .emacs: (add-hook 'reftex-load-hook 'imenu-add-menubar-index) (add-hook 'reftex-mode-hook 'imenu-add-menubar-index) (global-set-key [down-mouse-3] 'imenu) It produces ...
1
vote
0answers
60 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 ...
1
vote
0answers
118 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?
1
vote
0answers
616 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
251 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 ...
1
vote
0answers
136 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 LaTeX-csquotes-...
1
vote
0answers
148 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
0answers
437 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 ...
1
vote
0answers
187 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 ...
0
votes
0answers
44 views

Org mode - text problem in SVG images

I have a problem when exporting latex tikz code as svg image in org mode. #+LATEX_HEADER: \usepackage{svg} #+LATEX_HEADER: \usepackage{tikz} #+HEADER: :exports results #+HEADER: :imagemagick yes #+...
0
votes
1answer
36 views

AUCTeX: TeX-PDF-from-DVI is always "Dvips" and file is compiled to DVI instead of PDF

I have a weird behavior of the TeX-PDF-from-DVI variable from AUCTeX: it keeps being set to "Dvips", and Emacs keeps calling latex instead of pdflatex. I start with a minimal file test.tex. \...
0
votes
0answers
72 views

Headers in Front Matter of Book

The 'List of tables' header persists across the remaining sections of the front matter (Preface, Acknowledgments, Credits, Note), only disappearing when the main matter starts. Is this an issue with ...
0
votes
0answers
126 views

Latex editor solving math problems by cas

Which Latex editor is capable to solve math problems really? Neither emacs nor Lyx do that though the relevant manuals say so. The menu in Lyx offers to evaluate math expressions by maxima (Octave ...
0
votes
0answers
57 views

show all equation labels when typing \eqref

I use AUCTeX + RefTeX a lot and really like the convenience. Is there a way of automatically showing all equation labels with I type \eqref{ followed by a TAB in the Emacs window? I know that C-) e ...
0
votes
0answers
78 views

How to design latex by eye and mouse only?

How can I drag and drop a latex document using my eye and mouse only? In other words, I don't know yet what document design I'm looking for. I'm an avid emacs and keyboard first user, however the ...