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

LaTeX fragments preview in Org Mode, “I can't find file” error

I'm trying to use org-latex-preview in Windows 10, but I'm getting this error: org-compile-file: File "c:/Users/TARUKO~1/AppData/Local/Temp/orgtexwvAVix.dvi" wasn’t produced. Please adjust ‘...
0
votes
0answers
19 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
38 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
11 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
22 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
16 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
24 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
23 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
49 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
23 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
43 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
52 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
27 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?
0
votes
1answer
73 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
40 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
23 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. [...
0
votes
2answers
61 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 ...
0
votes
1answer
49 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
43 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
14 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
48 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
32 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
51 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
24 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
97 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
89 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
27 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
34 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
43 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
45 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
87 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
229 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 ...
0
votes
2answers
184 views

Org-mode: How to place a table left aligned on the paper?

I'm very new to Latex or PDF-export. I try to export an Org-document with tables. The problem is, that I cannot (or better: don't know how to) place them left aligned. The problem seems to come from ...
1
vote
1answer
40 views

How to make Auctex TeX-command-Show do nothing?

When I use C-a to compile a source tex file, its final step is to call Evince to display the pdf (through xdg-open, I believe). However, in my computer this makes Emacs freeze for many seconds and ...
2
votes
2answers
51 views

Add `tikzpicture` environment to the list of choices for AUCTex's environment insertion shortcut?

I use AUCTex for all my Latex needs, and it works great. However, I wanted to insert a tikzpicture environment in my document, and I pushed the key C-c C-e for environments, but tikzpicture is not ...
0
votes
1answer
41 views

Org mode exam template with question and results in combination with latex

I would like to use Org mode for creating exam questions and including the templates for the corresponding results for each question. A general template is shown here #+TITLE: Lecture #+AUTHOR: ...
0
votes
0answers
49 views

How to prevent Org mode LaTeX preview from displaying diagnostic information?

The LaTeX preview within Org mode has "diagnostic information", including "Scale=... Ligature=...". How can one hide that ? The org mode is Org mode version 9.4.4 (9.4.4-25-...
1
vote
1answer
19 views

How do I get org-mode to treat the output of a non-latex code block as latex?

(Emacs: v27.1, Org: v9.5, pdfTeX: v3.14159265-2.6-1.40.21) I am using the following Python code block to print LaTeX code: #+BEGIN_SRC python :session :exports both :results output :wrap math ... #+...
0
votes
1answer
26 views

Left-align equation previews (Auctex)

I would like to left-align equations in Auctex's preview's generated by preview-latex. I imagine that this would involve putting fleqn in the documentclass options in whatever latex file things are ...
5
votes
1answer
74 views

In latex-mode is it possible to disable auto-fill-mode in between `\begin{figure}, \end{figure}`

I am working on tex files with LaTeX-mode. If possible, I want to use auto-fill-mode in some conditions. I was wondering is it possible to disable it in between some patterns like: \begin{figure}[ht]...
3
votes
0answers
117 views

The export of external links in org files to pdf and html files

I have a problem with the export of external links in org files to pdf and html files. Let's say I have the two org files in the same directory: file1.org = here is the label of file1: <<label&...
0
votes
1answer
30 views

fontify autoref and nameref in latex-mode buffers

When I'm in a .tex file, press M-: and run (font-latex-add-keywords '(("autoref" "*{") ("Autoref" "{") ("nameref" "*{")) ...
0
votes
0answers
72 views

Latex and Emacs

I have tried to export to Latex an Orgmode document that has some unicode characters not recognized (emojis). When compiling I get the error ! Package inputenc Error: Unicode character 🔥 (U+1F525) (...
0
votes
0answers
42 views

Org v9 and org-latex-preview incompatibility?

In the following MWE I start with a simple latex code block. I hit C-c C-c to generate the results, and get an export latex block, which I believe is consistent with org-version ≥9 (as opposed to a #+...
0
votes
0answers
74 views

Getting Emacs and LaTeX to work (messy LaTeX installation on macOS)

I have Emacs 27.1 in macOS 11.1. I want to use the LaTeX preview functionality in my org-mode files. I have a rather messy installation of LaTeX in my computer: if I enter in TeX Live Utility, I see ...
1
vote
2answers
141 views

LaTeX Table Is Out of Place | Org-mode

I am making my tables in pure LaTeX becuase Org-mode doesn't have the functionality to create what I want. My problem is, I am pasting the LaTeX code for the table under a heading but when I get the ...

1
2 3 4 5
14