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.

0
votes
1answer
28 views

Latex compilation message in the echo area dissapears too soon

The outcome (success/error) of a Latex compilation (TeX-command-run-all) is printed in the echo area. Once you press a key, however, the echo area is cleared and the message is gone. I usually look at ...
0
votes
0answers
13 views

Proper syntax highlighting of $…$ in org-mode

I've put (setq org-highlight-latex-and-related '(latex script entities)) in my emacs config and yet $..$ that contain more than one symbol aren't highlighted properly: How to fix?
3
votes
1answer
449 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 ...
0
votes
0answers
37 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
0
votes
1answer
25 views

AUCTeX: Command 'reftex-cleveref-cref' not recognized before 'reftex-reference' is run

I have a strange behavior in AUCTeX with RefTeX: the command 'reftex-reference' (C-c )) needs to be run before the command 'reftex-cleveref-cref' gets recognized, on a newly-started emacs session. In ...
0
votes
0answers
24 views

Auctex doesn't show the preview pictures, while no error output

When using the preview command in the auctex editor on a latex file, no pictures are actually displayed, and no error output in the log. I checked that there does exists the "_region_.pdf" file, ...
3
votes
0answers
59 views

How to align latex tables when using macro folding

I have a latex table which contains some long commands like includegraphics or href which makes the table very nasty to read. To get a better view I fold all macros in the table and want to use ...
0
votes
0answers
29 views

org-mode table/matrix in latex export

