latex(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hklatex.emf - Tex File hook definition
latex.eaf - Abbreviation file
latex.etf - Template file
hkbibtex.emf - TeX Bibliography Files
EXTENSIONS
DESCRIPTION
The latex file type template handles the hilighting of the TeX files. The hilighting is minimal, hilighting the key words and comments.
General Editing
On creating a new file, a new header is automatically included into the file.
time(2m) is by default enabled, allowing the modification time-stamp to be maintained in the header.
Hilighting
The hilighting emphasizes the Tex embedded command strings and comments. No special recognition of the command strings is performed.
Outline Hilighting
The LaTeX content may be viewed with synthetic hilighting such that headers, text in bold and italic are displayed, removing the LaTeX control sequences.
Folding and Information Hiding
Generic folding is enabled, the folds occur about \section{...} and \subsection{...} constructs.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Abbreviations
The installation comes with a default abbreviation file for LaTeX file editing which can be used by writing short abbreviations like "sec" (section), "bf" (textbf) or "verb" (verbatim environment)- and then pressing the key-binding for the
expand-abbrev-handle(3) command. The list of abbreviations can be used interactively in the GUI version of MicroEmacs using the
abbrev-list(3) command.
Spelling
Buffer spell checking is LaTeX aware.
List Items
Item listing is available and the key constructs of the file may be listed in the item-list.
Buffer Commands
latex-verify verifies the syntax of the (La)TeX from the current position forward, reporting braces that are not matched.
Short Cuts
The short cut keys used within the buffer are:-
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with hash (%).
C-c C-o - Format a comment
f2 - (un)fold the current region
f3 - (un)fold all regions
f6 - List items.
esc f6 - Close list items window.
The command latex-compile is available within the buffer which invokes an external process to build the text.
BUGS
SEE ALSO
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29