Questions tagged [emacs]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

texmode in emacs and \typein

I use emacs to compose my latex source code, under the texmode. The file I'm working requires inputs from the user: \typein[\answer]{Enter info here: } Everytime I process this file within emacs,...
underflow's user avatar
  • 447
0 votes
0 answers
26 views

AUCTeX Multifile Document with csquotes undetected

I am using AUCTeX 13.2.1 in emacs 28.1 and I have a multifile document setup where my master file is called these.tex and an included file is called chapter_01.tex in a subdirectory. In the preamble ...
Tetro's user avatar
  • 1
0 votes
0 answers
80 views

AUCTeX does not autocomplete environment commands of packages loaded in TeX-master

I am encountering a similar problem to this very old question, in that AUCTeX is not autocompleting commands outside the TeX-master file. I have the following files: main.tex: % arara: pdflatex % ...
Johannes Nauta's user avatar
1 vote
0 answers
16 views

Make section number same as org-mode subheading

I'm busy doing exercises in org-mode and exporting it to tex -> PDF. How do I make sure it follows the headings set in the org file? As you can see in the pictures below, I skipped 1.1.3. In the ...
mustaqim's user avatar
1 vote
2 answers
75 views

How can I streamline insertion of math fonts in AucTeX?

This is essentially a modified question of 1 but with math fonts instead. What I want is an AucTex command to add to my .emacs to do the following: If I'm outside a math environment like equation or ...
Zero's user avatar
  • 627
0 votes
0 answers
21 views

Devanagari and Latin Characters in Spacemacs org-mode layer

I use spacemacs org-mode and try to create a pdf file with Devanagari and Latin Characters through Latex. Here is my unsuccessful approach: #+LATEX_HEADER: \usepackage{polyglossia} #+LATEX_HEADER: \...
Denis's user avatar
  • 91
0 votes
1 answer
30 views

Devanagari and Latin fonts in the same file with Lualatex in Spacemacs

I switched my Texteditor from TexMaker to Spacemacs, but am not anymore able to compile my Sanskrit Translations with mixed Language into a pdf with LuaLatex. In TexMaker it was possible. In Spacemacs ...
Denis's user avatar
  • 91
1 vote
1 answer
44 views

can't compile pdf using LaTex in polymode from .rnw file [closed]

I am trying to setup a Knitr workflow in EMACS ESS. I can get a pdf to compile using pdflatex and knitr-ess, but the bibliography is not generated. I am using zotxt to insert citations from zotero, ...
Jacob's user avatar
  • 11
0 votes
0 answers
40 views

How can I syntax-highlight non-inlined code?

One of the delights of using org-mode to edit LaTeX documents is the ability to see figures inline, as I am editing the buffer. By runnning (org-toggle-inline-images) , bound by default to C-cC-xC-v, ...
Sam7919's user avatar
  • 383
0 votes
0 answers
39 views

Is there a way to `\includeonly` when the memoir document is monolithic?

When writing a memoir document it's easy to focus on just one chapter by using \includeonly. \documentclass{memoir} \title{title} \author{author} \includeonly{chap-3} \begin{document} \include{chap-0}...
Sam7919's user avatar
  • 383
0 votes
1 answer
116 views

How can I adjust memoir to work within org-mode?

In lieu of typing bare-bones LaTeX code, and for other advantages irrelevant to this question, I am using the memoir class from within Emacs org-mode, with larger fonts for using the output initially ...
Sam7919's user avatar
  • 383
0 votes
0 answers
81 views

reftex insert \eqref for \part in exam documentclass

In the exam document class, in emacs I can use C-c C-) to insert \ref{...} for labels for \part, I want to default it to \eqref{...}. I tried a bit using the following lines, but it works for \item in ...
davyjones's user avatar
  • 935
0 votes
0 answers
61 views

emacs-tex-inkscape workaround

everyone. I'm using emacs to edit my latex files (to write my abstract in university), but it sometimes takes a lot of time to stop editing text, open inkscape, create a picture, then insert it's path ...
Ivan I. Ovchinnikov's user avatar
1 vote
1 answer
168 views

