[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] sub & superscript faces in .lisp files
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX] sub & superscript faces in .lisp files |
Date: |
Fri, 30 Apr 2010 22:35:22 +0200 |
* Mirko Vukovic (2010-04-25) writes:
> I am trying to implement the sub- and superscripting fonts in display
> of common-lisp files. I hacked the relevant parts of tex-mode.el, but
> without success. You can see my code below.
>
> I will appreciate in pointers in how to display sub & superscripts.
You could start with something simpler and expand from there. The
following code (to be evaluated in the *scratch* buffer, for example)
should demonstrate the basic principle for raising text:
(progn
(font-lock-add-keywords
'text-mode
'(("bar" 0 '(face default display (raise 0.2)))))
(switch-to-buffer (get-buffer-create "foo"))
(text-mode)
(insert "foo bar baz")
(font-lock-fontify-buffer))
--
Ralf