Questions tagged [tex-mode]

The basic major mode for (La)TeX included in GNU Emacs. Not to be confused with AUCTeX, a common third-party package.

TeX mode is a family of major modes to edit files for the TeX document processing system, including latex-mode for LaTeX files. It is included in GNU Emacs.

Use this tag for questions about the TeX Mode family (plain-tex-mode, latex-mode, slitex-mode, doctex-mode). For questions about TeX documents in general, see . For questions about LaTeX documents in general, see .

An alternative to TeX mode is AUCTeX , a third-party package (included in XEmacs) with more advanced features including syntax highlighting and completion of macros in third-party packages, better support for complex compilations, preview of mathematics, etc.

7 questions
5
votes
1 answer

Recognize LaTeX partial files (with no preamble) as LaTeX

I installed auto-complete and also auto-complete-latex so to be able to use it with LaTeX files. Because in a document I use an external file with the preamble commands in it, Emacs recognises only the external one as a LaTeX file and the other is…
Adam
  • 2,407
  • 2
  • 21
  • 38
3
votes
3 answers

Disable tex-mode's auto tex-insert-quote functionaliy

So basically, for reasons unknown we don't use regular LaTeX style quotes at my company, instead just using regular double quotes. However, tex-mode in emacs automatically substitutes the " key for ``''. I can't find any way of disabling this. I've…
ryan27968
  • 133
  • 2
3
votes
1 answer

Adding a rule to color text

I'd like to add a rule to supersede a tex mode. I'd like to colour text between two strings over multiple lines in a similar way that the character % is used as a comment character and so colours (greys out) everything following it on the same line,…
Zak
  • 31
  • 1
2
votes
2 answers

Typing two quote characters in a LaTeX document?

I'm working with a LaTeX document. I want to type "" since I need this for german.sty in LaTeX. Starting some time ago, Emacs thinks this is not a good idea. I do not agree. Right now I have to write " SPC " and then manually remove the blank…
Stefan Müller
  • 303
  • 3
  • 8
2
votes
2 answers

Adding a command to latex-match-warning-keywords for tex-mode

I want the commands \largerpage and \addlines to be displayed in red (font-latex-match-warning-keywords) but cannot figure out how to do this. I found several posts, but non of this seems to work. This is what I tried: ;;…
Stefan Müller
  • 303
  • 3
  • 8
1
vote
1 answer

How can I bring tex-mode's sexp navigation to AucTeX?

I generally prefer AucTeX over the built-in tex-mode, but one thing that is much better in tex-mode is navigation by s-expression. Namely, in tex-mode, forward-sexp (C-M-f) treats LaTeX environments as s-expressions; with the point right before…
Omar
  • 4,732
  • 1
  • 17
  • 32
1
vote
0 answers

Navigation ignores comment blocks in (La)TeX mode

I sometimes leave large blocks of comments in LaTeX source code: Text text text text. % Comments comments comments comments. % Six lines of comments. % More comments. % Separate comment block. % Eight lines of comments. % More comments. More…
Tom Zych
  • 111
  • 3