From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: questions about exporting to latex using beamer documentclass Date: Mon, 6 Jul 2009 18:24:49 +0200 Message-ID: <9112E318-0171-490D-A7CE-BDB6C534E712@gmail.com> References: <14503.1246765215@gamaville.dokosmarshall.org> <20141.1246812038@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNrKe-0007y8-Vf for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:46:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNrKa-0007rw-7N for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:46:20 -0400 Received: from [199.232.76.173] (port=34793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNrKZ-0007rg-R9 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:46:15 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:28186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNrKZ-000312-8L for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:46:15 -0400 Received: by ey-out-1920.google.com with SMTP id 3so887384eyh.36 for ; Mon, 06 Jul 2009 09:46:14 -0700 (PDT) In-Reply-To: <20141.1246812038@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Jul 5, 2009, at 6:40 PM, Nick Dokos wrote: > 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=1 cm > > 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. You can now do (I think) #+BIND: org-export-latex-image-default-option "width=1cm" This will work for any variables that are not addressed by #+OPTIONS and similar lines. It will not work for anything that is in `org-export-plist-vars', and that is confusing. Any ideas on how these should interact? - Carsten > > HTH, > Nick > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode