Questions tagged [auctex]

is for AUCTeX package that extends basic `tex-mode` Emacs provides for editing TeX files. AUCTeX integrates many built-in and external macro packages for creating, editing, printing, publishing, and managing multilingual TeX documents. AUCTeX works with several TeX compilers, extensions, and dialects of TeX and LaTeX. AUCTeX supports customizable bibliographies, indexes, and tables of content.

Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

inludegraphics macro does not ask for width etc. but only for llx, lly

Using GNU Emacs 26.3, I have a tex file with \usepackage{graphicx} and AUCTeX enabled. However, inserting a includegraphics macro does not prompt for the optional arguments defined in graphicx.el ...
0 votes
1 answer
89 views

How can I prevent `pdflatex` logs to created?

Following solution is used as base to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((...
0 votes
1 answer
44 views

AUCTeX error 127

I'm trying to call AUCTeX from Emacs and I'm now getting the following error (quote marks changed slightly to get code block below to work): Running 'TeX' on 'simple' with ''pdf/Users/myname/bin/...
0 votes
2 answers
80 views

Tell AUCTeX to open .PDFs with pdf-tools

I am trying to set pdf-tools as my default pdf viewer when using AUCTeX. I found some guidance elsewhere on StackExchange but it doesn't get me to a solution. As per the thread highlighted, I have the ...
3 votes
1 answer
527 views

AUCTeX does not compile if the local variable is already set

I'm basically want to ask the question that was asked in Tex Stackexchange but was considered off-topic there (this is the link to the question). When I am trying to compile (using the command C-c C-...
3 votes
1 answer
54 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
1 vote
3 answers
2k views

Spelling check in Emacs 25.2 on Mac OS Sierra

I am new to Emacs and I have a hard time to have spelling check when I use Emacs+AUCTex. Here is a list of what I have done so far: I read on a post saying that I should not install Flyspell. So I ...
1 vote
1 answer
41 views

How can I disable font-latex-math-face?

In AUCTex there is font-latex-math-face which makes color of string in between $ and $ as green. Example output: or: Is is possible to disable/delete font-latex-math-face, where the green color won'...
0 votes
1 answer
29 views

How to tell emacs how to find TeX compiler?

I am trying to compile a .tex file using AUCTeX on Emacs 27.2. When I run the LaTeX command (via the menu bar) I get the following message: TeX-command: ERROR: AUCTeX cannot find a working TeX ...
2 votes
1 answer
2k views

How to get live preview in real time while editing latex source code using AUCTeX?

I'm using Emacs (26.1, build 1, i686-w64-mingw32) on the latest version of Windows 10. Im looking to turn my Emacs into a LaTeX IDE that has a 'live preview' functionality. Ideally I would like my ...
2 votes
1 answer
48 views

AUCTeX + CDLaTeX pair insertion

I think CDLaTeX might be causing problems with this. If I disable electric-pair-mode and use AUCteX’s built-in completion, auto-completion of pairs such as \[\] works as expected unless I have CDLaTeX ...
1 vote
0 answers
124 views

flycheck & auctex: Hide an specific warning

When using Auctex with Flycheck (Chktex) I get hundreds of warnings of the kind some.tex 321 8 warning 3 You should enclose the previous parenthesis with `{}'. (tex-chktex) How I can disable ...
3 votes
2 answers
353 views

Indentation with cdlatex

I am using Emacs 25.1.1 on Windows 10 OS with AUCTeX and the CDLaTeX minor mode. CDLaTeX has a very useful feature of command input, which is typing a shortcut followed by TAB to expand that shortcut. ...
0 votes
1 answer
28 views

AucTex: Output PDF Buffer Location

When hitting C-c C-a to display a PDF, the buffer opens automatically below the TeX source code. How can I force it to open on the right side? I am currently using shackle to manually control the ...
8 votes
1 answer
776 views

Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?

I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here: The red marks are the "&" characters which separate the columns of the table. ...
1 vote
0 answers
134 views

Broken Latex Layer in Spacemacs

I write LaTeX using Spacemacs, and suddenly (I think ever since is updated all of my packages) running latex/build fails with: TeX-command-expand: Wrong type argument: stringp, nil Below is the ...
0 votes
1 answer
309 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-...
1 vote
3 answers
2k 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
1 answer
33 views

How can I ignore chktex warnings based on their number?

I keep getting following warning message: Wrong length of dash may have been used. [8] from chktex. How can I ignore this warning message that has number 8. From command call: I can do chktex -n8 , ...
2 votes
2 answers
218 views

Restrict available command options in AUCTeX

I'm using AUCTeX (v.11.89.6 with Emacs 25.1). I have no problems with it, just a small nuisance. Whenever I use TeX-insert-macro (C-c C-m) I get many options I never use. For instance, when I wish to ...
0 votes
1 answer
28 views

don't insert curly braces in latex-math-mode

In latex-math-mode, when using any macro, curly braces are inserted. for example using `-g inserts \gamma{}. I would like it to produce only \gamma. I couln't find a way to do this.
0 votes
1 answer
171 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
1 answer
58 views

AppleScript wrapper for pdf viewer fails to complete

My setup is 2020 MacBook Pro M1 (Apple silicon), Big Sur 11.2.2, MacPorts, emacs-mac-app, AucTeX, and PDF Expert. I am trying to get C-c C-c (View) to open PDF Expert at the right page. I'm almost ...
3 votes
1 answer
93 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{...
0 votes
0 answers
41 views

Disable header and footer in latex previews

When I write latex to be included in org mode it includes the header styling which is to be applied to the pdf export only. This makes it difficult to use org mode with latex previews. Is there any ...
3 votes
2 answers
398 views

Fold entire preamble in AUCTeX

Can AUCTeX be configured to fold the entire LaTeX preamble (i.e., hide everything before \begin{document})? For example, it would be nice if the the following document: \documentclass[letter,11pt]{...
1 vote
1 answer
612 views

AUCTeX not loading its TeX-latex-mode

I have emacs 25.2.2 and installed through M-x list-packages AUCTeX 12.1.1. Opening any LaTeX file gives the native latex mode, so it seems through C-h m: LaTeX/P mode defined in ‘tex-mode.el’: :...
2 votes
1 answer
373 views

AUCTeX Preview rung error

I'm new to emacs and AUCTeX and I'm having a problem with document preview (C-c C-p C-d). My LaTeX file is the following \documentclass[11pt, a4paper]{report} \usepackage{cite} \begin{document} \...
0 votes
1 answer
44 views

Left-align equation previews (Auctex)

I would like to left-align equations in Auctex's preview's generated by preview-latex. I imagine that this would involve putting fleqn in the documentclass options in whatever latex file things are ...
0 votes
1 answer
33 views

How can I compile current LaTeX buffer without showing `Master file:` line in the minibuffer

Following solution is used to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-...
0 votes
0 answers
17 views

AucTeX + Skim, forward search now highlights in black instead of yellow

I use AucTeX in Emacs, linked with Skim, so that I can use forward search. In the past, when I hit C-c C-a from within the latex file, the file is compiled and the pdf file in Skim highlights the ...
0 votes
0 answers
16 views

How to make TeX-fold-mode use the correct font face for folded macro argument when inside a tex environment in a org file?

Enabling TeX-fold-mode while using Org-mode produces great results in general. I do so because I have many folding settings for latex files and would like to see my org document folded in the same way ...
1 vote
3 answers
126 views

How can I align indents for condition statements in AucTex algorithm section?

If possible, I want to align condition statements like: \If, \Else, \For statements in between \begin{algorithmic} ... \end{algorithmic} section. example: \begin{algorithmic}[1] \For{a for statement} ...
9 votes
3 answers
576 views

Indentation in square brackets

Yet another question about indentation in AUCTeX... I would like to be able to indent content inside square brackets [...]. It would be useful for tikz option lists, for example, or trees drawn using ...
5 votes
1 answer
96 views

Looking for a way to have LaTeX source code and its real-time rendering in side-by-side Emacs windows

I am looking for a way to use Emacs as a LaTeX editor that couples a persistent LaTeX source window with an adjacent real-time rendered view of the LaTeX-encoded content, similar to what is available ...
0 votes
1 answer
39 views

LaTeX code output by Calc wrong

If I enable calc-embedded mode (C-x * e) in a LaTeX document (latex mode by default) when the point is in the math environment of the document below: \documentclass{article} \usepackage{amsmath} \...
0 votes
1 answer
63 views

How can I go back to Texinfo native mode

I have a early-init.el file with: (add-to-list 'load-path "~/.emacs.d/el-get/el-get") (unless (require 'el-get nil 'noerror) (require 'package) (add-to-list 'package-archives ...
0 votes
1 answer
39 views

fontify autoref and nameref in latex-mode buffers

When I'm in a .tex file, press M-: and run (font-latex-add-keywords '(("autoref" "*{") ("Autoref" "{") ("nameref" "*{")) ...
1 vote
1 answer
127 views

Run latexmk inside z shell instead of shell

Problem I am using latexkm to compile .tex documents, and recently I got this error while compiling: Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5'' Rc ...
0 votes
1 answer
47 views

Toggle TeX-fold-mode using a key binding

How can I toggle the auctex facility TeX-fold-mode using C-c +? I have (add-hook 'tex-mode-hook (lambda () (local-set-key (kbd "C-c +") 'TeX-fold-mode))) But this is ...
0 votes
0 answers
35 views

AucTex C-c KEY-combo no longer works

Solved: I found another Emacs user who have had the same exact same issue. The solution is to remove the installed AucTex and reinstall it. This has fixed the issue. I have changed my Emacs ...
3 votes
1 answer
88 views

Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
0 votes
0 answers
33 views

AUCTeX deleting pairs

I'm trying to get deletion of pairs (e.g. (), [], \(\), \left(\right), etc.) to work more automatically, but I'm running into problems with each. If I have electric-pair-mode enabled, I can press ...
5 votes
2 answers
2k views

multiple files in LaTeX?

I currently use emacs to write and compile LaTeX files using the key combo: C-c C-f. Now this is all well and good, but now I'm working on a much bigger project that is divided into many chapters. ...
4 votes
1 answer
170 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 ...
0 votes
0 answers
42 views

Why the same font size for different latex sections with Auctex when `font-latex-fontify-sectioning` is a float?

As far as I understand, setting font-latex-fontify-sectioning to a number larger than 1.0 should make it so that the titles of sections of different levels have different sizes. However, even though I ...
1 vote
1 answer
30 views

How do I prevent Auctex from inserting the initial `\item` in an item-like environment?

Is there a way to customize Auctex, and in particular LaTeX-env-item so that it does not automatically insert the first \item, but still have working LaTeX-insert-item so that C-c C-j works? Looking ...
0 votes
1 answer
72 views

How can I make `font-latex-sedate-face` have precedence over `font-latex-math-face`?

In LaTeX mode, the face font-latex-sedate-face highlights commands of the form \foo which are not known by AUCTeX. I'd like commands of the form \foo which appear inside a math environment such as \(\...
1 vote
3 answers
461 views

How do I set latex face attributes in init.el?

When I try to put (set-face-attribute 'font-latex-italic-face nil :foreground green) (set-face-attribute 'font-latex-math-face nil :foreground orange) (set-face-attribute 'font-latex-script-char-...
2 votes
1 answer
1k 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 ...

1
2 3 4 5
10