Skip to main content

Questions tagged [latex]

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

234 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
727 views

Is it possible to preview TeX formulas automatically on auctex-mode?

In auctex mode, whenever I write a new formula I have to type C-c C-p C-p to render it as an inline image. I'm wondering if it's possible to automatically render the formula or equations as I write ...
Sibi's user avatar
  • 3,763
6 votes
0 answers
454 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 ...
Brutus320's user avatar
6 votes
0 answers
435 views

How can I wrap org-preview-latex-fragment to be async?

Calling org-preview-latex-fragment blocks user input for a second or two depending on the size of your fragment, and with universal args, converting all fragments in buffer can take minutes. It would ...
sooheon's user avatar
  • 481
5 votes
2 answers
577 views

Org-Mode Latex Preview screen-dependent size

When using the inline latex preview in org-mode, I have discovered that it seems the size of the preview images is dependent on the display size. While at work, I have my laptop connected to a dock, ...
Runei's user avatar
  • 61
4 votes
0 answers
741 views

new lines in org mode export to LaTeX

This is similar to (this question). I would like to export the following org-mode document to LaTeX: * Test text 1 text 2 text 3 - list 1 - list 2 - list 3 #+BEGIN_definition ...
alw's user avatar
  • 41
4 votes
0 answers
134 views

Is org-mode compatible with Plain TeX?

Being an old timer used to Plain TeX, I'd like to be able to add Plain TeX portions to an org-mode file and have them be nicely displayed when exported. Is it possible to configure org-mode for this ...
Ruy's user avatar
  • 849
4 votes
0 answers
702 views

prettify-symbols-mode not working in auctex

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda. My understanding is that in a .tex file I should see the beta ...
Alex's user avatar
  • 1,058
4 votes
0 answers
334 views

Prevent :EXPORT_LATEX_HEADER: in a subtree from overriding all buffer #+LATEX_ lines

Possibly a bug: When using :EXPORT_LATEX_HEADER: in a subtree's :PROPERTIES: it overrides all the buffer-level #+LATEX_HEADER: commands as well as everything given in an external file with #+SETUPFILE:...
amirdeq's user avatar
  • 207
4 votes
0 answers
114 views

using global-linum-mode with ess with a latex/R knit file

When using global-linum-mode with a latex file that has blocks of R code (*.rnw file) moving in and out of the R code blocks cause the line numbers to disappear until the cursor is moved again. Is ...
mjb's user avatar
  • 91
4 votes
0 answers
165 views

LaTeX-aware sentence endings?

Q: how do I define sentence endings to be LaTeX macro-aware? I'd like backward-sentence and forward-sentence to be smarter about LaTeX macros -- particularly \footnote -- when working in LaTeX ...
Dan's user avatar
  • 33.3k
3 votes
0 answers
75 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 ...
nonreligious's user avatar
3 votes
0 answers
451 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 ...
wobtax's user avatar
  • 155
3 votes
0 answers
523 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 ...
nonreligious's user avatar
3 votes
0 answers
174 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&...
rl1's user avatar
  • 356
3 votes
0 answers
375 views

How to properly highlight a code block (in-buffer) when inside of another block/environment?

The issue is that my source code blocks, BEGIN_src ... END_src, are not properly highlighted when within another block, e. g., BEGIN_proof ... END_proof. Here is a picture of how that looks like: ...
scribe's user avatar
  • 1,055
3 votes
1 answer
768 views

AUCTeX does not compile if the local variable is already set

I'm basically want to ask the question that was asked in Tex Stackexchange but was considered off-topic there (this is the link to the question). When I am trying to compile (using the command C-c C-...
neuroprinciplist's user avatar
3 votes
0 answers
804 views

Markdown and Latex highlighting (font lock) in R Markdown file

I am using polymode to edit rmarkdown files. Exporting to e.g. pdf is super simple and works very well. R code chunks are also properly highlighted. But: I do quite often use latex code inside (r)...
ps_r's user avatar
  • 31
3 votes
0 answers
110 views

How to align latex tables when using macro folding

