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
4
votes
3answers
93 views

Wrap text around rotated table and caption

I try to rotate a large table and also the corresponding caption. Around this rotated figure I want to wrap text. I have this MWE, but in this MWE the caption is not rotated and therefore needs a lot ...
0
votes
2answers
46 views

'Fill' image within a box while maintaining aspect ratio

I want to specify a box with certain dimensions, say \textwidth by \textheight, and then "fill" it with an image such that the image aspect ratio is maintained, there is no white space in ...
0
votes
2answers
54 views

Vertical centering multirow and row coloring in a table

I am having issues working with multirow in my table, I cannot figure out how to center a vertical row and how to color all the cells related to it. I am trying to create this table: This is the code ...
2
votes
1answer
46 views

how to scale math in tex4ht?

I need to scale some math using tex4ht. I assume this will only work when compiling latex to HTML when telling tex4ht to use svg for math equations and not mathjax. ps. (if math can scale using ...
0
votes
0answers
19 views

Creating a custom adjustbox minted environment

I've been trying to get a generic environment for putting code listings going using adjustbox and minted. I've found a few examples where people got minted wrapped by an adjustbox where they seemed to ...
1
vote
1answer
36 views

Bottom-align caption in subfloats

I am trying to align the subcaption of two vertically aligned subfigures of different sizes, this is my code, how can I modify it to obtain the desired result? \documentclass[12pt,twoside]{report} \...
0
votes
0answers
61 views

How to change the width and the height of a table by using \adjustbox?

I built a table by using \tabularx in a \landscape environment. I want to resize this table by adjustbox. I used \adjustbox, it can resize the height but the width is still the same. I used this \...
0
votes
1answer
22 views

lapbox + cryptocode = Something's wrong--perhaps a missing \item

When I try to use cryptocode package inside a lapbox (from adjustbox), my code produces: ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. MWE \documentclass{article} \usepackage{...
0
votes
0answers
77 views

LaTeX Error: Command \splitbox already defined

How do I solve this error? When I click on it, overleaf doesn't point me to the line where the error is supposed to be, my document is not even 1876 lines long, I have no idea what is wrong and how to ...
0
votes
1answer
47 views

unable to fit image grid in entire page

I am positioning images as grid but i was unable to change the boarder spaces. I want to make the image sizes big and fit the entire page need help. \documentclass{article} \usepackage[demo,export]{...
0
votes
2answers
108 views

Auto-generated dot lines

I want to create a worksheets which is similar to the first example. The below code meets three problems. It can not be breakable Two examples are not top align The command create dot lines, ...
0
votes
1answer
37 views

Putting figures side-by-side align top of image and top of caption

I know there are a ton of questions about this but I seem to not be able to find want I want. I want to pictures side by side with the picture aligned to the top and the caption to the bottom. I ...
2
votes
2answers
96 views

adjustbox doesn't allow line breaks in enumerate environment. How to fix that?

\documentclass{article} \usepackage{adjustbox} \begin{document} \begin{enumerate} \item \adjustbox{valign=t}{hello\\world} \end{enumerate} \end{document} For a MWE. How to allow the line break as ...
4
votes
1answer
103 views

Text running out of fbox

I have the following piece of Latex code. I want the text to be inside that box but it is running outside. Can someone please help? \documentclass[]{article} \usepackage{varwidth} \usepackage{...
1
vote
1answer
73 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
47 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
280 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
11 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
69 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
142 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
48 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
37 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
46 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
56 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
80 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
147 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
31 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 ...
2
votes
1answer
164 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
55 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
167 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
73 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
42 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
70 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
99 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
128 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
64 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
109 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
75 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
33 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
946 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
204 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
136 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
93 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
35 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
97 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
47 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
75 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
102 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
43 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 "...