all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Proposing change in org.el to get minimal support for style sheets
@ 2005-10-27 14:54 Mathias Dahl
  2005-11-11 11:29 ` Christian Egli
  0 siblings, 1 reply; 2+ messages in thread
From: Mathias Dahl @ 2005-10-27 14:54 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Proposing change in org.el to get minimal support for style sheets
  2005-10-27 14:54 Proposing change in org.el to get minimal support for style sheets Mathias Dahl
@ 2005-11-11 11:29 ` Christian Egli
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Egli @ 2005-11-11 11:29 UTC (permalink / raw)


Hi Mathias

Mathias Dahl <brakjoller@gmail.com> writes:

> 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 -------
This looks like a nice change. AFAIK Carsten hasn't added this to the
sources. Would you like to create a patch? Shouldn't be that hard to
do :-).

Ask me if you need some help

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-11 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-27 14:54 Proposing change in org.el to get minimal support for style sheets Mathias Dahl
2005-11-11 11:29 ` Christian Egli

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.