From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Org-Mode Homepage error Date: Tue, 26 Jul 2011 23:19:49 +0200 Message-ID: <80y5zkwxhm.fsf@somewhere.org> References: <2152B3DFC552DE47A0A36CCC93D735310439FF32@mx01.ecoplan.local> <874o2ai1up.fsf@googlemail.com> <4524.1311625834@alphaville.americas.hpqcorp.net> <87oc0ihwvk.fsf@gnu.org> <80bowhxlpz.fsf@somewhere.org> <87mxg1ozgc.fsf@gnu.org> <87vcupdobh.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Achim and Bastien, Achim Gratz wrote: > Bastien writes: >> I fail to understand why an additional
>> should break Sebastian's tool. >> > > For starters, the title now resides in the preamble, but the script > looks for it in content. Good catch! FYI, the title has always been in the preamble. See lines 354--381 in org-html.el: #+begin_src emacs-lisp (defcustom org-export-html-preamble t "Non-nil means insert a preamble in HTML export. When `t', insert a string as defined by one of the formatting strings in `org-export-html-preamble-format'. When set to a string, this string overrides `org-export-html-preamble-format'. When set to a function, apply this function and insert the returned string. The function takes the property list of export options as its only argument. Setting :html-preamble in publishing projects will take precedence over this variable." :group 'org-export-html :type '(choice (const :tag "No preamble" nil) (const :tag "Default preamble" t) (string :tag "Custom formatting string") (function :tag "Function (must return a string)"))) (defcustom org-export-html-preamble-format '(("en" "

%t

")) "The format for the HTML preamble. %t stands for the title. If you need to use a \"%\" character, you need to escape it like that: \"%%\"." :group 'org-export-html :type 'string) #+end_src The difference I introduced is that -- when present -- the preamble (whatever its contents) is wrapped inside a "preamble" DIV. I did not change the fact that the title was part of the preamble. Though, we can wonder if it makes sense to put the title as part of the preamble. But I guess there is a good reason for it(TM). Best regards, Seb -- Sebastien Vauban