* 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


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to