From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Embedding the style when exporting to HTML Date: Tue, 14 Dec 2010 20:29:11 +0100 Message-ID: <4D07C587.9030407@christianmoe.com> References: <87mxo8mh1i.fsf@mundaneum.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43707 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSaWU-0007cD-B4 for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 14:26:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSaWT-00057J-41 for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 14:26:54 -0500 Received: from mars.hitrost.net ([91.185.211.18]:26559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSaWS-000571-Ph for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 14:26:53 -0500 In-Reply-To: <87mxo8mh1i.fsf@mundaneum.com> 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: Francesco Pizzolante Cc: mailing-list-org-mode Hi, The following would make the exported HTML link to an external stylesheet. #+STYLE: But that 's not what you're after? You want the stylesheet to be /outside/ (linked from) your Org file, but /embedded in/ the exported HTML? Did I get that right? CM On 12/14/10 5:54 PM, Francesco Pizzolante wrote: > Hi, > > I'm still in the process of managing a project with Org while trying to > evangelize my colleagues to Org. The goal is to share documents in the > simplest possible way. > > What I'm trying to do is to have my style be embedded (inline) to my exported > HTML file. > > Today, it can done by customizing org-export-html-style or add my whole style > in my Org buffer with the #+STYLE directive. > > This has the following disadvantages: > > - I have to share my .emacs file with my customizations in order for other > people be able to export the Org file as required. Thus if someone has > another configuration file, it will not work; > > - The style itself (the CSS) is not easily testable and not separate from the > data (it is included in my Org file or in my .emacs). > > It would be good to specify a file for the style in the Org buffer itself and > have an option telling Org if the style has to be embedded (or inline) to the > exported HTML or not. > > Having this option has the following advantages: > > - my exported file is self-contained and is easily shareable; > > - anybody can export the Org file and will get the desired result (even with a > different Emacs config); > > - the CSS itself is easily testable and maintainable by different guys and > can even be a different project. > > What do you think? > > Is it possible to achieve this with the current version of Org? > > Any suggestion is welcome. > > Regards, > Francesco > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Christian Moe E-mail: mail@christianmoe.com Website: http://christianmoe.com