From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: use adjustbox rather than resizebox for diagrams? Date: Tue, 16 Feb 2016 14:04:15 +0100 Message-ID: <87si0serhs.fsf@gmx.us> References: <871t8eqe5c.fsf@tops.chopps.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVfIv-0008Ug-Os for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 08:04:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVfIp-0000t9-T7 for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 08:04:33 -0500 Received: from plane.gmane.org ([80.91.229.3]:50452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVfIp-0000t4-LP for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 08:04:27 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aVfIo-0007X7-4R for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 14:04:26 +0100 Received: from 62.80.108.12 ([62.80.108.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2016 14:04:26 +0100 Received: from rasmus by 62.80.108.12 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2016 14:04:26 +0100 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: emacs-orgmode@gnu.org writes: > I've had very good luck using adjustbox for diagrams in ox-beamer > generated presentations. I've had much less luck using the standard > output (resizebox). I'm wondering if people might consider switching > over to adjustbox rather than resizebox for graphical inclusion? > > The main difference between adjustbox and resizebox seems to be that > resizebox always resizes the included graphics whereas adjustbox only > resizes the graphics if they exceed the space as specified, and then the > graphics are scaled proportionally. This generally leads to getting what > you actually want all the time vs. having to tweak either the width or > height of the results to get the correct visuals. > > IOW if ox-latex switched to adjustbox it could assign defaults for both > width and height and generally the user would get what they wanted > without having to specify anything. > > Example raw latex using adjustbox: > > \begin{adjustbox}{max totalsize={.9\textwidth}{.9\textheight},center} > \input{sequence.tikz} > \end{adjustbox} Interesting, I wasn't aware of adjustbox. Resizebox has the advantage that it doesn't require another dependency. For that reason I have a slight preference for resizebox (though I'd probably use neither). Thanks, Rasmus -- Nothing's wrong with an email that ends in a minor key