emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* use adjustbox rather than resizebox for diagrams?
@ 2016-02-15 13:47 chopps
  2016-02-16 13:04 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: chopps @ 2016-02-15 13:47 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: chopps

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use adjustbox rather than resizebox for diagrams?
  2016-02-15 13:47 use adjustbox rather than resizebox for diagrams? chopps
@ 2016-02-16 13:04 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2016-02-16 13:04 UTC (permalink / raw)
  To: emacs-orgmode

<chopps@chopps.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-16 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 13:47 use adjustbox rather than resizebox for diagrams? chopps
2016-02-16 13:04 ` Rasmus

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).