From 507700505a1c6ab21b75bf77b032f35b64c93837 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 1 Jul 2008 16:22:57 -0700 Subject: [PATCH] Main HTML style has moved into a constant. The variable `org-export-html-style' now only specified deviations from this default style. --- lisp/org-exp.el | 61 ++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 5f0de3887..f255eb953 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -472,19 +472,16 @@ Org-mode file." :group 'org-export-html :type '(string :tag "File or URL")) -(defcustom org-export-html-style +(defconst org-export-html-style-default "" "The default style specification for exported HTML files. -Since there are different ways of setting style information, this variable -needs to contain the full HTML structure to provide a style, including the -surrounding HTML tags. The style specifications should include definitions -for new classes todo, done, title, and deadline. For example, valid values -would be: +Please use the variables `org-export-html-stye' and +`org-export-html-style-extra' to add to this style.") + +(defcustom org-export-html-style "" + "Org-wide style definitions for exported HTML files. + +This variable needs to contain the full HTML structure to provide a style, +including the surrounding HTML tags. If you set the value of this variable, +you should consider to include definitions for the following classes: + title, todo, done, timestamp, timestamp-kwd, tag, target. + +For example, a valid value would be: -or, if you want to keep the style in a file, +If you'd like to refer to en external style file, use something like @@ -525,14 +526,11 @@ See also the variable `org-export-html-style-extra'." :type 'string) (defcustom org-export-html-style-extra "" - "Additional style information that is spliced into `org-export-html-style'. -This can be used to add or overwrite information given in the variable -`org-export-html-style'. Use this if you are satisfied with the default -style but would like to add to it instead of completely overwriting it. -The value of this variable is spliced into `org-export-html-style', directly -before the tag. Note that this will only work if the default -style does indeed contain this tag. In particular, if the default is to -refer to a CSS style file, this option will be completely ignored." + "Additional style information for HTML export. +The value of this variable is inserted into the HTML buffer right after +the value of `org-export-html-style'. Use this variable for per-file +settings of style information, and do not forget to surround the style +settings with tags." :group 'org-export-html :type 'string) @@ -2630,8 +2628,9 @@ PUB-DIR is set, use this as the publishing directory." ext-plist (org-infile-export-plist)))) - (style (org-export-splice-style (plist-get opt-plist :style) - (plist-get opt-plist :style-extra))) + (style (concat org-export-html-style-default + (plist-get opt-plist :style) + (plist-get opt-plist :style-extra))) (html-extension (plist-get opt-plist :html-extension)) (link-validate (plist-get opt-plist :link-validation-function)) valid thetoc have-headings first-heading-pos