[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] access to :style-sheet from <lisp> tag
From: |
Jim Ottaway |
Subject: |
Re: [emacs-wiki-discuss] access to :style-sheet from <lisp> tag |
Date: |
Tue, 09 Oct 2007 20:31:07 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
[apologies to Seb for accidentally sending this to him personally]
>>>>> Seb <address@hidden> writes:
> Hi,
> If we have a style defined:
> (muse-derive-style "my-xhtml" "xhtml"
[+]
> :style-sheet "<link rel=\"stylesheet\" type=\"text/css\"
> media=\"all\"
> href=\"include/style.css\" />")
> and we want to write a header file for the projects using this derived
> style, what variable can be used inside a <lisp> tag to insert the
> contents of :style-sheet above? For the projects using the xhtml style, I
> can use <lisp>muse-xhtml-style-sheet</lisp>, but what's the variable for a
> derived style? Thanks.
You could make your own variable instead of using a string literal:
(defvar my-style-sheet "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\"
href=\"include/style.css\" />")
(muse-derive-style "my-xhtml" "xhtml"
:style-sheet 'my-style-sheet)
Regards,
--
Jim Ottaway