unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Different strategy for raising and lowering scripts
@ 2021-02-11  1:22 Christopher Dimech
  0 siblings, 0 replies; only message in thread
From: Christopher Dimech @ 2021-02-11  1:22 UTC (permalink / raw)
  To: Help Gnu Emacs

I would like to try a different strategy for raising superscripts
and lowering subscripts.

Have copied the following customs and functions from "tex-mode.el".
Now I am struggling to write a function that enables the functionality.

In "tex-mode.el", the functionality is enabled as soon as one uses
the mode.  But I would like to enable things by calling an appropriate
function instead.

--------

(defcustom tex-fontify-script t)
(defcustom tex-font-script-display '(-0.2 0.2))
(defcustom tex-suscript-height-ratio 0.8)
(defcustom tex-suscript-height-minimum 0.0)
(defun tex-suscript-height height)

(defface superscript )
(defface subscript )

(defun tex-font-lock-match-suscript limit)
(defun tex-font-lock-suscript pos)
(defun tex-font-lock-unfontify-region beg end)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-11  1:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11  1:22 Different strategy for raising and lowering scripts Christopher Dimech

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).