From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: use adjustbox rather than resizebox for diagrams? Date: Mon, 15 Feb 2016 08:47:11 -0500 Message-ID: <871t8eqe5c.fsf@tops.chopps.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVJUk-0007KV-Dk for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 08:47:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVJUf-0003bu-E3 for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 08:47:18 -0500 Received: from smtp.chopps.org ([54.88.81.56]:46977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVJUf-0003ba-9i for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 08:47:13 -0500 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 Cc: chopps@chopps.org --=-=-= Content-Type: text/plain 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} Thanks, Chris. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWwdbfAAoJEC4dgw7XuDAlm3UP/ianwD55S8JagRieAjIwb2ty muNBpKILTaD/FI/ZEuA79spIu2O4s8zd+6uXWzVJrcDna+nv8/nVmfBTwNqSJs/6 NyZ646bCiVnDAtX3Ow+GPPz6FPlbYyZ3kMWLy5hDdfnnDwqBShb4ymFX8NQB+/S9 U25Y3fyBZkN7SjRuwG9VuC1Y+XByKiZU3hTPi23ZegfDzi5QKGXRXaF5griDmzn/ hGCGBFo4+m0VREq2/wbCHUi2Q4isY33bcAB0LA4F8BtzbS5uvkWdXSjEPrupz29I 3fzJyzbcIUixSjO1Kt6Ft+sUJK0bIvFfl3+NNXM0Pu3oMI1FBJhNEal7i7x16BOe L00kKP75R0CXGCBozzupFhEjOljDwbvDnksfIOuBeeHTo+15czKMmVVzgnOmm8h5 Qe1krvWIUnoUTEB0V4SL/SDr19EbLmhEoACqGm1t+reTOH3ZfLukGzAZHYONMu5i JhRYd8q2vDCfYWDYDH0UJJUUQ+2e5Sz3UbHQGldOpDo0jTSasfzTIhfV8tVtUO5W /8Xz2P+3SJLlWamxzG8ut3hATrx6f7tfx9ac61zt2yxpnbGZq3W9C29v2K6sB+uv SXcG6PnlMAq9EvKv6JQl2FLs3aoi24HFT4mcRJ8kyo3PjUPx+bHbAnNIiAM0dhkh hUoAljOv1JoAeeWdtfrw =xoT8 -----END PGP SIGNATURE----- --=-=-=--