From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Org publish hierarchies and style variable Date: Wed, 29 Oct 2008 19:59:27 +0100 Message-ID: <878ws7448g.fsf@kassiopeya.MSHEIMNETZ> References: <87d4hj9zvm.fsf@fastmail.fm> 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 1KvFI5-0005QC-FW for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:57:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvFI4-0005Q0-39 for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:57:08 -0400 Received: from [199.232.76.173] (port=40100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvFI3-0005Px-N5 for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:57:07 -0400 Received: from mail.gmx.net ([213.165.64.20]:43231) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KvFI2-0004rx-LG for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:57:07 -0400 In-Reply-To: <87d4hj9zvm.fsf@fastmail.fm> (mdl@imapmail.org's message of "Wed, 29 Oct 2008 10:37:01 -0500") 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: emacs-orgmode Org-Mode Hi Matt, The path problem could be addressed in a nice way: #+STYLE: We may have several #+STYLE: lines, so we can add whatever we want to the section: #+STYLE: #+STYLE: #+STYLE: The '' is _very_ interesting, all paths to stylesheets, images (plus images in stylesheets!), flash films, applets and scripts are resolved relative to this path by the browser! This way, neither #+SETUPFILEs nor hard links are needed. We could reuse the #+STYLE: option for everything related to HTML export. This would be easier on the maintainer (Carsten by now) then adding an option for each and every feature we will request for HTML publishing in the future. Why didn't I think of it earlier??? Regards, Sebastian mdl@imapmail.org writes: > A question: The org-publish tutorial recommends the use of template > files for setting the relative link to the stylesheet for nested > directories to be published to html. > > - http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php > > E.g., > > For first level directories such as > > ~/org/ > |- css/ > | |- stylesheet.css > |- index.org > |- Emacs > | |- index.org > > ~/org/Emacs/index.org would contain the following: > > #+SETUPFILE: ~/.emacs.d/level-1.org > > which points to a setupfile with the option: > > #+STYLE: href="../stylesheet.css" /> > > My question: Instead of this method, which I find a little tedious, > I've created a hardlink to the master css directory in each > subdirectory of my project. As a result the, css files get copied to > each subdirectory in my public web directory and I only need to > specify a single style option in my org-publish-alist. > > Apart from taking up extra disk space on the server (and thus being > less economical), are there any other potential problems with this > approach? I'm using org as a wiki and have a lot of org files in each > subdirectory. This approach seems easier than having to add and tweak > the SETUPFILE option for each new org file. > > --- > Matt Lundin > mdl at imapmail dot org > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- 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 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de