{adjustbox} package allows to adjust general (La)TeX material in several ways using a key=value interface. It got inspired by the interface of \includegraphics from the graphicx package. This package also loads the trimclip package whose code was once included in this package.

learn more… | top users | synonyms

3
votes
1answer
5k views

Adjustbox inside figure environment [closed]

I am trying to use the adjustbox package. When I use the adjustbox command inside a \ffigbox (floatrow package) it works fine. Now I wanted to use it inside a figure environment. Therfore I used the ...
8
votes
1answer
885 views

defining a centered shadowboxed listings environment

I'm trying to define a environment for code listings wrapped in a shadowbox and centered in the line. Using this code, I can generate the kind of output that I want: \documentclass[twocolumn]{...
5
votes
2answers
219 views

How to have two adjustwidth environments starting at the same height?

When using minipage environments, as below, the left corner of the two environments are automatically placed at the same height in the document. \begin{minipage}{8em} Lorem ipsum dolor sit amet, ...
5
votes
0answers
2k views

Fitting TikZ picture in beamer: Difference between using \resizebox and \adjustbox? [closed]

\documentclass[10pt]{beamer} \usepackage{amsmath} \usepackage{amssymb} \usepackage[english]{babel} \usepackage{color} \usepackage{float} \usepackage[T1]{fontenc} \usepackage[latin1]{...
4
votes
1answer
262 views

Modify the \textwidth of all subsubsections compatible with adjustbox

I have a very simple document which is a succession of tables within subsubsections of the document. \usepackage{geometry} \geometry{verbose,landscape,a4paper,lmargin=1cm,rmargin=1cm} This is my ...
2
votes
1answer
424 views

adjustbox and lstnewenvironment

I'm trying to use adjustbox to make a frame around listings (I know that listings itself can do this, but its implementation produces sub-optimal results when the line heights are not equal throughout ...
8
votes
4answers
13k views

! LaTeX Error: File `adjustbox.sty' not found on Ubuntu 10.04.2

I have install $ sudo apt-get install texlive-full on Ubuntu 10.04.2 but when I run I got this error about adjustbox. ! LaTeX Error: File `adjustbox.sty' not found Is there anyone know how to ...
6
votes
0answers
151 views

Draft option with adjustbox package [closed]

I've been using the great labour-saving adjustbox package to excellent results. Nonetheless, when using the draft option with the \adjustimage command I do not get the expected result, namely, the ...
2
votes
1answer
1k views

Vertical alignment of table rows with images. PDF vs. HTML generated by htlatex

I have a table with 2 columns. Left column is text and the right column has an image. I wanted the row to be aligned at the top. So that the text and the image start at the same horizontal level. ...
6
votes
1answer
2k views

Robust colored background for parts of the document

I would like to set off certain parts of my document by giving them a colored background. With the help of adjustbox I was able to write an environment that does more or less what I want: It puts its ...
1
vote
1answer
557 views

Is it possible to put a long table (longtabu) into a adjust box (adjustbox)?

I am wondering as the title says whether it is possible to put a long table, especially for me a longtabu into a adjustbox? My code throws an error but I guess this is the same issue as is with ...
3
votes
1answer
5k views

Expand table to use page width

I normally use the table and tabu environment to create my tables. I am new to LaTeX and after I while I realized tables look nicer when they use the whole page width rather than being just centered. ...
5
votes
1answer
383 views

LaTeX align/distribute objects à la InDesign?

I'm trying to replicate, in LaTeX, InDesign's align and distribute tools. This is a snapshot of ID's toolbar: Say I want first to align vertically two objects (texts, graphics, boxes,...), and ...
1
vote
1answer
611 views

Newline in adjustbox caption

Is it possible to have a paragraph break or a newline in the caption of an adjustbox? \\ \newline and \tabularnewline don't seem to work. Thanks \documentclass{article} \usepackage{adjustbox} \...
3
votes
1answer
1k views

Adjustbox not showing caption with key option chosen

I can't get a caption to show up in the following MWE. I've put caption at the end of the key list, and in the actual example the BLAH BLAH BLAH is replaced with an \input{table.tex} variant, but the ...
5
votes
1answer
2k views

vertical aligning images in table with \adjustbox only works when not every image is in an \adjustbox

I'm trying to center all images vertically and horizontally within a table cell. Therefore I'm using the adjustbox packet. This is the code I use for my table: \begin{table}[b] \begin{center} \...
6
votes
1answer
360 views

Horizontal array of enumerated equations

This is for use in work assignments for math students. I'd like to post multiple parts for a given question, without sacrificing too much space for this. So I want a bunch of equations arrayed ...
5
votes
1answer
416 views

Adjustbox ate my newlines

Apologies for the long MWE. Wanted to understand what I was doing wrong here. Trying to shrink this as part of a longer exercise in producing some slides. (This is the legend for a graphic referenced ...
10
votes
2answers
411 views

How to create command for a box where text inside the box can automatically adjust?

I have a problem on how I can make my command right. I created a box where the text will be inside it when used but something went wrong when I prolong the text it turn out like this: Code: \...
5
votes
2answers
2k views

Reference to figure label in adjustbox

\begin{figure} \begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption[bla] {% bla ..., fig. \protect\ref{fig:fig1}, ...bla. } \end{minipage}}} \includegraphics[scale=1]{figure.png} \end{...
8
votes
1answer
2k views

Why does adjust box not resize to the dimensions given

Hi looking to understand this a little better. Why does adjustbox not resize the text in the following example so that it fits the dimensions I think I'm specifying. e.g a 4in x 4in box. Am I doing ...
16
votes
2answers
2k views

How to scale and then trim an image?

I am trying to create a document that requires the inclusion of images at a precise size (h x w inches). I would like to reuse the document template, so I would like to create a command that would ...
6
votes
1answer
759 views

Grid missing horizontal lines

The following code: \begin{figure}[!t] \centering% \begin{tikzpicture}[xscale=1,yscale=1,auto, inner sep=0pt,remember picture] \node[anchor=north west,inner sep=0] (image) at (0,0) {\adjustbox{margin=...
21
votes
1answer
14k views

Cropping/Trimming an image with includegraphics by specifying percentages

Say I have an image my_image.png that I am loading in my LaTeX document using: \begin{figure} \includegraphics[width=0.5cm]{my_image.png}} \end{figure} Is there a way of telling LaTeX to only ...
7
votes
2answers
2k views

How do I export adjustbox-parameters?

I have got two adjustboxes (from the adjustbox package). Now I need to give the second box the same totalheight as the one which the first box got. \documentclass{article} \usepackage{etex} \...