diff options
| author | Shakthi Kannan | 2015-12-30 19:46:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-30 19:46:55 +0200 |
| commit | c930e75bfae40c914ad5d5d1996db4af53a3f340 (patch) | |
| tree | caa848f4bf015acda1fc68ba93dcbf18991745c9 /doc | |
| parent | 7c83d84619fe219e9e57ab22c26d80b07141633d (diff) | |
| download | emacs-c930e75bfae40c914ad5d5d1996db4af53a3f340.tar.gz emacs-c930e75bfae40c914ad5d5d1996db4af53a3f340.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/programs.texi | 18 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 8 |
2 files changed, 17 insertions, 9 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 8423b70203c..83695b12134 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -1530,14 +1530,16 @@ with the Foldout package (@pxref{Foldout}). | |||
| 1530 | Prettify Symbols mode is a buffer-local minor mode that replaces | 1530 | Prettify Symbols mode is a buffer-local minor mode that replaces |
| 1531 | certain strings with more attractive versions for display purposes. | 1531 | certain strings with more attractive versions for display purposes. |
| 1532 | For example, in Emacs Lisp mode, it replaces the string @samp{lambda} | 1532 | For example, in Emacs Lisp mode, it replaces the string @samp{lambda} |
| 1533 | with the Greek lambda character @samp{λ}. You may wish to use this in | 1533 | with the Greek lambda character @samp{λ}. In a @TeX{} buffer, it will |
| 1534 | non-programming modes as well. You can customize the mode by adding | 1534 | replace @samp{\alpha} @dots{} @samp{\omega} and other math macros with |
| 1535 | more entries to @code{prettify-symbols-alist}. More elaborate | 1535 | their Unicode characters. You may wish to use this in non-programming |
| 1536 | customization is available via customizing | 1536 | modes as well. You can customize the mode by adding more entries to |
| 1537 | @code{prettify-symbols-compose-predicate} if its default value | 1537 | @code{prettify-symbols-alist}. More elaborate customization is |
| 1538 | @code{prettify-symbols-default-compose-p} is not appropriate. There | 1538 | available via customizing @code{prettify-symbols-compose-predicate} if |
| 1539 | is also a global version, @code{global-prettify-symbols-mode}, which | 1539 | its default value @code{prettify-symbols-default-compose-p} is not |
| 1540 | enables the mode in all buffers that support it. | 1540 | appropriate. There is also a global version, |
| 1541 | @code{global-prettify-symbols-mode}, which enables the mode in all | ||
| 1542 | buffers that support it. | ||
| 1541 | 1543 | ||
| 1542 | The symbol at point can be shown in its original form. This is | 1544 | The symbol at point can be shown in its original form. This is |
| 1543 | controlled by the variable @code{prettify-symbols-unprettify-at-point}: | 1545 | controlled by the variable @code{prettify-symbols-unprettify-at-point}: |
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index bab660e1e10..3e8e0ace587 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -1717,6 +1717,7 @@ such as @code{"/tmp"}. | |||
| 1717 | @vindex latex-run-command | 1717 | @vindex latex-run-command |
| 1718 | @vindex tex-dvi-view-command | 1718 | @vindex tex-dvi-view-command |
| 1719 | @vindex tex-dvi-print-command | 1719 | @vindex tex-dvi-print-command |
| 1720 | @vindex tex-print-file-extension | ||
| 1720 | The buffer's @TeX{} variant determines what shell command @kbd{C-c | 1721 | The buffer's @TeX{} variant determines what shell command @kbd{C-c |
| 1721 | C-b} actually runs. In Plain @TeX{} mode, it is specified by the | 1722 | C-b} actually runs. In Plain @TeX{} mode, it is specified by the |
| 1722 | variable @code{tex-run-command}, which defaults to @code{"tex"}. In | 1723 | 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 | |||
| 1725 | to view the @file{.dvi} output is determined by the variable | 1726 | to view the @file{.dvi} output is determined by the variable |
| 1726 | @code{tex-dvi-view-command}, regardless of the @TeX{} variant. The | 1727 | @code{tex-dvi-view-command}, regardless of the @TeX{} variant. The |
| 1727 | shell command that @kbd{C-c C-p} runs to print the output is | 1728 | shell command that @kbd{C-c C-p} runs to print the output is |
| 1728 | determined by the variable @code{tex-dvi-print-command}. | 1729 | determined by the variable @code{tex-dvi-print-command}. The variable |
| 1730 | @code{tex-print-file-extension} can be set to the required file | ||
| 1731 | extension for viewing and printing @TeX{}-compiled files. For | ||
| 1732 | example, you can set it to @file{.pdf}, and update | ||
| 1733 | @code{tex-dvi-view-command} and @code{tex-dvi-print-command} | ||
| 1734 | accordingly. | ||
| 1729 | 1735 | ||
| 1730 | Normally, Emacs automatically appends the output file name to the | 1736 | Normally, Emacs automatically appends the output file name to the |
| 1731 | shell command strings described in the preceding paragraph. For | 1737 | shell command strings described in the preceding paragraph. For |