Questions tagged [latex]

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

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

How to treat prettified symbols as the text they represent for filling paragraphs?

I have configured prettify-symbols-mode to display a bunch of LaTeX commands as unicode symbols, for example showing the Greek letter commands as the actual letters. The issue I'm having now is that M-...
0
votes
0answers
23 views

Flycheck gutter reporting of LaTeX compiler errors

I'm wondering if it's possible to have Flycheck report LaTeX compile errors the way it reports linting errors. For example, if I have: \documentclass[12pt]{article} \begin{documen} %ERROR Hello world! ...
1
vote
2answers
78 views

Export org notes to pdf such that it looks nice

I have a large number of org-mode files where I took my class notes. I would like to export them as PDF files. However, I like to take notes as in the following example: #+LaTeX_HEADER: \newcommand\RR{...
0
votes
0answers
23 views

How to extend the org koma letter script for cv/resume generation

I'm quite happy writing a letter in org mode using the koma[0] script for org mode[1]. I create a new header and body, hit C-c C-e k(for koma). Done. However I don't know where to start in order to ...
0
votes
1answer
23 views

Emacs org mode entitiespretty not complete

This #+STARTUP: entitiespretty in my org mode buffer allows Latex/MathJax symbols to render in situ . . . almost. I type, e.g., $\le$ and instantly the markup is replaced by the actual symbol. There ...
0
votes
0answers
53 views

Error in Latex-mode

I keep getting an error in Latex-mode while moving up and down the lines with a cursor: wrong-type-argument stringp nil and a beep on every move. I got the newest version. What can be the problem? (I ...
0
votes
0answers
94 views

Org-Mode export table to latex with word wrap

I'm trying to export a table from org-mode to latex and have dynamic line-breaks/word-wrapping, so whenever a cell exceeds a certain length, it should wrap to the next line. This is what the latex ...
0
votes
1answer
100 views

Org-mode Latex export opens pdf with GIMP

Not sure why this is, but I just tried an org-mode Latex export (C-c C-e l o), but it opened GIMP to display my resulting pdf file. I'm on 27.1 and 9.4. My system is Ubuntu 20.04 with Gnome. I went to ...
0
votes
0answers
35 views

Melpa packages auto updating makes then incompat

I did some work on my machine that should not have affected my current HD (installed an OS on a secondary disk; ran update-grub). When I booted to my primary working HD I find that nearly all my ...
0
votes
1answer
62 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
76 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
3answers
368 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
75 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
107 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
34 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
16 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
385 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 ...
1
vote
1answer
30 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 ...
1
vote
0answers
82 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
20 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
69 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
2
votes
1answer
74 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
117 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
52 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
82 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
25 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
88 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
44 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
109 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
36 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
156 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
316 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
167 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
197 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
116 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
69 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 ...
3
votes
1answer
2k 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
33 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 ...
3
votes
1answer
97 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
25 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
76 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
25 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
181 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
250 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 ...
1
vote
0answers
181 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 ...
1
vote
1answer
110 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'...
1
vote
1answer
194 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
51 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 ...

1
2
3 4 5
14