Skip to main content

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
33 views

Need help with env variables with tug-texlive

Due to a space problem (on my root partition) I removed my Ubuntu Texlive; and thought I'd try the direct install from tug. But I am (I think) not getting the paths right. In particular the manual ...
Rushi's user avatar
  • 313
1 vote
1 answer
50 views

How to force `reftex-label` function to insert a more environment-dependent label?

By invoking reftex-label or by the hotkey C-c ( a label is automatically inserted in the document. For the section environment, the label is fine. But for an environment like theorem or thm a label ...
Name's user avatar
  • 2,858
0 votes
0 answers
20 views

bibliography issues

I have a situation where my bibliography is not automatically getting updated. I run within emacs and previously used TeXShop. I was able to get it to work with the following: $ latex report.tex $ ...
user129393192's user avatar
1 vote
2 answers
81 views

AUCTeX preview renders tikzpicture wrong

I have the following latex document: \documentclass{article} \usepackage{tikz} \usetikzlibrary{angles} \usetikzlibrary{calc} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture} \coordinate (...
Stefan Ollinger's user avatar
0 votes
0 answers
55 views

Emacs gives me no error for lualatex while there ARE some errors

If I create a file: \documentclass{article} \begin{document} Hello \directlua{tex.sprint("Yeahhh"+thisvariabledoesnotexist)} \end{document} %%% Local Variables: %%% mode: latex %%% TeX-...
tobiasBora's user avatar
  • 8,964
1 vote
1 answer
101 views

Circuitikz - Partway modifiers behave differently in Emacs Preview mode

This simplified version of my source code produces different results when simply run through LaTeX and when viewed using Emacs/Auctex Preview mode. My question is how to get around this problem with ...
Charles B. Cameron's user avatar
1 vote
1 answer
72 views

Using Latex-preview in Emacs with siunitx

Is there any way to get preview.el to display graphics for units expressed using the macros of siunitx? I have succeeded in getting equations and tikz drawings displayed in preview-latex, convincing ...
Charles B. Cameron's user avatar
1 vote
0 answers
28 views

Auctex: robust way to align a tabular with nested groups

I’m using in emacs/AucTex the following code to align a tabular-like environment: (defun align-environment () "Apply align to the current environment only." (interactive) (save-...
tobiasBora's user avatar
  • 8,964
0 votes
1 answer
77 views

Preview latex size not changing

I have found that the equation preview sizes with preview-latex don't work, despite changing preview-scale-function with the following, for example: (custom-set-variables '(preview-scale-function 2.0))...
user2472071's user avatar
10 votes
2 answers
1k views

Looking for a good Emacs/AUCTeX setup for LaTeX3

I'm trying to switch my editor from vscodium (telemetry free VS Code) to Emacs. So far, I've installed AUCTeX and tried some things in a testdocument. For regular LaTeX code everything is fine. But ...
lukeflo's user avatar
  • 1,597
1 vote
1 answer
50 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
  • 633
0 votes
0 answers
43 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
160 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
1 answer
53 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
137 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
1 answer
52 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
58 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
1 vote
0 answers
68 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
  • 393
0 votes
0 answers
45 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
  • 393
0 votes
1 answer
226 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
  • 393
1 vote
1 answer
223 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
155 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
64 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
290 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 ...
user avatar
0 votes
1 answer
1k 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
224 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
467 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
274 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
121 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
3k 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,658
1 vote
1 answer
127 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
370 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
668 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
85 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,858
1 vote
0 answers
117 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
174 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,515
0 votes
1 answer
250 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
101 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
190 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
  • 29.2k
0 votes
0 answers
99 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
2 votes
1 answer
431 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
2 votes
0 answers
326 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
  • 21
1 vote
1 answer
206 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
113 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
163 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
247 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
1 vote
0 answers
553 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
82 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
171 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
265 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

1
2 3 4 5
13