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

Changing the file name of the pdf generated by emacs in Latex/AUCTeX mode

I'm using AUCTeX mode in emacs, and I want the generated pdf (after I run C-c C-c) to be in the parent directory instead of the current one. In other words, I want to be able to change the filename of ...
1
vote
1answer
23 views

How do I Include plain text file org-mode as is for LaTeX export?

I'm using #+INCLUDE: "./file.txt" to organize documents but including files this way is messing with linefeeds on org-mode export to LaTeX/Pdf. Is there a property or attribute that could ...
0
votes
1answer
33 views

(Org-Beamer Exporter) I would like to have a LaTeX snippet inbetween frames

I would like to change the beamer presentation background. To that end, I have to issue the following command between two frames (that is, outside any frame) \usebackgroundtemplate{\includegraphics[...
0
votes
1answer
44 views

(Org) TikZ for exporting both LaTeX and HTML/MathJax

I'm exporting an Org Mode project both to LaTeX and to HTML (with MatJax). Now I need to add a TikZ picture which can be exported nativelly on LaTeX and must be rendered in svg for HTML. Writing the ...
0
votes
1answer
26 views

How to suppress `Type ‘C-c C-l’ to display results of compilation.` after compiling LaTeX file

I am using following solution (https://emacs.stackexchange.com/a/65076/18414) to compile a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (...
0
votes
0answers
11 views

org-babel: How do I make tex source blocks show images of the pages produced as their output?

I am thinking of sth like https://xenodium.com/previewing-swiftui-layouts-in-emacs-revisited/ , but for tex source blocks:
1
vote
1answer
53 views

How to search for words separated by arbitrary whitespace?

The question is general, but here's a specific case: In LaTeX source files, it doesn't matter if two words are separated by one space character, multiple space characters, or even a linebreak - in the ...
0
votes
1answer
84 views

Emacs Org mode export to PDF headines become bold

Good day! New emacs user here. I am writing a contract in org mode and exporting it to PDF (assume that currently no latex plugins or settings are applied(in my org file heading) to the document as ...
0
votes
0answers
27 views

How to align blocks of texts in org mode to be export to latex/pdf?

I am trying to create a template for a simple letter. This template would be saved as a snippet and then I will expand it with a keyword,which is easily done with yas-new-snippet. The problem now is ...
0
votes
1answer
49 views

Setting latex compiler

I was happily running emacs with a locally installed texlive in ~/texlive/2021 on manjaro KDE. But I decided to switch to Gnome. So, installed necessary packages, removed the ones I did not need and ...
1
vote
1answer
32 views

bug in the CTAN version of aux-renum.el

Emacs has been my LaTex editor for several years. Along with AucTex, I have been using the label/ref management utility for emacs supplied by aux-renum.el. It's available on the CTAN archive at aux-...
0
votes
0answers
27 views

Is there the possibility of customizing the level names of org-latex-classes?

I tried to export from org to pdf with: (add-to-list 'org-latex-classes '("thesis" "\\documentclass{thesis} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA]&...
3
votes
0answers
63 views

Export an org-mode table to pdf/png image

I've started using org-roam more often recently, and I use LaTeX a lot in my workflow. What I want to do is this: Create a table in an org file with some LaTeX math symbols, using the org-mode table ...
0
votes
1answer
24 views

Export as nested lists instead of (sub)sections with org mode

If I export an org file, like * Item ** Subitem *** Subsubitem and export it to latex it is converted to something like [...] \section{Item} \label{sec:org1a2bb17} \subsection{Subitem} \label{sec:...
1
vote
0answers
41 views

How to perform query-replace excluding LaTeX math?

I have this test code: foo \begin{equation} foo \end{equation} foo $foo$ foo I want to replace "foo" with "bar" everywhere but LaTeX math, so I have written these functions: ...
0
votes
0answers
25 views

Can you use both imagemagick and dvipng for previewing LaTeX in Org Mode?

I need imagemagick for tikz previews, but it's a lot slower than dvipng. When I try to render out all of the previews at once Emacs hangs for quite a while before showing the generated previews, while ...
0
votes
1answer
65 views

Org-mode LaTeX previews image size too large

SOLVED: REMOVE #+SETUPFILE: HEADER. SORRY FOR WASTING YOUR TIME I am having the same issue as described in this Reddit post from a few weeks ago: basically the preview images generated for a given ...
0
votes
0answers
12 views

Tone down the bracket match highlighting in LaTeX mode

The LaTeX highlighting is great, but I don't like the way every bracket pair is highlighted — and in such a garish colour. Any thoughts on how to tone this down a bit?
0
votes
0answers
24 views

Shortcut to toggle Tex and LaTex modes

When I edit .tex files, I sometimes accidentally switch from LaTex mode to Tex mode. I guess I am accidentally hitting some shortcut, but am unable to figure out which one is it. I know I can switch ...
0
votes
0answers
22 views

Custom folding citations in AUCTeX

By default, only \cite is folded by AUCTeX. If you want other citation commands to be folded as well, you have to add them to LaTeX-fold-macro-spec-list manually. For example, with (push '("[nc]&...
0
votes
0answers
32 views

siunitx, org-mode html export with correct equation numbering display

Using org-mode 9.4.6 and emacs 26.3 I am trying to export a org-mode subtree which contains LaTeX code into html. Without any additional configuration, equations and their numbering are displayed ...
0
votes
0answers
28 views

Include LaTeX code blocks from another file to generate a "main" file (similar to using \input{} in .tex)

I have a .org file (say exercises.org) in which I put LaTeX exercises in the form of code blocks. The file looks something like this: #+NAME: ex1 #+BEGIN_EXPORT latex Compute $2\cdot 2$. #+END_EXPORT ...
0
votes
2answers
129 views

Setting a default page margin for org latex export

So far, I have set org-latex-packages-alist to '(("margin=2cm" "geometry")), but if the geometry-package is explicitly loaded in a document, I get a clash. I can use \newgeometry{...
0
votes
1answer
41 views

org mode export to latex a backslash followed by ordinary text

The following org-mode MCE points out a problem when one wants to export a backslash immediately followed by ordinary text (e.g. ~\~foo is exported to \textasciitilde{}$\backslash$~foo where one ...
2
votes
1answer
50 views

Flyspell: Ignore comments in LaTeX-documents

Whenever I run flyspell-buffer (using hunspell) in a LaTeX-document, my comments marked with % are spell-checked aswell, although I don't want them to be spell-checked. The simplest solution (setq ...
0
votes
0answers
11 views

Flyspell won't show suggestions in LaTeX [process ispell not running]

I have decided to use aspell as a spell-checker and installed it via msys2 (Windows). The command flyspell-buffer works without a problem for all file types. The weird thing is, though, that I only ...
0
votes
0answers
56 views

Unable to activate expl3 syntax highlighting for LaTeX mode

I have read that expl3 highlighting is already integrated in AUCTeX (see here), but I haven't been able to make it effective. Being fairly new to emacs, after browsing the web for solutions I still ...
2
votes
1answer
83 views

Display LaTeX-Quotation marks as unicode characters

When quoting in auctex, I use the strings "` and "' to typeset „ and “, respectively. Now, I want emacs to display the corresponding unicode characters to these strings. I've tried it with ...
1
vote
0answers
31 views

Org mode to latex exports themes or templates

Where can i find some good org to latex export templates, for example, i found some good ones for HTML exports see fniessen excellent work here is there any similar projects for org-to-latex export?
1
vote
1answer
136 views

How to add -shell-escape option to latex compile command

Background story: I have to compile my LaTeX document with the -shell-escape command line option because the pgfplots library I am using calls gnuplot. This was necessary to get a plot of a recursive ...
0
votes
0answers
20 views

multiple previews of the same equation

I'm using auctex with texlab as a language server for latex, the problem i have is that i get multiple previews of the same equation my question is how to get only one preview?
3
votes
1answer
47 views

How to automatically accept: Please answer y or n. Process `LaTeX' for document `program' running, kill it? (y or n)

When I save a LaTeX file, I want to compile it as well on the background. In order to achieve it I have done following module: (defun my-run-latex () (interactive) (save-all) (setq TeX-command-...
0
votes
0answers
26 views

Show all (or some) markup in current line in Org-mode

I want to unhide/show all the markup of the line my cursor is on. For example: If the image is in preview mode, when I put my cursor on the line the image is in, I want it to show the full link e.g. [...
1
vote
2answers
99 views

How can I use the physics package in mathjax for org-mode HTML export?

I’m trying to use org-mode to export something as an HTML document, with MathJax equations. I know that MathJax supports the physics package, so it seems like it should be possible to tell emacs to ...
1
vote
1answer
76 views

Tex indentation with TAB

Recently, when editing files in LaTex, upon pressing TAB, I get a huge indentation. Instead, the default behavior used to be to align with respect to previous environment definition. : I start with ...
1
vote
1answer
48 views

How to include specific lines from latex file for org-export

I am writing a text in orgmode that I want to export to pdf. I want to include specific lines from a latex file using #+include:. In fact, I want to include multiple text sections from a single latex ...
0
votes
0answers
17 views

How to export tables in a xltabular environment to TEX/PDF without xltabular being nested in a "table" environment?

My goal is to have a table, which can be customized with tabularX (width == textwidth), can break over multiple pages and is able to have zebra stripes (xcolor). I tried many packages, even the (...
1
vote
1answer
67 views

How to efficiently insert citations into LaTeX document with helm-bibtex?

I'm having a heck of a time optimizing my desired \cite behavior when writing LaTeX source in emacs using helm-bibtex. I made a C-c [ key-binding to get helm-bibtex going when I want to insert a ...
0
votes
0answers
34 views

Org export to latex suddenly produces an error

Running Doom Emacs 2.0.9 on Emacs 27.1. When I select part of an org file containing only text with some editing markup and export it to a latex buffer, it produces an error: ad-enable-advice: ad-...
0
votes
1answer
56 views

org mode — verbatim syntax for new type of block

the following MWE shows how I have created a new type of environment called a codebox to store output in, so that I can format it inside a box with LaTeX. However, I don't know how to make Org Mode ...
0
votes
1answer
26 views

Org-mode unexpected LaTeX conversion: package and spacing issues

I am writing a paper in Org-mode and I will need a PDF output through LaTeX. Though, I had issues with spacing (had too large gaps), so I checked the .tex file generated by Org-mode. Apparently, it ...
1
vote
1answer
162 views

Org-mode: changing temporarily font size for LaTeX export

I need to change the font size of part of my text (actually mostly to fit a table, which might be an extra-step). Following a org-mode discussion somewhere, I have tried the following, which does not ...
1
vote
1answer
120 views

Define setupfile in emacs init for org file

I use setupfile to export org file to pdf. It basically define latex header and footer (my letterhead template). I include it in every org document like this #+SETUPFILE: c:/SETUPFILE Though there ...
0
votes
1answer
30 views

how to include instructions within the enumerate in orgmode latex export?

I can't seem to find this case in the documentation and it doesn't seem to fit the LATEX_ATTR options. How can I get orgmode latex export to produce the following (note the setlength statements WITHIN ...
0
votes
1answer
45 views

How to change the "Figure" text created when exporting a LaTeX file with org-mode. I want it to say "Figura" as I speak Spanish

When I export all the images get the "figure" and the number of the image with the caption. When I export I want it to say "figura" instead of the English word.
1
vote
1answer
47 views

.svg not exported through org-export + paragraphs not separated after newline

I have been constantly trying to render a logo.svg found in my custom title-page (included in #LATEX:) to match our university title-page for academic writings, but have unfortunately not had success ...
1
vote
1answer
49 views

File-specific TeX compiling options?

I have TeX files that Aquamacs compiles by default with pdflatex and other files compiled by default with latex (so I get a dvi). If I make a copy of file that Aquamacs compiles with latex, that copy ...
3
votes
1answer
103 views

Beginner - Correct usage of elisp conditionals and when: Improving code readability for org export

I am exporting from org mode format to LaTeX and HTML formats. To tweak a little plain text in those formats, I am using filter functions. If I try to use such a form of a filter function: (defun ...
1
vote
2answers
358 views

Latex preview not working in org-mode

I'm following instructions on this page: https://orgmode.org/worg/org-tutorials/org-latex-preview.html. I have managed to install dvipng and successfully replicated the given example page as a .png ...
0
votes
0answers
34 views

query-replace within LaTeX/Math

The answer below was taken from https://stackoverflow.com/a/44913296. This is the most upvoted answer there. Unfortunately, after running the code (for example by replacing q with \theta) one ...

1
2 3 4 5
14