From 5d3f64033b73022553f30e842a564924bf00a456 Mon Sep 17 00:00:00 2001 From: Shakthi Kannan Date: Mon, 28 Dec 2015 22:49:53 +0530 Subject: [PATCH] Document TeX mode custom variable and prettify symbols --- doc/emacs/programs.texi | 18 ++++++++++-------- doc/emacs/text.texi | 8 +++++++- etc/NEWS | 2 ++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 8423b70..f485983 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -1530,14 +1530,16 @@ Misc for Programs Prettify Symbols mode is a buffer-local minor mode that replaces certain strings with more attractive versions for display purposes. 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 -non-programming modes as well. You can customize the mode by adding -more entries to @code{prettify-symbols-alist}. More elaborate -customization is available via customizing address@hidden if its default value address@hidden is not appropriate. There -is also a global version, @code{global-prettify-symbols-mode}, which -enables the mode in all buffers that support it. +with the Greek lambda character @samp{λ}. In a TeX buffer, it will +replace @samp{\alpha} ... @samp{\omega} and other math macros with +their unicode characters. You may wish to use this in non-programming +modes as well. You can customize the mode by adding more entries to address@hidden More elaborate customization is +available via customizing @code{prettify-symbols-compose-predicate} if +its default value @code{prettify-symbols-default-compose-p} is not +appropriate. There is also a global version, address@hidden, which enables the mode in all +buffers that support it. The symbol at point can be shown in its original form. This is controlled by the variable @code{prettify-symbols-unprettify-at-point}: diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index bab660e..c91b26c 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi @@ -1717,6 +1717,7 @@ TeX Print @vindex latex-run-command @vindex tex-dvi-view-command @vindex tex-dvi-print-command address@hidden tex-print-file-extension 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 variable @code{tex-run-command}, which defaults to @code{"tex"}. In @@ -1725,7 +1726,12 @@ TeX Print to view the @file{.dvi} output is determined by the variable @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 -determined by the variable @code{tex-dvi-print-command}. +determined by the variable @code{tex-dvi-print-command}. The variable address@hidden can be set to the required file +extension for viewing and printing Tex-compiled files. For example, +you can set it to @code{".pdf"}, and update address@hidden and @code{tex-dvi-print-command} +accordingly. Normally, Emacs automatically appends the output file name to the shell command strings described in the preceding paragraph. For diff --git a/etc/NEWS b/etc/NEWS index 1aeab35..76d6df2 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -879,9 +879,11 @@ name patterns (e.g. all "FOR_DOXYGEN_ONLY_*") to be excluded. ** TeX mode ++++ *** New custom variable `tex-print-file-extension' to help users who use PDF instead of DVI. ++++ *** TeX mode now supports Prettify Symbols mode. When enabling `prettify-symbols-mode' in a tex-mode buffer, \alpha ... \omega, and many other math macros are displayed using unicode characters. -- 2.1.4