I have a latex table which contains some long commands like includegraphics or href which makes the table very nasty to read. To get a better view I fold all macros in the table and want to use ...
student's user avatar
  • 1,159
3 votes
0 answers
108 views

adding options to org-export dispatcher

I'm trying to customize the workflow that goes from org-mode to latex export. When I launch the export dispatcher, I have four sub-options under [l]atex ... the standard ones. But I think it's ...
Bernhard's user avatar
  • 375
3 votes
0 answers
531 views

Cleanup org-mode export intermediary directories

I am trying to delete extraneous files and directories generated during the export of a latex file from orgmode. I followed the instructions in a similarly named stackexchange post to delete extra ...
krishnab's user avatar
  • 529
3 votes
0 answers
74 views

Remove surrounding markup when prettifying symbols

Is there any way to get Emacs to hide surrounding markup when prettifying? That's a feature I really miss from Vim. For example, when editing LaTeX in Vim, the conceal feature can be made to replace ...
user8033428's user avatar
3 votes
0 answers
129 views

AUCTeX auto parse class file in same directory as TeX file

I have a class file hmcpset.cls which defines some macros and environments. If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...
PythonNut's user avatar
  • 10.5k
3 votes
0 answers
73 views

Ignoring curly braces in search

Journal article titles in my BibTeX appear as follows: Title="{{E}nsure {C}onsistence {C}apitalization in {T}itles}", This produces consistence output, which I am happy with. However, searching for ...
SabreWolfy's user avatar
  • 1,448
3 votes
0 answers
462 views

Edit ShareLaTeX document using Emacs

I was searching whether is is possible to edit a document from ShareLaTeX using Emacs in real time. Up to now I haven't find anything to do the job. So my question is if there is a good and reliable ...
Adam's user avatar
  • 2,477
