From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: setting org-export-latex-image-default-option on a per file basis? Date: Wed, 10 Feb 2010 09:00:30 +0100 Message-ID: <7245F58D-5976-4BB0-B0FE-D3C622C9A5D8@gmail.com> References: <874olpc0ik.fsf@stats.ox.ac.uk> <7845.1265768584@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) 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 1Nf9uv-0003kt-PH for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 05:35:33 -0500 Received: from [199.232.76.173] (port=32934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf9uv-0003kl-3M for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 05:35:33 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nf9uu-0002Q1-6G for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 05:35:32 -0500 Received: from ey-out-1920.google.com ([74.125.78.144]:14533) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nf9ut-0002Pt-RE for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 05:35:32 -0500 Received: by ey-out-1920.google.com with SMTP id 4so4640eyg.34 for ; Wed, 10 Feb 2010 02:35:31 -0800 (PST) In-Reply-To: <7845.1265768584@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: Dan Davison , emacs-orgmode On Feb 10, 2010, at 3:23 AM, Nick Dokos wrote: > Dan Davison wrote: > >> Lee Hinman writes: >> >>> Hi all, >>> >>> I'm using org-babel-ditaa to insert a picture into a document I am >>> writing. This works great, except the inserted image is too >>> small. By >>> changing the -s option to ditaa I was able to modify the size of the >>> image for the HTML export but not for the LaTeX. I did a little >>> looking >>> at the .tex file and found this: >>> >>> \includegraphics[width=10em]{before1.png} >>> >>> the width=10em is controlled by org-export-latex-image-default- >>> option. >>> Ideally I'd like to change this value for this file only, something >>> like an entry in the #+OPTIONS line. But org-export-plist-vars >>> has that >>> element set to nil so it isn't configurable via that method. Does >>> anyone have a suggestion of how I could tweak this variable on a per >>> file basis? >> >> Hi Lee, >> >> I was just having the same problem. We can use a file-local variable, >> for now. >> >> # Local Variables: >> # org-export-latex-image-default-option: "width=30em" >> # End: >> >> This goes "near the end of the file" according to >> http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables >> . >> >> Dan >> > > You should also be able to use BIND for this: > > #+BIND: org-export-latex-image-default-option "width=30em" > > should do it. I think this should work but I have not tested it. You can also, on a per image basis, use #+ATTR_LaTeX: width=30em just before the ditaa block. HTH - Carsten