Skip to main content

Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Org-babel ignores RESULTS when generating beamer?

I'm using Org-babel to generate a bunch of pdfs from a single Org-mode file, compiling using Beamer. Each subtree starts something like this: * Introduction :PROPERTIES: :EXPORT_FILE_NAME: pdf/...
0 votes
0 answers
8 views

Org-mode code blocks and results side-by-side in beamer export?

I'm using org-mode to generate slides for a class I'm teaching, and one of the things I do is use org-babel to show code snippets, run them and display the results. However, in the generated Beamer ...
0 votes
1 answer
40 views

How to remove padding for display math equations when `org-export-preserve-breaks t`?

When the variable org-export-preserve-breaks is t, the org contents... text \[ a + b + c \] text gets exported to LaTeX as... text\\[0pt] \[ a + b + c \]\\[0pt] Text\\[0pt] This adds a lot of extra ...
0 votes
1 answer
52 views

Org mode LaTeX block fails to invoke gnuplot for pgfplots?

I've copied a configuration from the internet that allows me to generate images from LaTeX code blocks in Org mode. Here's the setup: #+PROPERTY: header-args:latex :results file raw drawer :headers '(&...
3 votes
1 answer
194 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-...
0 votes
1 answer
1k views

Org-mode LaTeX previews image size too large

SOLVED: REMOVE #+SETUPFILE: HEADER. SORRY FOR WASTING YOUR TIME I am having the same issue as described in this Reddit post from a few weeks ago: basically the preview images generated for a given ...
1 vote
1 answer
473 views

(Org) TikZ for exporting both LaTeX and HTML/MathJax

I'm exporting an Org Mode project both to LaTeX and to HTML (with MatJax). Now I need to add a TikZ picture which can be exported nativelly on LaTeX and must be rendered in svg for HTML. Writing the ...
5 votes
2 answers
546 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, ...
0 votes
1 answer
130 views

How to get error messages for org-preview-latex-fragment?

(This took a long time to research, so I'm answering my own question, hoping to save others some time) Let's say I have a file like this: one by two is $\froc1{2}$ When I run M-x org-preview-latex-...
0 votes
1 answer
59 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
1 answer
35 views

Make auctex ask me only for position and width when inserting a minipage environment

If I insert a minipage environment using auctex LaTeX-environment it asks me for "Position", "Height", "Inner Position" and "Width". However I only want to be ...
5 votes
6 answers
5k views

Getting Latex preview to work with org mode (.dvi not found)

In my .org file I embedded a simple Latex segment: $f(x) = x^2$ Then I use the following command to generate a preview for that segment: org-toggle-latex-fragment But I get an error: org-...
0 votes
2 answers
699 views

imaxima: no LaTeX output and crash

I want to setup the imaxima buffer with working LaTeX output. Following the EmacsWiki, I added this to my init: (add-to-list 'load-path "/usr/share/emacs/site-lisp/") (autoload 'maxima-mode &...
3 votes
2 answers
965 views

Nested smart quotes in org-mode

I have found that the smart-quotes option of org-mode does not export properly the quotes when they are nested (single quotes inside double quotes), but only when they coincide at the start or the end ...
4 votes
1 answer
761 views

Symbol’s value as variable is void: last-command-char when trying to insert bracket

I am using aquamacs and latex mode, 'Symbol’s value as variable is void: last-command-char when trying to insert bracket' occurs when I am trying to insert a bracket. How could I do?
0 votes
0 answers
7 views

beamer export with cite and macro

I am creating my presentations with orgmode and export via a template to beamer/tex/pdf. This works quite nice. Though for referencing images I am using usually a tex macro to put the reference to the ...
1 vote
2 answers
74 views

How can I frame an example block?

In src blocks, I can use LaTeX packages to make them look nice. For example, LaTeX's minted package lets me put a nice frame around my code blocks. The syntax is #+ATTR_LATEX: :options frame=single #+...
0 votes
1 answer
182 views

Org mode LaTeX preview environments

Is it possible to preview in org mode also environments \begin{theorem} hello world \end{theorem} I tried but I can't get the Theorem 1.2.3 header.
1 vote
1 answer
87 views

How can I wrap the main text of a document around a table when exporting from Org to Latex?

I have a long, skinny table that's likely going to end up spanning multiple pages that I'm using the longtable environment for. I want to have this placed on the left-hand side of my document, and to ...
1 vote
0 answers
28 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?
6 votes
2 answers
3k 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 ...
0 votes
1 answer
44 views

Is there any org-babel source block that converts to a LaTeX pseudocode algorithm block?

Currently, when I want to add some algorithm's pseudocode to my LaTeX export, I have to manually write LaTeX: ** Pixel-Flipping: A Technique to Assess Faithfulness - Pixel-flipping is a quantitative, ...
3 votes
1 answer
755 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-...
0 votes
1 answer
51 views

Compiling .tex files seem to be tied to a username?

I'm working on multiple computers and compiling LaTeX document through AUCTeX. I've set up Evince as my external viewer and the synctex and back referencing work perfectly... ...as long as I've ...
0 votes
1 answer
73 views

Why does the execution of latex/hide-show-all with hooks not work?

I'm using AUCTeX, CDlatex and latex-extra to write LaTeX-files. When I access a file I'd want the contents of its sections to be hidden by default using the latex-extra1 command latex/hide-show-all, ...
0 votes
0 answers
24 views

Unknown "nil" backend with org-export-dispatch for beamer

I'm trying to use a single org-mode file to make a single org file that is exported to multiple slide-deck pdf files using beamer. I've got each tree labelled with a unique #+EXPORT_FILE_NAME: foo....
0 votes
1 answer
48 views

How to do an ordinary forward-paragraph in latex-mode?

Is there an easy way to perform an ordinary forward-paragraph in latex mode? When the point is at a after running the command forward-paragraph the point goes before the first \. I just want to go ...
0 votes
1 answer
68 views

Autopair parenthesis with cdlatex

I'm trying to write my configuration for the first time and I am facing the problem with cdlatex completion of parenthesis conflicting with tools like autopairs. What happens is that, inside a TeX ...
0 votes
1 answer
47 views

How to set keybindings to jump to next/previous latex math environment?

In vim (I think with vimtex) one can jump to the next or previous math zone (inline or display mode) with a keybinding. Using auctex or org mode (preferably org mode), how could one do that in emacs ? ...
0 votes
1 answer
585 views

Change font for org LaTeX-preview

I successfully use org LaTeX-preview to have my formulas displayed as images in my org-mode documents. There is one problem I am facing, though: I need the LaTeX math font to be upright instead of ...
0 votes
1 answer
32 views

Defining LaTeX parentheses delimiters thing for meow-mode

Setup In the spirit of evil-tex, I'm trying to define a thing for the meow modal editor that demarcates LaTeX parentheses delimiters such as \left( \right), \langle \rangle, ( ), \bigl( \bigr). I am ...
0 votes
1 answer
99 views

Hideshow minor mode in LaTeX

It seems that HideShow mode is not compatible with LaTeX. Is there any way to achieve a similar effect: hide some blocks that I highlight?
0 votes
1 answer
370 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
1 vote
3 answers
2k views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
0 votes
1 answer
219 views

Custom verbatim environments/macros in AucTeX

Here's my MWE: \documentclass{article} \newenvironment{tscode}{}{} \def\tscode|#1|{} \begin{document} \tsinline|efwe| \begin{tscode} efihw$feiw$ \end{tscode} \end{document} % Local Variables: % ...
0 votes
0 answers
71 views

Auctex changes when inserting items

I am using AucTex 13.2-1, and I have noticed some changes in the insert-item functionality. Previously, when used C-c C-e, I was prompted for the environment type and, when choosing itemize, the ...
6 votes
4 answers
674 views

Don't switch to math-mode when entering `$` in a `minted` environment

I am using AUCTeX to edit Latex files and use the minted package to highlight source-code within documents. Unfortunately the character $ is still recognized as a delimiter for a math-mode even though ...
0 votes
1 answer
26 views

Is there a way to Insert a Table from external pdf similar to inserting external pdf as figure?

We can easily insert figures from external PDF, but how do I insert a table the same way? For example: I have a table in .tex file in a standalone class as it is easier to generate it from an external ...
3 votes
1 answer
116 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{...
1 vote
1 answer
272 views

Doom Emacs not inserting citep references into LaTeX document

I'm new to using LaTeX for writing papers and I'm trying to get a workflow going using LaTeX in Doom Emacs on Arch Linux (all the required texlive packages having first been installed via pacman). ...
0 votes
1 answer
184 views

org export with tikz entries

I would like to use orgmode for preparing exam questions. For tex-template I am using tikz which includes some text entries e.g. for the title and subtitle. The tex part for tikz looks e.g. like: \...
0 votes
2 answers
51 views

Is it possible to force calc to use the rules of ordinary algebraic calculus when the language is 'latex?

I mean : in a simple way.. (let ((calc-language 'latex))(calc-eval "1/2 + 1/4")) ; =>\frac{1}{12} (let ((calc-language 'C))(calc-eval "1/2 + 1/4")) ; =>3/4 Of course, no ...
0 votes
2 answers
63 views

AucTeX: Keybinding for compiling document

Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking ...
2 votes
2 answers
147 views

LaTeX equation numbers with Emacs

Equation labels in the .tex document are \label{eq:3}, e.g., which is (7) on the output pdf-document (say); \eqref{eq:3} references this equation. Typing <C-x-o> at point (| in the following ...
0 votes
0 answers
9 views

Error yas--advance-end-maybe-previous-fields with autoactivating yasnippets in latex environments in org mode

I get the error yas--advance-end-maybe-previous-fields: Assertion failed: (memq field (yas--snippet-fields snippet)) in org mode when I use snippets that: do not contain $1 in the snippet use auto ...
0 votes
1 answer
83 views

Make Yasnippet insert characters before the key

I want to create a snippet, which does the following: When I write . foo it creates A.B while the cursor is in front of B. I only found ways to insert text after the key and to delete text before, but ...
0 votes
1 answer
248 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: ...
1 vote
1 answer
113 views

Why am I getting the following error: Symbol’s value as variable is void: org-latex-classes

This is a new error, and I haven't really changed anything in my config. The relevant portion is below (use-package org :config (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) (setq ...
0 votes
1 answer
34 views

How to change the color of superscripts and subscripts in latex in org mode?

Changing emacs themes, it seems that there is a variable that determines the color of the superscript ^ and subscript _ symbols in latex math environments in org mode (in the source code not the ...
1 vote
1 answer
99 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 ...

1
2 3 4 5
18