File: tex-fold.el.html

This file provides support for hiding and unhiding TeX, LaTeX, ConTeXt, Texinfo and similar macros and environments inside of AUCTeX.

Caveats:

The display string of content which should display part of itself is made by copying the text from the buffer together with its text properties. If fontification has not happened when this is done
(e.g. because of lazy or just-in-time font locking) the intended
fontification will not show up. Maybe this could be improved by using some sort of "lazy folding" or refreshing the window upon scrolling. As a workaround fontification of the whole buffer currently is forced before folding it.

Defined variables (32)

TeX-fold--spec-typeType spec used by TeX-fold defcustoms.
TeX-fold-alert-colorColor for alert text.
TeX-fold-autoIf non-nil, fold macros automatically after ‘TeX-insert-macro’.
TeX-fold-auto-revealPredicate to open a fold when entered.
TeX-fold-auto-reveal-commandsList of commands that may cause a fold to be revealed.
TeX-fold-begin-end-spec-listReplacement specifier list for \begin{env} and \end{env} macros.
TeX-fold-bib-filesList of BibTeX files from which to extract citation keys.
TeX-fold-close-quoteFolded verison of closing quote.
TeX-fold-command-prefixPrefix key to use for commands in TeX Fold mode.
TeX-fold-ellipsisString used as display string for overlays instead of a zero-length string.
TeX-fold-env-spec-listList of display strings and environments to fold.
TeX-fold-env-spec-list-internalInternal list of display strings and environments to fold.
TeX-fold-folded-faceFace for the display string of folded content.
TeX-fold-force-fontifyForce the buffer to be fully fontified by folding it.
TeX-fold-help-echo-max-lengthMaximum length of help echo message for folded overlays.
TeX-fold-macro-spec-listList of replacement specifiers and macros to fold.
TeX-fold-macro-spec-list-internalInternal list of display strings and macros to fold.
TeX-fold-math-spec-listList of display strings and math macros to fold.
TeX-fold-math-spec-list-internalInternal list of display strings and math macros to fold.
TeX-fold-modeNon-nil if Tex-Fold mode is enabled.
TeX-fold-mode-hookHook run after entering or leaving ‘TeX-fold-mode’.
TeX-fold-mode-mapKeymap for ‘TeX-fold-mode’.
TeX-fold-open-quoteFolded version of opening quote.
TeX-fold-preserve-commentsIf non-nil do not fold in comments.
TeX-fold-quotes-on-insertNon-nil means to automatically fold LaTeX quotes when they are inserted.
TeX-fold-region-functionsList of additional functions to call when folding a region.
TeX-fold-type-listList of item types to consider when folding.
TeX-fold-unfold-around-markUnfold text around the mark, if active.
TeX-fold-unfolded-faceFace for folded content when it is temporarily opened.
TeX-fold-unspec-env-display-stringDisplay string for unspecified environments.
TeX-fold-unspec-macro-display-stringDisplay string for unspecified macros.
TeX-fold-unspec-use-nameIf non-nil use the name of an unspecified item as display string.

Defined functions (11)

TeX-fold--helper-display(ENV ARGS SPEC-RETRIEVER)
TeX-fold--last-name(NAME)
TeX-fold-alert-display(TEXT &rest ARGS)
TeX-fold-auto-reveal-p(MODE)
TeX-fold-buffer-substring(START END)
TeX-fold-macro()
TeX-fold-macro-nth-arg(N MACRO-START &optional MACRO-END DELIMS)
TeX-fold-mode(&optional ARG)
TeX-fold-remove-overlays(OVERLAYS)
TeX-fold-section()
tex-fold-mode(&optional ARG)

Defined faces (2)

TeX-fold-folded-faceFace for the display string of folded content.
TeX-fold-unfolded-faceFace for folded content when it is temporarily opened.