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

How can I prevent TeX-fold-buffer to run for `table`?

I am using TeX-fold-mode along with tabular-magic. (add-hook 'LaTeX-mode-hook (lambda () (TeX-fold-mode 1))) (add-hook 'find-file-hook 'TeX-fold-buffer t) (defun tabular-...
2
votes
0answers
20 views

AUCTeX + CDLaTeX pair insertion

I think CDLaTeX might be causing problems with this. If I disable electric-pair-mode and use AUCteX’s built-in completion, auto-completion of pairs such as \[\] works as expected unless I have CDLaTeX ...
0
votes
0answers
24 views

AUCTeX deleting pairs

I'm trying to get deletion of pairs (e.g. (), [], \(\), \left(\right), etc.) to work more automatically, but I'm running into problems with each. If I have electric-pair-mode enabled, I can press ...
0
votes
0answers
24 views

Company mode support for org latex

Is there company mode support for inline latex in org mode?
0
votes
0answers
50 views

References does not appear using org mode and latex [SOLVED]

I am totally new using Emacs. I want to generate a Pdf file using Org mode with LaTeX. I know how to use LaTeX but I dont know how to handle my situation in Org mode. The problem is that the ...
1
vote
0answers
23 views

Make org-mode ToC dependent on export format

I would like to only have a ToC in TeX/PDF export, but not when exporting to Markdown. Is there a way to configure it like this, if need be through a LaTeX-specific command?
2
votes
0answers
35 views

How can I **completely** migrate a LaTeX template to an Org file?

I've written my own LaTeX class file that deals with page layouts, title styles, subheading styles and uses fancyhdr so that each page has the section name and document title in the header, and so ...
1
vote
2answers
89 views

How can I align indents for condition statements in AucTex algorithm section?

If possible, I want to align condition statements like: \If, \Else, \For statements in between \begin{algorithmic} ... \end{algorithmic} section. example: \begin{algorithmic}[1] \For{a for statement} ...
0
votes
0answers
27 views

Why the same font size for different latex sections with Auctex when `font-latex-fontify-sectioning` is a float?

As far as I understand, setting font-latex-fontify-sectioning to a number larger than 1.0 should make it so that the titles of sections of different levels have different sizes. However, even though I ...
0
votes
1answer
41 views

How can I configure `#+AUTHOR:` for LaTeX in `org-mode`?

I'm using the IEEEtran document class for LaTex in org-mode, and to define authors I need to use some IEEEtran-specific commands. My \author command should look something like this in the .tex file: \...
1
vote
1answer
30 views

Export long org-mode file in multiple "\input"ted .tex files

Let's say I have a very long org-mode file main.org with 100 top-level headlines: * H1 text * H2 text ... * H100 text I'd like to export main.org into 100 .tex files H<n>.tex (1<=n&...
0
votes
1answer
39 views

Abstract block for HTML export?

I see the abstract block #+begin_abstract Hello, here's my article's abstract... #+end_abstract and it exports nicely into LaTeX with a nice title heading "Abstract" above it, i.e., LaTeX ...
0
votes
1answer
54 views

show line number when matching parathenses/braces

I work with latex/other documents with long nested of texts/codes are enclosed by paratheses or braces, like this: { long blocks of latex or other materials ( another long blocks of texts ...
0
votes
1answer
52 views

How can I make `font-latex-sedate-face` have precedence over `font-latex-math-face`?

In LaTeX mode, the face font-latex-sedate-face highlights commands of the form \foo which are not known by AUCTeX. I'd like commands of the form \foo which appear inside a math environment such as \(\...
0
votes
1answer
64 views

Change font for org LaTeX-preview

I successfully use org LaTeX-preview to have my formulas displayed as images in my org-mode documents. There is one problem I am facing, though: I need the LaTeX math font to be upright instead of ...
0
votes
0answers
30 views

What replaces org-latex.el in org-mode version 9?

At work we're running an old version (7.8.1) of org-mode. In trying to upgrade things to version 9 (specifically 9.1.1), lots of things are breaking. One particular problem is that our site init ...
0
votes
0answers
25 views

itemize shortcut environment in emacs

I know that M-RET creates a \item in emacs (latex mode) even if there is no \begin{itemize} \end{itemize} around. In the case we are not within such environment I am wondering if it is possible to ...
0
votes
0answers
35 views

I'm having difficulty using Latex preview in org mode

I have GNU Emacs 27.2 on MacOS 11.6. I have MacTex 2021 installed. I have a simple Latex equation in between $ and $. When I do C-C C-X C-L (Latex preview) I get this message: Creating LaTeX preview.....
0
votes
1answer
41 views

reftex does not recognize references even though default bibliography file is defined

reftex-citep does not suggest any possible completions, even though the variable reftex-default-bibliography is set to the correct bibtex file. What else do I need to do to get reftex to detect the ...
0
votes
1answer
23 views

Can I export conf source code in org-mode to aconf in LaTeX/pdf/minted?

Emacs org-mode source-code blocks (between #+begin_src conf and #+end_src) support the conf "language"/style with syntax highlighting, but this is not supported when exporting to LaTeX/pdf, ...
4
votes
1answer
65 views

How to find the matching environment command in tex mode?

A latex environment looks like this: \begin{envName} body \end{envName} Is there a command to jump back-and-forth between matching \begin and \end commands? (One cannot simply use a regex search ...
0
votes
1answer
20 views

When exporting to Latex from Org, how do I stop equations from breaking my paragraphs apart

When working with mathematics in Latex, if I add a percent sign between my previous textb block and my \begin{equation} block, and another percentage sign between my \end{equation} block and my next ...
0
votes
1answer
80 views

Org publish does not load Latex packages

I need the following two packages and I add them to my org file like this, #+LATEX_HEADER: \usepackage{siunitx} #+LATEX_HEADER: \usepackage{cancel} but this does not work. How can I fix this? I tried ...
0
votes
1answer
36 views

How to deal with "No TeX trees available; configure ‘TeX-tree-roots’" error?

When I open a new tex file and hit C-c C-e <RET> to create document environment, the message buffer shows TeX-search-files-by-type: No TeX trees available; configure ‘TeX-tree-roots’. It will ...
0
votes
0answers
27 views

How to highlight certain symbols only inside math environment?

I'd like to have certain math symbols highlighted. I checked AUCTeX manual but there does not seem to be a built-in way to do that. They are not folded forms or anything, but the real glyphs, which I ...
0
votes
1answer
25 views

Avoid `\begin{center}` environment when including external PDF image

By default a code such as this in org-mode [[foo.pdf]] will produce the following code in the exported .tex document \begin{center} \includegraphics[width=.9\linewidth]{foo.pdf} \end{center} How can ...
2
votes
0answers
65 views

Org-mode: custom syntax for smallcaps, like *bold* and /italic/

I use org-mode a lot to export PDFs through LaTeX. How can I define a custom syntax for org-mode to mark small caps—so, for example, ^this^ gets translated to \textsc{this}, the way *this* gets ...
1
vote
1answer
35 views

Key sequence to automatically make math-mode fragments in org-mode?

My hands are getting lazier every day. Is there a key sequence to automatically type \(_\), where _ just denotes the position of my cursor, when I'm in org-mode? (Or \[_\], of course: same question.)
0
votes
0answers
30 views

Alternatives to auctex for font locking latex code

From time to time I experience hard to debug color bleeding in auctex. That leads me to the question if there are any reasonable alternatives to auctex, when it comes to the part of syntax ...
1
vote
0answers
56 views

How can I generate images from LaTeX without using ghostscript/ImageMagick?

My question here is about generating images from LaTeX source blocks in .org files The following source block (edited down to a simple use case) works fine and produces a .pdf, but this does not ...
0
votes
1answer
31 views

Cannot define custom latex class in org-mode [duplicate]

This is the code I tried: (after! ox-latex (add-to-list 'org-latex-classes '("deeparticle" (concat "\\documentclass[11pt]{article}\n" "\\usepackage{...
0
votes
1answer
33 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
36 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
39 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
64 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
28 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
55 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
92 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
71 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
29 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
91 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
28 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
42 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
35 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
92 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
28 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 ...

1
2 3 4 5
15