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.

6
votes
3answers
554 views

How to make emacs align and indent a bibtex entry?

I want bibtex-mode to align and properly indent fields. I copied a bibtex entry for the following article into Emacs: (Article source here) But, with a simple paste, the alignment is lost in Emacs ...
2
votes
1answer
274 views

how to make smartparens insert “` and ”' instead of ``'' in latex-modes

Smartparens is quite useful, but I just do not understand its documentation. How do I make smartparens insert "` and "' instead of `` and '' when pressing " in latex-mode? Remark (because formating ...
1
vote
1answer
24 views

Face-based replacements

I need to perform this kind of (query-)substitutions in LaTeX code: "fig" --> "figure" But I don't want to match text inside commands e.g. \label{fig:1} or \includegraphics[width=2cm]{fig/D.pdf}. ...
1
vote
0answers
28 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
2
votes
1answer
184 views

Fold entire preamble in AUCTeX

Can AUCTeX be configured to fold the entire LaTeX preamble (i.e., hide everything before \begin{document})? For example, it would be nice if the the following document: \documentclass[letter,11pt]{...
1
vote
2answers
746 views

Why won't my Latex render in org mode?

I have Latex code embedded in my org file. *** Equations \begin{equation} h(x) = \theta_0 + \theta_1 x \end{equation} When I run C-c C-x C-l while my cursor is on the code, I get an empty box ...
2
votes
2answers
451 views

Org-mode logtable Latex export: How to change the “Continued on next page” text (to German)?

I am writing a German document in Org-mode and exporting to Latex. To use the longtable environment, I use: #+ATTR_LATEX: :environment longtable |-|-|-| In this way, a long table is exported as ...
1
vote
0answers
54 views

LaTeX highlighting: Dollar expressions across lines

I'm having some trouble with LaTeX math expressions between (single) dollar signs. Specifically, syntax highlighting breaks across lines. Things looks something like this: if there exists $\alpha&...
1
vote
1answer
711 views

Export org-mode subtrees at chapter level for LaTeX

I have a DATE_TREE logbook within an org-file that I would like to export to Latex, keeping the years at a level of a chapter: * Logbook :PROPERTIES: :DATE_TREE: :END: ** 2016 *** 2016-10 October ...
1
vote
1answer
113 views

Stop AUCTeX asking how much space I want to insert between rows in tables

I'd like to avoid being asked how much vertical space I want to insert at the end of a row in tables and have C-c C-j behave like C-u C-c C-j.
2
votes
1answer
683 views

Unnumbered section among numbered ones in Org-mode

It is known that the option num:nil drops the numeration of sections (when exporting from org-mode), but How could I include a unnumbered section among numbered ones in Org-mode?
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
186 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
593 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
205 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
98 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 ...
3
votes
1answer
563 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
299 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 ...
6
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
153 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
95 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
367 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
1k 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
812 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
468 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 ...
5
votes
1answer
310 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
44 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
41 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 ...
2
votes
1answer
242 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
99 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
111 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
599 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
106 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
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 ...
2
votes
0answers
78 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
253 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
479 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
215 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
265 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
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 ...
6
votes
1answer
960 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
62 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: ...
2
votes
0answers
78 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
160 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
529 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
467 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
1k 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
415 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. ...