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.

1
vote
1answer
172 views

How to separate normal text from the frame block?

I just want to make the text appear separate from the above frame box in beamer export C-c C-e l O as in the MWE below. MWE: #+TITLE: Frame or Text? #+AUTHOR: Casual Author #+DATE: #+OPTIONS: H:2 ...
1
vote
1answer
137 views

What is the easiest way to detect if an `\includegraphics{*.eps}` has been used in a `TeX` document?

What is the easiest way to detect if one has used an \includegraphics{*.eps} in a tex document? (motivation: When I have used this I would like to not use pdflatex and instead use the combination of ...
2
votes
2answers
241 views

Replacing string in a region and conditional replace

My goal is to write a simple function that can do the following: Staring with an expression that looks like $$ x = y $$ $$ y = z $$ $$ z = x $$ (There can more lines of such equations) I want to ...
2
votes
0answers
191 views

Cleanup org-mode export intermediary directories

I am trying to delete extraneous files and directories generated during the export of a latex file from orgmode. I followed the instructions in a similarly named stackexchange post to delete extra ...
2
votes
1answer
933 views

Defining custom latex class for org-mode export

I an trying to define a custom latex class, I will use it to export my org files to PDF. I found information about this on internet and I tried to implement the proposed solution, I wrote this in my ....
1
vote
1answer
117 views

Basic AUCTeX Setup Issue in macOS and Linux

I'm trying to get AUCTeX up and running in macOS and linux and have followed the steps here. (The site has a separate guide for GNU/Linux.) My problem remains invariant between OSes, so I'm asking ...
8
votes
4answers
423 views

How to replace matching parentheses?

I write (and rewrite) a lot of mathematical formulas in LaTeX with Emacs. I frequently run into situations where I want to change a pair of matching parentheses, to improve readability. My Emacs is ...
1
vote
1answer
250 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
46 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
69 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
106 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
340 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
137 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
48 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
104 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
474 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
142 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,...
1
vote
2answers
812 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
515 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
29 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 ...
2
votes
1answer
288 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 ...
3
votes
0answers
45 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
279 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
196 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
249 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
104 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
119 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
83 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
304 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
252 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
44 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
99 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
53 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
430 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
210 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
509 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
282 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
218 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
272 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
211 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(...
3
votes
1answer
702 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
228 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 ...
9
votes
2answers
724 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
294 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
101 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
147 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
117 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
84 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 ...