From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: [BUG] define "just", preamble and postamble placement Date: Fri, 08 Oct 2010 03:46:59 -0400 Message-ID: <31670.1286524019@gamaville.dokosmarshall.org> References: <87eic1af5t.fsf@kotik.lan> <16539.1286491451@gamaville.dokosmarshall.org> <87eic18d2u.fsf@kotik.lan> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55358 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P47fe-0006er-4N for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P47fc-0002Ji-8u for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:47:14 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:52529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P47fc-0002JZ-5T for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:47:12 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9Y003P1OABB900@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 02:47:00 -0500 (CDT) In-reply-to: Message from =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC5=3D81ukasz?= =?us-ascii?Q?=3F=3D?= Stelmach of "Fri\, 08 Oct 2010 07\:31\:53 +0200." <87eic18d2u.fsf@kotik.lan> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC5=3D81ukasz=3F=3D?= Stelmach Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org =C5=81ukasz Stelmach wrote: > |-----------+-----| > | Preamble | > |-----------+-----| > | | | > | Content | TOC | > | | | > |-----------+-----| > | Postamble | > |-----------+-----| >=20 > I'd like to have a layout like the above one, with (pre|post)ambles of > full width (or at least as wide a the content + TOC). With the present > layout preamble and postamble are siblings to TOC and the text and I > can't get the desired layout. >=20 I guess it depends on what you start with and how much you are willing to do by hand (or by extra programming). Are you trying to get this layout by html-exporting an org file without any massaging of the resulting HTML/CSS? If so, I don't know how to do it - I don't know if it's even possible with just the stock org-mode html export mechanism: org has certain conventions about the HMTL it produces and although it is possible to bend them (e.g. Sebastian Rose's org-info.js magic transformation of standard HTML into info-like docs or folded outlines - who'd have thunk it?), afaik it requires some surgery (e.g. in addition to Sebaastian's JS script, one needs some machinery on the org-mode side: org-jsinfo.el, that is very much tailored to Sebastian's script and a line in the org file to get the whole thing moving). If you are willing to write some CSS, I think it's quite possible to get the layout you want (but you may need to add e.g. ids to various elements in the HTML - I haven't looked at the HTML that org produces in any detail to see what it puts in and what it leaves out). In particular, I don't think that the parent/sibling structure of the DOM tree limits you in any way as far as the layout goes: the
just gives you a different containing block element; if it wasn't there, the element would be the containing block element - but does that really make much difference? And if the preamble/postamble were outside the div, the tree structure would be different but so what? Minor adjustments in the CSS would take care of it, I should think. But as I said, I'm no expert and I may very well be mistaken. Nick