Questions tagged [latex]

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

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

Why can't I type a dollar sign in this latex equation?

Consider the following latex document. \documentclass{article} \usepackage{tikz} \begin{document} Consider the following picture. \[ \begin{tikzpicture} \node (X) {X}; % this X should be ...
0
votes
1answer
22 views

How to Configure AucTeX to Preview .pdf File Generated by XeLaTeX?

How can I achieve this by adding something to ~/.emacs This is my .emacs OS: Ubuntu20.04LTS (WSL) Emacs: 26.3 XeLaTeX: 6.3.2
3
votes
2answers
81 views

How to use a specific latex template in org-mode

I would like to create this Latex template in org-mode : \documentclass[french, 11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage[hidelinks]{hyperref} ...
1
vote
1answer
61 views

How to bind a keybinding to add `\textit` or `textbf` for the word, where the cursor is pointing?

I am working on a LaTex file. Is it possible to bind a keybinding to add \textit or textbf for the word, where the cursor is pointing? For example, cursor is on top of word hello: hello converted ...
3
votes
1answer
50 views

Adding a caption to an equation in org-mode

I'd like to add a caption to a LaTeX-formatted equation, using org-mode's build-in #+caption: directive. The manual says this is possible, but does not specify exactly how to format it. The most ...
0
votes
0answers
30 views

How can I visualize files inside of a folders to create multiplefile documents using auctex?

I'm creating a multiple-file document with auctex/LaTeX using emacs with the next file's structures: ├── chapters │   ├── diffusion.tex │   └── resis.tex ├── configuration.tex ├── figures │   └── ...
0
votes
0answers
9 views

Spacemacs: Latex labels not showing in ref

Manually defined labels (without reftex) are not showing when I use helm-completion-at-point inside a \ref{} environment. How to make the labels show? I am new to Emacs and Spacemacs.
1
vote
1answer
78 views

Preview all LaTeX fragments in org mode?

How can I call org-toggle-latex-fragment on all LaTeX fragments in an Org mode doc? I'm coming from Vim, so my instinct is to put something in the init.el that loops through the document and looks for ...
0
votes
1answer
23 views

Adding extra “\source{something}” command inside table and figure latex environments exported from org-mode

I'm writing a large document in org that I export to PDF through latex. The latex class that I'm using (set in org-latex-classes) defines a \source command that can be used inside table and figure ...
0
votes
0answers
26 views

TeXStudio profile for emacs keybindings?

Does any have a TeXStudio profile for setting basic emacs keybindings (C-p, C-n, C-b, C-f, etc.)? I know I can manually set them myself, but TeXStudio doesn't deconflict hotkeys and the work would be ...
1
vote
0answers
18 views

Turning off visual text replacement in Latex/P mode

In this mode some latex content is visually replaced with something that looks similar to the final output, like making a superscript show up as superscript in the source. It's doing this with \par, ...
0
votes
1answer
33 views

How can i make org mode export latex file with a custom language?

I need romanian for my school reports, i want to write them in org mode. Is there some #+LANG attribute? Do i need to set some emacs variables? I'd really like a per-file solution more
0
votes
1answer
36 views

Org-mode to Latex matrix automatically escapes ampersand

I am trying to write LaTex matrizes in org-mode. It works fine with exporting tables via #+attr_latex :mode math :environment matrix. However, when I try \begin{pmatrix} 1 & 2\\ 3 & 4\\ \end{...
0
votes
1answer
79 views

Buggy org export to LaTeX `itemize` and `enumerate` functions

A similar question has been put to the TeX community over here, which led to the insight that this is an org-export issue. Hence the current question: The org document below generates a tex file that ...
1
vote
1answer
27 views

org-export to ignore strings within drawers

I have the following set up for an annotated bibliography document. ** Kim, M. (2008): An inquiry into the development of the ethical theory of emotions in the "Analects" and the "...
0
votes
1answer
23 views

Run latexmk inside z shell instead of shell

Problem I am using latexkm to compile .tex documents, and recently I got this error while compiling: Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5'' Rc ...
1
vote
1answer
43 views

Org Latex preview produces empty box when I use a certain package, how can I debug the issue?

The following line in my org file is causing problems #+LaTeX_HEADER: \usepackage{prooftrees} If this line is there, then org latex preview produces an empty box. If I remove it, things work just ...
0
votes
1answer
21 views

disable table mode using either #+BEGIN_EXAMPLE or ‘:’ literal line , but insert latex math block $ … $

I’m trying to typeset a grammar in org markup, but want to use latex symbols in the grammar: a -> hello | $\neg$ world | universe • Now, without using #+BEGIN_EXAMPLE or : literal-line ...
0
votes
0answers
53 views

Syntax highlighting for shell code blocks when exporting org-mode files to Latex using listings

I'm using the LaTeX package listings for exporting code blocks in org-mode to latex files. I've defined a latex template with the =org-latex-classes= feature as described in https://so.nwalsh.com/2020/...
0
votes
0answers
31 views

AucTeX with emacs28.0.50 [duplicate]

I want to compile my LaTeX files with emacs28.0.50. I was receiving the same error that is described in this question. I followed the instructions given in the accepted answer and now my init.el file ...
0
votes
1answer
31 views

Use LaTeX accents with tex insert method

With this answer I learned how to insert math symbols with latex syntax directly into my buffer. What I can't figure out is how to make accents insert properly. I want \hat{\beta} to insert beta hat ( ...
1
vote
1answer
70 views

org-mode How to use latex nested environments?

I want to use a matrix environment that is included in an outer environment, so: Environment: \begin{equation*} \left| \begin{matrix} a_1 & b_1\\ a_2 & b_2 \end{matrix} \right| \end{equation*} ...
0
votes
1answer
27 views

Link to footnote export as non-superscript

Links to a footnote automatically exports as superscript in LaTeX. Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. [fn:1685d75dd9ccdec5: This is a footnote.] In sed erat porta, ...
0
votes
0answers
70 views

Emacs warning after package updates

After running updates using list-packages, emacs keeps popping out the following messages when I open a tex file. I tried to reinstall the packages and commented out all settings related to auctex, ...
1
vote
1answer
111 views

How can I preview LaTeX “#+BEGIN_EXPORT” blocks? Is it possible to accomplish this with “org-latex-preview”?

The context When editing Org mode files, I like editing code snippets in isolated buffers because that way I can use snippets and language dependent features in those buffers (something which is not ...
1
vote
1answer
72 views

Make “org-latex-preview” load package so that it properly renders “tcolorbox” environments

The context The following org buffer * Random name This is an equation \begin{equation} x = a + b \end{equation} This is a box \begin{tcolorbox} a \end{tcolorbox} is previewed as The ...
3
votes
1answer
142 views

How to generate cited references with biber and xelatex

I would like to generate cited references and bibliography using biber and xelatex through org mode, but have not figured out how to do so. I have to use xelatex because I am working with Chinese ...
1
vote
0answers
68 views

How to properly highlight a code block (in-buffer) when inside of another block/environment?

The issue is that my source code blocks, BEGIN_src ... END_src, are not properly highlighted when within another block, e. g., BEGIN_proof ... END_proof. Here is a picture of how that looks like: ...
0
votes
0answers
40 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf window horizontally after running C-c C-c. So far, I've created a hook to execute ...
0
votes
1answer
341 views

error while loading shared libraries: libpoppler.so.101: cannot open shared object file: No such file or directory

Running Doom Emacs 2.0.9 on Emacs 27.1 on Manjaro KDE. When I compile a latex documents, it produces a PDF file and opens an emacs window to display it. But what is displayed is some text and not the ...
0
votes
0answers
25 views

org-fill-paragraph in the presence of LaTeX Formula

Consider the following piece of text Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore $$e^ix = cos(x) + i \dot sin(x)$$ Lorem ipsum dolor ...
2
votes
0answers
44 views

Unexpected indentation in python chunks

Already one year ago, I described a problem on github with polymode and unexpected indents. Since there was no answer there so far and the problem is really annoying, I ask here for ideas for a ...
0
votes
0answers
20 views

How to get spell suggesstion for the word that cursor is on in the minibuffer?

Example behavior: When I am using python-mode if a cursor is on top of on a error, the error message is printed out on the minibuffer. If I have following line import o , import keyword get bold and ...
1
vote
1answer
57 views

Replace a character with a string as it is typed

I would like to do the following: activate some mode so that whenener I type the $ character in my buffer, it immediately gets replaced by <m>. Even better: when I type $ it puts <m></m&...
0
votes
1answer
20 views

Error “Unknown option `AUTO' for package `fontspec-luatex' ” when exporting from org to pdf with lualatex

When exporting a org file to pdf with lualatex, I get the message PDF file produced with errors. in my minibuffer. Upon inspection, I find ! LaTeX Error: Unknown option `AUTO' for package `fontspec-...
0
votes
1answer
122 views

AUCTeX LaTeX-math-mode outside a mathematical environment

Using AUCTeX with LaTeX-math-mode enabled, if I type (say) ` a inside a mathematical environment, it inserts \alpha, as I want. But if I do it outside a mathematical environment, it inserts \alpha{}. ...
1
vote
1answer
129 views

Getting `dvisvgm` to work with `org-latex-preview`

I am relatively new to Emacs and org-mode, and I would like the images displayed by org-latex-preview to be svg. I am trying to follow the instructions from this Stack Exchange question. I have (setq ...
0
votes
0answers
100 views

org-latex-preview on entering insert mode in spacemacs

I use Spacemacs and org mode for writing latexified notes. There is no custom setup, just the default latex layer. I usually toggle org-latex-preview by C-c C-x C-l. It is annoying, because I must ...
0
votes
1answer
73 views

Highlight parentesis in latex

the image is self explanatory, I recently switched to doom emacs and I'm still learning. How can I fix this problem? I tried to switch off anything related to checkers in the init.el file but it doesn'...
0
votes
1answer
61 views

Change emacs generated image size in org-mode export

I'm using PlantUML to generate a UML diagram inside an orgmode file. I've looked everywhere, and either I'm using the wrong terms (likely) or I'm missing something (also likely). When I view the raw ...
0
votes
0answers
47 views

LaTeX pstricks pdf compilation without any specific configuration

I changed the auctex style file pstricks.el (from lines 779-784) (TeX-add-style-hook "pstricks" (lambda () (unless (or (member "pst-pdf" TeX-active-styles) (eq TeX-engine ...
0
votes
0answers
53 views

In-line latex fragment position in org-mode

The in-line LaTex equation images are slightly higher than the rest of the font, maybe because of the image borders. This is really a small thing but could it be better aligned at the bottom?
1
vote
1answer
44 views

How to stop Emacs from using LaTeX mode key bindings for `*.tex` files?

It seems that Emacs tries to autodetect the type of file and changes some of its behaviors accordingly. I don't want any of this behavior. I just want Emacs to treat every file as if it were some ...
0
votes
0answers
26 views

export to Beamer gets slower and slower

My presentation has like 30 slides, nothing fancy, mostly a couple of bullet points on each frame and in total like 10 small images. Still the export to beamer, i.e. a pdf takes like 10 seconds and ...
0
votes
1answer
40 views

Is it possible to configure a org file for paper as well as presentation using beamer?

I am documenting my work using org mode and babel. I am exporting it to a LaTeX based pdf document by using the header: #+TITLE: Document Title #+AUTHOR: Author #+EMAIL: author@somewhere.com #+...
0
votes
0answers
18 views

Auctex freezes when editing an equation containing '' at the end of a long document

Whenever I edit a particularly long document (thousands of lines) with auctex, I start getting freezes when I edit a math equation that contains a double prime '' far down in the document. My guess (...
1
vote
1answer
28 views

Excluding frames from handout when exporting to LaTeX Beamer

I would like to exclude certain slides when I export my document as a handout using the corresponding option #+LaTeX_CLASS_OPTIONS: [handout]. I know what I need to arrive at in LaTeX to achieve this: ...
1
vote
1answer
53 views

Org-ref: how to get absolute path of bibliography in exported LaTeX file

I use Org-ref to insert references in Org mode when writing articles. I prefer to put bib files in a separate place, say /bib/ref.bib, instead of putting together with org files in ~/org/. After ...
0
votes
1answer
91 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
0
votes
0answers
94 views

imaxima: no LaTeX output and crash

I want to setup the imaxima buffer with working LaTeX output. Following the EmacsWiki, I added this to my init: (add-to-list 'load-path "/usr/share/emacs/site-lisp/") (autoload 'maxima-mode &...

1
2 3 4 5
13