Questions tagged [latex]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
311 views

LaTeX tags autocomplete in org-mode

Absolute beginner with Emacs and Emacs Lisp. I am using spacemacs and have been trying to get autocompletion of matching delimiters commonly used in LaTeX in Org-mode. My requirements are just ...
1
vote
1answer
49 views

Switching » and « in tex-mode

In tex-mode, the font lock mechanism treats characters between « and » as quoted text. This is fine for French and Norwegian, which use the quotation marks «thus». But in German and Danish the ...
3
votes
0answers
78 views

Is org-mode compatible with Plain TeX?

Being an old timer used to Plain TeX, I'd like to be able to add Plain TeX portions to an org-mode file and have them be nicely displayed when exported. Is it possible to configure org-mode for this ...
6
votes
1answer
113 views

Don't complain about unmatching parenthesis and brackets in latex math mode

In mathematical notation, parenthesis and brackets have overloaded meaning, and when it comes to represent intervals, the parenthesis/brackets don't have to match. For example, (1, 2] means an ...
2
votes
1answer
456 views

org-mode setting to preserve spacing in SRC code, with verbatim latex output to pdf

Like this post, when I indent within a SRC code block in org-mode, 8 consecutive spaces are converted to a tab. Moreover, when I export to LaTeX 8 consecutive spaces are converted to tabs in the ...
1
vote
1answer
196 views

outline mode: Fold everything when loading file (specifically LaTeX mode)

I am using outline minor mode for LaTeX mode and would like emacs to automatically hide all section environments when opening a .tex file. How could I do that?
1
vote
0answers
49 views

AUCTeX folding: don't display error

Here is a common beamer slide: \begin{frame} \frametitle{Test} \begin{itemize} \item \textbf<1>{Item one} \item \textbf<2>{Item two} \end{itemize} \end{frame} This is what it ...
0
votes
1answer
112 views

AUCTeX set LaTeX-default-tabular-environment back to “tabular”

When I use the package tabularx in a tex file, if I insert table environment, the inner environment will be given as tabularx instead of tabular when the package tabularx is not used. Normally this ...
3
votes
1answer
664 views

Exporting Org in Landsacpe

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
1
vote
1answer
167 views

OrgMode, Is it possible to group options and pass them to LaTeX listings?

I have got an Org buffer like #+LaTeX_CLASS_OPTIONS: [a4paper] #+LATEX_HEADER: \usepackage{listings} * How to group ATTR_LATEX options? #+ATTR_LATEX: :options language=bash,basicstyle=\small\ttfamily,...
2
votes
2answers
1k views

OrgMode, how to pass options to LaTex listings?

When I export an Emacs OrgMode buffer like: #+LATEX_HEADER: \usepackage{listings} * How to pass options to LaTex listings? #+ATTR_LATEX: :options [numbers=left] #+BEGIN_SRC sh echo "hello world" #+...
4
votes
1answer
594 views

How to define LaTeX document class for org-mode export (other than default)?

I want to add to org-latex-classes new class, namely "exam" (as described here: https://www.sharelatex.com/templates/exams/exam), here's a preview of an example document beginning: \documentclass[...
2
votes
1answer
30 views

Prevent AucTeX from changing font within some tags

When I'm using AucTex, I tend to have problems with how the package formats the fonts I use within tags such as \textit{}. It appears that AucTeX wants to display an italicized version of the buffer's ...
3
votes
1answer
373 views

prettify-symbols-mode and multi-character replacements?

With prettify-symbols-mode it is possible to replace strings by a character, or a character composition, e.g. ;; \lambda → λ (push '("\\lambda" . ?λ) prettify-symbols-alist) Optionally, it allows ...
3
votes
0answers
50 views

Remove surrounding markup when prettifying symbols

Is there any way to get Emacs to hide surrounding markup when prettifying? That's a feature I really miss from Vim. For example, when editing LaTeX in Vim, the conceal feature can be made to replace ...
3
votes
1answer
345 views

Org Mode and cdlatex

I am trying to use org mode to take notes in my math classes. It is awesome that org mode is integrated with LaTeX and partially with cdlatex. However, in a pure math class, the board is covered with ...
1
vote
1answer
204 views

Font lock of inline code in org-mode?

When using org-mode as a front-end to LaTeX, I'm making heavy use of inline code like @@latex:\textit{something italic}@@. Right now, this is mainly displayed as normal text (with proportional font ...
1
vote
1answer
280 views

Is there a simple way to create a custom LaTeX environment template?

I'm writing lots of LaTeX beamer slides with AUCTeX. Each slide starts as follows: \begin{frame} \frametitle{\secname} \framesubtitle{\subsecname} \end{frame} Is there a simple way to bind this ...
3
votes
1answer
113 views

disable strange comment behavior in AUCTeX

When I have a commented line in my TeX file, eg some text that is not commented |%% here is a comment followed by more uncommented text (the | represents point), and I hit RET, point is moved past ...
2
votes
1answer
139 views

Org-mode Table, No export Latex column

Is there a way to have a column of a table not export, specifically in latex? I want to have an extra column for personal notes but when I export I don't want the table there.
3
votes
0answers
94 views

AUCTeX auto parse class file in same directory as TeX file

I have a class file hmcpset.cls which defines some macros and environments. If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...
3
votes
1answer
410 views

How to change the appearance of list bullets in LaTeX/beamer exports?

It's very neat that simple org-mode lists get exported to itemize (or enumerate) environments in LaTeX. Yet I would like also to be able to change the face of an \item bullet using square brackets, as ...
1
vote
1answer
335 views

Nested smart quotes in org-mode

I have found that the smart-quotes option of org-mode does not export properly the quotes when they are nested (single quotes inside double quotes), but only when they coincide at the start or the end ...
1
vote
0answers
49 views

Tab or auto completion of command while editing a .tex file

Seeing if there is a way for auto or tab complete specifically while editing a .tex file. For example \text.... (tab or autocomplete) in some editors will allow you to quickly choose from '\textbf'...
3
votes
1answer
114 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 ...
3
votes
0answers
56 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 ...
5
votes
2answers
611 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
265 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
744 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
326 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
261 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
343 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
2k 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
234 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(...
4
votes
1answer
903 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 ...
1
vote
0answers
274 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 ...
10
votes
2answers
988 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
399 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
112 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
178 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 ...
2
votes
1answer
134 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 ...
8
votes
1answer
2k 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
94 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
648 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
340 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
25 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
220 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
969 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
526 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 ...