all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabian Braennstroem <fab@ddorf.de>
Subject: Re: modify syntax highlighting in auctex
Date: 3 Aug 2005 09:38:42 GMT	[thread overview]
Message-ID: <slrndf14jh.83q.fab@node1.ddorf.de> (raw)
In-Reply-To: v9fytsjz9b.fsf@marauder.physik.uni-ulm.de

Hi to both,

On 2005-08-02, Reiner Steib <reinersteib+from-uce@imap.cc>
wrote:
>  On Tue, Aug 02 2005, Fabian Braennstroem wrote:
> 
> > all I want to modify syntax highlighting in auctex for the
> > use of beamer documents. Each frame/slide starts with the keyword
> > 'frametitle' and now I want that is has the same style like the
> > 'subsection' keyword, but with a different color, e.g.
> > green.
>  [...]
> > Maybe, it is even possible to change the color of the words
> > frame and framtitle and enlarge and color the title-text!?
> 
>  The following patch (against current CVS [1]) for style/beamer.sty
>  enables \subsection-like highlighting of \frametitle:
> 
>  --8<---------------cut here---------------start------------->8---
>  --- beamer.el	26 Mar 2005 19:31:54 +0100	1.9
>  +++ beamer.el	02 Aug 2005 14:05:41 +0200	
>  @@ -109,7 +109,14 @@
>   		      env
>   		      (let ((width (read-input "(Optional) Area width: ")))
>   			(unless (zerop (length width))
>  -			  (format "[%s]" width)))))))))
>  +			  (format "[%s]" width)))))))
>  +
>  +   ;; Definitions for font-latex
>  +   (when (and (featurep 'font-latex)
>  +	      (eq TeX-install-font-lock 'font-latex-setup))
>  +     ;; Textual keywords
>  +     (add-to-list 'font-latex-match-sectioning-3-keywords-local "frametitle")
>  +     (font-latex-match-sectioning-3-make))))
>   
>   (defun TeX-arg-beamer-overlay-spec (optional &optional prompt)
>     "Prompt for overlay specification." 
>  --8<---------------cut here---------------end--------------->8---
> 
>  You may also add your own keywords as the manual suggests, but this is
>  done no matter if you actually use the beamer class or not:
> 
>  ,----[ (info "(auctex)Font Locking") ]
> |    You can add your own sectioning commands be adding them to the
> | keyword lists: `font-latex-match-sectioning-0-keywords'
> | (`font-latex-sectioning-0-face') ...
> | `font-latex-match-sectioning-5-keywords'
> | (`font-latex-sectioning-5-face').
>  `----
> 
>  I.e. (setq font-latex-match-sectioning-3-keywords (list "frametitle"))
>  should do the trick, see `C-h v font-latex-match-sectioning-3-keywords
>  RET' for more.

Thanks! Somehow, both example don't work. The patch probably
just because I patched the beamer.el by hand; I will try the
correct way. Using the no-patch variant nothing happens and
when I try to describe variables with 'C-h v ' I just find
'font-latex-match-sectioning-3-keywords'; there are no other
sectioning variables available!?

> 
>  Bye, Reiner.
> 
>  [1] probably it wont work with AUCTeX <= 11.55 because some functions
>      have been renamed.

Aeh, just found that I use auctex 11.52 ... I actually
already installed 11.55, but this happens when mixing two
different package manager (archlinux and gentoo); stupid. I
will clean up my system and try it again.

Greetings, Fabian

  parent reply	other threads:[~2005-08-03  9:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 10:47 modify syntax highlighting in auctex Fabian Braennstroem
2005-08-02 11:34 ` Ralf Angeli
2005-08-02 12:32 ` Reiner Steib
2005-08-02 12:59   ` Ralf Angeli
2005-08-02 16:00     ` Reiner Steib
2005-08-03  9:35       ` Fontification of titles in LaTeX slides (was: modify syntax highlighting in auctex) Ralf Angeli
2005-08-03  9:38   ` Fabian Braennstroem [this message]
2005-08-03 18:56     ` modify syntax highlighting in auctex Reiner Steib
2005-08-04 13:35       ` Fabian Braennstroem

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrndf14jh.83q.fab@node1.ddorf.de \
    --to=fab@ddorf.de \
    --cc=f.braennstroem@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.