Questions tagged [adjustbox]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
31 views

Setting width multicolumn table to fit the page width

I have a multicolum table but the table doesn't fit the page width in order to obtain this setting When I run the latex, also using \begin{adjustbox}{width=\textwidth}, I get this result \...
0
votes
1answer
19 views

How to fit a large column to page without rendering the text too small?

I'm trying to fit a large column in a two column article document, such that it spans the width of the columns. The first solution I tried to have the table fit the page was to use the \adjustbox ...
0
votes
0answers
33 views

Horizontal Table: ! You can't use `\hrule' here except with leaders

I wish to plot an horizontal table. When I run the code I got the following error message *"! You can't use \hrule' here except with leaders. If I move the line \caption{Test Table}\label{tab:...
1
vote
1answer
31 views

Itemize environment nested in adjustbox

I need to emphasize a dashed list of formulae by putting it into the colored box. I tried to use adjustbox package and the errors like "Something's wrong--perhaps a missing \item. \item [\bfseries 104:...
0
votes
0answers
60 views

Fixed-size placeholders for figures in twocolumn TeX document?

I am looking for a solution how to implement placeholders of different sizes, framed by colored top and bottom rules, that I can position on different twocolumn pages as desired. The goal is to ...
0
votes
1answer
59 views

How to insert a top and bottom rule for a minipage environment that includes figures of varying sizes?

I am writing a TeX document with two columns in which I want to include figures at fixed positions on the pages. The positions should be as follows (see page 1 MWE): Wide figure at top/bottom of the ...
3
votes
2answers
39 views

Siunitx Table Space Before Close Parenthesis

I have a problem with siunitx, such that a space is being added between the decimals and the closing parenthesis for every cell. The fix suggested here did not work for me. A MWE is included below, ...
0
votes
1answer
30 views

Trouble shinking matrix of equations

I have a large matrix that does not fit on a single line (for a paper that is split in two columns). So far I haven't been able to figure out a way of using adjustbox to shrink the size. Here is ...
1
vote
1answer
78 views

How to shift \twopagepicture away from the outer margins?

I use the \twopagepicture snippet that's posted here. How to include a picture over two pages, left part on left side, right on right (for books)? I need a small adjustment where the figure does not ...
2
votes
1answer
29 views

Full page coloured box

I would like to create a coloured box that fits the size of its container exactly. To start, I have attempted to create a box that is precisely the size of the page. My first attempt used \colorbox ...
2
votes
1answer
45 views

Aligning and sizing images inside tabularx cells

