{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.
1
vote
0answers
32 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. ...
4
votes
1answer
140 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
0answers
86 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
254 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. ...
4
votes
1answer
192 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
78 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
102 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 ...
4
votes
1answer
156 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
100 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
96 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 ...
7
votes
2answers
138 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:
...
4
votes
2answers
205 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}
...
7
votes
1answer
200 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 ...
13
votes
2answers
368 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
319 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) ...
10
votes
1answer
1k 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 ...
5
votes
2answers
485 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}
...