From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: Org publish hierarchies and style variable Date: Thu, 30 Oct 2008 16:19:36 +0100 Message-ID: <87skqe5cvr.fsf@kassiopeya.MSHEIMNETZ> References: <87d4hj9zvm.fsf@fastmail.fm> <873aifs2nu.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvYKi-0002iy-S4 for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 10:17:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvYKg-0002ik-Au for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 10:17:07 -0400 Received: from [199.232.76.173] (port=37905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvYKg-0002ih-5Q for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 10:17:06 -0400 Received: from mail.gmx.net ([213.165.64.20]:40664) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KvYKf-0006n4-Sy for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 10:17:06 -0400 In-Reply-To: (Richard Riley's message of "Thu, 30 Oct 2008 11:38:08 +0100") 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: Richard Riley Cc: emacs-orgmode@gnu.org Richard Riley writes: > I don't know if things have barreled along so quickly that this is more > patching and sticking plaster than a solid solution but it works well for > me. That's the important thing: it has to work for you ;-) That's why I stick with the 'level-files' solution. This way it works without any server-side scripting, postprocessing, networking and simply on each and ervery host. Even when accessed through the file: protocol localy. All I need is emacs and a webbrowser to browse my notes or test publishing. But it is indeed tailored to my needs: note-taking. To do fancy stuff, we may use the either :style in org-publish-projects-alist or the corresponding #+STYLE: file-variable (e.g. in a level-file), to add arbitrary stuff to the head section. I'll just use the #+STYLE: option for readability. An other solution to use only one stylesheet, and be able to move files around (not working through the file: protocol or without network, just as Bernt's setup): #+STYLE: If Php is supported on all hosts, you may use the next snippet, to make it portable (publish on several hosts without changing anything): :#+STYLE: '; :#+STYLE: ?> That way _all_ the URLs in stylesheets (background-image:url(images/foo.gif)), image tags, hyperlinks etc. are resolved relative to http://host.domain.tld. See http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4 for details how links are resolved when using the base element (HTML 4.0 is the basis for XHTML 1.0 strict). Regards, Sebastian -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de