Questions tagged [emacs]

GNU Emacs is an extensible, customizable text editor written primarily in Emacs Lisp.

GNU Emacs is an extensible, customizable text editor. Begun in the mid-1970s as TECO, it was re-written using C and Emacs Lisp to provide portability and an extendable interface. It continues to be actively developed today.

Emacs provides context-sensitive editing modes with syntax coloring, is self documenting, has full Unicode support and extensions to do most anything. Die-hard Emacs users do most everything from within Emacs: write code, compile, run, debug, read/compose email, browse the web, do project planning, etc.

For writing TeX and friends files there is a . Also has support for embedded LaTeX and can export to LaTeX.

For learning Emacs to do work with (La)TeX see the following questions:

Emacs tutorial

  • Basic tutorial in emacs: C-h t (type Ctrl + h then t) in emacs

Useful Links

Wisdom from the stack

646 questions
12
votes
4 answers

Annoying emacs autoformatting in LaTeX mode

Typing, for example, a^3 emacs would automatically change the source (!) to a³ This causes all sorts of problems with spacing, double superscripts, etc. How can I turn off any such WYSIWYG behaviour? Here is a LaTeX example (copy-paste from…
Martin
  • 325
10
votes
4 answers

Emacs is not recognizing files as latex and going into latex-mode?

I understand that the tex-mode command of Emacs is supposed to try to identify whether a file is TeX, LaTeX or some other TeX-variant when opening a .tex file, and switch automatically into the appropriate mode. But mine is not doing this despite my…
ana
  • 101
9
votes
1 answer

How to configure flyspell to ignore the content of a given environment?

When using flyspell in emacs, it can be useful to configure flyspell to ignore the contents of certain environments, e.g. tikzcd or tikzpicture. For example, in the document below one would like to flyspell to ignore the word "asdf" inside the…
Gustavo
  • 1,198
8
votes
3 answers

Emacs "built-in output viewer"

I'm learning Emacs and I was reading the mighty LaTeX Editors/IDEs, where it says that Emacs has a "built-in output viewer". However I can't seem to find it. According to my understanding, a "built-in output viewer" is a previewer like the one we…
skey
  • 203
8
votes
1 answer

Subscript font size in Emacs TeX mode

In Emacs 23 TeX mode, subscripts and superscripts are displayed in smaller fonts. How can I configure Emacs to turn off this feature and use the same font size for all input?
John D. Cook
  • 3,331
8
votes
1 answer

Telling Emacs to mark \iffalse...\fi blocks?

Do you know a simple way to tell GNU Emacs to recognize LaTeX \iffalse ... \fi blocks and to display them in a special way, e.g., using a lighter font, or using font-lock-comment-face. Is there a LaTeX style package that already knows how to do…
phs
  • 203
7
votes
1 answer

How to specify default contents for a new .tex file in Emacs?

I would like have Emacs copy, by default, the contents of some defined file in the buffer of any non-existent .tex file I visit. I am using AUCTeX and I believe that would be feasible by editing the file or variable that is responsible for appending…
Sweeters
  • 356
6
votes
1 answer

change default emacs view command

The C-c C-v command in emacs. Sometimes it asks what viewer to use, and sometimes it just shows the document. If possible (within reasonable effort), I'd like it to never ask, just show. Also, where is the default view tool command defined? I'd like…
Emanuel Berg
  • 1,827
5
votes
2 answers

Using math symbols within lstlisting

I am using $ and _ symbols within lstlisting environment and the output pdf looks OK but I am having an issue within emacs editor where the occurrence of $ changes the colour of the whole document and the occurrence of _ (after $) is also producing…
Shahzad
  • 1,297
  • 14
  • 19
4
votes
1 answer

Modifying the font head and size inside \section in emacs editor

I am running Emacs 23 with AUCTeX for editing LaTeX source files. I'd like to be able to customise the font head and size of the section name. To make things absolutely clear, the font inside the \section{} command, becomes slightly bigger in size…
kan
  • 4,545
3
votes
0 answers

Emacs - Predictive mode

I am trying to setup the Predictive Mode of Emacs and to use it with the LaTeX-mode. I have one problem: as soon as LaTeX-mode is loaded, it loads "auto-overlays" and it takes up to two minutes before I can begin to work, which is very annoying. I…
Totor
  • 31
3
votes
3 answers

Emacs as the latex editor

I am using Emacs for editing my latex document. Is there any way to make Emacs as WYSIWYG editor so that the editing will be easier. I need to reduce the number of time I compile the document also. I was using Texmaker before for editing the…
karu
  • 440
3
votes
2 answers

Do not ask for optional argument when autocompleting

I have Emacs 24.4.1 with the following packages so to get autocompletion: yasnippet auto-complete auto-complete-auctex (and of course AUCTeX) After I type \usep and then press TAB, the string is autocompleted to…
skey
  • 203
3
votes
2 answers

Setting Emacs TeX-engine locally does not work

I'd like to follow the advice from @egreg in his answer to the question AUCTeX and XeTeX. However the given code does not work for me. I have: \documentclass{article} \usepackage{fontspec} \begin{document} \section{title} test \end{document} %%%…
skey
  • 203
3
votes
0 answers

How to be productive with latex in Emacs?

I am using the default latex mode for Emacs. I haven't tried Auctex yet. I am making mistakes here and there and spending a lot of time, while switching between editing tex files in emacs and viewing pdf files in evince for checking…
Tim
  • 5,763
1
2