From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: org-publish-file Date: Thu, 04 Dec 2008 11:28:16 -0600 Message-ID: <87d4g7zw7j.fsf@fastmail.fm> References: <49380605.09a1660a.3268.7984@mx.google.com> 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 1L8Hzv-0007sV-L6 for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 12:28:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8Hzu-0007pb-5L for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 12:28:19 -0500 Received: from [199.232.76.173] (port=34774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Hzt-0007pK-US for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 12:28:17 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:42027) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8Hzt-0004ZY-FH for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 12:28:17 -0500 In-Reply-To: <49380605.09a1660a.3268.7984@mx.google.com> (Richard Riley's message of "Thu\, 04 Dec 2008 17\:31\:15 +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: org-mode Hi Richard, Richard Riley writes: > If I edit a file in an org web subdirectory and then publish that file it does > not get published with the style sheet link content. > > e.g I have a file index.org in rgr-source/bike and when I publish it the > destination rgr-source/bike/index.html does not include the :style as > specified in web-org below. > I assume you mean that the exported html does not contain the stylesheet line at all. I can't seem to replicate this behavior. When I publish org files recursively, the link to the stylesheet appears in all exported html files, regardless of their directory level. [snip] > ("web-org" > :base-directory ,rgr-source > :publishing-directory ,rgr-publish > :recursive t > :base-extension "org" > :publishing-function org-publish-org-to-html > :section-numbers nil > :style " href=\"./style.css\" > type=\"text/css\">" > :auto-preamble t > :auto-postamble t > :preamble ,(format "
Back - Home" rgr-home) > :postamble "
" > :author nil > ) [snip] Is the css file also exported to the subdirectory "/rgr-source/bike"? If not, the relative link won't find the file. I believe you'll either need to use an absolute link or specify a different relative link (e.g., "../style.css") using the #+STYLE option in "/rgr-source/bike/index.org". Regards, Matt