emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proposing change in org.el to get minimal support for style sheets


From: Mathias Dahl
Subject: Proposing change in org.el to get minimal support for style sheets
Date: Thu, 27 Oct 2005 16:54:34 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

I propose the following change, or similar, to org.el:

Change this:

; ------ snip -------
<meta name=author content=\"%s\">
</head><body>
"
         language (org-html-expand title) date time author))
; ------ snap -------

to this:

; ------ snip -------
<meta name=author content=\"%s\">
<style type=\"text/css\">%s</style>
</head><body>
"
         language (org-html-expand title) date time author 
org-export-html-style))
; ------ snap -------

After doing that I can set the styles I want to use when exporting to
html:

(setq org-export-html-style
      "
body 
{
   font-family: arial;
}

p{
  margin: 20;  
}

h3
{
  margin: 10;  
}

h4
{
  margin: 15;  
}

")

It might even be possible to set this as a local variable so that I
can have different styles for different buffers. I don't know if local
variables supports multi-line strings though.

Also, I guess org-export-html-style should be a defvar or defcustom.

/Mathias





reply via email to

[Prev in Thread] Current Thread [Next in Thread]