From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre de Buyl Subject: Re: HTML Postamble is inside Content DIV Date: Wed, 29 Jun 2011 15:26:56 +0200 Message-ID: <0903D18D-AB13-430D-81EF-93421BDB7D01@ulb.ac.be> References: <80mxj8g0wl.fsf@somewhere.org> <80ei4gdoe7.fsf@somewhere.org> <801uzeu2b6.fsf@somewhere.org> <808vslr5ox.fsf@somewhere.org> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbunL-000385-B8 for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 09:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbunH-0007yl-B0 for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 09:27:06 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:49028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbunG-0007yK-SO for emacs-orgmode@gnu.org; Wed, 29 Jun 2011 09:27:03 -0400 In-Reply-To: <808vslr5ox.fsf@somewhere.org> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Le 28 juin 11 =E0 23:45, Sebastien Vauban a =E9crit : > "Sebastien Vauban" wrote: >> S=E9bastien Vauban wrote: >>> Jonathan BISSON wrote: >>>> S=E9bastien Vauban writes: >>>>> After a couple of tests, I've observed that the postamble is =20 >>>>> forced to be >>>>> included *inside* the div "content". >>>>> >>>>> Proof on Line 1764... These are the ending tags of every HTML =20 >>>>> page: >>>>> >>>>> #+begin_src emacs-lisp >>>>> (unless body-only (insert "\n\n\n\n")) >>>>> #+end_src >>>>> >>>>> ... the closing referring to the opening of "content". >>>>> >>>>> Shouldn't it make sense to be able to insert something *out of* =20= >>>>> the >>>>> "content" div? >>>> >>>> I think so (and the same for preamble)! >>>> >>>> I rewrote org-export-as-html and did a custom org-publish-org-to-=20= >>>> html to >>>> call it, in order to get them out off the content div (you can =20 >>>> look at a >>>> first test on my webpage http://www.bjonnh.net). It's easy to do =20= >>>> it I can >>>> send you my file if you are interested. >>> >>> I think sharing the code here is always a good idea. >>> >>> However, I'd favor an approach commonly shared by others, ie by =20 >>> either: >>> >>> - moving the postamble out of the content DIV >>> >>> - adding an extra "environment" next to the content DIV, if the =20 >>> postamble must >>> stay where it currently is -- for historical or compliance =20 >>> reasons? >>> >>> (same applies for preamble) >> >> I'm hijacking my own thread, as it received little support, and as =20= >> the new >> question is quite related to that: >> >> - if we customize the preamble, our string will be inserted as is; >> >> - if we customize the postamble, our string will be inserted as =20 >> is... between >> a wrapping div called "postamble". >> >> Shouldn't it be normal to apply the same reasoning for both cases: =20= >> either >> impose a wrapper, either not? >> >>> Any comment for others? > > Except for the reply of Jonathan, I received no answer on this. =20 > Here is thus > my proposition for a better div-structured HTML. > > There are only four parts required in the HTML for all the magic to =20= > work with > the CSS: > > - The first part is a container div ("content", by default) that =20 > surrounds > everything. > > - Inside that are three more parts: > + a preamble (in a div, if the user wants it), > + a div "body" and > + a postamble (in a div, if the user wants it). > > The patch is attached. > > Best regards, > Seb > Hello, I think my regular use of the html export would be broken. I add a
in the preamble and a
in the =20 postamble. This allows me to make a "boxed" page (see http://homepages.ulb.ac.be/=20= ~pdebuyl/ ) which I like. If I cannot end my div in the postamble, I think it would break my =20 setup. Here is my setup: :html-preamble "
HERE, some static menu items.
" :html-postamble "
" I tried without that extra div and I cannot reproduce my former layout. Pierre=