From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Question on LaTeX scaling of images Date: Thu, 05 Jan 2012 18:04:10 -0500 Message-ID: <15701.1325804650@alphaville.americas.hpqcorp.net> References: <877h17rxsw.fsf@iro.umontreal.ca> <13826.1325711872@alphaville.americas.hpqcorp.net> <8739bvrr8h.fsf@iro.umontreal.ca> <21185.1325722786@alphaville.americas.hpqcorp.net> <80aa62mv0d.fsf@somewhere.org> <7403.1325792111@alphaville.americas.hpqcorp.net> <80hb09lsbq.fsf@somewhere.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiwM2-0002os-0f for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:04:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiwM0-0007AN-R5 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:04:13 -0500 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:12496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiwM0-0007AG-NK for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:04:12 -0500 In-Reply-To: Message from "Sebastien Vauban" of "Thu, 05 Jan 2012 23:04:09 +0100." <80hb09lsbq.fsf@somewhere.org> 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: Sebastien Vauban Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Sebastien Vauban wrote: > > the only thing that has worked is actually hacking org-latex to > > insinuate the \raisebox in the proper place. > > Did you send a patch? Or is this too fragile to be applied to the core? I > really think I will need such a thing quite soon -- I've got such a > problematic LaTeX construct coming up in slides I'm working on. > No - I can't send patches, but in any case, this was just a proof-of-concept hack. I just wrapped the \includegraphics on line 2282 or so of org-latex.el (the default case of the cond which is the inlined-image case) inside the \raisebox construct. One still needs to add a \usepackage{calc} by hand to make even this trivial hack to work, but more importantly, one would need to make the alignment configurable by the user: that's the tougher part. Nick