emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <chopps@chopps.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Cc: chopps@chopps.org
Subject: use adjustbox rather than resizebox for diagrams?
Date: Mon, 15 Feb 2016 08:47:11 -0500	[thread overview]
Message-ID: <871t8eqe5c.fsf@tops.chopps.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]


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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 841 bytes --]

             reply	other threads:[~2016-02-15 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15 13:47 chopps [this message]
2016-02-16 13:04 ` use adjustbox rather than resizebox for diagrams? Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871t8eqe5c.fsf@tops.chopps.org \
    --to=chopps@chopps.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).