Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
18 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
9 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
30 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
27 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
26 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
22 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
39 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
64 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
22 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
31 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
40 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
40 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
79 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
128 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
30 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
108 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
36 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
45 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
35 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
41 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
18 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
19 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
66 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
111 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
29 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
69 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
68 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
118 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 ...
0
votes
1answer
33 views

Org ref not exporting authordate when using natbib

I am trying to export an org file with rounded brackets: In order to be proficient in mathematics students must be able to perform fundamental skills with fluency (Williamson 2017:18). But when ...
1
vote
0answers
61 views

How to Place Multiple Columns Under A Single Column in Org-mode?

I am trying to reproduce the table in the image below in Org-mode. How do I go about doing it? Whenever I try to have multiple columns (the 'Trial' ones) under a single column (Time), Org-mode inserts ...
0
votes
0answers
57 views

Make “#+BEGIN_EXPORT latex” also exported to html (orgmode)

I know that placing latex code in the main text body solve my issue: the latex code is taken into account both when exporting to latex and to html. However, I like to use Latex blocks because of the ...
0
votes
0answers
35 views

How can I add some line numbers of emacs into pdf created by latex

Is it possible to print Line Number in emacs to the Latex pdf for lines that I prefer? If it is easy, I want to use those numbers with M-g M-g (goto-line command) Edit: To make the question more clear,...
0
votes
0answers
95 views

Good resources for turning Emacs into a LaTeX IDE?

I am learning Emacs thanks to awesome resources like this or this. However, I can't find a good tutorial for setting up AucTeX in order to turn Emacs into a LaTeX IDE. I am trying to set it up with ...
3
votes
0answers
56 views

How to embed pgfplots picture in org-mode

I want to include tikz/pgfplots pictures in an org-mode document both for inline visualisation and export. I have tried approaches given in this emacs-orgmode thread and in the worg documentation ...
1
vote
1answer
20 views

What parameter in orgtbl-to-latex to set column width?

I am trying to set the alignment width of columns in latex. I am using orgtbl's orgtbl-to-latex I want to override the resultant \begin{tabular}{lllll} to something like \begin{tabular}{rlccp3 cm)} ...
0
votes
0answers
28 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
22 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
22 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
51 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
81 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
90 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
32 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
56 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
67 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
351 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
73 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
93 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 ...

1
2 3 4 5
14