Skip to main content

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

beamer export with cite and macro

I am creating my presentations with orgmode and export via a template to beamer/tex/pdf. This works quite nice. Though for referencing images I am using usually a tex macro to put the reference to the ...
Fabian's user avatar
  • 65
1 vote
2 answers
73 views

How can I frame an example block?

In src blocks, I can use LaTeX packages to make them look nice. For example, LaTeX's minted package lets me put a nice frame around my code blocks. The syntax is #+ATTR_LATEX: :options frame=single #+...
J. Mini's user avatar
  • 177
1 vote
0 answers
28 views

Can I make all src blocks of the same programming language inherit the same #+ATTR_LATEX: block?

Suppose that for Python and only Python, I want #+ATTR_LATEX: :options frame=single to customise my #+begin_src blocks. Does Org Mode have any natural way of doing this?
J. Mini's user avatar
  • 177
0 votes
0 answers
24 views

Unknown "nil" backend with org-export-dispatch for beamer

I'm trying to use a single org-mode file to make a single org file that is exported to multiple slide-deck pdf files using beamer. I've got each tree labelled with a unique #+EXPORT_FILE_NAME: foo....
Joey Eremondi's user avatar
0 votes
1 answer
48 views

How to do an ordinary forward-paragraph in latex-mode?

Is there an easy way to perform an ordinary forward-paragraph in latex mode? When the point is at a after running the command forward-paragraph the point goes before the first \. I just want to go ...
Name's user avatar
  • 7,895
0 votes
0 answers
71 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
9 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
47 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
34 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
32 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
33 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
93 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,668
0 votes
1 answer
39 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
40 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,642
1 vote
2 answers
118 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
1 vote
1 answer
111 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
75 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
121 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,642
2 votes
2 answers
262 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,642
0 votes
1 answer
28 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
52 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,642
2 votes
2 answers
147 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
49 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
40 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
44 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
36 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
71 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
24 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
52 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
50 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,364
0 votes
0 answers
44 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
53 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
49 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,364
1 vote
0 answers
150 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
68 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
77 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
56 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
55 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
  • 177
0 votes
0 answers
83 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
  • 666
0 votes
1 answer
78 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
  • 666
2 votes
1 answer
84 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
127 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
65 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

1
2 3 4 5
18