Document new features of TeX mode
* doc/emacs/text.texi (TeX Print): Document 'tex-print-file-extension'. * doc/emacs/programs.texi (Misc for Programs): Document support for Prettify Symbols mode in TeX mode.
This commit is contained in:
parent
7c83d84619
commit
c930e75bfa
3 changed files with 19 additions and 9 deletions
|
@ -1530,14 +1530,16 @@ with the Foldout package (@pxref{Foldout}).
|
||||||
Prettify Symbols mode is a buffer-local minor mode that replaces
|
Prettify Symbols mode is a buffer-local minor mode that replaces
|
||||||
certain strings with more attractive versions for display purposes.
|
certain strings with more attractive versions for display purposes.
|
||||||
For example, in Emacs Lisp mode, it replaces the string @samp{lambda}
|
For example, in Emacs Lisp mode, it replaces the string @samp{lambda}
|
||||||
with the Greek lambda character @samp{λ}. You may wish to use this in
|
with the Greek lambda character @samp{λ}. In a @TeX{} buffer, it will
|
||||||
non-programming modes as well. You can customize the mode by adding
|
replace @samp{\alpha} @dots{} @samp{\omega} and other math macros with
|
||||||
more entries to @code{prettify-symbols-alist}. More elaborate
|
their Unicode characters. You may wish to use this in non-programming
|
||||||
customization is available via customizing
|
modes as well. You can customize the mode by adding more entries to
|
||||||
@code{prettify-symbols-compose-predicate} if its default value
|
@code{prettify-symbols-alist}. More elaborate customization is
|
||||||
@code{prettify-symbols-default-compose-p} is not appropriate. There
|
available via customizing @code{prettify-symbols-compose-predicate} if
|
||||||
is also a global version, @code{global-prettify-symbols-mode}, which
|
its default value @code{prettify-symbols-default-compose-p} is not
|
||||||
enables the mode in all buffers that support it.
|
appropriate. There is also a global version,
|
||||||
|
@code{global-prettify-symbols-mode}, which enables the mode in all
|
||||||
|
buffers that support it.
|
||||||
|
|
||||||
The symbol at point can be shown in its original form. This is
|
The symbol at point can be shown in its original form. This is
|
||||||
controlled by the variable @code{prettify-symbols-unprettify-at-point}:
|
controlled by the variable @code{prettify-symbols-unprettify-at-point}:
|
||||||
|
|
|
@ -1717,6 +1717,7 @@ such as @code{"/tmp"}.
|
||||||
@vindex latex-run-command
|
@vindex latex-run-command
|
||||||
@vindex tex-dvi-view-command
|
@vindex tex-dvi-view-command
|
||||||
@vindex tex-dvi-print-command
|
@vindex tex-dvi-print-command
|
||||||
|
@vindex tex-print-file-extension
|
||||||
The buffer's @TeX{} variant determines what shell command @kbd{C-c
|
The buffer's @TeX{} variant determines what shell command @kbd{C-c
|
||||||
C-b} actually runs. In Plain @TeX{} mode, it is specified by the
|
C-b} actually runs. In Plain @TeX{} mode, it is specified by the
|
||||||
variable @code{tex-run-command}, which defaults to @code{"tex"}. In
|
variable @code{tex-run-command}, which defaults to @code{"tex"}. In
|
||||||
|
@ -1725,7 +1726,12 @@ defaults to @code{"latex"}. The shell command that @kbd{C-c C-v} runs
|
||||||
to view the @file{.dvi} output is determined by the variable
|
to view the @file{.dvi} output is determined by the variable
|
||||||
@code{tex-dvi-view-command}, regardless of the @TeX{} variant. The
|
@code{tex-dvi-view-command}, regardless of the @TeX{} variant. The
|
||||||
shell command that @kbd{C-c C-p} runs to print the output is
|
shell command that @kbd{C-c C-p} runs to print the output is
|
||||||
determined by the variable @code{tex-dvi-print-command}.
|
determined by the variable @code{tex-dvi-print-command}. The variable
|
||||||
|
@code{tex-print-file-extension} can be set to the required file
|
||||||
|
extension for viewing and printing @TeX{}-compiled files. For
|
||||||
|
example, you can set it to @file{.pdf}, and update
|
||||||
|
@code{tex-dvi-view-command} and @code{tex-dvi-print-command}
|
||||||
|
accordingly.
|
||||||
|
|
||||||
Normally, Emacs automatically appends the output file name to the
|
Normally, Emacs automatically appends the output file name to the
|
||||||
shell command strings described in the preceding paragraph. For
|
shell command strings described in the preceding paragraph. For
|
||||||
|
|
2
etc/NEWS
2
etc/NEWS
|
@ -885,9 +885,11 @@ name patterns (e.g. all "FOR_DOXYGEN_ONLY_*") to be excluded.
|
||||||
|
|
||||||
** TeX mode
|
** TeX mode
|
||||||
|
|
||||||
|
+++
|
||||||
*** New custom variable `tex-print-file-extension' to help users who
|
*** New custom variable `tex-print-file-extension' to help users who
|
||||||
use PDF instead of DVI.
|
use PDF instead of DVI.
|
||||||
|
|
||||||
|
+++
|
||||||
*** TeX mode now supports Prettify Symbols mode. When enabling
|
*** TeX mode now supports Prettify Symbols mode. When enabling
|
||||||
`prettify-symbols-mode' in a tex-mode buffer, \alpha ... \omega, and
|
`prettify-symbols-mode' in a tex-mode buffer, \alpha ... \omega, and
|
||||||
many other math macros are displayed using unicode characters.
|
many other math macros are displayed using unicode characters.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue