Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [latex]

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

0
votes
1answer
180 views

My emacs does not use the LaTeX-includegraphics-extensions option in my .emacs file

I tried to customize my .emacs file adding the options to the macro command \includegraphics. I use Emacs 25.3.1 on MacOS. My .emacsfile is as follows: (package-initialize) (custom-set-variables '(...
0
votes
0answers
16 views

Description export from org-mode to Latex has an anomaly

The line - Conduction :: Heat transfer after contact of two bodies of unequal temperature. in org-mode is exported as \begin{description} \item[{conduction}] Heat trasfer after contact of two bodies ...
0
votes
0answers
306 views

Setting fonts in org-beamer with Metropolis theme

Environment: OSX 10.13.4, spacemacs 0.200.7 Here's a pared-down org-beamer file #+TITLE: A Presentation #+SUBTITLE: A really good one, in fact #+AUTHOR: WallyMetropolis #+DATE: 05-02-2018 #+OPTIONS: ...
0
votes
0answers
163 views

problem when setting org-confirm-babel-evaluate to nil

apple: 10.13.4 emacs: 25.3 (9) Org-mode version 8.2.10 python3.5 As I have a bunch of harmless python blocks in an org mode file for a report, and did not want to keep pressing "y" every time ...
0
votes
0answers
180 views

Default Latex Classes seen by emacs

I am trying to write a project proposal by using org-mode. And when I change the #+LATEX_CLASS variable to something different org can not export to pdf. So, I wondered how can see list of latex ...
0
votes
0answers
100 views

Make adaptive-wrap tab aware

I am switching to AUCTeX as my LaTeX editor and need tab-aware automatic line wrapping. From this question on stackoverflow I gathered that adaptive-wrap is basically what I need. How can I make ...
0
votes
1answer
78 views

org-babel uses wrong directory during execution of source blocks (org-compile-file error)

I'm experiencing a strange error when trying to execute/compile a LaTeX source block in org-babel. A simple example looks like this: #+NAME: latex1802142321 #+BEGIN_SRC latex :results raw :file ...
0
votes
0answers
97 views

How to specify a color theme specifically for Latex editing (the buffers with .tex files)?

I am using Emacs and there are various 'themes', eg. link to examples, but they do not appear to be dedicated to Latex. Some have modes for Latex, but I am wondering if there are theme files that can ...
0
votes
0answers
105 views

Equations in org-reveal presentation

I've installed reveal.js and org-reveal, and they are working as expected. Even, I'm getting the equations! However, the point with the equations is the following: If I introduce directly the LaTeX ...
0
votes
1answer
79 views

Why can't I bind tab to multiple spaces? [duplicate]

I'm trying to bind tab to either a tab or multiple spaces in Latex/ESS-noweb mode but I can't get it to work. I tried (local-set-key (kbd "<tab>") 'self-insert-command) which didn't work, and ...
0
votes
1answer
99 views

Use picinpar instead of wrapfigure for LaTeX-export

Org-mode exports to wrapfigure with ATTR_LATEX: :float wrap. https://tex.stackexchange.com/questions/47674/wrapfig-positioning-footer-is-overlapping-figure?noredirect=1&lq=1 recommends to use ...
0
votes
1answer
78 views

opening brace alignment/indentation problem in LaTeX mode

I have an alignment/indentation problem in LaTeX mode. Every time I begin a line with an opening brace and I hit <TAB> or run an indentation command on the region, the brace becomes aligned with ...
0
votes
1answer
272 views

AUCTEX won't create dsc file

I'm using Emacs24 on windows with AUCTEX for Latex. When I try to toggle preview it doesn't show, insteed there is a little "not working" picture on each equation and I get an error Running `...
0
votes
1answer
211 views

reftex-complete failed with (wrong-type-argument stringp nil)

In org-mode, in a file with a \bibliography line, C-c [ failed. With (setq debug-on-error t), the error message was Debugger entered--Lisp error: (wrong-type-argument stringp nil) re-search-forward(...
0
votes
0answers
365 views

latex export uses lstlisting instead of minted, why?

I'm running Orgmode 8.2.10 with emacs 24.4 on a Win 7 machine. I've installed python, pygment and minted and added the following code to my .emacs file: (setq org-export-latex-listings 'minted org-...
0
votes
0answers
58 views

How to specify the geometry of the *tex-shell* frame?

I'm using Emacs 24 in Ubuntu 14.04 and when first compiling a TeX file after start up, a frame called *tex-shell* is automatically opened and all further compilation processes run in this frame. I ...
0
votes
0answers
271 views

Is it possible to use `org-ref` in LaTeX mode?

I love using org-ref in my org files, and then export them to PDF (or even LaTeX). However, I have a lot of LaTeX manuscript which I don't want to translate into org, and I could use an org-ref-like ...
0
votes
2answers
117 views

Org-mode radio table orgtbl-to-latex :fmt wont accept float

I'd like to embed org-mode tables in my latex files and have org mode take care of formatting floating point numbers. Based on A.6.2 of the org-mode manual (http://orgmode.org/org.pdf) I expected this ...
0
votes
0answers
160 views

Emacs takes a very long time to open a TeX file

After a fresh install of Emacs (GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-18) and AUCTeX (last version from ELPA) on Windows Vista, when I open a TeX file, Emacs takes an extremely long time to ...
0
votes
1answer
211 views

org-ref completion of labels inside latex blocks

I recently started using org-mode to take academic notes, so I use LaTeX blocks (#+BEGIN_LaTeX) to insert LaTeX code using the special buffer that gives me code completion via AuCTeX. I also insert ...
0
votes
0answers
161 views

Opening a .tex file on Windows emacs 25.1

When I try and open a .tex file on emacs 25.1 under Windows I now get this error: File mode specification error: (dbus-error No connection to bus :session) And cannot typeset anything using the ...
0
votes
0answers
117 views

org-mode russian filename pdf export

Is there a way to make pdf-export of files named in russian? I use xelatex which is set up like: (setq org-latex-pdf-process '("xelatex -shell-escape -interaction nonstopmode -output-directory ...
0
votes
0answers
438 views

org-toggle-latex-fragment Not Working

I have made sure that dvipng is installed on my system and have upgraded to the most recent version of org-mode but I cannot preview LaTeX. M-x org-version shows 8.3.4. I tried typing some Latex ...
0
votes
3answers
924 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
0answers
132 views

“Runaway argument” when running exporting to PDF with hyperlinks

I have been trying to do my resume in org-mode and export it to pdf with org-latex-export-to-pdf. I have almost gotten it just the way I want it, but for some reason whenever I try to add a hyperlink ...
0
votes
0answers
60 views

How to have both Greek Alphabet and LaTeX command of it in the same table in exported PDF (TEX)?

Just want to create a table of LaTeX command for Greek Alphabet. One column for the Greek Alphabet and one for the command. When I use \beta, it shows as Greek alphabet in the exported PDF file. How ...
0
votes
0answers
80 views

How can I wrap the subscript into a math environment in Org-mode?

I have some subscripts in my org file like B_25, B_30. These subscripts can be exported to LaTeX like B_{25}, B_{30}. However, I want part of the subscripts like B to be exported as italic B. As one ...
0
votes
1answer
528 views

How can I add the pdflatex binary to my path to make it visible to emacs, specifically LaTeXPreviewPane?

Solved: See my answer below. It seems like emacs can't always see what you can see in the terminal. The package mentioned in my answer below solved this issue. I'm trying to make LaTeXPreviewPane ...
0
votes
0answers
90 views

Finding proper hook for a major mode

So this is some elisp code I have in my init.el file: (defun complete-dollar () (interactive) (insert "$$") (backward-char 1)) (defun my-latex-keys () "Modify keymaps by latex-mode" (...
0
votes
0answers
203 views

`\setcounter` in latex block to typeset matrices with more than 10 columns

I typesetting a matrix with 12 columns in a latex block in org-mode and discovered I couldn't do it by default. Reading this question on the TeX stack exchange site made me think that I could just ...
0
votes
1answer
61 views

Definitive answer to org-mode export HTML versus LaTeX

I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \...