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
75 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
304 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
39 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
38 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
222 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
94 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
97 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
539 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 #+...
0
votes
0answers
49 views

Minimal example of aspell failing to find simple spelling mistake

The following is a minimal example of LaTeX code that breaks the spell checker: \caption{5\% \label{_fred}} \autoref{alice} envolope When I spell-check this it fails to notice that 'envolope' is ...
1
vote
1answer
100 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
48 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 ...
1
vote
0answers
68 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
230 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
416 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
183 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
222 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
233 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 ...
5
votes
1answer
687 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
76 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 ...
1
vote
0answers
132 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
431 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
412 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
876 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
349 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
717 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
110 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
697 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
151 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
135 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
216 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
404 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
212 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
246 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
79 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
120 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 ...
2
votes
1answer
75 views

Ways to automatically insert a space after a LaTeX command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter

With AucTeX, one can insert many LaTeX commands using shortcuts. For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to ...
2
votes
1answer
81 views

Taking action depending on the presence of particular message in the echo area

I have my proper function to run latex, say my-tex. Sometimes one should run latex two times to get references right. A message like below in the echo area appears to tell this. How to identify ...
1
vote
0answers
791 views

Spacemacs Latex: how to make view command tile vertically with emacs window?

I'm using Spacemacs Latex layer, which uses Auctex. If press space m v for the first time, the document viewer opens up in full screen over my emacs window. After, it only updates the window and keeps ...
2
votes
1answer
58 views

Make org-preview-latex-fragment stick

If I invoke org-preview-latex-fragment under one region, it destroys my previews in all other regions. Is there a way to make latex previews stick, so that previews are only removed when running C-c C-...
2
votes
2answers
443 views

Org mode export of intraperiodic spaces

In LaTeX, I use extra spacing to separate sentences from each other. This may for instance be achieved by \spaceskip=.33333em plus .16667em minus .083333em \xspaceskip=.8em plus .4em minus .13333em ...
2
votes
0answers
59 views

How to protect LaTeX comment lines from indentation?

When I type <TAB> in a LaTeX file anywhere on a comment line, the comment symbol is moved to the beginning of the previous non-blank line. This also occurs with M-x indent-region. Is there a ...
2
votes
1answer
303 views

Symbol’s value as variable is void: last-command-char when trying to insert bracket

I am using aquamacs and latex mode, 'Symbol’s value as variable is void: last-command-char when trying to insert bracket' occurs when I am trying to insert a bracket. How could I do, thank you
1
vote
1answer
435 views

How to set PATH variable to latex, so that I can use latex layer? [closed]

I installed the latest version of MacTex, and I am sure the latex is in the Libray/TeX/texbin/, I just don't know how to set the PATH variable, also I cannot install the AUCtex, I assume these two are ...
6
votes
1answer
177 views

Set image width globally for LaTeX export

I write my research notes in org-mode, and I'd like to avoid writing #+ATTR_LaTeX: :width 5cm :placement [!htpb] right before all of my figures, to save some time. A possible solution might be to make ...
0
votes
1answer
194 views

org-ref completion of labels inside latex blocks

I recently started using org-mode to take academic notes, so I use LaTeX blocks (#+BEGIN_LaTeX) to insert LaTeX code using the special buffer that gives me code completion via AuCTeX. I also insert ...
1
vote
0answers
48 views

org beamer export vs < symbol

I'm using org mode beamer export. I have an itemized list I want an item to start with the text "<7ms" It seems to be almost impossible to quote the "<" character so that the org parser doesn'...
5
votes
1answer
242 views

Exporting Devanagarai text from org-mode to LaTeX?

I have a .tex file with text in Devanagari script. I am able to convert to pdf using XeLaTeX outside of Emacs without any problem. However, when I try it within Emacs, the resulting pdf does not have ...
9
votes
1answer
2k views

How do I limit the width of a table or columns in org-mode PDF export?

I'd like to format a table with a wide column nicely in PDF export from org-mode. Ideally it would be with a wrap on that column, but I can deal with a manual character or fraction of \textwidth for ...
0
votes
1answer
145 views

How to perform a search for a string inside math environments in a tex/latex document

I have a long tex document and I would like to perform a search for finding some string inside math environments. Is there a search function already provided by auctex to do this? Other solutions are ...