Questions tagged [latex]

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

135 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Listings' morekeywords attribute doesn't work in Org mode

I have defined a custom listings style in the header of my org mode file: #+LATEX_HEADER: \usepackage{listings} #+LATEX_HEADER: \usepackage{color} #+LATEX_HEADER: \definecolor{codegreen}{rgb}{0,0.6,0}...
0
votes
0answers
61 views

Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...
0
votes
1answer
33 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
0answers
207 views

Org Export Latex: Defining Custom Classes for a Title Page From #+TITLE, etc keywords

I stumbled upon this archived email: https://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01281.html and a suggestion is to create a custom title page that picks up the title, author, and date ...
0
votes
0answers
44 views

How do I turn off electric “double-dollar” insert under auctex?

Inserting a $ symbol in a latex document (in AucTex mode) automatically inserts 2 $s in a row (and then hitting "delete" immediately deletes both). I can confirm that the variable TeX-electric-math is ...
0
votes
0answers
171 views

Package pdftex.def Error: File `./xx-eps-converted-to.pdf' not found: using draft setting

I am using Aquamacs 3.4 GNU Emacs 25.3.50.1 on macOS 10.14.2. Recently I encounter an error while converting eps to pdf. The textstudio works fine but Aquamacs does not. I have included the ...
0
votes
1answer
101 views

Creating table of content with the package titletoc in Org Mode for LaTex export produces strange lines of text

I use the LaTeX package titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with #+TOC: headlines 1 local But in the PDF file there is for example the ...
0
votes
0answers
47 views

Enabling asy-mode coloring inside a latex block

I have started using Asymptote for making diagrams in \LaTeX. Asymptote comes with its own Emacs mode for editing .asy files in which we typically write Asymptote code. However, I often write a lot ...
0
votes
0answers
55 views

Limitations of latex mode inline math syntax highlighting

My Problems: In latex major mode (not Latex major mode), syntax highlighting works okay for line 1, but not for line 2. line 1 : my hypothesis is $a^2 + b^2 = c^2.$ line 2 : my hypothesis is \(a^2 ...
0
votes
1answer
93 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
0answers
32 views

How do I add new commands for TeX entry mode?

Looking at this answer, I found out that if you use TeX entry mode, you can just type \lambda and have it convert to λ on the fly, which is super helpful. However, when I tried doing \coloneqq, I didn'...
0
votes
0answers
49 views

latex-preview-pane with ESS Rnw mode

I would like to configure my init.el file to work with latex-preview-pane mode in ESS Rnw mode. For example, when I knitr/Sweave Rnw file and compile it to pdf the latex-preview-pane should open. I'm ...
0
votes
2answers
128 views

Emacs/LaTeX displays _char as a subscript in the editor

Emacs seems to be doing some WYSIWYG with _, as if it were in math mode (in the picture, _ is followed by subscript 'o', inside the include statement. It shouldn't. I'm using Emacs/Tex out of the box, ...
0
votes
1answer
104 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-...
0
votes
1answer
206 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
178 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
192 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
104 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
0answers
118 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
119 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
83 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
319 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
0answers
384 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
60 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
289 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
0answers
170 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
0answers
169 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
120 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
472 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
0answers
139 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
61 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
83 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
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
206 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
79 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: \...