From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: questions about exporting to latex using beamer documentclass Date: Sun, 05 Jul 2009 12:40:38 -0400 Message-ID: <20141.1246812038@gamaville.dokosmarshall.org> References: <14503.1246765215@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNUmx-0003no-0a for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 12:42:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNUms-0003ma-Bs for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 12:42:02 -0400 Received: from [199.232.76.173] (port=50671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNUms-0003mX-7q for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 12:41:58 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:50217) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNUmr-0004r1-PR for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 12:41:57 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.221]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KMB003GVIAYOSX0@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 05 Jul 2009 11:40:11 -0500 (CDT) In-reply-to: Message from Spike Spiegel of "Sun, 05 Jul 2009 12:52:32 BST." 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: Spike Spiegel Cc: emacs-orgmode@gnu.org Spike Spiegel wrote: > ... > Also, given a variable like org-export-latex-image-default-option, is > there any way to override it per file or per document class? > ... Well, yes and no (mostly no - but see below): o You can of course customize this variable, but that's a global setting. o You can use the ":latex-image-options" property to set the above variable, but that is used in org-publish-project-alist, not for exporting. From org-exp.el: ,---- | (defconst org-export-plist-vars | '((:link-up nil org-export-html-link-up) | | ... | | (:latex-image-options nil org-export-latex-image-default-option)) | "List of properties that represent export/publishing variables. | Each element is a list of 3 items: | 1. The property that is used internally, and also for org-publish-project-alist | 2. The string that can be used in the OPTION lines to set this option, | or nil if this option cannot be changed in this way | 3. The customization variable that sets the default for this option." | ) `---- o You can modify the setting of the org-export-plist-vars (either by modifying your copy of org-exp.el or by some other method) to change the line (:latex-image-options nil org-export-latex-image-default-option)) to (:latex-image-options "latex-image-options" org-export-latex-image-default-option)) and then use #+OPTIONS: latex-image-options:width=1cm in your org file. [BTW, if you are using git, small local variations from the canonical org-mode can be easily accommodated, by using a local branch and git rebase.] o You can try to convince Carsten that this should be part of canonical org-mode. HTH, Nick