3 votes
0 answers
124 views

Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?

Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup. (add-hook 'LaTeX-mode-hook (...
Basak's user avatar
  • 461
3 votes
1 answer
121 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
Dan's user avatar
  • 33.3k
2 votes
0 answers
38 views

Calc's implicit multiplication in Latex

I am having a problem concerning emacs "Calc" calculator. I am trying to implement a function to write math equations in latex from an input written in calc (algebraic notation). So I use ...
largelama's user avatar
2 votes
0 answers
50 views

Stop producing excess whitespace in .png files from TikZ code

I've been using Org src blocks like the following to generate .png images of TikZ diagrams. #+name: tikz-functions #+header: :file tikz-functions.png #+header: :imagemagick t :iminoptions -density 800 ...
nonreligious's user avatar
2 votes
0 answers
409 views

Relative links and includes (Org)

My problem is almost a repost from reddit (original post). Recently, I opened a issue trying to explain what is going on (issue), but the reddit post was clearer than my explanation and very similar ...
gpetrini's user avatar
2 votes
0 answers
104 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]&...
Vitus Schäfftlein's user avatar
2 votes
0 answers
196 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{...
mor3dr3ad's user avatar
2 votes
0 answers
263 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, ...
user50394's user avatar
  • 143
2 votes
0 answers
121 views

Add a background image to pdf export of an org-beamer file

I'd like to add a background image to a single page in a pdf I am creating with M-x org-beamer-export-to-pdf using the Metropolis theme (no relation). The use of the theme doesn't appear to be the ...
Metropolis's user avatar
2 votes
0 answers
2k views

Merge two cells in an org table

I basically stumbled onto this older question how to merge cells in an org-table. This would be very useful to create a header, something like: |Merged header| |----+--------| | / | < | | 1 ...
Nathan Furnal's user avatar
2 votes
0 answers
167 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
Giuseppe's user avatar
  • 455
2 votes
0 answers
181 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
Kev's user avatar
  • 21
2 votes
0 answers
212 views

Use org-ref to add citations in theorem titles

I am experimenting with writing a manuscript in org-mode and wondering if this is something org-ref can do In org-mode I have #+ATTR_LATEX: :options [Homeslice's Theorem] #+BEGIN_theorem latex blah ...
calstad's user avatar
  • 173
2 votes
0 answers
120 views

smartparens with LaTeX to deal with \begin \end environment and markup commands

How can I configure smartparens to treat \begin ...\end environments, and commands, e.g., \textbf, delimiters so that I can navigate them, e.g., using sp-forward-sexp.
Waleed A. Yousef's user avatar
2 votes
0 answers
245 views

AUCTeX View PDF Evince SyncTeX subdirectory

I use LatexMK to output resulting files (including the .pdf and .synctex.gz) in the subdiretory out. But I also want to view the pdf and use SyncTex via Emacs and Evince. One solution (see here) ...
widdemanef's user avatar
2 votes
0 answers
114 views

Automatic close evil-make buffer

I'm using evil mode (Spacemacs to be specific) and working with LaTeX projects. I use evil-make or :make command to compile the current LaTeX project to PDF file. I find it quite annoying that ...
Mingwei Zhang's user avatar
2 votes
0 answers
108 views

auctex failing to render formula previews

I am trying to get auctex on emacs to preview formulas but it doesnt seem to work and when I click preview, it produces the following error: PDF2DSC sentinel: Wrong type argument: arrayp, nil I have ...
Teererai Marange's user avatar
2 votes
0 answers
98 views

How can we use a specific command from LaTeX package while exporting to html?

I can add LaTeX equation in my org file using for instance. \begin{equation} x^2 + y^2 = z^2 \end{equation} In this case when I export to html everything works fine. However, when I try to use a ...
virtual_mind's user avatar
2 votes
0 answers
2k views

use local tikz library in org-mode

would like to use a custom tikz library with org-mode. https://github.com/jluttine/tikz-bayesnet The following example works fine. :) #+begin_src latex :file fsa.pdf :packages '(("" "tikz")) :border ...
user14419's user avatar
  • 195
2 votes
0 answers
77 views

How to protect LaTeX comment lines from indentation?

When I type <TAB> in a LaTeX file anywhere on a comment line, the comment symbol is moved to the beginning of the previous non-blank line. This also occurs with M-x indent-region. Is there a ...
Michel Fioc's user avatar
2 votes
0 answers
488 views

In latex preview pane mode, make the pane stay where I put it

Does anyone know how to make the pane in latex preview pane mode stay put? When I move it to the frame/window I would like it to be, it pops back to its default window when I refresh it, M-p. Edit: ...
user11012's user avatar
2 votes
0 answers
106 views

Org LaTeX problems with themes when exporting to html

I use the two great html theme, bigblow and readtheorg, from https://github.com/fniessen/org-html-themes. They're awesome ! Looks really professionnal. The problem is that when I export some LaTeX, in ...
Nicolas Scotto Di Perto's user avatar
2 votes
0 answers
619 views

use org-mode to manage latex templates

I currently have a few latex templates stored in a folder. Then I copy and paste to create a new document. I want to streamline this process because, well, I am lazy and I like to play. Preferably, ...
kel c.'s user avatar
  • 121
2 votes
0 answers
770 views

How to disable doc-view in AUCTex

I'm using Emacs 24.3.1 on Ubuntu 14.04 with AUCTex for LaTeX editing. The command C-c C-c allows me to easily compile the document with pdflatex. However, the second time I'm running C-c C-c, instead ...
tom4everitt's user avatar
2 votes
0 answers
94 views

Is it possible in org-mode to export a * heading to a \begin{heading} \end{heading} block construct?

I'm trying to export a heading as a block construct. Something like * heading Content * Another Heading gets exported to \begin{heading} Content \end{heading} \section{Another Heading} Using ...
Sparx's user avatar
  • 1,121
1 vote
0 answers
32 views

Can I make all src blocks of the same programming language inherit the same #+ATTR_LATEX: block?

Suppose that for Python and only Python, I want #+ATTR_LATEX: :options frame=single to customise my #+begin_src blocks. Does Org Mode have any natural way of doing this?
J. Mini's user avatar
  • 123

1
2 3 4 5