2022 Developer Survey is open! Take survey.

Questions tagged [emacs]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

In Emacs AUCTex how can I change the pdf output viewer to use the doc-view-mode inside Emacs?

I am using Debian 11 and would really like to be able to use a internal to Emacs PDF viewer, as it seems it can be acomplished with doc-view-mode inside Emacs, there are some posts about this from ...
user avatar
0 votes
0 answers
30 views

math syntax highlighting with auctex in emacs

I am using emacs and the package auctex to write my latex documents. I would like to improve syntax highlighting (or font locking in emacs' jargon) for mathematics. For example, at the moment ...
user avatar
  • 205
0 votes
0 answers
51 views

Unable to compile Latex file with AUCTeX on Emacs

I am using Emacs with AUCTex. The Emacs configuration, based on was working fine, but now it started complaining. I am trying to compile a test file 'test.tex' with the following contents. Any ...
user avatar
0 votes
1 answer
46 views

On the content of LaTeX-environment in AucTeX

When inserting environments using LaTeX-environment in AucTeX, the candidate environment list varies from time to time. For example, I often insert the equation* environment. Sometimes this ...
user avatar
0 votes
0 answers
37 views

\printbibliography is not working. How can I make it work at emacs with AUCTEX?

Using overleaf actually works, but when using emacs, the \printbibliography prints nothing. I'm also using C-c C-c and Latex, C-c C-c Biber and C-c C-c Latex again, and it does nothing. My document is ...
user avatar
1 vote
1 answer
103 views

Pythontex Warning: "DeprecationWarning: invalid escape sequence \m"

When using pythontex with sagefamily like in the example below, I get the following warning: This is PythonTeX 0.18 ---- Messages for sage:default:default ---- /usr/local/texlive/2021/texmf-dist/...
user avatar
  • 1,472
1 vote
1 answer
63 views

AUCTeX - Specify full path on View command (alternative to %o)

I'm trying to change the View command in AUCTeX to use my own PDF viewer. However, my PDF viewer requires the full path of the .pdf file. By default, all solutions proposed on the Internet uses the ...
user avatar
  • 111
0 votes
0 answers
43 views

Org-mode export to latex is ignoring ATTR_LATEX only for Verse Block

Writing this in org-mode: #+LATEX_HEADER: \usepackage{verse} [...] #+ATTR_LATEX: :lines 5 #+BEGIN_verse Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam efficitur ac nisi sit ...
user avatar
2 votes
1 answer
128 views

How do I tell AUCteX about custom macros AND included packages?

Similar questions have been asked before so this post may be a duplicate of: How to properly set up AUCTeX to parse macros from my own *.sty files? auctex does not parse own style file Adding custom ...
user avatar
0 votes
1 answer
97 views

latex-preview-pane change page?

latex-preview-pane shows me the first page of the document, how do I generate all my pages? Or how to I switch the page I'm previewing? (scrolling doesn't work). I'm running on linux and doom emacs
user avatar
  • 101
2 votes
1 answer
59 views