I have an issue when exporting a table using *matrix environments. The align string appears in the cell content, whatever it is specified or not #+CAPTION: my matrix #+ATTR_LATEX: :mode displaymath :...
0
votes
1answer
91 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
0
votes
3answers
904 views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
0
votes
1answer
262 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 `...
0
votes
0answers
13 views

`(setq org-latex-listings 'minted)` file local

After trying quite a bit I could not find a way to set (setq org-latex-listings 'minted) file local. I tried putting it in a source block and as a file local variable, both did not work. The only ...
9
votes
2answers
696 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 ...
4
votes
1answer
705 views

How to set PDF export in polymode-mode to use xelatex engine?

Consider the below MWE of .Rmd file containing Arabic text which needs xelatex engine to be rendered by pandoc. As the documentation of the latter says putting this option would make it: --latex-...
0
votes
1answer
84 views

Custom verbatim environments/macros in AucTeX

Here's my MWE: \documentclass{article} \newenvironment{tscode}{}{} \def\tscode|#1|{} \begin{document} \tsinline|efwe| \begin{tscode} efihw$feiw$ \end{tscode} \end{document} % Local Variables: % ...
0
votes
1answer
249 views

Export handout with notes using org-mode and beamer

I'm having a lot of trouble getting a nice solution to this problem. I want to export a handout for a beamer presentation using org-mode. I can write a note using \note{sample note}, which creates a ...
0
votes
1answer
172 views

My emacs does not use the LaTeX-includegraphics-extensions option in my .emacs file

I tried to customize my .emacs file adding the options to the macro command \includegraphics. I use Emacs 25.3.1 on MacOS. My .emacsfile is as follows: (package-initialize) (custom-set-variables '(...
3
votes
1answer
239 views

Org-mode #+include: — ignore configuration lines from included file

How can I have org #+INCLUDE: ignore configurations from the included files? I'm thinking of cases where I don't want Latex Classes to be messed up. For example, if I have two org files book.org and ...
0
votes
1answer
41 views

Org-mode export to PDF not highlighting code blocks

I am trying to use org-mode export through LaTex to get a nice PDF of my documents, but I can't get it to show highlighted code blocks through Pygments. The following is a snapshot of my configuration....
0
votes
1answer
17 views

What does it mean in ebib when a field of an entry is preceeded with an asterisk '*'?

When viewing entries in a database in ebib, some fields of some entries are marked with an asterisk (*). In my case, these are usually year or month field. I don't see a rhyme or reason to the types ...
0
votes
0answers
20 views

Is it possible to export R code within Latex code in an org-mode document?

I am trying to evaluate R code within LaTeX code in an org-mode document. The objective is to export the org-mode document to a .tex document and, ultimately, to a nice pdf document. My problem is ...
3
votes
1answer
71 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
1
vote
2answers
36 views

Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
0
votes
0answers
16 views

How to pass noweb variables to latex blocks

I need to tangle a LaTeχ file from code blocks in an org file. How do I pass variables to the SRC block? In theory I should use :var var1=value, but is there any way to reference var1 in the LaTeχ ...
1
vote
1answer
200 views

Error adding LaTeX class to org-latex-classes

I am trying to register the jfm LaTeX class (Journal of Fluid Mechanics) with the Org LaTeX export backend. After looking around, I have put the following elisp snippet into my .emacs (with-eval-...
2
votes
1answer
142 views

Add new header variable in org-mode document, and use it in (LaTeX) export

I'm using a memorandum specific style when I do LaTeX export of an org-mode document. It has some fields that I'd like to specify/fill in in a manner similar to the way AUTHOR, TITLE, DATE are ...
0
votes
1answer
25 views

What's the org-mode syntax that tells LaTeX to place a float /here/

My images are floating much more than I'd like. I'd like to force them to be where I tell them to be more like \begin{figure}[!htb] \centering \includegraphics[width=0.75\textwidth, ...
0
votes
2answers
103 views

Emacs/LaTeX displays _char as a subscript in the editor

Emacs seems to be doing some WYSIWYG with _, as if it were in math mode (in the picture, _ is followed by subscript 'o', inside the include statement. It shouldn't. I'm using Emacs/Tex out of the box, ...
2
votes
1answer
60 views

Manual indentation in LaTeX mode

I'm new to Emacs, and dislike the default indentation in LaTeX mode. I want the indentation to do the following: insert a \t character (not spaces) be completely manual (I want to have to press Tab ...
0
votes
0answers
22 views

How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
0
votes
1answer
76 views

Creating table of content with the package titletoc in Org Mode for LaTex export produces strange lines of text

I use the LaTeX package titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with #+TOC: headlines 1 local But in the PDF file there is for example the ...
0
votes
1answer
77 views

opening brace alignment/indentation problem in LaTeX mode

I have an alignment/indentation problem in LaTeX mode. Every time I begin a line with an opening brace and I hit <TAB> or run an indentation command on the region, the brace becomes aligned with ...
0
votes
1answer
77 views

LaTeX mode: How to select “pdflatex” instead of “latex” for a file automatically?

I have a LaTeX file using lots of PDF figures (mostly because converting figures to EPS is a waste of disk space), so it requires to use pdflatex. I added there lines to the end of my main file: %% ...
1
vote
0answers
118 views

Letter in .org mode

.Org mode is very good in writing the outlined text . I use it routinely. But I have to fall back on wordpad or latex when I have to write a letter. Is there any available templates for letter using ...
5
votes
1answer
351 views

LaTeX closing $ signs makes cursor jump

I'm in LaTeX/PS mode and whenever I close my $ math statements the cursor jumps to the first $ and back to the closing $. How can I disable this?
1
vote
2answers
38 views

Include special (LaTeX) symbols in verbatim/code?

I wonder if it is possible to include special symbols within verbatim delimiters, e.g. =\alpha 6=, although displayed correctly in a prettified buffer, actually exports the literal words \alpha 6 ...
1
vote
0answers
49 views

How to (mostly) get rid of doc-view?

Since I moved to emacs 25 (25.3.2 at the moment) in every context (org-mode, gnus, latex, browsing url, direct access to file) I access pdf-files in emacs, they are displayed in doc-view. I basically ...
13
votes
3answers
5k views

Label and reference LaTeX equations in org-mode

This is similar to Org export to latex and HTML references, but for equations. I like to use LaTeX math snippets in my org-files, as in * The Quadratic Equation The roots of $ax^2 + bx + c$ are ...
2
votes
1answer
157 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 ...
5
votes
2answers
406 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
29 views

Indentation broken with all \input{files.tex}

Everything is in the title : a master.tex file contains several \input{subfileXX.tex} ; the indentation works in the master file but not in the subfiles. The TAB key acts like in LibreOffice.
1
vote
1answer
54 views

comment causes [package error]

I want to export an org file containing a tikz diagram to pdf. I've read the manual. This is the most minimal example I could come up with: #+LATEX_HEADER: \usepackage{tikz} #+begin_src emacs-lisp :...
4
votes
3answers
72 views

Search and replace TeX \over with LaTeX \frac

I have a source file that was originally coded in TeX (well, this is actually a conTeXt file). A fraction like 1/(2/x^2) is coded as {1 \over {2 \over x^2}}. I'd like to convert to LaTeX syntax, that ...
0
votes
2answers
130 views

Add dotted line in org-mode for export to latex and ODT

I can get the desired result consumable1........................................month/year consumable2........................................month/year consumable3.....................................
2
votes
1answer
23 views

Add expressions to LaTeX-electric-left-right-brace

I would want to "electrically" insert | or \right| when typing | or \left| in AucTeX and can't quite figure out how to add characters to AucTex-electric. A list of already defined completions can be ...
17
votes
2answers
3k views

how to setup Knitr workflow in Emacs?

RStudio provides a one-button way for produce PDF file from LaTeX+R source with Knitr. It looks great for doing reproducible research. And I am trying to configure my Emacs for: at left buffer LaTeX+...
1
vote
1answer
42 views

Compile Latex without Saving, and without Query

I know that I can disable the save query that comes after running TeX-run-TeX with LaTeX, TeX or actually probably any other NAME parameter (this is what happens when you invoke TeX-command-master, ...
2
votes
0answers
62 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
0
votes
1answer
24 views

Org-mode not exporting frames correctly using beamer

I'm writing a presentation using Org-mode and beamer. The problem is that all the frames are putted into a single one. I have the following code: #+TITLE: \textbf{example} #+AUTHOR: \large{sdjfioa} #+...
0
votes
1answer
24 views

How to get error messages for org-preview-latex-fragment?

(This took a long time to research, so I'm answering my own question, hoping to save others some time) Let's say I have a file like this: one by two is $\froc1{2}$ When I run M-x org-preview-latex-...