# HG changeset patch # User Uwe Brauer # Date 1473609951 0 # Sun Sep 11 16:05:51 2016 +0000 # Node ID c54ae6c3004adf8487ad48dbf4a0e09e9287f102 # Parent 19350016f7cdbe183338791ed06cf69fcf83a478 * auctex.texi (Semi--WYSIWYG): Add new section (Prettifying): delete most of the text concerning x-symbol. diff -r 19350016f7cd -r c54ae6c3004a doc/auctex.texi --- a/doc/auctex.texi Fri Sep 09 11:34:43 2016 +0000 +++ b/doc/auctex.texi Sun Sep 11 16:05:51 2016 +0000 @@ -164,7 +164,8 @@ * Folding:: Folding Macros and Environments * Outline:: Outlining the Document * Narrowing:: Restricting display and editing to a portion of the buffer -* Prettifying:: Displaying Greek and math macros as Unicode characters including super and subscripts +* Prettifying:: Displaying Greek and math macros as Unicode characters +* Semi-WYSIWYW:: (Semi--) WYSIWYW features Font Locking @@ -2174,6 +2175,14 @@ @defopt font-latex-fontify-script If non-nil, fontify subscript and superscript strings. +If this variable is set to the symbol ‘multi-level’, then y is +raised above x, and z is raised above y. With many script +levels, the text might become too small to be readable. + +If this variable is set to the symbol ‘invisible’, then the +effect is essentially like ‘multi-level’ but additionally the +script operators ^ and _ are not displayed. + Note that this feature is not available on XEmacs, for which it is disabled per default. In GNU Emacs raising and lowering is not enabled for versions 21.3 and before due to it working not properly. @@ -2587,19 +2596,11 @@ @section Prettifying Emacs 25 is able to prettify symbols in programming language buffers, address@hidden for Programs,,,emacs,GNU Emacs Manual}. The canonical address@hidden for Programs,,,emacs,GNU Emacs Manual}. The canonical example is to display @code{(lambda () ...)} as @code{(λ () ...)} in -Lisp buffers. Such a functionality was/is provided by x-symbol for -Xemacs a long time so Xemacs, x-symbol users will feel at home. There -is however an important difference, x-symbol translated the TeX macros -to some internal chars, which were then displayed by special designed -fonts. This lead to problems with various filling functions, slowed down -Xemacs and resulted sometimes in data corruption, however prettified -symbols could be deleted simply by delete or backspace. Emacs 25 uses an -entirely different approach relying on overlays. That makes prettifying -much faster and does not result in data corruption, however deleting -prettified symbols cannot be done by simply hitting delete or backspace, -one must use @code{kill-word} or @code{backward-kill-word}. +Lisp buffers. Deleting prettified symbols cannot be done by simply +hitting delete or backspace, one must use @code{kill-word} or address@hidden @AUCTeX{} can use this feature in order to display certain math macros and greek letters using their Unicode representation, too. For example, @@ -2615,13 +2616,21 @@ You can also add custom symbol unicode-character pairs for prettification by adding to @code{tex--prettify-symbols-alist}. Note that this variable is part of Emacs' stock @code{tex-mode.el} and used -by that and @AUCTeX{}. - -In addition you can configure Emacs so that the «^» and «_» in sub and -superscripts are not displayed. Strictly speaking this is not a feature -of @code{global-prettify-symbols-mode} nor of @AUCTeX{} but it enhances -the «WYSIWYG» feeling. To enable that feature you have to set the -variable @font-latex-fontify-script{} to ‘invisible’. +by that and @AUCTeX{}. + + address@hidden Semi--WYSIWYG address@hidden Semi--WYSIWYG + +It is possible to use various features which resemble to a certain +degree a semi--WYSIWYG feature. The first one is the @previewlatex{} +subsystem of @AUCTeX{}, see @ref{Top,,Introduction,preview-latex,The address@hidden Manual}. The second concerns address@hidden see @ref{Top,,Controlling Screen Display}. +The third concerns @font-latex-fontify-script{}, see address@hidden,,Controlling Screen Display}. + + @node Processing @chapter Starting Processors, Viewers and Other Programs