emacs-orgmode
[Top][All Lists]
Advanced

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

[O] New exporter and publishing to HTML with styles


From: Bernt Hansen
Subject: [O] New exporter and publishing to HTML with styles
Date: Sun, 07 Apr 2013 17:42:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Nicolas,

I'm playing with the new exporter and publishing.  Everything seems to
be good except my style sheet details are missing.

There are :style entries in my org-publish-project-alist which seem to
be ignored -- there are no style details in the published HTML file
(see http://norang.ca/tmp/org-mode.html)

I'm publishing my org-mode.org page to a temporary location to see if it
is working as expected before updating the main site.

The stylesheet I want is specified with 
:style "<link rel=\"stylesheet\" href=\"http://doc.norang.ca/org.css\"; 
type=\"text/css\" />"
but I don't get any style information in the resulting published file.

Is this supposed to work or do I need to add #+HTML_HEAD to each file
with the stylesheet information?  I'd prefer to set it only once for
the publishing location if possible (as it worked with the old
publishing system)

Thanks,
Bernt

The following was shortened to only the tmp publishing location settings.
--8<---------------cut here---------------start------------->8---
(setq org-publish-project-alist
      ;
      ; http://www.norang.ca/  (norang website)
      ; norang-org are the org-files that generate the content
      ; norang-extra are images and css files that need to be included
      ; norang is the top-level project that gets published
      (quote (("tmp-org"
               :base-directory "/tmp/publish/"
               :publishing-directory 
"/ssh:address@hidden:~/www.norang.ca/htdocs/tmp"
               :recursive t
               :section-numbers nil
               :table-of-contents nil
               :base-extension "org"
               :publishing-function (org-html-publish-to-html 
org-org-publish-to-org)
               :style "<link rel=\"stylesheet\" 
href=\"http://doc.norang.ca/org.css\"; type=\"text/css\" />"
               :plain-source t
               :htmlized-source t
               :style-include-default nil
               :auto-sitemap t
               :sitemap-filename "index.html"
               :sitemap-title "Test Publishing Area"
               :sitemap-style "tree"
               :author-info t
               :creator-info t)
              ("tmp-extra"
               :base-directory "/tmp/publish/"
               :publishing-directory 
"/ssh:address@hidden:~/www.norang.ca/htdocs/tmp"
               :base-extension "css\\|pdf\\|png\\|jpg\\|gif"
               :publishing-function org-publish-attachment
               :recursive t
               :author nil)
              ("tmp"
               :components ("tmp-org" "tmp-extra")))))--8<---------------cut 
here---------------end--------------->8---



reply via email to

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