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.

4
votes
2answers
1k views

How to include “titlepage” before the Latex Org Mode document?

I have a title page that I would like to put before the Org Mode document. Example is below. Right now, I am producing the title page separately and printing it as 2 separate files. It would be nice ...
2
votes
1answer
83 views

Perform-replace only on text (no comments, no math) in latex-mode?

I need to write some Emacs-Lisp code that uses the perform-replace function, limiting its range of action only on text (ignoring comments, in-line math and math ambients) on LaTeX documents (in latex-...
2
votes
1answer
182 views

Make glossary with `C-c C-c`

I have many documents with glossaries which I used to build using this script: pdflatex "$documentname.tex" makeglossaries "$documentname" pdflatex "$documentname.tex" pdflatex "$documentname.tex" ...
3
votes
1answer
557 views

How to get rid of the auto folder with .el files?

I'm using Emacs 25.1, and I use it primarily for LaTeX with AucTeX. Some time ago in the directories of my .tex files, there started to appear a folder named "auto" with .el files in it. The .el files ...
1
vote
1answer
190 views

Export from Org Mode to LaTeX doesn't accept the option #+title:

When I try an export from Org Mode to LaTeX I get the following error message: apply: Wrong type argument: listp, #("Aufgabe 3" 0 9 (:parent (#0))) The problem comes from the option #+title: ...
4
votes
0answers
95 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 ...
2
votes
1answer
527 views

how to include gif images in org-export to LaTeX?

When I export from org-mode to PDF via LaTeX, my jpg images export successfully, but my gif images do not appear. The gif images do export when I export to HTML. I found a variable called org-export-...
1
vote
1answer
276 views

Org-mode: Translate Latex Abstract keyword

I am Brazilian and constantly writing papers for university. I am now using this question to place a cool block containing the abstract description of the paper per se. But in portuguese abstract is ...
7
votes
1answer
1k views

How to have wrapped text when exporting from org to Latex?

I have an org file which I export to LaTeX and then to a PDF document. The problem is I have some long text that exceeds the length of the page. How to wrap it so that it falls into the next line? ...
1
vote
1answer
137 views

Copying Emacs configuration to different computer

I configured Emacs on one computer and copied ~/.emacs to a different computer. That other computer uses a newly installed operating system. Both computers run Ubuntu 16.04 with the latest updates ...
0
votes
1answer
90 views

Running flyspell on Latex files in batch-mode

I'd like to run flyspell on several Latex-files in the same directory and output all the words which are misspelled.
0
votes
0answers
343 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
1answer
991 views

Exporting org-mode file to LaTeX with different document font

The default for exporting to LaTeX from org-mode files is to have the article document class at size 11pt font \documentclass[11pt]{article}. How do I get the exported LaTeX file to be a specified ...
0
votes
1answer
758 views

AUCTeX cannot find a working TeX distribution

I tried to compile, this error message appears. ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment variable I have installed ...
2
votes
1answer
447 views

org-mode special blocks latex attribute

I am using special blocks to create myself a theorem environment so that I can style it in both HTML and Latex output. For this I do; #+BEGIN_theorem ---Theorem goes here---- #+END_theorem and this ...
3
votes
1answer
77 views

Emacs: `cal-tex-cursor-month-landscape` is texing as portrait

Emacs has a buit-in library to generate a landscape calendar with the function cal-tex-cursor-month-landscape. I am using TexLive 2012 on a OSX. The calendar image gets truncated on portrait ...
6
votes
1answer
306 views

Preview LaTeX fragment on indirect buffers

I am writing my research notes in org-mode and they contain many LaTeX formulas. I use the preview feature (C-c C-x C-l) a lot. As the notes are rather large, I also tend to use an indirect buffer, to ...
1
vote
0answers
43 views

What is the cause of this inconsistent behaviour of TeX-command-buffer when narrowing?

When editing medium sized .tex files, I often find it convenient to make use of the narrow command C-x n n (narrow-to-region), usually in combination with the mark section command C-c * (LaTeX-mark-...
0
votes
1answer
40 views

How come newline does not match [[:space:]] in tex-mode and bibtex-mode?

I was debugging some of my elisp code and realized that, in a tex-mode buffer, the newline character at end of line did not match [[:space:]]. In most other textmodes or progmodes, ie, the few I ...
3
votes
1answer
232 views

smartparens NOT insert pair of LaTeX quotes?

Q: how do I get smartparens not to insert a pair of ``LaTeX'' quotes? The goal I set up smartparens to insert a pair of quotation marks unless point is just before a word or just after it, where * ...
3
votes
2answers
96 views

Ignoring line when exporting with latex backend

I have an org file that I want to export to both latex and html. The file contains a bibliography, so I want to make sure that my org-exporter processes it correctly for both export backends. For ...
5
votes
2answers
103 views

How to inherit one abbrev table in another abbrev table?

I've defined a lot of abbrevs in latex-mode-abbrev-table and I'd like to use all the contents in latex-mode-abbrev-table and org-mode-abbrev-table when in org-mode. A possible "solution" would be to ...
3
votes
2answers
575 views

org-mode Beamer export: can't change format of title page and TOC

I have an org file that I use to create a pdf with org-beamer-export-to-pdf. The file has things like this at the top: #+TITLE: Training #+OPTIONS: H:2 toc:1 num:t #+LATEX_CLASS: beamer #+...
1
vote
1answer
101 views

Don't fill minted environments in AUCTex

When running M-x LaTeX-fill-environment I don't want code in a minted environments to be formatted. I tried adding minted to LaTeX-fill-excluded-macros but that didn't have any effect on the filling. ...
0
votes
0answers
52 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 ...
2
votes
0answers
74 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 ...
5
votes
2answers
245 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 ...
2
votes
1answer
457 views

how to make all special symbols available in org latex?

once use the command below: C-x RET C-\ TeX RET I try to make some math formula: \sqrt{} but it can't be automatic translated to √, then I check the symbol list:C-h I and also can't find the \sqrt ...
1
vote
0answers
199 views

AUCTeX/LaTeX - ERROR: Undefined control sequence. documentclass

I am using AUCTeX with the following configuration. (require 'tex) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master "main") (setq latex-run-command "pdflatex") Trying to build ...
5
votes
2answers
249 views

LaTeX preview on HiDPI display

LaTeX preview with C-c C-x C-l looks very tiny on my HiDPI screen. What can I do to solve this?
0
votes
0answers
258 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 ...
6
votes
1answer
849 views

Long org export latex header

I need many lines in my org-export latex header. #+LATEX_HEADER: \usepackage[main=british,polutonikogreek]{babel} #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \usepackage{hanging} #+...
1
vote
0answers
61 views

Import and run tizk code in org-mode

If I have an org-mode file where I want to embed a TikZ rendering at a certain place, I've found the simplest is just to throw something like this in where you want it, i.e., no code block necessary: ...
3
votes
0answers
77 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
1answer
150 views

org-html-link-org-files-as-html for LaTeX export?

I am using org-mode to write my labbook. Each experiment is an org-file that is exported to PDF when finished. Currently, I am linking to previous experiments by using the resulting PDF. Is it ...
2
votes
0answers
473 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 ...
1
vote
0answers
446 views

Understanding Emacs macro and org mode tikz behavior

I found this discussion, and the last response gives this code: #+TITLE: Test #+AUTHOR: Blah #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] # # Setup tikz package for both LaTeX and HTML ...
4
votes
1answer
974 views

org-mode different latex document class

I am trying to use tufte-book document class in org-mode. But for some reason, org-mode doesn't let me use it and says it is unrecognized. So I am going to the resulting .tex file and manually ...
1
vote
1answer
388 views

Writing a Question-Answer type book in org-mode

I am preparing a question bank type book which contains problems as well as answer keys to all the problems. I'm doing this using org-mode. This will be exported to LaTeX PDF for my final book. ...
4
votes
1answer
783 views

how to style block quotes in org-mode LaTeX export?

I am trying to change the style of block quote formatting in org-mode export to PDF via LaTeX. Using this answer, I defined a new LaTeX environment called fancyquotes. I am successfully able to ...
0
votes
2answers
112 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 ...
1
vote
2answers
768 views

where does org-mode get the \author field for latex output

My exported pdf and and .tex file both include a name inherited from the logged-in unix account, I am having trouble over-riding this setting with #+LATEX_HEADER: \author {} in the .org file. Watch ...
0
votes
0answers
155 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 ...
2
votes
1answer
144 views

Fix indentation of LaTeX code without wrapping lines

If I select everything in LaTeX-mode (AUCTeX) and auto-fill the region, the indentation of all lines is corrected. This is the part I like. However, it also breaks all long lines (which I think is ...
6
votes
1answer
222 views

Formatting of usepackage commands in LaTeX document

I'm trying to use AUCTeX edit LaTeX files. The beginning of the document I just wanted to edit looks like this: It's not neatly organized, inconsistent in many ways, and I should probably change it ...
5
votes
1answer
433 views

org-mode doesn't display image when LaTeX Image Attributes are included

I'm facing this problem that when I include some LaTeX specific attributes for my image, then the image doesn't display inside org-mode (although it is displayed fine in my exported LaTeX PDF). For ...
3
votes
1answer
225 views

Export org-mode to LaTeX without preamble and document environment

I have recently started using org-mode as an electronic lab notebook for my work, and would like to combine these files with the files that I have set up in my old lab notebook, which was done in ...
3
votes
1answer
255 views

Prompt for inserting label when using theorem style environments in latex

When inserting the environment equation (by C-c C-e equation) in latex-mode, emacs shows a prompt to insert a label. It is desirable to have the same prompt for a theorem-style environment like lem ...
3
votes
1answer
82 views

Narrow and move between latex environments

When writing LaTeX presentations with the beamer class in emacs+auctex I would like to have a function (and keybinding) that does the following three things: narrow to the next frame environment if ...
1
vote
1answer
121 views

Org mode 20161102 Latex export: Images without {center} environment

Present 20161102 org mode now exports images by default wrapped in \begin{center}..\end{center} environments. This destroys layouts and confuses export scripts made with earlier versions or different ...