emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] CSS and Publishing to HTML Tutorial


From: Robert Klein
Subject: Re: [Orgmode] CSS and Publishing to HTML Tutorial
Date: Fri, 09 Jul 2010 17:00:54 +0200
User-agent: Opera Mail/10.11 (FreeBSD)

Hi Adam,

On Thu, 08 Jul 2010 09:48:11 +0200, Adam <address@hidden> wrote:

#+STYLE: <link rel="stylesheet" type="text/css"  href="../ssheet1.css" />

or even

# STYLE: <link rel="stylesheet" type="text/css"  href="../ssheet1.css" />

doing a view source of the HTML published page, shows that it includes
the java stuff of org-export-html-style-export, shown below. I feel my
defined CSS is being somehow compromised.



I also use a style of my own (and parts of the org-mode standard
style copied into my style sheet). To avoid the inclusion of the
org-mode style and javascript I put two additional settings into
the project lists /notes/ component:

   :style-include-default nil ; don't include org-modes style sheet
   :style-include-scripts nil ; don't include org-modes javascript

Additionally I put my style right behind those lines, but I don't
think it matters if it is there or in the org file:
:style "<link rel=\"stylesheet\" href=\"example.css\" type=\"text/css\">"


For example, I put those tho lines into your quoted configuration:

org-publish-project-alist

(("org-notes" :base-directory "C:\\Adamstuff\\webp\\org\\"

   :style-include-default nil ; don't include org-modes style sheet
   :style-include-scripts nil ; don't include org-modes javascript

:base-extension
"org" :publishing-directory "C:\\Adamstuff\\webp\\public_html\\" :recursive
t :publishing-function org-publish-org-to-html :headline-levels ...)
("org-static" :base-directory "C:\\Adamstuff\\webp\\org\\" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory
"C:\\Adamstuff\\webp\\public_html\\" :recursive t :publishing-function
org-publish-attachment) ("org" :components ("org-notes" "org-static")))


Best regards
Robert



reply via email to

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