Questions tagged [emacs]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Special characters not working, font issues with emacs [closed]

Good morning, one of my users recently moved to Catalina from Yosemite. The customer uses emacs. I installed Homebrew to get emacs working on the new laptop. All of the other software works, however ...
2
votes
0answers
41 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 ...
0
votes
0answers
31 views

How do I install metapost.sty on Ubuntu?

I have \usepackage{metapost} in my LaTeX file. When I compile the file via Emacs I get this error: ERROR: LaTeX Error: File `metapost.sty' not found. On the terminal I then do sudo tlmgr install ...
0
votes
0answers
38 views

How to set up AUCTeX/Emacs automatically to tile TeX file, overview and TeX errors?

I am trying to set up Emacs and AUCTeX to show error information buffers in a way like the following, automatically, tiling the TeX file, overview and error windows: The screenshot comes from How to ...
4
votes
1answer
93 views

Custom font specifiers in AUCTeX

I would like to add a new font specifier, so that I can for example use C-c C-f C-a to insert \textcolour{blue}{*} Is this possible?
0
votes
0answers
76 views

reftex-toc freezes emacs

Precisely as stated. I have tried both C-c = and C-u C-c = but in each case, it says that *toc* has been successfully built, and then all of emacs freezes before anything else is displayed. Has ...
0
votes
1answer
290 views

On Win 10, I've installed emacs (with AucTeX) and Miktex. How do I get emacs to invoke MikTex?

I've installed emacs and installed the AucTeX package using emacs (which seems to be the consensus advice). I've installed MikTeX. How do I get C-c C-c latex to invoke MikTex and let me view the ...
3
votes
0answers
144 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 ...
1
vote
2answers
98 views

How to set up Emacs/AUCTeX/RefTeX to use BibLaTeX by default

In previous years I used to rely on good old (tm) BibTeX for my bibliography files. But nowadays, one should use BibLaTeX with biber as replacement for BibTeX. Hence, I would love to convince my ...
0
votes
0answers
18 views

Bibtex autokey use capital letters on clean entry

I'm building a bibtex file to store all my references for some papers I am writing. I'm also using helm-bibtex in emacs to manage the PDFs and notes files, so it is very important that the keys are ...
1
vote
1answer
111 views

AUCTeX fails to generate previews

I am trying to generate previews using AUCTeX on Emacs GUI in my tex buffer but I get a "stop" sign error everywhere. See example below: When I click on the stop sign and select "View Error" I get ...
0
votes
0answers
57 views

Change the color of Auctex preview images

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions."...
2
votes
0answers
38 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 ...
2
votes
0answers
43 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 (...
1
vote
1answer
210 views

Adding new label/reference command pairs to RefTeX

I would like to add the label commands \pflabel and \pflonglabel, as well as their corresponding reference command \pfref to RefTeX. I would like them to work like \label/\ref do by default, but be ...
2
votes
1answer
65 views

AUCTeX toggle math modes

I use $ ... $ for inline math and \[ ... \] for display math. I'd like to be able to toggle between the two by selecting the text and calling TeX-insert-dollar. However, as I understand it, this ...
1
vote
0answers
87 views

\DeclareLabelname with Biblatex in Emacs Org-mode [closed]

I have a custom biblatex entry type called "film". This has several custom fields, notably the "director" field. While I am able to get this to work as a straight LaTeX document, I am unable to get ...
3
votes
2answers
258 views

How to let AUCTeX launch automatically pythontex.py script

I need to use the pythontex package that I find very useful if someone has to do some calculation before inserting the results in LaTeX. So Here is an example: \documentclass{article} \usepackage{...
0
votes
0answers
75 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 ...
3
votes
1answer
90 views

`\documentclass{scrartcl}` not working in org-mode and emacs

I am trying to use org-mode for generating my documents in pdf format using MiKTeX in Windows environment. When use the class \documentclass{scrartcl} in TexMaker, it is working properly. But in org-...
0
votes
0answers
28 views

Unable to show the subtitle in pdflatex

I have a code block as follows: #+LATEX_CLASS: article #+TITLE: Lecture 1: Introduction #+SUBTITLE: Course Name #+AUTHOR: My Name #+EMAIL: myname@nowhere.com #+LaTeX_HEADER: \usepackage{charter} #+...
1
vote
1answer
260 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
3
votes
1answer
130 views

AUCTeX does not recognize cleveref labels

I use the cleveref package, which allows annotating \label commands with an optional argument. Unfortunately, this prevents the various functions in latex.el from detecting those labels. My guess is ...
1
vote
0answers
114 views

Emacs LaTeX compiling : error occurs then no more error [closed]

When I compile my file with Emacs with C-c C-c, I got this message: LaTeX errors in ‘*~/path/to/myfile output*’. Use C-c ` to display. Then, when I check the error with C-c `, I get this : No more ...
1
vote
0answers
59 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 ...
2
votes
0answers
35 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 ...
0
votes
1answer
92 views

How to set koma pseudolength in emacs org mode?

Using emacs org-mode and the koma letter script, how can I set the vertical address position? The 1manual at p.484 displays a nice 2overview of position possibilities. However, neither of these lines ...
2
votes
1answer
238 views

TeX-complete-symbol doesn't work in math mode

I can't get AUCTeX to complete user-defined commands in math mode. As an example, TeX-complete-symbol works outside of math mode in the document below, but it stops working if I prepend a dollar sign ...
2
votes
1answer
140 views

How to align the signature and its picture to the left with koma script?

Using emacs org-mode and the koma letter script, how can I align the signature part to the left? Setting raggedsignature as suggested in other posts, makes no difference #+LATEX_CLASS: default-koma-...
3
votes
1answer
139 views

Emacs+AUCTeX: improve emacs support on cls and sty file

Considering the well-polished work on the support of tex file in Emacs by AUCTeX, it is quite confusing the support on .cls and .sty files is rather weak. For example, the \if statement is never ...
1
vote
1answer
87 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 ...
1
vote
1answer
87 views

AUCTeX fails to put auxilary files in a certain directory

I'm using Emacs + Auctex to edit and compile file .tex with xelatex at present. I want put those auxiliary files(created during compile) in another directory, e.g. /tmp. So I have the following code ...
2
votes
0answers
207 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 ...
1
vote
2answers
185 views

Convert TeX display math style ($$ MATH $$) to LaTeX (\begin{equation*} MATH \end{equation*})

I'm trying to write a script (in emacs lisp) to convert TeX display math style like, e.g., $$ x + y = z $$ into the LaTeX \begin{equation*} x + y = z \end{equation*} To get my purpose I imagined ...
1
vote
1answer
179 views

How to make AuCTeX aware of the class in the master file?

When I divide a document between a master file and other buffers, I don't get hints from AucTeX to complete environments and macros. I set the master file with: %%% TeX-master: "mymasterfile" ...
1
vote
0answers
86 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
290 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
1answer
289 views

Biblatex custom entries with Emacs' BibTeX mode

Since version 24.1, Emacs' BibTeX mode supports biblatex entries. This works very nice indeed. However, I make heavy use of biblatex's extensiblility, with custom entrytypes and corresponding ...
3
votes
1answer
174 views

Get Emacs' electric quote mode to work with AUCTeX and BibTeX mode

I've grown fond of electric-quote-mode in Emacs as a convenient way to get curved quotes in my documents. However, I can't seem to get it to work with either AUCTeX or BibTeX mode. I'm aware AUCTeX ...
3
votes
1answer
204 views

Auctex: Prompt for required arguments when Auctex inserts a theorem environment?

So I have defined a theorem environment/style in a separate structure.tex file, and I want to add this theorem environment to the set of Auctex environments when using C-c C-e. However, I also want ...
0
votes
1answer
325 views

How to have AucTeX auto-complete `\left[ \right]`, `\left( \right)` in custom math environment?

Note: This is probably a duplicate, but I can't figure out the right search terms. If you can post the link to the original question and close this one, it would be greatly appreciated. I followed ...
0
votes
1answer
463 views

Cannot load preview-latex despite AUCTEX already installed

I have installed AUCTEX from inside emacs (i.e. M-x list-packages) and according to preview-latex manual, the installation of it is already included when installing AUCTEX. But when I tried to load ...
0
votes
0answers
162 views

ConTeXt fontifying in emacs auctex

I use emacs + auctex to typeset ConTeXt documents. There are some features in the LaTeX mode that do not transpose into ConTeXt mode, and I would like to make some minor changes. Problem is, I am not ...
2
votes
1answer
1k views

Installing AUCTeX on Windows 10

I am following the detailed instructions on how to install AUCTeX on Windows found here After all prerequisites are installed the instructions state to "start some shell (typically Bash) capable of ...
1
vote
1answer
110 views

Default Color for User Defined Macros in Emacs

When writing tex documents, I often create and include a file that contains a number of user defined macros, e.g., \newcommand{\pstar}{\ensuremath{\mathcal{P}^\star}}. I'd like to set up emacs syntax ...
0
votes
1answer
60 views

Recovering tex file using tex~ file

I use Emacs AUCTEX to handle tex files. I accidentally overwrote the content of a tex file and the old content is gone. Let's say the file is file.tex. I do have the file.tex~ which was modified ...
0
votes
1answer
238 views

RefTeX: How to modify the “select a reference format” menu?

I use Emacs + RefTeX + AUCTeX to write .tex files. I use the handy keyboard macro C-c ) for cross-references. This shows a menu named SELECT A REFERENCE FORMAT and I can choose between a number of ...
1
vote
1answer
209 views

Splitting the same text in two windows with Texstudio

How is it possible to split the same text in two windows with TeXstudio, like it is done here : https://tex.stackexchange.com/a/364455/89734. I like very much TeXstudio since a friend introduced me ...
1
vote
3answers
229 views

Auctex: replacing quotation marks with proper TeX ones

I'm LaTeX-ifiying a document produced by exporting an MS Word document into plain text. I'm wondering if there's some automatic method for replacing all the double quotes, so that "quoted text" is ...
4
votes
1answer
213 views

use beamer auctex'hooks with class file derived from beamer

I have written my own beamer-derived .cls file to avoid copying and pasting my usual preamble. A MWE would be \NeedsTeXFormat{LaTeX2e}[1995/12/01]% \ProvidesClass{own_beamer}[2018/06/19 my own slides ...

1 2 3 4 5 12