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
1answer
50 views

Adjusting the table width with the page width and defining cell width at the same time

I am writtng a text in LaTeX and I need to insert a big table in it. As it is quite wide and I wanted to ajust it to the page width, I used the \begin{adjustbox} command. However, I have a problem ...
0
votes
2answers
38 views

Scaling/Size reduction large longtable to pdflscape

I have an overly large table converted with excel2latex. It may span several pages, but currently, it stretches far beyond the margins of my landscape, despite the columns under “Evaluation metrics” ...
9
votes
2answers
179 views

Precise alignment of a caption to the graphic, not wrapfigure

I'm a bit anal about caption positioning. In the following screenshots there are several issues: Figure (0.1): ✅ the image is correctly positioned at the very right (it touches the magenta line) ✅ ...
0
votes
0answers
5 views

Refer to preconfigured \adjustboxset by name

I'm trying to use adjustbox in a more convenient way. My scenario: For content to appear in the four corners of the page, I use adjustbox for the correct alignment. Right now, this is what I have: \...
3
votes
2answers
59 views

Problem creating a copy of \includegraphics

I've edited this to more clearly state my question. I've had some wonderful suggestions, but they are all pointing at something that's working just fine. I am trying to define a macro \embedimage ...
0
votes
1answer
36 views

Full page width box and icon to highlight paragraph

How can a box (like fbox or adjustbox) be stretched to the full page width to highlight a specific paragraph in the text? The definition should work without hardcoding geometry margins that were ...
0
votes
2answers
29 views

How to center and scale a tikz picture at the same time for beamer

I need to scale donw a Tikz picture and center it on my frame (I am using Rmarkdown). I have tried several options: scalebox, transform canvas, adjustbox, scale, begin{center}, centering, etc... But ...
1
vote
1answer
33 views

Using packages adjustbox and ltablex together

I am creating a long table spanning multiple pages using the ltablex package. I would like to accommodate more content in the same page using the adjustbox package to shrink it a bit and increasing ...
1
vote
2answers
35 views

How can I arrange the text in order to be centered?

I create a table with diffrente values and I want to have a "title" for the two columns. I want to move the text "MP" and "Canny" a little bit on the left ( I want to be ...
0
votes
1answer
44 views

For double column format paper, should we use .5\textwidth or a slightly smaller textwidth for a table?

This is a double-column format paper, and I am using \adjustbox to resize my table. The question is that if I resize my table to .5\textwidth, the table is a little bit beyond the text, so should I ...
0
votes
2answers
44 views

Using siunitx when already using the S column from cellspace

I want to include images in my tabularx such that they are vertically centered, so I used code from Issue with vertical align image in table cell That works fine, except that when I add the siunitx ...
0
votes
1answer
41 views

How to make \adjustbox not scale down equation unless needed?

I do not know why \adjustbox seems to scale down an equation, when there is no need to do that, as the equation can fit in the text without scaling. My understanding is that using \adjustbox{max width=...
0
votes
0answers
75 views

How to apply adjustbox on an algorithm(2e)

I have a double page document and I wish to add an algorithm at a certain point. But if I just include the algorithm (of the algorithm2e package) then the text gets really bad since many lines of the ...
1
vote
1answer
30 views

a problem configuring tex4ht after OCT TL update

I found another problem using tex4ht in mathjax mode after updating TL 2020 two night ago. Something that was working, now does not work. I had solution that allowed me to use a \newcommand correctly ...
1
vote
1answer
123 views

Should tikz be imported by the standalone documentclass

I think I found a bug, but there might be a reason for it. So there I was, making some nice figure of a duck on a gray backround in tikz. But as it turned out, I needed the figure to have a different ...
2
votes
1answer
32 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
44 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
44 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
37 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
49 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
50 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
84 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
48 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
84 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
52 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
31 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
571 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
137 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
108 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
55 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
89 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
43 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
65 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
89 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
26 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
119 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
60 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
66 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
126 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
162 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
405 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
37 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
352 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
178 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
194 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
311 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
289 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
111 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
190 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} \...