Questions tagged [latex]

Working with LaTeX documents, LaTeX coding, and LaTeX source blocks in other documents.

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

Auctex changes when inserting items

I am using AucTex 13.2-1, and I have noticed some changes in the insert-item functionality. Previously, when used C-c C-e, I was prompted for the environment type and, when choosing itemize, the ...
Moritz's user avatar
  • 1
0 votes
0 answers
8 views

Error yas--advance-end-maybe-previous-fields with autoactivating yasnippets in latex environments in org mode

I get the error yas--advance-end-maybe-previous-fields: Assertion failed: (memq field (yas--snippet-fields snippet)) in org mode when I use snippets that: do not contain $1 in the snippet use auto ...
userrandrand's user avatar
0 votes
1 answer
43 views

How to set keybindings to jump to next/previous latex math environment?

In vim (I think with vimtex) one can jump to the next or previous math zone (inline or display mode) with a keybinding. Using auctex or org mode (preferably org mode), how could one do that in emacs ? ...
userrandrand's user avatar
0 votes
1 answer
30 views

How to change the color of superscripts and subscripts in latex in org mode?

Changing emacs themes, it seems that there is a variable that determines the color of the superscript ^ and subscript _ symbols in latex math environments in org mode (in the source code not the ...
userrandrand's user avatar
0 votes
1 answer
22 views

Defining LaTeX parentheses delimiters thing for meow-mode

Setup In the spirit of evil-tex, I'm trying to define a thing for the meow modal editor that demarcates LaTeX parentheses delimiters such as \left( \right), \langle \rangle, ( ), \bigl( \bigr). I am ...
nanowillis's user avatar
0 votes
0 answers
28 views

org-mode: exporting a subtree to latex still parses latex header commands defined in other subtrees

I have an org-mode file made of several headings whose structure can be summarized as follows: #+LATEX_HEADER: <some global latex commands> * Heading A #+LATEX_HEADER: <some latex ...
Laurent Jacques's user avatar
1 vote
1 answer
83 views

Distinction between inline and display math instead of default behavior of texmathp

The default behavior of texmathp gives true regardless of wheter the cursor is inside an inline or display math environment. Is there a way for texmathp to display true only if the cursor is inside an ...
userrandrand's user avatar
0 votes
0 answers
24 views

org-mode latex preview with png file not work

I would like to preview a latex output as png file and show it in emacs 27.1. My os is ubuntu22.04 and texlive2023. I try code below: #+header: :file ./demo.png :results file drawer :fit yes :border 0....
lucky1928's user avatar
  • 1,666
0 votes
1 answer
24 views

How to change the value of cdlatex-math-modify-prefix?

The prefix key used for creating common LaTeX commands in CDLaTeX is not changed after modifying the cdlatex-math-modify-prefix variable. I have tried changing it using (setq cdlatex-math-modify-...
Divvy's user avatar
  • 23
0 votes
0 answers
32 views

Org mode LaTeX block fails to invoke gnuplot for pgfplots?

I've copied a configuration from the internet that allows me to generate images from LaTeX code blocks in Org mode. Here's the setup: #+PROPERTY: header-args:latex :results file raw drawer :headers '(&...
Fangquan Shi's user avatar
0 votes
1 answer
53 views

Loss of latex-mode Fontification When Loading Libraries in latex-mode-hook That Require json-mode

My actual scenario involves using latex-mode-hook to load some libraries that require json-mode. I replicated my issue in a MWE: I have a LaTeX file: \documentclass{article} \usepackage{mwe} \begin{...
Gabriele's user avatar
  • 1,554
1 vote
2 answers
113 views

Create table with circles around words and hiding some of the grid lines in Emacs Org-mode

I am new to Emacs. Is there any way to create a table in Org mode like in the example table below. Particularly I'd need to be able to circle some of the words and hide some of the grid lines. The end ...
Tiberius's user avatar
  • 113
0 votes
1 answer
51 views

Why am I getting the following error: Symbol’s value as variable is void: org-latex-classes

This is a new error, and I haven't really changed anything in my config. The relevant portion is below (use-package org :config (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) (setq ...
Dargscisyhp's user avatar
0 votes
1 answer
52 views

Remote LSP unable to find texlab server

I need to setup lsp to work on LaTeX file in a remote machine. I installed texlab both in local and in remote machine and add the path to the remote texlab in my emacs (spacemacs) init file as follow: ...
Riccardo's user avatar
  • 133
1 vote
2 answers
111 views

Determining AUCTeX Activation in Emacs Buffer: Major Mode Detection Issue

I recently upgraded to Emacs 29.1 (from Emacs 26). While using latex-mode, I encountered a fontification issue for which I found a patch (Latex mode: tex-verbatim face has priority on font-lock-...
Gabriele's user avatar
  • 1,554
2 votes
2 answers
235 views

How to install AUCTeX on Emacs without automatic activation for LaTeX (.tex) files?

I am interested in installing AUCTeX on Emacs to support writing LaTeX documents. However, I would prefer to avoid the automatic activation of AUCTeX when opening LaTeX documents and only activate it ...
Gabriele's user avatar
  • 1,554
0 votes
1 answer
20 views

org-preview-latex permission issues

I have used live latex previews in org mode for some time. Without changing my setup, the following error has started appearing in *Org Preview LaTeX Output*: ERROR: can't open file '../private/var/...
user615536's user avatar
0 votes
1 answer
50 views

Latex mode: tex-verbatim face has priority on font-lock-comment-face

I switched to Emacs 29.1 recently. I noticed that the tex-verbatim face used in latex-mode to highlight the \href argument has priority on font-lock-comment-face. The tex-verbatim face is defined in ...
Gabriele's user avatar
  • 1,554
2 votes
2 answers
139 views

LaTeX equation numbers with Emacs

Equation labels in the .tex document are \label{eq:3}, e.g., which is (7) on the output pdf-document (say); \eqref{eq:3} references this equation. Typing <C-x-o> at point (| in the following ...
Alois Pichler's user avatar
0 votes
1 answer
33 views

How can I get color in an example org block exported to a verbatim beamer environment

I am trying to get some color in an example block exported to beamer by doing something like the following #+BEGIN_EXAMPLE case when \textcolor{red}{condition-1 then value-1} when condition-2 ...
Dargscisyhp's user avatar
0 votes
1 answer
38 views

When trying to compile the exported tex file, I get the error `Environment org undefined`

I use org-beamer-export-to-latex to export the current org file to latex. When I try to manually compile the resulting tex file using latexmk -f -pdf -pdflatex -shell-escape -interaction=nonstopmode x....
HappyFace's user avatar
  • 830
0 votes
1 answer
38 views

Is there any org-babel source block that converts to a LaTeX pseudocode algorithm block?

Currently, when I want to add some algorithm's pseudocode to my LaTeX export, I have to manually write LaTeX: ** Pixel-Flipping: A Technique to Assess Faithfulness - Pixel-flipping is a quantitative, ...
HappyFace's user avatar
  • 830
0 votes
0 answers
68 views

Latex rendition on HTML export

In Latex pdf export (C-c C-e l o) $m$ renders correctly as italics m but in HTML export (C-c C-e h o) it renders as Roman m. Reverse slash Latex formulas like $\mathbb{N}$ render fine in both Latex ...
zeynel's user avatar
  • 371
0 votes
1 answer
23 views

How do I stop converting underscores to \textsubscript while exporting from org to latex?

I'm using special blocks for equations or math containing underscores, for example #+begin_equation \sum_{i=0}^{n} i = \frac{n(n+1)}{2} #+end_equation However, when I see the corresponding tex file, ...
digikar's user avatar
  • 141
0 votes
1 answer
68 views

Why does the execution of latex/hide-show-all with hooks not work?

I'm using AUCTeX, CDlatex and latex-extra to write LaTeX-files. When I access a file I'd want the contents of its sections to be hidden by default using the latex-extra1 command latex/hide-show-all, ...
Alexander Praehauser's user avatar
0 votes
0 answers
23 views

Prevent ox-koma-letter.el from creating .tex files?

When running org-koma-letter-export-to-pdf on an .org file to create a .pdf file ox-koma-letter.el also creates a .tex file. Does anyone know if there is any way to prevent it (or just clean it up ...
Daniel Krajnik's user avatar
1 vote
1 answer
45 views

How to get the starred version of a latex section on org-mode?

How do I get the starred version of a latex chapter/section from an org-mode headlight? * my section ---> \section{my section} ??? ---> \section*{my section} thanks
onlycparra's user avatar
1 vote
1 answer
44 views

How to make orgtbl-mode work within embedded LaTeX environment in org-mode itself?

I read a blog, which mentioned using orgtbl-mode to write a matrix quickly in org table format and then translated it into the LaTeX format. The post mentioned that due to the close relation between ...
tinlyx's user avatar
  • 1,342
0 votes
0 answers
43 views

Change vertical margins/size of the address fields in the koma-letter-export

I'm trying to export a letter as a pdf using org-koma-letter-export-to-pdf command, which is part of the koma-letter-export package (ox-koma-letter.el). By default to and from address fields take up ...
Daniel Krajnik's user avatar
0 votes
1 answer
52 views

Org-mode LaTeX export set AUCTeX local variables

I have an org-mode document, say #+TITLE: My Title * Section My first section and I want to export it to LaTeX with org-latex-export-to-latex. This generates a .tex file that I can now compile. ...
burek's user avatar
  • 35
0 votes
1 answer
44 views

org mode embedded LaTeX does not work for packages imported using usepackage?

I have used org mode embedded LaTeX for a while. The commonly used syntax such as subscripts, fractions and math symbols works well out of the box. All that is needed is to put the LaTeX content ...
tinlyx's user avatar
  • 1,342
1 vote
0 answers
113 views

org-mode latex export of source block with engraved gives error for latex3 code due to missing color-`face` processing

I want to export my source blocks from org-mode to pdf through latex with the export backend engraved. I installed the package engraved-faces, set the variable with (setq org-latex-src-block-backend '...
lukeflo's user avatar
  • 195
0 votes
1 answer
60 views

Autopair parenthesis with cdlatex

I'm trying to write my configuration for the first time and I am facing the problem with cdlatex completion of parenthesis conflicting with tools like autopairs. What happens is that, inside a TeX ...
kindaichi's user avatar
1 vote
1 answer
72 views

Making cleveref insertions globally available

I keep all my commonly used latex packages in one custom package, including the referencing package cleveref. However, reftex is configured to only provide insertion of cleveref referencing commands ...
Alexander Praehauser's user avatar
0 votes
1 answer
26 views

Is there a way to Insert a Table from external pdf similar to inserting external pdf as figure?

We can easily insert figures from external PDF, but how do I insert a table the same way? For example: I have a table in .tex file in a standalone class as it is easier to generate it from an external ...
Atreyagaurav's user avatar
1 vote
0 answers
51 views

How to add a specific pdf page as an image in org-mode, and correctly export it?

I am working in a file document.org, and I have an embedded image, the second page of a file images.pdf. The org-file shows this correctly (with the code shown below). However, upon exporting it to ...
onlycparra's user avatar
0 votes
1 answer
50 views

Why does adding a return value to my Python code stop it from printing?

Load up Emacs in the default modes, i.e. emacs -Q. After this, make a new .Org file with the following contents and run the Emacs Lisp code. (setq org-babel-python-command "python3") (setq ...
J. Mini's user avatar
  • 103
0 votes
0 answers
76 views

why is "org-highlight-latex-and-related" messing with org-hyperlink description?

Basically, to highlight latex equation I need to include native in org-highlight-latex-and-related. But that messes up links with _ ([[file:asdfk_jkfke_erj224jk.txt][a link]] for the example below). (...
Garid's user avatar
  • 641
0 votes
1 answer
67 views

org-latex-preview fails when \usepackage{fontspec} used

To write in different language, I'm exploring different LaTeX engine mainly XeLaTex. #+LATEX_COMPILER: xelatex #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \setmainfont{CMU Serif} * This is ...
Garid's user avatar
  • 641
2 votes
1 answer
70 views

AUCTeX: Some general macros/command missing from auto-completion/macro insertion

While further trying to set up a Latex environment in emacs I stumbled over a "problem" with macro-completion which I don't understand right now. When writing Latex code the usual way to ...
lukeflo's user avatar
  • 195
1 vote
1 answer
110 views

Add parsing of latex-style .el file to LaTeX-hook using AUCTeX

I did some online research (e.g. here) but couldn't figure out how to solve the following problem so far (of course, I might have overlooked something since the whole emacs community is new to me). ...
lukeflo's user avatar
  • 195
0 votes
0 answers
18 views

Upgraded emacs and now there's extra whitespace around latex equations using org-latex-preview

This is inside a docstring in a python script, using org-preview-latex: After rendering: The whitespace goes away if I run convert -trim ltximg/org-ltximg_60b58ddb1d181ad22bd828dd88e5039cf2e80a89....
Nawal's user avatar
  • 101
1 vote
1 answer
63 views

How can I make AUCTeX recognise this macro?

I'm writing a custom helper command for my beamer presentation: \newcommand{\sectionfigure}[1]{ \begin{tikzpicture}[overlay, remember picture] \node at ([shift={(0, 0.27925\paperheight)}] foot....
Alessandro Bertulli's user avatar
0 votes
1 answer
38 views

How to remove padding for display math equations when `org-export-preserve-breaks t`?

When the variable org-export-preserve-breaks is t, the org contents... text \[ a + b + c \] text gets exported to LaTeX as... text\\[0pt] \[ a + b + c \]\\[0pt] Text\\[0pt] This adds a lot of extra ...
user41177's user avatar
  • 121
0 votes
0 answers
8 views

don't show images in html or local links in pdf-latex

I want to transfer folders with documents with Syncthing to the Android tablet, the documentation is made in orgmode and I export to PDF or HTML. But they don't resolve local addresses in the tablet; ...
Levo's user avatar
  • 47
0 votes
0 answers
58 views

How to make LaTeX in org-msg e-mails look nice?

I just want to send nice-looking e-mails like this This e-mail is achieved by using Apple Mail, LaTeXiT and a bit of hand-waving. However, in org-msg mode I can by default with dvipng/imagemagick ...
9IPOCJIABbI4's user avatar
0 votes
1 answer
23 views

browse-url: replace \% with % in the url argument

Short version: how can I make sure that \% strings are replaced by %, in the url argument of browse-url? Long version: In LaTeX, URLs that appear in \url{} macros need to have any % character escaped ...
pglpm's user avatar
  • 301
2 votes
0 answers
21 views

Stop producing excess whitespace in .png files from TikZ code

I've been using Org src blocks like the following to generate .png images of TikZ diagrams. #+name: tikz-functions #+header: :file tikz-functions.png #+header: :imagemagick t :iminoptions -density 800 ...
nonreligious's user avatar
1 vote
2 answers
144 views

How to tangle code blocks from an org file, compile the output, and open the result, with a single command?

I use org-babel-tangle to generate lilypond and latex documents from org files. These org files have the following first line: #+PROPERTY: header-args :LANG :comments org :tangle PATH/FILE_NAME.EXT ...
crocefisso's user avatar
  • 1,306
0 votes
2 answers
57 views

AucTeX: Keybinding for compiling document

Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking ...
AmberWing's user avatar

1
2 3 4 5
18