From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mehul Sanghvi Subject: Re: org-odt: specifying fonts Date: Wed, 19 Oct 2011 14:15:00 -0400 Message-ID: References: <4E9DDBB7.5050806@christianmoe.com> <81d3dslvdt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGafQ-0004oL-Cl for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 14:15:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGafP-0003C9-0U for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 14:15:04 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:58079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGafO-00036H-Pw for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 14:15:02 -0400 Received: by wyg34 with SMTP id 34so2440810wyg.0 for ; Wed, 19 Oct 2011 11:15:01 -0700 (PDT) In-Reply-To: <81d3dslvdt.fsf@gmail.com> 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, Mehul Sanghvi , emacs-orgmode@gnu.org On Wed, Oct 19, 2011 at 13:54, Jambunathan K wrote= : > >> I agree with Mehul it would be great to have an option to specify a >> styles file on a per-file basis. Something like: >> >> =A0 =A0#+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. =A0For 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. > -- > Awesome !! Thanks Jambunathan --=20 Mehul N. Sanghvi email: mehul.sanghvi@gmail.com