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
2
votes
1answer
21 views

avoid line numbering in a algorithm when closing tcolorbox and adjustbox

when closing the tcolorbox and adjustbox inside an algorithm, the lines of codes corresponding to their commands are displayed numbered. How can I prevent the 1 beside the caption (see the below ...
3
votes
2answers
30 views

Rotate two tables including caption on the same page

I want to rotate two tables including their captions and display them on the same page. I tried using sideways tables but there each table is forced on a new page. I currently use adjustbox with {...
0
votes
2answers
30 views

adjustbox seems to add unwanted newpage

I'm trying to set up an article with a very large letter above the title stuff. The adjustbox command from the same-named package seems nice, but it always adds a newpage after the enlarged box and I ...
0
votes
1answer
29 views

Adjust caption font to figures scaled down by the adjustbox package

I have a page with multiple figures, horizontally aligned. It can happen that many figures need to be fitted in this page. Thus, I am using the adjustbox package to scale them down to fit into the ...
0
votes
2answers
45 views

Fit table in text

I made a table but I have the following problem: it does not fit within the text width. I tried to fix it with \adjustbox and \tabularx, both of them without success (it becomes too small and almost ...
0
votes
1answer
31 views

adjustbox package effect all tables? [duplicate]

I have a very long tables in rows and another in columns, i use adjustbox package to resize these tables. However, the other tables which are perfect fine get effect, some of them became in big font ...
3
votes
2answers
55 views

Landscape tabular with floatrow and adjustbox

I have a somewhat large table, and I'm trying to make it landscape oriented (else it not fit). However, I'm using the floatrow package in order to make the caption wrap with the dimension of the table....
0
votes
0answers
38 views

Text wrapping around figures with \cutwin and \itemize for long body text

community, I would like to wrap text around images using \cutwin in \itemize with long body texts. I got three problems: The linespacing (initial setup \onehalfspacing) shrinks largely (see attached ...
3
votes
2answers
75 views

Tabular multicolumns and multirows displacement (and vertical line separation)

I have a huge problem with formatting my tabular latex table with multicolumns and multirows. Specifically with vertical line separation and centering the last section. I'm pretty new in tables so ...
1
vote
2answers
49 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
27 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 ...
1
vote
0answers
201 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:...
3
votes
1answer
88 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
81 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 ...
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
31 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
81 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
36 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
53 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
74 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
23 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
89 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
41 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
52 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
85 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
113 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
195 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
36 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
150 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
163 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
142 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
215 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
244 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
55 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
139 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
323 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
61 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
69 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
584 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
109 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
403 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
662 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
165 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
433 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
97 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 ...
2
votes
1answer
734 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
88 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
43 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|...