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

Coloured table cells not showing

In the following table, the colors are not showing: \documentclass[ 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline, oneside, chapterinoneline, reqno, a4paper, toctotoc, table]{...
user avatar
1 vote
3 answers
71 views

How to include a data table in a document [duplicate]

I am trying to include a table of data in a document. I have an underfull warning and the text looks too small to me. How do I make the text bigger? Ideally I want the table to have the same font size ...
user avatar
  • 21
3 votes
1 answer
49 views

Fully customized figure template - align figures and text (captions) at will

I would like to manipulate subfigures and captions exactly as I want. The result I want to obtain is visible just below: I want to display Image 1 at 0.8\textwidth (the width/height ratio will always ...
user avatar
  • 33
0 votes
2 answers
44 views

Top align images in subfigure/minipage with adjustbox when one caption spills over to next line

I am trying to use the adjustbox package to vertically align two subfigures (which, as I understand, are minipages). \documentclass{beamer} \usepackage{subcaption} \usepackage{adjustbox} \begin{...
user avatar
  • 1
0 votes
3 answers
41 views

How to adjust width of longtable (numeric values)

Below is the code of my table. It has many columns, each of which has a numeric value. I would like to split this into many pages (that's why I'm using longtable) and fit it to page width (tiny font ...
user avatar
  • 241
0 votes
1 answer
47 views

How to use adjustbox with longtable

I really like to use adjustbox package with my numerical data which often is too wide and when \tiny font is still too large. However, the problem is when my table is too high. Can I somehow use both ...
user avatar
  • 13
0 votes
1 answer
28 views

How to fix text size for all tables within a section?

I have several tables in my article. Unfortunately, the text size in the tables differ quite substantially. I would like to have all the tables with exactly the same text size but also with the same ...
user avatar
  • 75
0 votes
1 answer
40 views

How to adjust a box position with tcolorbox

I would like to adjust the position of a box created with tcolorbox by respecting the values of the horizontal margin on each of the two sides. For instance : I would like to avoid the box to appear ...
user avatar
  • 185
0 votes
1 answer
99 views

Creating a box surrounded by text in Tcolorbox

How is it possible for me to put a box of adjustable size surrounded by a text in a latex document ? For instance : my inspiration is from the yellow boxes in this image : \documentclass{article} \...
user avatar
  • 185
0 votes
1 answer
73 views

Creating 2 boxes side by side with tcolorbox

I want to create 2 boxes side by side (image below) in order to have the red box on the right of the blue one : I wrote this code but I don't know how to do it (I am just specifying the width to fit ...
user avatar
  • 185
1 vote
1 answer
53 views

How to reference a sidewaystable in latex?

I tried to reference a sidewaystable in my text. Unfortunately, the reference in the text is exactly the label name, i.e. table:1 instead of just 1. How can I reference the sidewaystable below and get ...
user avatar
  • 75
0 votes
0 answers
26 views

Fit table height to page

Hey I want to put a table to my latex document in such a way that it fill the rest of the place on a given page. How can I do that with for example adjustbox? The following works if I want to fit ...
user avatar
  • 13
1 vote
1 answer
34 views

How to keep cell text height large when using adjustbox?

When I restrict the table width to 0.7\textwidth it also reduces the size of the font. I would like the table to show in the center of the page but for the text to be large enough to be readable. \...
user avatar
1 vote
2 answers
42 views

longtable and adjustbox/textwidth

Can this table be put on the width of the text ? I have tried many things but they didn't work. \setlength\LTleft{0pt} \setlength\LTright{0pt} \begin{longtable}[c]{@{\extracolsep{\fill}}cccccccccc@{}} ...
user avatar
0 votes
1 answer
53 views

adjustbox for 'Overfull \hbox LaTeX' with subfloat and minipage

I am trying to put two figures (separately stored in two .pdf files) vertically in a one-column style. \subfigure is not allowed, and below is my code: \documentclass{article} \usepackage{subfig} \...
user avatar
0 votes
0 answers
28 views

Environment Error in document class thesis

I am writing a document in document class thesis. It basically has a thesis.tex file where the packages are imported, chapters are included and for the each chapter, I beginning with: \chapter{...
user avatar
  • 1
3 votes
1 answer
107 views

Box repeat shape of word

Hi, is there any way how to make "box" follow shape of words?
user avatar
1 vote
1 answer
107 views

LaTeX adjustbox shrinks table

I've been having a strange issue with my LaTeX code with adjustbox. I'm currently using RMarkdown which converts markdown to LaTeX codes, and I'm having trouble narrowing down where it is causing the ...
user avatar
4 votes
3 answers
198 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 ...
user avatar
  • 107
0 votes
2 answers
87 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 ...
user avatar
0 votes
2 answers
61 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 ...
user avatar
2 votes
1 answer
83 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 ...
user avatar
  • 18.4k
0 votes
0 answers
41 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 ...
user avatar
1 vote
1 answer
66 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} \...
user avatar
0 votes
0 answers
369 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 \...
user avatar
  • 260
0 votes
1 answer
46 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{...
user avatar
  • 5,175
0 votes
0 answers
259 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 ...
user avatar
0 votes
1 answer
73 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]{...
user avatar
  • 175
0 votes
2 answers
133 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, ...
user avatar
1 vote
1 answer
111 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 ...
user avatar
  • 111
3 votes
2 answers
148 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 ...
user avatar
4 votes
1 answer
143 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{...
user avatar
1 vote
1 answer
132 views

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

I am writing a text in LaTeX and I need to insert a big table in it. As it is quite wide and I wanted to adjust it to the page width, I used the \begin{adjustbox} command. However, I have a problem ...
user avatar
  • 11
0 votes
2 answers
71 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” ...
user avatar
  • 169
9 votes
2 answers
393 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) ✅ ...
user avatar
  • 265
3 votes
2 answers
111 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 ...
user avatar
0 votes
1 answer
258 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 ...
user avatar
  • 812
0 votes
2 answers
85 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 ...
user avatar
1 vote
1 answer
44 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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 145
0 votes
1 answer
49 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 ...
user avatar
  • 233
0 votes
2 answers
66 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 ...
user avatar
  • 1,615
0 votes
1 answer
130 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=...
user avatar
  • 18.4k
0 votes
0 answers
243 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 ...
user avatar
  • 331
1 vote
1 answer
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 ...
user avatar
  • 18.4k
2 votes
1 answer
224 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 ...
user avatar
2 votes
1 answer
69 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 ...
user avatar
  • 23
3 votes
2 answers
311 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 {...
user avatar
0 votes
2 answers
100 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 ...
user avatar
  • 369
0 votes
1 answer
58 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 ...
user avatar

1
2 3 4 5