[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Org publish hierarchies and style variable
From: |
Sebastian Rose |
Subject: |
Re: [Orgmode] Org publish hierarchies and style variable |
Date: |
Wed, 29 Oct 2008 19:40:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Hi Matt,
I can see no problem with the alternative you provide here. It's nice
IMHO. How much space will a stylesheet take? One block, sometimes 2 -
not very much. Thanks for pointing this out.
There is the per file
#+STYLE:
setting.
We should mention those alternatives in the tutorial.
* Why I recommended the #+SETUPFILE option in the tutorial
When moving files around, not only the path to the stylesheet is
affected, but also paths to scripts, or PHP/Perl/whatever libraries
and includes (which may live in the #+TEXT: line of a level file).
I have 106 files and directories currently, constantly growing. And
the head of the all the files just looks like this:
#+SETUPFILE: ~/emacs/org/levels/level-1.org
#+TITLE: Some Title
Moving the file, just means to change one character (`1'), and the
scripts, stylesheets, and all the rest still works.
I use 6 level files for 3 levels (more to come):
- 1 for startpage (No `Up' link, `Home' leads to my local homepage),
- 2 for directory indexes (where `Up' means go to '../index.html',
`Home' to my `sitemap.html'),
- 3 for all the other files (where `Up' goes to 'index.html',
`Home' to my `sitemap.html').
Images in stylesheets ('background-image:url(.....)') are resolved
realtive to the stylesheets location.
We should be able to add a '<base href="">' line ;-)
Regards,
Sebastian
address@hidden 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: <link rel="stylesheet" type="text/css"\
> 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.
--
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
- [Orgmode] Org publish hierarchies and style variable, mdl, 2008/10/29
- Re: [Orgmode] Org publish hierarchies and style variable,
Sebastian Rose <=
- Re: [Orgmode] Org publish hierarchies and style variable, Sebastian Rose, 2008/10/29
- [Orgmode] Re: Org publish hierarchies and style variable, Bernt Hansen, 2008/10/29
- [Orgmode] Re: Org publish hierarchies and style variable, Matthew Lundin, 2008/10/29
- [Orgmode] Re: Org publish hierarchies and style variable, Richard Riley, 2008/10/30
- Re: [Orgmode] Re: Org publish hierarchies and style variable, Sebastian Rose, 2008/10/30
- Re: [Orgmode] Re: Org publish hierarchies and style variable, Richard Riley, 2008/10/30
- Re: [Orgmode] Re: Org publish hierarchies and style variable, Sebastian Rose, 2008/10/30
- Re: [Orgmode] Re: Org publish hierarchies and style variable, Richard Riley, 2008/10/30