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.

3
votes
1answer
79 views

How to tell Emacs to keep indentation in algorithmic environment?

I frequently find myself typesetting algorithms, and I choose the algorithmicx/algpseudocode package for that. I like the package, it is simple to use and has everything I typically need. The problem ...
4
votes
0answers
50 views

Ignoring curly braces in search

Journal article titles in my BibTeX appear as follows: Title="{{E}nsure {C}onsistence {C}apitalization in {T}itles}", This produces consistence output, which I am happy with. However, searching for ...
3
votes
1answer
295 views

Deactivate subscripts and superscripts raising / lowering in latex mode

On a new install, I noticed that Emacs systematically lowers or raises what it identifies as subscripts or superscripts (sometimes correctly, sometimes incorrectly...) due to the presence of _ or ^ in ...
0
votes
1answer
192 views

Org-Mode - Fix LaTex export

I've written a document in Org-mode but when exported it became like this: In the image on top, I've inserted a \bullet but it wont show and the text is not alligned: And in the image on bottom, the ...
1
vote
0answers
442 views

Change style of Org-Mode export to pdf

I'm new to Org-Mode and Spacemacs and I'm trying to change the export style of org-mode. I want to take notes with it and have source code blocks. I'm having difficulty in changing the export ...
1
vote
1answer
237 views

Making AUCTeX use tabs for leading indentation doesn't work

This answer says how to make AUCTeX use tabs for leading indentation. However, it doesn't work for me and I don't understand why it doesn't. After adding the code to my init file, LaTeX-mode just ...
2
votes
2answers
180 views

How center #+BEGIN_EXAMPLE on org-mode LaTeX export?

I have a verbatim/monospaced block that way: #+BEGIN_EXAMPLE _ / \ T H ...
0
votes
1answer
214 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 `...
3
votes
2answers
1k views

Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?

I have been using the latest version of Spacemacs, with AUCTeX. However, when I compile the .tex file into a .pdf file, it opens in my default external PDF viewer software. Is there a way to make ...
0
votes
1answer
182 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(...
2
votes
1answer
575 views

How to force the indentation of the first paragraph on org-mode export?

I have a simple Org file with this: #+STARTUP: showall align #+OPTIONS: todo:nil tasks:all tags:nil #+AUTHOR: Manoel Vilela #+TITLE: Super title @@latex:\\@@ Title to be write #+DATE: <2017-08-24 ...
0
votes
0answers
199 views

How do I preview latex math in org mode without generating image files?

So when I preview latex in emacs org, there will be a sub-folder itximg generated in the same folder as the .org, containing the image files. My question is can org mode preview latex math without ...
8
votes
1answer
600 views

Any science book written in org-mode?

I am thinking to write a physics book in org-mode. Although there are many open-source science books written in LaTeX to figure out its work-flow (and its source) I couldn't find any science book ...
0
votes
1answer
235 views

Auctex key-bindings for easy saving, compilation and viewing.

I am new to Auctex and Emacs. Previously I have been using vim-latex in which the key bindings are easy. For example, I was using Ctrl-Space in Vim to to save the tex file, compile the document and ...
0
votes
1answer
85 views

fr<TAB> is not inserting \frac{}{} in CDLaTeX

I typed fr<TAB> as is written in the manual but got only a fr and a tab. The \frac{}{} is not correctly inserted and so does sq. Why is this happening?
3
votes
2answers
119 views

External links to figures in org-mode

I would like to be able to link specific figures from other documents. Basically the function of the xr package in LaTeX where it doesn't necessarily give you an actual link that will take you outside ...
-1
votes
0answers
54 views

How to Silence AucTeX compilation

I am using emacs when writing my LaTeX documents. When I have to compile the document using pdflatex in emacs, how do I silence it so that it does not open a buffer? Thanks!
2
votes
1answer
108 views

How to set field separators in bibtex-mode's autokey generator?

Q: how do I set a specific separator in bibtex-mode's autokey generator? Background I am working with bibtex-mode. It has a feature to auto-generate the entry key, which is customizable. Goal My ...
7
votes
1answer
1k views

Emacs setup for LaTeX after (use-package) verse

How to make this configuration file work with use-package with regard to AucTeX, RefTeX and LaTeX. I usually write latex rahter than pure tex documents. Current Working Emacs Configuration (load "...
2
votes
0answers
70 views

Automatic close evil-make buffer

I'm using evil mode (Spacemacs to be specific) and working with LaTeX projects. I use evil-make or :make command to compile the current LaTeX project to PDF file. I find it quite annoying that ...
7
votes
3answers
494 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
237 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
27 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 ...
-1
votes
0answers
87 views

Space bar not working in predictive mode

I have installed the Predictive Mode package since I would like to use it when editing LaTeX files. However, the space bar (SPC) does not work when I enable the mode: it inserts the two characters ^A ...
2
votes
1answer
157 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
639 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 ...
1
vote
2answers
376 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 ...
0
votes
0answers
130 views

Different reformating of paragraphs between vim mode and emacs

In Vim, the command gq when a paragraph is selected, reformats it so it cuts in the 80's column (or whatever you have specified). In emacs, if I press enter after a long line it does the same. However,...
1
vote
0answers
51 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
577 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
106 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
484 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
81 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
173 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" ...
2
votes
1answer
519 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
171 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
91 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
498 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
255 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
128 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
0answers
376 views

How do I do Live-preview of LateX while editing in Emacs?

I am looking for something similar to what is done using NeoVim in this video: https://www.youtube.com/watch?v=zCdDgtlBaTU
0
votes
1answer
88 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
311 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
52 views

Carets (^^I) displayed in a PDF document output by LaTex from org mode instead of indentation

I have a C++ function in Emacs org mode: #+BEGIN_SRC c++ int x(int y){ return y; } #+END_SRC I use C-c C-e l o to convert it to a LaTeX PDF. However, the output in the PDF was: int x(...
0
votes
1answer
937 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
710 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
407 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 ...