7
votes
Inserting unicode symbol for rational numbers ℚ using TeX input method
The character set used is in the ISO 10646 encoding, which includes the following double stroked letters
C H N P Q R Z
and no others. Unfortunately the TeX input method only defines shortcuts for
...
6
votes
Accepted
Looking for a way to have LaTeX source code and its real-time rendering in side-by-side Emacs windows
latex-preview-pane on melpa can do that.
You can enable it in a file being edited with AUCTeX by M-x latex-preview-pane RET or for any LaTeX file opened in this mode by placing
(add-hook 'LaTeX-mode-...
5
votes
Accepted
Search and replace TeX \over with LaTeX \frac
The command my-replace-over-with-frac defined in the following Elisp code assumes that \over arguments are always delimited by braces.
There are more constructs that limit the arguments of \over like ...
4
votes
How to convert the emacs manual to org format?
Download the Emacs source from a GNU mirror and unpack it with tar xf.
Run makeinfo --docbook doc/emacs/emacs.texi -o emacs.docbook to create an intermediate DocBook.
Run pandoc --from docbook --to ...
3
votes
LaTeX mode: How to select "pdflatex" instead of "latex" for a file automatically?
One problem is the syntax: the value is a string so you need to say so by surrounding it with double quotes. However I could not get this to work with the latex-run-command variable. However tex-...
3
votes
How to type superscript Roman numeral in Emacs, e.g., by using TeX input method?
Apparently, you are asking for a way to insert a superscript Roman numerals as raw text.
Let's first find out whether such characters exist. Note that not all characters have a superscript or ...
3
votes
Accepted
AUCTeX: only use monospace for rendering macros?
You can make the face used for math and the so-called sedate face used for macro names inherit from fixed-pitch, and activate variable-pitch-mode in the LaTeX mode hook:
(set-face-attribute 'font-...
2
votes
Accepted
How to convert the emacs manual to org format?
...only keep what's important to remember...
This doesn't answer your question directly, but it suggests some alternatives you might want to consider.
If you use library Info+ then you can easily ...
2
votes
Emacs26 -- (1) view PDF with Okular; (2) compile TEX file silently
OK, so here is what I have done that seems to have resolved the issue. Let me add the disclaimer that I tried a lot of things, so it is possible that I did something else that affected the outcome, ...
2
votes
Accepted
LaTeX-environment inserts unwanted empty line
You can try the following lisp code.
Put it into your init file and restart emacs.
The function auctex+-insert-environment-avoid-empty-line kills the emtpy line after \end{...} if there is one.
(...
2
votes
Accepted
Switching » and « in tex-mode
Setting the variable font-latex-quotes to the symbol german should do the trick (unless this is too new for your emacs). The standard value, auto, should work too, however, if the document language ...
2
votes
Accepted
Compile Latex without Saving, and without Query
The following advice makes TeX-check-files believe that no buffer is modified in TeX-command-master:
(defun ad-TeX-command-master-wo-check (fun &rest args)
"Deactivates `buffer-modified-p` in `...
2
votes
Accepted
I have to enable `hl-todo-mode` in LaTeX-mode?
I had a similar problem with AUCTeX and fic-mode. It's caused by the style-hooks executed by AUCTeX after loading the file. You can enable your minor mode in the TeX-update-style-hook, see. this TeX ...
2
votes
AUCTeX: only use monospace for rendering macros?
Alternatively, you can use the mixed-pitch-mode package to do precisely this.
If you don't like the presets, you can remove/add faces to mixed-pitch-fixed-pitch-faces. For example, if you want to ...
2
votes
Tex indentation with TAB
Looks like I somehow managed to switch to Tex mode, instead of LaTex mode. Changing to LaTex mode is easy: M-x latex-mode. Many thanks to @vonbrand for telling me to check the mode!
1
vote
Accepted
Switch a TeX \macro and a script on a region of text
Use regexp replacement (M-x replace-regexp or C-M-%) to replace a pattern with holes.
Assuming that foo and bar do not themselves contain braces or line breaks, replace \\macro{\(.*?\)}_{\(.*?\)} by \\...
1
vote
Don't replace " in LaTeX Mode
You can try setting the following variables, which are defined in tex.el.
(setq TeX-open-quote "\""
TeX-close-quote "\"")
This allows me to enter " literally ...
1
vote
How to deal with "No TeX trees available; configure ‘TeX-tree-roots’" error?
It turns out that the issue is, as @ArashEsbati suggested, that Emacs is not able to find kpsewhich in GUI. It is a macOS specific issue, as discussed in this problem. We may set the environment PATH ...
1
vote
I have to enable `hl-todo-mode` in LaTeX-mode?
The question is: do you want hl-todo-mode to be turned on for every mode that is allowed by hl-todo-include-mode (by default that is prog-mode and text-mode) except for the excluded modes in hl-todo-...
1
vote
Add compiling option to tex engine
Add the following line to the list of local variables of the source file:
%%% TeX-command-extra-options: "-shell-escape"
Then you need to do M-x revert-buffer to make it applied.
AUCTeX 12.2: 4.1.3 ...
1
vote
How to open a PDF after running tex-file?
you can use the latex-preview-pane-mode included in the auctex package.
start it whenever you want to see the pdf generated, and then as you type latex and save it you see in the other pane the result
1
vote
Search strings, do a list with first occurences and use elements of that list
Your Test 1 code has no iteration. It does one search and then terminates. Here is a modification with an iteration:
(defun test ()
(interactive)
(save-excursion
(goto-char (point-min))
(...
1
vote
LaTeX mode: How to select "pdflatex" instead of "latex" for a file automatically?
The documentation does not match the implementation, or the implementation is broken:
The variable latex-run-command was changed from "latex" to "pdflatex", but command tex-file (found in latex-mode-...
1
vote
Search and replace TeX \over with LaTeX \frac
The following code replaces {1 \over {2 \over x^2}} with \frac{1}{\frac{2}{x^2}}.
(save-excursion
(goto-char (point-min))
(while (re-search-forward
"{\\([0-9]*\\)\s\\\\over\s{\\([0-9]*\\...
1
vote
Accepted
typesetting matrix output from maxima using org-mode
I found the following comment about loading the maxima package mactex-utilities on http://maxima-discuss.narkive.com/fenby68e/export-tex-format
Post by Paul RIVIER
I take this opportunity ...
1
vote
fr<TAB> is not inserting \frac{}{} in CDLaTeX
By typing C-c ? you can activate the CDLaTeX Help, in which you will see TEXT/MATH, TEXT/, or MATH. This means that the function or abbreviation can only activated in the text mode, math mode or both ...
1
vote
Accepted
Wait for (tex-file) to execute before go on with an elisp script
I found a solution to my problem here: https://stackoverflow.com/questions/23021875/wait-on-shell-command-to-finish-before-executing-another-elisp-command
I resolved by using:
(call-process-shell-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tex × 39latex × 23
auctex × 14
org-mode × 4
replace × 4
pdf × 3
input-method × 3
indentation × 2
font-lock × 2
unicode × 2
org-export × 1
init-file × 1
org-babel × 1
regular-expressions × 1
osx × 1
hooks × 1
search × 1
customize × 1
highlighting × 1
character-encoding × 1
tabs × 1
syntax-table × 1
todo × 1
info × 1
subprocess × 1