Implement pretty display of sub- and superscripts.
commit70d24c5d036cd5787f719104a0ad2f157c5207b1
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 2 Jun 2010 14:35:44 +0000 (2 16:35 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 2 Jun 2010 22:06:19 +0000 (3 00:06 +0200)
tree7eb7eec6ccc854a565eb08a961d149247ab282f9
parent32b58fad32f76092ba0e14b5a45d7db6a3c6df95
Implement pretty display of sub- and superscripts.

* doc/org.texi (Subscripts and superscripts): Document that `C-c C-x \'
will also format sub and superscripts.
* doc/orgcard.tex: Document that `C-c C-x \'
will also format sub and superscripts.
* lisp/org.el (org-use-sub-superscripts):
(org-pretty-entities-include-sub-superscripts): Move here from
org-exp.el.
(org-set-regexps-and-options): Parse subscript option and set
`org-use-sub-superscripts' as a local variable.
(org-match-sexp-depth):
(org-create-multibrace-regexp):
(org-match-substring-regexp):
(org-match-substring-with-braces-regexp): Moved here from org-exp.el
(org-set-font-lock-defaults): Call `org-raise-scripts'.
(org-remove-font-lock-display-properties): New function.
(org-unfontify-region): Call
`org-remove-font-lock-display-properties'.
(org-script-display): New constant.
(org-raise-scripts): New function.

When turning on entity display with `C-c C-x \', sub- and superscripts
will also be displayed in a smaller font, and raised/lowered.
doc/org.texi
doc/orgcard.tex
lisp/org-exp.el
lisp/org.el