Questions tagged [latex]

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

161 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
632 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 ...
5
votes
0answers
239 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 ...
4
votes
0answers
301 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 ...
4
votes
0answers
768 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
4
votes
1answer
148 views

how to include remote images in org-mode export to LaTeX?

When I paste the URL of an image into an org-mode file and then export it to HTML, the remote image URL gets turned into an img tag and displayed in my HTML file without the need for me to save the ...
4
votes
0answers
449 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 ...
4
votes
0answers
209 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:...
4
votes
0answers
100 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 ...
4
votes
0answers
137 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 ...
3
votes
0answers
76 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 ...
3
votes
0answers
151 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, ...
3
votes
0answers
85 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 ...
3
votes
0answers
52 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 ...
3
votes
0answers
97 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 ...
3
votes
0answers
56 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 ...
3
votes
0answers
446 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 ...
3
votes
0answers
84 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 (...
3
votes
1answer
81 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{...
2
votes
1answer
38 views

orgmode latex export: How to create repeatable labels?

Every time I export org-mode document to LaTeX, most sections get new and unique labels, e.g., \section{Introduction} \label{sec:orge0665da} The next time I export the document, the label will ...
2
votes
1answer
160 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-...
2
votes
0answers
49 views

Indenting LaTeX code for \if \else \fi statements

This is related to this Emacs.SE question. I use the code from the answer: (setq LaTeX-begin-regexp "\\(?:begin\\|if@\\)\\b") (setq LaTeX-end-regexp "\\(?:end\\|else\\|fi\\)\\b") (defun LaTeX-indent-...
2
votes
1answer
122 views

Auctex previews, change foreground color of text

I am using a dark theme and the latex previews from auctex are created with black text color. How can I change it? What I can do is change the background color to white (in Preview Reference Face ...
2
votes
0answers
88 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 ...
2
votes
0answers
74 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 ...
2
votes
0answers
62 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 ...
2
votes
0answers
75 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.
2
votes
0answers
140 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) ...
2
votes
0answers
115 views

Org mode exporting with customized fonts in different (human) languages

I am writing Myanmar (Burmese) and English in org mode and want to export the buffer to LaTeX (PDF), HTML and ODT formats. Since Myanmar is not supported in Babel or Polyglossia packages, I am using ...
2
votes
0answers
105 views

org-latex-fragment gets cutoff

I use dvisvgm to generate latex fragments. However, some of my equations seem to be cut off. One example is below The svg file generated does not have the cutoff but the image as displayed in emacs ...
2
votes
0answers
233 views

`<dead-grave> is undefined`

for a few month, I use Emacs for Latex, and I am French. today (for the first time) when I use C-c ` to see my errors, Emacs answers <dead-grave> is undefined I try to add in my .emacs (...
2
votes
0answers
295 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 ...
2
votes
0answers
100 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 ...
2
votes
0answers
91 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 ...
2
votes
0answers
81 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 ...
2
votes
0answers
823 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 ...
2
votes
1answer
863 views

Spacemacs Latex: how to make view command tile vertically with emacs window?

I'm using Spacemacs Latex layer, which uses Auctex. If press space m v for the first time, the document viewer opens up in full screen over my emacs window. After, it only updates the window and keeps ...
2
votes
0answers
65 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 ...
2
votes
0answers
293 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: ...
2
votes
0answers
95 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 ...
2
votes
0answers
322 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, ...
2
votes
0answers
554 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 ...
1
vote
1answer
14 views

Removing alignment in LaTeX align environment

I want to write a very long equation (3-4 lines) in LaTeX. For this equation I want to use align environment. What I don't like is how Emacs formats the LaTeX code: it adds a lot of unnecessary space, ...
1
vote
0answers
15 views

Get position in a pdf-page by clicking for annoting a pdf with latex

In https://tex.stackexchange.com/a/85676/4011, it is illustrated of how to annotated a pdf by using the latex package pdfpages, loading the pdf as a background layer and then use tikz nodes to make ...
1
vote
0answers
32 views

Overleaf like compilation check in emacs

When I am writing in latex in emacs I have to press C-c C-l to see the compilation log or use M-x TeX-error-overview to see the errors. Overleaf does have a handy feature, which lets the symbol turn ...
1
vote
0answers
37 views

Syncing tex source with `savebox`

I realize this is quite an edge case, but I am wondering if anyone can help me. I have source correlation set up in emacs as follows (setq TeX-source-correlate-start-server t TeX-...
1
vote
1answer
47 views

Org-mode verbatim tilde (=~=) is still processed by Latex back-end

I have some verbatim text containing a tilde, =some ~ text=. Now, org-mode is supposed to leave the tilde alone. However, upon exporting with the latex backend, I get the following in my .tex: \texttt{...
1
vote
0answers
120 views

orgmode latex export: alternative to \newpage?

In orgmode, is there a property I can set to a section that will output a pagebreak before it? Right now, I can do the following: * Section 1 ** Subsection 1 stuff ** Subsection 2 stuff \newpage ...
1
vote
0answers
59 views

Automatic preview generation with AUCTeX

Right now, when using AUCTeX's preview feature, I have to manually refresh the previews after I change existing sources or write new text. I have to run preview-document every time, which is both ...
1
vote
0answers
96 views

Semantic linefeeds (one sentence per line) in Emacs

I'm trying to get Emacs to insert a line break at the end of each sentence as I type. (Why? Makes for easier version control of tex files.) Looking around I found a few places with some suggestions ...
1
vote
0answers
224 views

How to execute a org-babel source block within the working directory?

Say you have the following org-babel source block: #+BEGIN_SRC latex :results raw :file test.pdf \LaTeX #+END_SRC When executing it, org-babel will do the actual compilation in a temporary directory ...