Stack Exchange Network

Stack Exchange network consists of 174 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 [tex]

Working with TeX documents

3
votes
2answers
79 views

How to convert the emacs manual to org format?

I like to read the Emacs manual on a hard copy but I would like to have a copy in org format to kill parts that I have understood and so to only keep what's important to remember (titles, functions ...
0
votes
1answer
51 views

Emacs26 — (1) view PDF with Okular; (2) compile TEX file silently

I am running Emacs 26 built with GTK toolkit. AUCTeX has been successfully installed. 1) How to force Emacs to open an Okular session to view the PDF file, instead of opening another window within ...
3
votes
1answer
22 views

LaTeX-environment inserts unwanted empty line

When I'm editing a LaTeX document and I'm using C-c C-e for LaTeX-environment, I often get a blank line after the newly-inserted environment. This is never what I want and sometimes even plainly ...
1
vote
0answers
88 views

Match data clobbered by buffer modification hooks in tex files

I run into the error Match data clobbered by buffer modification hooks when editing tex files. The way to reproduce is as follows. In terminal, cd mkdir tèst/ cd tèst/ touch test.tex echo "\input ./...
0
votes
0answers
85 views

TeX input mode and subscript

I'm a bit lost on what I can use the TeX input mode for. What I'd like to achieve is a mathematical notation like ∑ᵢ₌₁ᴺ ∑ⱼ₌₁ᴹ in pure UTF text and it seems to mostly work, i.e. \sum _ i _ = _ 1 works, ...
1
vote
1answer
38 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 ...
0
votes
1answer
117 views

typesetting matrix output from maxima using org-mode

How can I make org-mode typeset matrices output from maxima? For example, the following code produces tex output that display #+BEGIN_SRC maxima :results raw m: matrix([1, 2], [3, 4]); tex(m); #+...
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?
1
vote
0answers
104 views

Distinct compile defaults for .tex and .Rnw files

I would like the default compile command for .tex files to be different than the default for .Rnw (knitr) files. Here is a minimal example to illustrate my current .emacs file: (defvar TeX-command-...
1
vote
1answer
47 views

Wait for (tex-file) to execute before go on with an elisp script

I wrote a script that reads the .aux and .log files after some replacements in the ·tex file (LaTeX). To achieve this i did: (tex-file) (read-string "Wait to tex-file to complete, then press ENTER:") ...
5
votes
1answer
152 views

Inserting unicode symbol for rational numbers ℚ using TeX input method

Hello good people of Emacs! To insert unicode math symbols I use TeX input method. This way I get unicode character ℝ by typing \Bbb{R}, ℕ by typing \Bbb{N}, ℤ by typing \Bbb{Z}, etc... I'm unable ...
1
vote
0answers
76 views

Is it possible in org-mode to export a * heading to a \begin{heading} \end{heading} block construct?

I'm trying to export a heading as a block construct. Something like * heading Content * Another Heading gets exported to \begin{heading} Content \end{heading} \section{Another Heading} Using ...
0
votes
1answer
78 views

How to run iso-tex2iso in batch mode?

Main question: In order spell checkers can apply, M-x iso-tex2iso is nice for converting TeX-encoded files to e.g. UTF-8 encoded ones. But, in case a numerous files to convert, running this command in ...
12
votes
1answer
166 views

Auto-Indenting \if statements with AUCTeX

The current AUCTeX behaviour for primitive tex code involving if-like statements is to indent the conditional statement at the same level as the surrounding condition. I.e. code such as \if@...
9
votes
2answers
2k views

How to call pdflatex under TeX-PDF-mode?

I am already in TeX-PDF-mode. When C-c C-c and type in pdflatex, it doesn't run. How can I run pdflatex in TeX-PDF-mode? Note: I don't change my emacs configuration file. Thanks.
14
votes
1answer
2k views

How can I preview TeX formulas inline in arbitrary modes?

How can I get TeX previews inside modes other than AUCTeX or org-mode? I'd love to see TeX equations in jabber, erc and markdown. If I ever switch to Emacs for email, I'd presumably like to see ...