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
2 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 ...
3
votes
0answers
21 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]...
0
votes
0answers
82 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
26 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
62 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
35 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
62 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
89 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
31 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
47 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
40 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
34 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
70 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
41 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
17 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
24 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
18 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
74 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
20 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
19 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
47 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
58 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
30 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
46 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
60 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
304 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
71 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
77 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
33 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
13 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
193 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 ...
0
votes
1answer
24 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 ...
0
votes
0answers
44 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
19 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
40 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
0
votes
1answer
50 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
92 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
31 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
54 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
24 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
59 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
34 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
87 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
32 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
115 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
197 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
115 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 ...

1
2 3 4 5
…
13