From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mehul Sanghvi Subject: Re: org-odt: specifying fonts Date: Tue, 18 Oct 2011 17:15:29 -0400 Message-ID: References: <4E9DDBB7.5050806@christianmoe.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]:49826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGH0X-0003jV-8l for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 17:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGH0V-0003vv-8P for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 17:15:33 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:65528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGH0U-0003vi-V7 for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 17:15:31 -0400 Received: by wwj40 with SMTP id 40so1211852wwj.30 for ; Tue, 18 Oct 2011 14:15:29 -0700 (PDT) In-Reply-To: <4E9DDBB7.5050806@christianmoe.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 Cc: emacs-orgmode@gnu.org, Jambunathan K Christian, Thanks for the stopgap measure. As for fonts, like styles, it would be easier, simpler and more elegant to be able to do that without having to edit styles.odt every time. This is not specific to org-odt. It should be, at least I think so for now, to do this with any exporting backend. If you send me a styles.odt, and I do not like the fonts you are using, it becomes cumbersome to be editing the styles.odt for each font and making sure to change it in all possible places until I settle on a proper font I want to use. If I could instead specify the font in org file itself, it would be a matter of changing the header and re-generating the file. The ODT_STYLE is certainly a good enhancement. On Tue, Oct 18, 2011 at 16:04, Christian Moe wrote: > Hi, Mehul, cc: Jambunathan, > > I agree with Mehul it would be great to have an option to specify a style= s > file on a per-file basis. Something like: > > =A0#+ODT_STYLE: ~/org/odt-templates/cv.odt > > Jambunathan, please consider this a feature request (if you haven't > implemented it already, and I've missed it as usual...) > > Many users will want to use different styles files for different kinds of > document (e.g. report.odt, cv.odt). Customizing org-export-odt-styles-fil= e > every time they've got a different kind of document to export does not se= em > the best way. There should be a way for each Org file to remember what OD= T > style it wants, parallel to the options that exist for html (#+STYLE) and > latex (#+LATEX_HEADER). > > As for specifying fonts, etc., in ODT export, that's definitely something > that should be done through the choice of an external style template. The > org-odt exporter has done its job if everything you could reasonably want= to > style is exported in a named paragraph or character style that you can ap= ply > a template to. > > Yours, > Christian > > PS. Mehul, I do have a stopgap solution for specifying the style template= on > a per-file basis. Place this somewhere in your Org document (e.g. before = the > first heading), and replace "/path/to/template.odt" with the path to your > styles file. > > #+begin_src emacs-lisp :results silent :exports results > (setq org-export-odt-styles-file "/path/to/template.odt") > #+end_src > > > On 10/18/11 6:32 PM, Mehul Sanghvi wrote: >> >> This may not be specific to org-odt, but maybe applies to Org itself. >> >> I have a LaTeX file which I use for my resume at the moment. =A0The >> fonts that are being used with it are great for what I want. >> How do I specify fonts that I want to use, rather then the defaults? >> Do I have to do that through styles.odt ? >> If so, is there a specific OPTION for specifying the style file to use >> ? =A0 That would be a nice enhancement if it is not already there. >> >> I may want to use different styles/fonts, etc. and probably do not >> want to play around with the styles.odt file each time I make >> changes to the styles.odt file. >> >> >> >> > > --=20 Mehul N. Sanghvi email: mehul.sanghvi@gmail.com