| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1 Basic installation 3.2 .ultex file 3.3 Customization variables
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Once you have the package in front of you, you should look at the file `INSTALLATION'. That tells you how to byte-compile the Emacs lisp code and how to produce the documentation in various formats. It also has basic instructions for how to modify your `.emacs' file. Here are more details about `.emacs':
(setq load-path (cons "/home/palmieri/emacs/ultratex/lisp"
load-path))
|
(require 'ultex-setup) |
Now the next time you start Emacs, whenever you find a TeX file, you will automatically be put into Ultra-TeX mode.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When Ultra-TeX starts up, it loads the file `.ultex'. This was useful in versions of Ultra-TeX before 0.50, when one would set many options by hand and then wanted to avoid cluttering up the `.emacs' file with various Ultra-TeX settings. This is not so useful in version 0.50 (or later) of the Ultra-TeX package, since all of the features can be customized, and the customizations get stored in `.emacs' automatically.
The name of the `.ultex' file is given by the variable
ultex-init-file, so if you'd rather give this file a different
name, like `.ultra-tex-stuff.el', then customize this variable
accordingly.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Many of the features of Ultra-TeX mode are customizable. The best way to change this is with the customization feature of Emacs: run
M-x customize-group GRP |
where GRP is one of the Ultra-TeX customization groups, to each of which we devote a subsection.
3.3.1 ultra-tex Basic settings for Ultra-TeX mode 3.3.2 ultra-tex-init Initialization options for Ultra-TeX mode 3.3.3 ultra-tex-files Files used by Ultra-TeX mode 3.3.4 ultra-tex-commands TeX/LaTeX commands in Ultra-TeX mode 3.3.5 ultra-tex-parens Parentheses, braces, brackets 3.3.6 ultra-tex-environments 3.3.7 ultra-tex-misc Ultra-TeX mode miscellany 3.3.8 ultra-tex-auctex Using AUC-TeX commands with Ultra-TeX mode See the variable ultex-use-auctex.3.3.9 ultra-tex-auctex-files File names and paths in Ultra-TeX/AUC-TeX. 3.3.10 ultra-tex-auctex-commands External commands in Ultra-TeX via AUC-TeX. 3.3.11 ultra-tex-auctex-latex LaTex stuff for Ultra-TeX/AUC-TeX.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex |
All of the other Ultra-TeX mode groups can be accessed from this one, also.
ultex-complete-idle-time
ultra-tex-mode-hook
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-init |
ultex-init-file
ultex-use-color
ultex-use-font-latex
font-latex package
for colorization. This variable is only relevant if
ultex-use-color is `on'. One version of the file
`font-latex.el' is distributed with Ultra-TeX. The most recent
version is available from
ftp://ftp.phys.ocean.dal.ca/users/rhogee/elisp/font-latex.el
ultex-use-auctex
This option requires the use of the file `tex-buf.el' from the AUC-TeX distribution. This file is included with Ultra-TeX, but if you want the most up-to-date version, the AUC-TeX package is available from http://sunsite.auc.dk/auctex/. See section 3.3.8 ultra-tex-auctex, for options related to this one.
ultex-use-imenu
imenu package in
Ultra-TeX mode. The `imenu' package lets you pop up a menu giving
an outline of the buffer, so that you can move around to various section
headings and theorem statements and so forth. If this option is on,
then S-mouse-3 (hold down the shift key, and hit (and release) the right
mouse button) runs the command imenu, which pops up the
aforementioned menu.
ultex-use-bib-cite
bib-cite package in
Ultra-TeX mode. The bib-cite package does stuff with your
labels and citations -- highlights them, lets you jump to them, etc.
This option is not well-tested, and may yield unpredictable results.
The latest version of bib-cite is available from
ftp://ftp.phys.ocean.dal.ca/users/rhogee/elisp/bib-cite.el.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-files |
ultex-tree-file
ultex-extra-tree-files
ultex-tree-file) is
not loaded. See section 2.3 Making a list.
ultex-greek-keys-file
ultex-latex-skel-file
get-latex-skel is run.
See section 2.9 Everything else.
ultex-skel-hook
get-latex-skel is run.
See section 2.9 Everything else.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-commands |
ultex-alist-local-flag
ultex-rescan-after-new-label
ultex-return-checks-for-new-commands
ultex-no-grab-if-space
ultex-append-space-to-defs
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-parens |
ultex-match-braces
ultex-match-brackets
ultex-match-parens
ultex-blink-matching-bracket
ultex-blink-matching-paren
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-environments |
ultex-array-environs
(array tabular eqnarray eqnarray* align gather alignat aligned gathered alignedat split CD matrix smallmatrix pmatrix bmatrix vmatrix Vmatrix xalignat xxalignat cases) |
ultex-math-start
ultex-math-end
ultex-itemizing-environments
(list trivlist itemize description enumerate).
Description: List of symbols of LaTeX environments which use
`\item'. When the point is in one of these environments, hitting
\\ inserts a new line and the text `\item []' (but see the
next variable).
See section 2.9 Everything else.
ultex-item-insert-brackets
ultex-math-cs-regexp
ultex-non-math-cs-regexp
ultex-def-regexp
ultex-dollar-array-cursor
ultex-dollar-array.
See section 2.5 Dollar signs.
ultex-dollar-array
"$|$"
"\[\n|\n\]"
"\begin{equation}\label{|}\n\n\end{equation}"
"\begin{equation*}\n|\n\end{equation*}"
"\begin{align}\label{|}\n\n\end{align}"
"\begin{align*}\n|\n\end{align*}"
"\begin{gather}\label{|}\n\n\end{gather}"
"\begin{gather*}\n|\n\end{gather*}"
"\begin{multline}\label{|}\n\n\end{multline}"
"\begin{multline*}\n|\n\end{multline*}"
|
where I have written `\n' for `newline'.
Description: List of strings inserted by hitting $. The first time you
hit $, the first string is inserted. Hitting it again replaces the
first string with the second, etc. After inserting each string, the
cursor is placed at the spot marked by the string
ultex-dollar-array-cursor. If you do not include the string
ultex-dollar-array-cursor anywhere, Emacs will try to guess where
to put the cursor.
(Warning: customization sets the variable
ultex-dollar-array-external, which has the above default value.
If you want to set this directly, not via customize, then you should set
ultex-dollar-array, which has a different syntax. Read the
documentation for that variable for help.)
See section 2.5 Dollar signs.
ultex-dollar-back
ultex-dollar-array to start over with once the elements have been
cycled through once. The elements are numbered starting with 0.
See section 2.5 Dollar signs.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To change these:
M-x customize-group ultra-tex-misc |
ultex-slash-dollar-is-not-math
ultex-dont-use-completion
ultex-subscript-delete-leading-space
ultex-display-pictures
ultex-picture-type
ultex-picture-directory
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Except for ultex-ignore-auctex-tex.el, the rest of these come
from AUC-TeX. To change them:
M-x customize-group ultra-tex-auctex |
ultex-ignore-auctex-tex.el
load command (rather
than require). If the only piece of AUC-TeX you ever use is
the part that comes with Ultra-TeX, then you have nothing to worry
about. If you use other parts of the AUC-TeX distribution, then you
might want to set this variable to nil. I can't guarantee that
Ultra-TeX and AUC-TeX will interact well in that case, though.
TeX-display-help
TeX-next-error.
TeX-debug-bad-boxes
TeX-next-error.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These options all come from AUC-TeX. To change them:
M-x customize-group ultra-tex-auctex-files |
TeX-master
TeX-one-master
TeX-file-extensions
TeX-macro-global
TeX-macro-private
TeX-check-path
TeX-macro-private and
TeX-macro-global, as well as the current directory. Description:
Directory path to search for dependencies.
BibTeX-file-extensions
BibTeX-style-extensions
TeX-default-extension
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These options all come from AUC-TeX. To change them:
M-x customize-group ultra-tex-auctex-commands |
TeX-command-BibTeX
TeX-command-list.
TeX-command-Show
TeX-command-Print
TeX-command-Print.
TeX-command-Queue
TeX-command-Queue.
TeX-print-command
TeX-expand-list.
TeX-queue-command
TeX-expand-list.
TeX-printer-list
(("Local" "dvips -f %s | lpr" "lpq")
("lw")
("ps"))
|
TeX-print-command. The third element is the command used to
examine the print queue for this printer. It defaults to the value of
TeX-queue-command. Any occurence of `%p' in the second or
third element is expanded to the printer name given in the first
element, then ordinary expansion is performed as specified in
TeX-expand-list.
TeX-printer-default
TeX-printer-list, or if that is
not set, "lw". Description: Default printer to use with
TeX-command.
TeX-view-style
(("^a5$" "xdvi %d -paper a5")
("^landscape$" "xdvi %d -paper a4r -s 4")
("." "xdvi %d"))
|
Description: List of style options and view options. If the first
element (a regular expresion) matches the name of one of the style
files, any occurrence of the string `%v' in a command in
TeX-command-list will be replaced with the second element. The
first match is used, if no match is found the `%v' is replaced with
the empty string.
TeX-expand-list
("%s" file nil t)
|
TeX-command-list
("LaTeX" "%l '\\nonstopmode\\input{%t}'" TeX-run-LaTeX nil t)
|
TeX-expand-list. The third
element is the function which actually start the process. Several such
hooks has been defined; see the function documentation for a
description. If the fourth element is non-nil, the user will get a
chance to modify the expanded string. The fifth element is obsolete and
ignored.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These options all come from AUC-TeX. To change them:
M-x customize-group ultra-tex-auctex-latex |
LaTeX-version
LaTeX-command-style
LaTeX-version is "2e", then (("." "latex"))).
If LaTeX-version is "2", then a longer list. Description: List
of style options and LaTeX commands.
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |