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
3 answers
155 views

Is there any way to adjust column widths when a particular row using multicolumn is too long in latex?

I am using latex for my academic writing and wonder if there is any way to show a table in the latex document below beautifully. \documentclass[fleqn,12pt,a4]{article} \usepackage{adjustbox} \...
0 votes
2 answers
41 views

How to vertically center text in minipage environment?

I'm writing my CV and the following one is a MWE regarding my question: \documentclass[11 pt,oneside,a4paper,titlepage]{article} \usepackage{graphicx} \RequirePackage{graphbox} \usepackage{calc} \...
  • 745
1 vote
1 answer
37 views

Help!! I don't know why the right bigg bracket is not encapsulating everything while the left worked [duplicate]

\documentclass[a4paper, openany, oneside, 12pt]{report} \usepackage{makecell} \begin{document} \begin{adjustbox}{width = 1 \textwidth} \large \begin{tabular}{c|c|c|c} \hline $(2,1, 1)$:= $1^1 2^2$ &...
0 votes
2 answers
33 views

Combine stackbox with multicolumn

I am trying to keep my multicolumn table as small as possible and wanted to have the first row stacked. However, when I try to use the \stackbox option the name gets continued on to the next one which ...
0 votes
0 answers
27 views

Using adjustbox withouth changing fontsize

I am trying to adjust the table to the \textwidth but it changes the size of the font and becomes too big. Is there any way to fix the width of the table to the margins (1\textwidth) without changing ...
  • 1
2 votes
1 answer
120 views

An explicitly centered TikZ picture is pushed far to the right when the document's language is set as Hebrew via the babel package

The following LaTeX code was saved in ~/test.tex. \documentclass{article} \usepackage{adjustbox,tikz} %\usepackage[bidi=basic]{babel} %\babelprovide[main]{hebrew} \begin{document} \begin{adjustbox}...
  • 10.5k
0 votes
0 answers
46 views

How to track change in in latex table with \adjustbox (to adjust table width) package?

I attempted to use latexdiff to compare track changes in a table containing \adjustbox in both the old.tex and new.tex files. But the command latexdiff old.tex new.tex > diff.tex is not showing any ...
1 vote
1 answer
83 views

Minimizing table, insert and fit within a single page [duplicate]

\documentclass[12pt]{elsarticle} %% for removing the footer \makeatletter \def\ps@pprintTitle{% \let\@oddhead\@empty \let\@evenhead\@empty %\let\@oddfoot\@empty \let\@evenfoot\@oddfoot } \...
  • 23
0 votes
0 answers
19 views

Listings with colors, realtive width and no line break

I am looking for a straightforward way to get a listing environment that follows this specifications: Specific colors can be set on specific parts of the listing. No linebreaks, including for colored ...
  • 255
3 votes
2 answers
128 views

How to Draw Electrons on Bonds Using Chemfig and Contain a Chemfig withn a Box?

I have been playing around with the "chemfig" package to get electrons drawn on a given bond. I used the "chemmove" command to draw the electrons, but it is inefficient to modify ...
  • 133
0 votes
1 answer
44 views

Math mode error in Shortunderstack

I'm getting some red dot errors like this from Overleaf while it still compliles good without any problem. After narrowing down the problem, I see that it's because of using the math mode inside ...
  • 255
1 vote
1 answer
47 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]{...
1 vote
3 answers
103 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 ...
  • 21
3 votes
1 answer
59 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 ...
  • 33
0 votes
2 answers
89 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{...
  • 1
0 votes
3 answers
50 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 ...
  • 241
0 votes
1 answer
97 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 ...
  • 33
0 votes
1 answer
38 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 ...
  • 75
0 votes
1 answer
91 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 ...
  • 403
0 votes
1 answer
191 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} \...
  • 403
0 votes
1 answer
168 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 ...
  • 403
1 vote
1 answer
149 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 ...
  • 75
0 votes
0 answers
27 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 ...
  • 33
1 vote
1 answer
94 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. \...
1 vote
2 answers
86 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@{}} ...
0 votes
1 answer
85 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} \...
3 votes
1 answer
132 views

Box repeat shape of word

Hi, is there any way how to make "box" follow shape of words?
1 vote
1 answer
220 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 ...
4 votes
3 answers
261 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 ...
  • 107
0 votes
2 answers
135 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
2 answers
64 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
1 answer
116 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 ...
  • 19.2k
0 votes
0 answers
72 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
1 answer
142 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
0 answers
742 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 \...
  • 270
0 votes
1 answer
85 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{...
  • 5,483
0 votes
0 answers
379 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
1 answer
86 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]{...
  • 175
0 votes
2 answers
151 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, ...
1 vote
1 answer
163 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 ...
  • 111
3 votes
2 answers
203 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
1 answer
175 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
1 answer
197 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 ...
  • 11
0 votes
2 answers
88 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” ...
  • 169
9 votes
2 answers
469 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) ✅ ...
  • 265
3 votes
2 answers
158 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
1 answer
400 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 ...
  • 822
0 votes
2 answers
125 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
1 answer
52 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
2 answers
36 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 ...
  • 145

1
2 3 4 5