Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      . . .
      Changing Text
         Inserting and Deleting
         Killing Text
         Clipboard Access
         . . .
         Hex Mode
      Language Modes
         . . .
         Python Mode
         Shell Mode
         TeX Mode
         Visual Basic Mode
      More Programming Features
         Pulling Words
         Accessing Help
         Commenting Commands
      . . .

Previous   Up    Next
Shell Mode  Commands by Topic   Visual Basic Mode


Epsilon User's Manual and Reference > Commands by Topic > Language Modes >

TeX Mode

Epsilon automatically enters TeX mode when you read a file with an extension of .tex, .ltx, or .sty.

Keys in TeX mode include Alt-i for italic text, Alt-Shift-I for slanted text, Alt-Shift-T for typewriter, Alt-Shift-B for boldface, Alt-Shift-C for small caps, Alt-Shift-F for a footnote, and Alt-s for a centered line.

Alt-Shift-E prompts for the name of a LaTeX environment, then inserts \begin{env} and \end{env} lines for the one you select. You can press ? to select an environment from a list. (The list of environments comes from the file latex.env, which you can edit.) Alt-Shift-Z searches backwards for the last \x{\{begin}{env}} directive without a matching \x{{\}end{env}} directive. Then it inserts the correct \x{\{end}{env}} directive at point.

For most of these commands, you can highlight a block of text first and Epsilon will make the text italic, slanted, etc. or you can use the command and then type the text to be italic, slanted, etc.

By default, Epsilon inserts the appropriate LaTeX 2e/3 command (such as \textit for italic text). Set the variable latex-2e-or-3 to 0 if you want Epsilon to use the LaTeX 2.09 equivalent. (In the case of italic text, this would be \it.)

The keys "{" and "$" insert matched pairs of characters (either {} or $$). When you type \( or \[, TeX mode will insert a matching \) or \], respectively. But if you type "{" just before a non-whitespace character, it inserts only a "{". This makes it easier to surround existing text with braces.

The keys <Comma> and <Period> remove a preceding italic correction \/, the " key inserts the appropriate kind of doublequote sequence like `` or '', and Alt-" inserts an actual " character.

Some TeX mode commands are slightly different in LaTeX than in pure TeX. Set tex-force-latex to 1 if all your documents are LaTeX, 0 if all your documents are TeX, or 2 if Epsilon should determine this on a document-by-document basis. In that case, Epsilon will assume a document is LaTeX if it contains a \begin{document} statement or if it's in a file with an .ltx extension. By default, Epsilon assumes all documents use LaTeX.

When the cursor is on a curly brace or square bracket character like {, }, [, or ], Epsilon will try to locate its matching character and highlight them both. If the current character has no match, Epsilon will not highlight it. Set the variable auto-show-tex-delimiters to zero to disable this feature.

Set the variable tex-look-back to a bigger number if you want TeX mode to more accurately syntax highlight very large paragraphs but be slower, or a smaller number if you want recoloring to be faster but perhaps miscolor large paragraphs.

The compile-buffer command uses the compile-tex-cmd variable in this mode.

If your TeX system uses a compatible DVI previewer, then you can use Epsilon's jump-to-dvi command to see the DVI output resulting from the current line of TeX. This requires some setup so that the DVI file contains TeX source file line number data. See the description of jump-to-dvi for details.

Standard bindings:

  Alt-i  tex-italic
 Alt-Shift-I  tex-slant
 Alt-Shift-T  tex-typewriter
 Alt-Shift-B  tex-boldface
 Alt-Shift-C  tex-small-caps
 Alt-Shift-F  tex-footnote
 Alt-s  tex-center-line
 Alt-Shift-E  tex-environment
 Alt-Shift-Z  tex-close-environment
 {  tex-left-brace
 $  tex-math-escape
 <Comma>, <Period>  tex-rm-correction
 "  tex-quote
 Alt-"  tex-force-quote
 \(  tex-inline-math
 \[  tex-display-math
   tex-mode
   latex-mode
   jump-to-dvi
 



Previous   Up    Next
Shell Mode  Commands by Topic   Visual Basic Mode


Lugaru Copyright (C) 1984, 2020 by Lugaru Software Ltd. All rights reserved.