How to define combined shortcuts followed by the grave accent ` (backtik) in Emacs auctex?

I know how to define a new shortcut for grave accent followed by a single key. For example the below code assign the shortcut `8 for inserting \times in a latex document. (add-to-list 'LaTeX-math-list ...
user avatar
  • 2,624
1 vote
0 answers
37 views

emacs+skim forward search after macos update to 12.1

I have a mac mini M1, running macos 12.1, emacs (27.2 build 3) with auctex 13.0.14 (elpa package) and Skim 1.6.6. Problem: C-c C-c in emacs compiles but does not launch Skim as a viewer. Forward ...
user avatar
1 vote
1 answer
62 views

How can I vertical align of & cells in emacs auctex if a line ends with \hline?

I am using following answer for formatting a table emacs auctex tabular vertical alignment of & cells. It works like a magic as its function name iw/tabular-magic. As a minor difference I want a ...
user avatar
  • 402
0 votes
1 answer
64 views

Latexmk setting -pvc and -c in emacs

I am using emacs on mac OS and I have the following setting about .latexmkrc and init.el. Now I want to use -c option to remove files such as aux. So I changed from "latexmk -pvc %t" to &...
user avatar
  • 23
0 votes
1 answer
45 views

Converting BibLaTeX entry types

I have a large biblatex file containing not only @articles, but also PhD theses as @phdthesis entries and Master's and Bachelor's theses as @misc entries. I would like to use RefManageR to extract ...
user avatar
  • 173
0 votes
1 answer
102 views

Automatically bisect latex file for debugging

If I have hard to interpret error messages in a latex file, I comment out half of the file, compile, see if it works or not and so on and find the problematic part by successive bisections. Is there ...
user avatar
  • 27.8k
0 votes
0 answers
40 views

itemize shortcut environment in emacs

I know that M-RET creates a \item in emacs (latex mode) even if there is no \begin{itemize} \end{itemize} around. In the case we are not within such environment I am wondering if it is possible to ...
user avatar
  • 1
1 vote
1 answer
137 views

How to install and use the proto-sinaitic font?

I am trying to be able to use this font on Arch Linux + Doom Emacs. So far what I did is the following: Download and unzip font to ~/.local/share/fonts/ run fc-cache The font is working on ...
user avatar
0 votes
0 answers
95 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 #+...
user avatar
  • 1
0 votes
1 answer
63 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. \...
user avatar
0 votes
0 answers
80 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 ...
user avatar
1 vote
0 answers
74 views

Syntax Highlighting of Common Lisp User Defined Macros in Emacs [closed]

I would like to start writing a few simple Domain Specific Languages in Common Lisp and would like the names of macros I define to be highlighted as if they were Common Lisp functions or macros (in ...
user avatar
0 votes
1 answer
105 views

Anyone familiar with using Latex within Emacs (Org-mode) - Why indent para works, but not abnormal parskip (memoir class)

Firstly I will come clean and admit that the only real interaction I have with Latex is from within the Org-mode environment of Emacs. I am trying to learn latex, however I am finding this confusing ...
user avatar
  • 127
0 votes
0 answers
195 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 ...
user avatar
0 votes
0 answers
66 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 ...
user avatar
  • 1
1 vote
2 answers
105 views

How can I add some line numbers of emacs into pdf created by latex

Is it possible to print Line Number in emacs to the Latex pdf for lines that I prefer? If it is easy, I want to use those numbers with M-g M-g (goto-line command) I asked the same question here, I am ...
user avatar
  • 165
0 votes
0 answers
239 views

How to set Zathura as your pdf viewer with AUCTeX [duplicate]

I have been trying to set Zathura has my pdf viewer with AUCTeX in Doom Emacs. I added (setq TeX-view-program-list '(("zathura" "zathura --page=%(outpage) %o"))) to my ~/.doom.d/...
user avatar
0 votes
0 answers
95 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 ...
user avatar
  • 293
1 vote
0 answers
105 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 ...
user avatar
0 votes
1 answer
686 views

Previewing LaTeX fragments in org-mode not working

I've been trying to find a fix for this for a few days now and it's driving me crazy, so any help would be amazing. I'm trying to set my emacs up for making maths notes using org-mode. However, I've ...
user avatar
0 votes
1 answer
93 views

Forward search from Emacs (AUCTeX) to Okular with \include not working

OS: Debian bullseye (testing) Emacs: 26.3 Okular: 1.11.1 AUCTeX: 12.2.4 .emacs (Emacs settings): (custom-set-variables ...
user avatar
  • 1
3 votes
1 answer
465 views

emacs auctex tabular vertical alignment of & cells

is there an emacs auctex macro or extension that auto-aligns vertically cells in a tabular? I am thinking of one where I put my cursor anywhere into this table \begin{tabular}{lll} x & 123456789 &...
user avatar
  • 3,271
1 vote
0 answers
73 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 ...
user avatar
  • 11
2 votes
2 answers
116 views

Inverse search on AUCTeX opens file in new Emacs window instead of main Emacs window - how to avoid that?

I am using Emacs+auctex+evince on Debian. Suppose I have a latex document main.tex which includessections/sec1.tex. When compiling with C-c C-a from within main.tex and using backwards search in ...
user avatar
1 vote
0 answers
57 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.
user avatar
  • 11
1 vote
2 answers
172 views

XeLaTeX href fails if accents in the link

This piece of code should create a document with a link to https://fr.wikipedia.org/wiki/Alignement_en_mémoire Instead of that the link goes to https://fr.wikipedia.org/wiki/Alignement_en_mémoire ...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 63
0 votes
0 answers
71 views

What is the \begin{LaTeX} environment for?

I'm very sorry if this is something obvious, but I haven't been able to find anything on this. I'm generating LaTeX files using Org-mode in Emacs. The generated source file has \begin{LaTeX} ... \...
user avatar
1 vote
1 answer
106 views

Emacs RefTeX: how to customize C-c [ or M-x reftex-citation

I use Emacs with RefTeX all the times. When I run C-c [ that is the function M-x reftex-citation, the following selection buffer open then I select one of the option, and the Minibuffer prompt to a ...
user avatar
3 votes
0 answers
409 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-...
user avatar
3 votes
1 answer
457 views

Emacs: Workflow to move BibTeX entries from global bibliography to local bibliography

I was not sure if this question would better fit here on in https://emacs.stackexchange.com/ but I was thinking that more people may be able to answer here. So basically, until now, I was managing by ...
user avatar
  • 5,053
0 votes
3 answers
138 views

Extend synctex with emacs to support multiple open pdfs?

Using this answer I've been able to get emacs, syntex, and evince to work together almost perfectly to support forward search (tex file -> pdf) and reverse search (pdf -> tex file). The one thing ...
user avatar
  • 111
4 votes
2 answers
730 views

AUCTeX not compiling: Returning "Master file already set"

I'm writing a thesis with AUCTeX. I have one main document (master.tex) and several chapter files (chapter1.tex, chapter2.tex, etc.) that are included in the master file using the \include command. ...
user avatar
3 votes
0 answers
151 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 ...
user avatar
  • 499
0 votes
0 answers
114 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 ...
user avatar
  • 1
5 votes
1 answer
185 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?
user avatar
  • 173
0 votes
0 answers
93 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 89
3 votes
0 answers
491 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 ...
user avatar
  • 5,050
2 votes
2 answers
770 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 ...
user avatar
  • 5,050

1
2 3 4 5
13