For the following, why does graphbox top-align the image better than adjustbox? Additionally, how to make width=\columnwidth work as expected? \documentclass[12pt,a4paper]{exam} \usepackage{graphbox,...
2
votes
2answers
63 views

Can someone explain how to use “\Smallestside” type macros from the adjustbox package?

I was trying to fit a gantt chart on a slide in beamer. I don't want to keep changing the dimensions of resizebox if the size of the gantt changes. I was reading the adjustbox package and on page 11 ...
0
votes
0answers
22 views

Crop a pgf image to extents

I'm generating a fair bit of plots with matplotlib for my document. For consistent white space between plots, images, etc. I'd like to crop the plot images which are pgf to the extents of the plot "...
4
votes
3answers
79 views

Position image next to a text within an adjustbox created in a newenvironment

I try to create a box with a gray background color, where there is a centered image on the left and a text on the right side of the box. It should look like the boxes created in here. Here's a short ...
0
votes
0answers
30 views

“Missing \endgroup inserted” with tabular - possible mismatch with adjustbox?

I am writing a document for which I need to insert tables produced by the statistical progam Stata. More specifically I am using Stata package outreg2. Here is an example of the type of a table that I ...
1
vote
1answer
44 views

Tiltle of a big table in overleaf

I am using overleaf latex website for my thesis. I am trying to write a title above a table; I have tried different way but I do not know how. Would you please help! \documentclass[12pt]{uthesis-...
1
vote
2answers
61 views

Wrap text around table in nested enumerate environments

As a follow-up question to Wrap text around table in itemize environment, I'd like to contain an enumerate environment and a table inside another enumerate environment. Right now, the table appears ...
0
votes
0answers
73 views

How add title (caption) to adjustbox

How can I add a title to a table using the adjustbox package? Where should I put the $\caption$ parameter, so that it appears on the top? \begin{adjustbox}{width=\textwidth} \centering \begin{tabular}...
0
votes
1answer
107 views

Using tcolorbox, but the color is not exactly the right color

I am using the following code \documentclass[oneside]{book} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{xcolor} \newtcolorbox{tbox}[3][] { colframe = #2!25, colback = #...
1
vote
1answer
32 views

tabularx and rotatebox: Vertical Centre on Page

I have a tabularx table that has been rotated 90 degrees using rotatebox, contained in a figure. Something is preventing LaTeX from centring the figure on the page: it is close, but slightly too far ...
1
vote
2answers
97 views

How to make the text fit into the cells of this table?

I'm trying to create a big table using Latex. The result must be something like this: but what I get it's something like this: \documentclass{article} \usepackage{tabularx} \usepackage{adjustbox} \...
7
votes
2answers
153 views

Why adjustbox needs a tweak of raise=-0.3ex with enumitem?

The MWE below yields the desired results. But, is there a better way to get this alignment instead of the raise=-0.3ex: Without the raise=-0.3ex, the item number is not aligned with the text: Code: ...
2
votes
1answer
111 views

Division by zero error when using adjustbox and makebox

first question in this stack community. I'm trying to create a new style for title page: \documentclass{article} \usepackage[italian]{babel} \usepackage[paper=a4paper, top=4cm, bottom=2.5cm, left=2....
0
votes
1answer
145 views

Complex table over multiple pages in combination with adjustbox

Problem statement I am fairly new to tables in Latex and currently really struggling with the longtable package. Questions as to how to make tables over multiple pages have already been asked several ...
2
votes
3answers
233 views

Tikzpicture in figure problem

Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox. \documentclass[ a4paper, % ...
1
vote
1answer
37 views

frame option from adjustbox does not work in tex4ht

This MWE works in pdf. It puts frame around an image. But in HTML I see no frame produces \documentclass[12pt]{article}% \usepackage{graphicx} \usepackage[export]{adjustbox}%for frame option \begin{...
1
vote
1answer
105 views

Adjusting perimeter of colorbox to fit text

Consider this MWE: \documentclass[11pt]{article} \usepackage[left=1.5cm,top=2.5cm,right=3.5cm,bottom=3.2cm,a4paper]{geometry} \usepackage{xcolor} \usepackage{adjustbox} \usepackage{setspace} \...
1
vote
1answer
238 views

Tcolorboxes side by side [closed]

I want to put to tcolorboxes side by side in a beamer document. I am using tcbraster to split the page in two. However, the two tcolorboxes are placed one below the other and not side by side. ...
1
vote
1answer
59 views

Adjust expression

How to adjust this expression \documentclass[a4paper,twoside,12pt]{ article} \usepackage[latin1,utf8,utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \frenchbsetup{...
1
vote
2answers
59 views

Content aligned with a figure changes positions when the figure is uncovered (beamer)

When I align two minipages together, the contents location changes after a figure in one minipage is uncovered. The distance from the rule to the upper palettes illustrates this \documentclass[...
14
votes
4answers
533 views

How to cut off part of a letter

I want to cut off the very top left part of an uppercase R. I tried using \adjustbox, but it cuts off the whole top part, which is not what I want. Here's the MWE, the corresponding output and the ...
4
votes
1answer
104 views

Clipped symbol in table caption

I want to place a clipped math symbol in table caption. This MWE works until I uncomment the marked line \documentclass{amsart} \usepackage{trimclip} \begin{document} \begin{table} \caption{Clipped ...
3
votes
3answers
296 views

Combining sidewaystable, adjustbox and threeparttablex

I need to have a table which 1) is sideways 2) is rescaled to fit the page 3) has tablenotes. I'm trying to combine sidewaystable, adjustbox and threeparttablex to do so, but I encounter three ...
1
vote
1answer
43 views

Using adjustbox in tex4ht does not work. Is this known limitation?

This MWE, thanks for solution from this post %----------------------------- \documentclass[12pt]{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \begin{enumerate} \...
4
votes
3answers
498 views

Silencing overfull hbox warning for listing in adjustbox

I have the following in my document and it works as I expect, scaling the listing to fit the page, but it gives me a spurious Overfull \hbox warning that I would like to get rid of: \begin{adjustbox}{...
2
votes
1answer
134 views

How do I set the Rotate attribute for a landscape page of a pdf produced by xelatex?

I've adopted this answer to rotate a table and its caption. I do not want to rotate the header, the footer, the section title not the paragraph on the same page. Now I want to change the Rotate ...
1
vote
1answer
352 views

Multirow table with big column entries

I made this table but it doesn't fit the page. I tried \adjustbox but that seems to reduce the text size of the entries. I want the text size to be unchanged. \documentclass[12pt,notitlepage,oneside]{...
1
vote
1answer
86 views

Extra vertical space at end of last column when loading adjustbox (only luatex)

I have noticed some odd extra vertical when placing boxes in a twocolumn layout: \documentclass[a5paper]{article} \usepackage{calc} % issue only happens with adjustbox loaded \usepackage{adjustbox} ...
0
votes
1answer
45 views

After page-break my node does not exist anymore

After page-break my node (string) gets lost. Only at the first page my node "100" is shown. This code contains parts from @skillmon @ulrike fischer @saso Thank you at this point. I know i should post ...
1
vote
1answer
522 views

“Can't use \vadjust in internal vertical mode” triggered by two-line hanging caption, using adjustbox, caption packages

I want: a floating table with caption (with hanging indent), such that both the table and caption are surrounded by a frame filled with a background color. My environment hierarchy is table » adjust ...
4
votes
2answers
73 views

Restrict background color to varwidth's narrower width with adjustbox?

I want to wrap a frame, with background color, around each table, with its caption included within the frame. For the frame, I've adapted Martin Scharrer's answer to "Adding border around figure and ...
1
vote
2answers
41 views

Can't adjust table decently

The following LaTeX code generates a table, but it surpasses the limits of the page: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{table}[H] \begin{tabular}{|c|c|c|c|...
0
votes
0answers
23 views

Table height exceeded page border [duplicate]

I know that some tricks, like using adjustbox, would restrict a table to the page length vertically. However, is there a similar approach to apply such a vertical length restriction?
1
vote
1answer
78 views

How to globally stretch text height, keeping the margin limits?

I am working with a designer that requires the height of the font type we are using to be stretched by a factor of 1.2. I have succeeded doing so using the adjustbox package, as described in the post ...
1
vote
2answers
166 views

Problems adjustbox moves to another subsection

I have difficulties with adjustbox. I had created a subsection and inside it is a table and this table moves to another subsection and I do not know how to fix this problem. I hope your help, please: ...
0
votes
1answer
91 views

Vertical alignment of nested itemized lists in tabular

Why are A1, B1, and C1 not aligned? Shouldn't p align them on top? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{adjustbox} \usepackage{enumitem} \usepackage{booktabs} \usepackage{...
1
vote
1answer
172 views

Rotating captions with adjustbox does not work when floatrow package is loaded

I tried to rotate a figure and its caption using the adjustbox package. This works fine, until I load the floatrow package too, then the caption isn't rotated. See my MWE: \documentclass{article} \...
1
vote
1answer
407 views

Set default value for “max width” of “includegraphics”

I'd like to set a default value for max width (and max height) for \includegraphics elements. I have \usepackage[export]{adjustbox} in the preamble so images have the max width key. Then I tried to ...
1
vote
1answer
143 views

Using adjustbox type functionality with supertabular

I am trying to add a long table to a two column latex document. Since the table is long, without continuing in the 2nd column, it continue in the first column like below. Following is the current ...
4
votes
1answer
383 views

Cropping images to box

Is there any easy way in (Lua)LaTeX to crop an image to a specific bounding box, but only cropping on the one dimension which is too large for the box? A solution to crop on the height could be the ...