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
11 views

Structure templates: handling exportation of custum templates

When using C-c C-, to insert a structure template, there is an option to add a "custom" template [ ] Press TAB, RET or SPC to write block name I've inserted one called questions, i.e. #+...
1
vote
2answers
22 views

Hook on entering org latex fragment

Hi is there a hook that gets triggered upon entering a LaTeX fragment in org? I'm trying to do (add-hook <enter-org-latex-hook> 'org-cdlatex-mode) but can't seem to find the correct hook to ...
0
votes
0answers
11 views

LaTeX footnote cross-referencing

This is a bug discovered when trying to make footnotes cross-reference one another. * Cross-Referencing Issue I have a footnote[fn:a7c8d549e5724e0:This is a footnote. See also [fn:f52362a5a5f18c7].]...
1
vote
1answer
26 views

Perform calculations in orgtbl with the LaTeX syntax?

This is an orgtbl table #+begin_src emacs-lisp :results none (setq calc-language 'latex) (calc-radians-mode) #+end_src #+attr_latex: :mode math |----------+-----+----------| | Fonction | var | ...
0
votes
1answer
13 views

Set LaTex export fallback font

How do I set a fallback font for LaTex export to pdf? I have the following setting in my init.el. (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \\...
0
votes
0answers
24 views

How to render latex in-line with org mode?

I have a file with the following contents: Math Notes -*- mode: org -*- #+STARTUP: latexpreview Test $\forall \epsilon > 0$ I am trying to render the latex with C-c C-x C-l, but it's not working....
1
vote
1answer
28 views

How to perform incremental search inside math environments in tex/latex documents

Is there a way to perform incremental search that filters out all non-math environments (i.e., only searches within $...$, $$...$$, and if possible other relevant \begin{..}..\end{..} environments)? ...
0
votes
1answer
26 views

Display buffer from commandline

I'm trying to do the same thing as described in (Export an org-mode file as a PDF via command line?) generate a pdf from a org file but want to do it inside a docker container also. And now I get an ...
1
vote
0answers
26 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 ...
0
votes
1answer
29 views

Experience with WSL as underlying shell (esp. with Texlive) for native win-x64 Emacs

I've been using MinGW compiled native windows 64-bit Emacs for a while, and I paired it with Cygwin to use especially Texlive, as well as other common linux and shell programs and commands. I am ...
0
votes
0answers
17 views

How to export a centered threeparttable to LaTeX?

Is anyone using the threeparttable for Latex export? I can't manage to create a centered version of this table. For my input org code #+begin_table #+begin_threeparttable #+ATTR_LATEX: :environment ...
0
votes
0answers
23 views

How to automatically expand global abbreviations in latex-mode

I have added (add-hook 'LaTeX-mode-hook #'abbrev-mode) in my init file, but my global abbreviation table are not automatically expanded (even thought the abbreviation mode is enabled). But the ...
0
votes
0answers
24 views

How to export multiple org files to pdf using a shell script that calls an elisp snippet?

I am new to Emacs (I am using spacemacs). Please be patient. I am still learning but now that I realize the power of Emacs I want and hope to learn elisp also. I have a bunch of org files prefixed "...
1
vote
1answer
50 views

Organizing Latex macro file

I'm looking for a way to organize and share my LaTeX macros file. Ideally, I would like to write an org-mode file to export as a documentation file in html or pdf for sharing as a bare macros.tex ...
1
vote
1answer
51 views

Change Background Color of Code Block for org-mode LaTeX export

I'm inserting code fragments in an org-mode document like this: #+CAPTION: My Caption #+NAME: fig:figure_name #+BEGIN_SRC a_language My code ... #+END_SRC In PDF LaTeX export, the code blocks are ...
2
votes
1answer
77 views

AUCTeX: only use monospace for rendering macros?

I've been using the fontify features of AUCTeX, as well as magic-latex-buffer, to display my TeX code in a more readable way. But I'm wondering if I can crank this up to 11: is there a way to render ...
0
votes
0answers
29 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-source-...
0
votes
0answers
40 views

How to replace a LaTex macro with its argument?

I want to replace a macro with its argument, that's to say, if I have \newcommand{\foo}{FOO} I want to replace every occurence of \foo with its argument FOO in a specified region. I am trying to ...
0
votes
0answers
15 views

AUCTeX: inconsistent behaviour when compling (probably becuase of what I'm doing)

I cannot get AUCTeX to preview updates to multifile documents. I have the following config: (use-package tex :ensure auctex :config (setq-default TeX-master nil) (setq TeX-source-...
0
votes
0answers
61 views

How to properly render markdown latex in emacs cli using markdown-mode and pandoc?

I have been facing lately the following problem. I have installed markdown-mode and I've been using pandoc behind the scenes to communicate with markdown-mode and do the rendering. I've been trying ...
1
vote
1answer
32 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{...
3
votes
2answers
72 views

What are the main differences between latexmk and C-c C-a from Auctex?

I was wondering if anyone knows if C-c C-a in AucTeX is using behind the scenes latexmk or not? I've tried looking into the source files for both C-c C-c and C-c C-a but I couldn't find in any those ...
0
votes
0answers
28 views

Emacs(AUCtex) can't recognize \input{~/Documents}

I have three MacOSs, and set different names for User and Home Folder. I take Emacs as my default editor in those devices. Using Emacs to edit tex-document, I found the code \input{~/Documents} and \...
0
votes
1answer
55 views

How to open a PDF after running tex-file?

I am able to run pdflatex via tex-file, and the PDF generates just fine. How would I go about automatically opening the resultant PDF file after generation?
1
vote
1answer
40 views

Change buffer background color on LaTeX compile error, or highlight errors more prominently?

I am using Emacs+Auctex to write LaTeX code. When compiling a document that contains an error, Emacs writes LaTeX errors in ‘*~/doc output*’. Use C-c ` to display. to the Messages buffer (and ...
0
votes
0answers
13 views

Having tinybookmarks-insert using %%% in LaTeX mode buffers

I am using the package tinybookmarks.el from project emacs-tiny-tools. It provides nice commands, to insert a separation break line, which can be used as bookmark like this one from one of my Lisp ...
0
votes
1answer
58 views

Exporting LaTeX commands to HTML/MathJax

I am writing a document that is specifying a language with associated grammar and semantics. For this I have written the specification in Latex, using a method very similar to the one presented here. ...
2
votes
1answer
116 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-...
1
vote
1answer
33 views

Em dash before italic in org export

In my document, I have an em dash that needs to be followed by italics. Here's a minimal example: He was surprised—/excuse me/? The LATEX/PDF output includes the slashes and the text is not ...
3
votes
1answer
243 views

Efficient workflow to write a book in Org-mode

I plan to write a short statistics textbook using Org-mode. Even if some textbooks have been written using equivalent systems (e.g., the R package bookdown), I have no examples in mind of books ...
2
votes
0answers
48 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-...
1
vote
0answers
92 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
54 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 ...
0
votes
1answer
40 views

How to turn off Latex/MathJax buffer symbol conversion in org-mode

Whenever I write, say, \Rightarrow inside of $$, I immediately see the actual right-pointing arrow substituted in. Unfortunately, this does not travel well between GUI-based Emacs and Emacs started -...
2
votes
1answer
52 views

AUCTeX fontification for any command: overkill?

Reading the AUCTeX manual I see that it is possible to add expressions to those one wants to highlight in a .tex file. There are also many specific suggestions around for how to add specific commands ...
0
votes
0answers
65 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 ...
2
votes
1answer
89 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 ...
0
votes
0answers
42 views

Org-mode parameters for custom table environment for LaTeX

I am using an overridden table environment based on tabular to get some custom cell coloring based on row alternation (similar to what rowcolors does, but also allowing column color variation at the ...
0
votes
0answers
107 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)...
0
votes
0answers
47 views

Automatically Highlighted Pdf Code Export [Org-Mode]

I want my Org Mode Latex Pdf Export to look like Code Styles and Colours Colour definitions for the xcolor package have been added to org-format-latex-header It looks like that now: (setq org-...
0
votes
0answers
54 views

Org-export: Change position of author and title in the tex-file?

I want to convert my latex template to an org-mode template. I want to change where the \title{} and the \author commands are inserted in the tex-file. At the moment these commands gets inserted just ...
2
votes
2answers
59 views

Org-mode: How to LaTeX export “$n$-” correctly?

I have notes containing many of the following type of LaTeX fragments $p$-adic ... $n$-th ... But org-mode exports them as literal dollar sign instead of math. The problem seems to be the - ...
0
votes
0answers
33 views

org-mode: Multiple source listings in the same float

I have an org-mode document that includes source listings of two kinds: XML and text, where the XML code refers to the text file. I want to include the two source listings into the same float in the ...
0
votes
0answers
90 views

asynchronously running org-toggle-latex-fragment

In orgmode, it is quite useful to view the equations inline. However, sometimes this can take a while to execute. Running org-toggle-latex-fragment asynchronously would be quite useful. However, most ...
0
votes
0answers
48 views

Automatic detection of master files not working in AUCTeX

I have the following two questions: 1) Is it still recommended these days to use the guess-TeX-master snippet from AUCTeX wiki? 2) If yes, could someone provide some hints on why it doesn't work in ...
0
votes
1answer
20 views

How to get correct list numbering with code blocks items in Org-babel?

Here is a minimal working example of Org file for LaTeX export: #+OPTIONS: toc:nil * A list with R source blocks 1. This is the first item. #+begin_src R :results output :session *R* :exports both x ...
2
votes
2answers
165 views

Emacs Org-mode + Letter class = Unknown latex class 'letter'

I want to use Emacs with org-mode to export notes using 'letter' class. Texlive is installed in a Mac, and have many classes to export. But Emacs in org-mode only work with: article, report and book: ...
3
votes
1answer
65 views

Spacemacs pdf-tools inverse search with keyboard possible?

I am running spacemacs and pdf-tools on Ubuntu 18.04. It does work quite well, however now I asked myself whenever there is an option to do inverse search (or to make a new command doing inverse ...
0
votes
1answer
32 views

Avoid Adding Backslash to Curly Brackets when Exporting Latex

I want to export an org tree to latex, but whenever I have a command that nests curly brackets, org export will automatically prepend all brackets with a backslash. For example, the tree: Exports to ...
1
vote
0answers
167 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 ...

1
2 3 4 5
12