Can I customize ispell to ignore environments

I've found a couple of answers about ignoring commands (environment variables TEXSKIP1 and TEXSKIP2 can contain commands with 1 resp 2 arguments -- how I wish there were a 3 variant!) but not about ...
Victor Eijkhout's user avatar
1 vote
1 answer
99 views

koma-article is defined in org-latex-classes but not ava

I tried the suggestion at: Using KOMA-Script article with org-mode When I try to export from an org file to LaTeX document class koma-article I get the message unknown LaTeX class 'scrartcl'. Here is ...
Bert Munger's user avatar
1 vote
1 answer
54 views

The top of the floated image is not in line with the text

It looks fine in the first picture, but notice in the second one, the top of the picture is not in line with the text. In the second picture the shift happens because I added a paragraph before the ...
Zoltan King's user avatar
1 vote
0 answers
215 views

What are some top secret hacks for people who are familiar with LaTeX? [closed]

I have used LaTeX for 10 years. I read an introduction to LaTeX on the internet and started writing in LaTeX. With the time I got familiar with Tikz and other packages. Today I learned about: org mode ...
Fukai Mizumi's user avatar
0 votes
1 answer
704 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 ...
Felipe Dilho Alves's user avatar
2 votes
0 answers
155 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 ...
vap's user avatar
  • 225
0 votes
0 answers
321 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 ...
AulwTheo's user avatar
0 votes
1 answer
186 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 ...
xiangsheng's user avatar
0 votes
0 answers
97 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 ...
Jesus Armando Peña Lucero's user avatar
1 vote
1 answer
2k 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/...
Julia's user avatar
  • 1,616
1 vote
1 answer
98 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 ...
marolafm's user avatar
  • 111
2 votes
1 answer
251 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 ...
Hermann von Westerholt's user avatar
0 votes
1 answer
491 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
Paul's user avatar
  • 101
2 votes
1 answer
76 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 ...
Name's user avatar
  • 2,796
1 vote
0 answers
81 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 ...
Antonio Bove's user avatar
1 vote
1 answer
137 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 ...
alper's user avatar
  • 1,311
0 votes
1 answer
187 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 &...
hrkshr's user avatar
  • 23
0 votes
1 answer
79 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 ...
loris's user avatar
  • 173
0 votes
1 answer
159 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 ...
student's user avatar
  • 28.8k
0 votes
0 answers
80 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 ...
Pifec's user avatar
  • 1
1 vote
1 answer
327 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 ...
Albert Vonpupp's user avatar
1 vote
0 answers
233 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 #+...
fersdt's user avatar
  • 11
1 vote
1 answer
165 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. \...
Evgeny Makarov's user avatar
0 votes
0 answers
102 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 ...
Steven Jan's user avatar
1 vote
0 answers
133 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 ...
Rama Lakshmanan's user avatar
0 votes
1 answer
203 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 ...
Prolle's user avatar
  • 127
0 votes
0 answers
395 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 ...
Peter Thomas's user avatar
0 votes
0 answers
78 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 ...
Vikram's user avatar
  • 1
1 vote
2 answers
144 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 ...
Atbey's user avatar
  • 165
0 votes
0 answers
260 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/...
bonsoir's user avatar
0 votes
0 answers
115 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 ...
jjk's user avatar
  • 265
1 vote
0 answers
168 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 ...
Philippe Lamontagne's user avatar
0 votes
2 answers
1k 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 ...
Kai Jenkins's user avatar
0 votes
1 answer
165 views

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

Forward search from Emacs (AUCTeX) to Okular with \include is not working. My OS: OS: Debian bullseye (testing) Emacs: 26.3 Okular: 1.11.1 AUCTeX: 12.2.4 .emacs (Emacs settings): (custom-set-...
Evren's user avatar
  • 21
4 votes
1 answer
713 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 &...
ivo Welch's user avatar
  • 3,643
1 vote
0 answers
114 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 ...
Vadim's user avatar
  • 11
3 votes
2 answers
194 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 ...
Benedikt Ahrens's user avatar

1
2 3 4 5
13