From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: org-odt: specifying fonts Date: Wed, 19 Oct 2011 23:24:38 +0530 Message-ID: <81d3dslvdt.fsf@gmail.com> References: <4E9DDBB7.5050806@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGaM9-0001ms-Qq for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 13:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGaM2-0006oS-It for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 13:55:09 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:56175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGaM2-0006oE-BH for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 13:55:02 -0400 Received: by ywb3 with SMTP id 3so2326615ywb.0 for ; Wed, 19 Oct 2011 10:55:01 -0700 (PDT) In-Reply-To: <4E9DDBB7.5050806@christianmoe.com> (Christian Moe's message of "Tue, 18 Oct 2011 22:04:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org, Mehul Sanghvi > I agree with Mehul it would be great to have an option to specify a > styles file on a per-file basis. Something like: > > #+ODT_STYLE: ~/org/odt-templates/cv.odt I have gone with `#+ODT_STYLES_FILE: '[1]. Refer the docstring below for a sample setting. ,----[ C-h v org-export-odt-styles-file RET ] | org-export-odt-styles-file is a variable defined in `org-odt.el'. | Its value is nil | | Documentation: | Default styles file for use with ODT export. | Valid values are one of: | 1. nil | 2. path to a styles.xml file | 3. path to a *.odt or a *.ott file | 4. list of the form (ODT-OR-OTT-FILE (FILE-MEMBER-1 FILE-MEMBER-2 | ...)) | | [snip] | | Use "#+ODT_STYLES_FILE: ..." directive to set this variable on | a per-file basis. For example, | | #+ODT_STYLES_FILE: "/path/to/styles.xml" or | #+ODT_STYLES_FILE: ("/path/to/file.ott" ("styles.xml" "image/hdr.png")). | | You can customize this variable. `---- Hope it is OK. Footnotes: [1] The name of the option is same as the upcased custom variable name with `org-export-' prefix stripped. The same convention can be used for any "future" per-file odt settings. --