Skip to main content
The 2024 Developer Survey results are live! See the results

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
31 views

Drawing a box based on baselineskip

I want to draw a box using minipage with adjustbox. The box must extend to the given minipage width and also by given amount of baselineskips. The image above is the desired output but with trial and ...
Al-Motasem Aldaoudeyeh's user avatar
1 vote
1 answer
13 views

adjustbox gives "Undefined control sequence" error only in a figure caption, but not in a subcaption or normal text

I'm using \adjustbox for background color highlighting to emphasize certain text. It works in normal text and subcaptions, but strangely, not in figure captions! The resulting PDF looks fine, but I ...
k_ssb's user avatar
  • 113
3 votes
4 answers
275 views

Reduce the column padding in tabular environment

I've tried nearly everything with no success and I don't know why... I have a tablular with 9 columns and the only solution I found for fitting it into textwidth is using adjustbox, which I don't like ...
Peybol's user avatar
  • 33
0 votes
1 answer
70 views

How to increase the font size for content in cells without changing the table size in latex? [duplicate]

I have a very wide table in latex (see extract below, only part of the full code). I'm happy with the aspect ratio of the table but the text in the cells is too small. How can I increase the font size ...
TFT's user avatar
  • 207
0 votes
0 answers
42 views

Adding SVG White Space [duplicate]

The questions I have seen similar to this have been about removing white space from SVGs, but I would like to keep mine. I have a 3x3 grid of SVGs. Each has the same viewBox dimensions. However, ...
pdeqx's user avatar
  • 1
0 votes
1 answer
80 views

LaTeX table formatting for A4 page readability

I'm looking to include a table in a document on a single page with A4 size, ensuring that the text remains readable. I attempted to use \scalebox, but it resulted in the text becoming too small and ...
Joe94's user avatar
  • 5
0 votes
1 answer
58 views

How do i make it so that my figure automatically conforms to geometry margins via some command or other method?

(Read before replying:) I will not replace the second picture with another example image, the point of this post is to show the problem that i faced when trying to use a real image. i have the ...
Ferrius Undermine's user avatar
4 votes
1 answer
79 views

adjustbox has a wrong reference at \ref

To rotate a table, I used \begin{adjustbox}. But \ref{} shows a wrong ID when I refer to it, and \centering doesn't work. How to fix it? Thanks! Here are the environment used in the tex file: \...
zlin's user avatar
  • 75
2 votes
2 answers
118 views

Why is the \raisebox necessary here in order to align the equation proberly?

I have just stumbled across the following problem: I would like to align the matrices in the last column so that it starts with the other columns. However, I need an offset for this, which I implement ...
FixFox's user avatar
  • 45
3 votes
2 answers
122 views

reflectbox interferes with tikz-cd's automatic resizing

The Japanese character "yo", よ, is often used to denote the Yoneda embedding in category theory. Wanting to denote a related operator with the horizontally reflected character, I created a ...
Morgan Rogers's user avatar
1 vote
1 answer
87 views

pstricks: How to use adjustbox (or alternative) with pstricks?

When I use an adjustbox around anything drawn with pstricks, the adjustbox just gets ignored. scalebox works, but requires manual tuning to determine the proper scaling factor (e.g., to scale ...
Jigsaw's user avatar
  • 935
2 votes
1 answer
67 views

Broken text in LaTeX table using tabular

I have a table in LaTeX using OverLeaf and text inside it is very spaced in some columns, I don't know what's causing this issue and would really appreciate some feedback. Edit: Also, \adjustwidth and ...
realpvblo's user avatar
0 votes
1 answer
97 views

Tabular inside combination of adjustbox, minipage, and figure

Context I want to put 4 tabulars horinzontally aligned with each other, and I'm currently using a janky setup of an adjustbox (for each tabular) inside a minipage (for each tabular) all inside one ...
BrightBulb123's user avatar
1 vote
2 answers
65 views

TikZ nodes becoming misaligned with their labels when the document's language is Hebrew

The following code produces the expected output seen below. (I use Overleaf with the 2022 LuaLaTeX engine.) \documentclass{article} %\usepackage[bidi=basic,provide=*,english,hebrew,layout=graphics]{...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
45 views

Table with tabular goes outside of page and is not centered when minipage is added to adjustbox

I am trying to have my table fit the text width and be centered in the middle. Without minipage it works as intended but when I add a minipage to the adjustbox (since I need the caption and potential ...
jk5b's user avatar
  • 1
2 votes
2 answers
168 views

Changing the Color of an Includegraphics Basic Frame with Adjustbox

MWE: \documentclass[tikz]{book} \usepackage{xcolor} \usepackage[export]{adjustbox} \begin{document} \thispagestyle{empty} \includegraphics[frame=2pt]{example-image-A} \end{document} gives I would ...
DDS's user avatar
  • 9,768
2 votes
2 answers
218 views

How to fit the contents of a table without using the tiny font?

I am trying the contents of a table using the esttab option of the STATA. In the first instance, the table was far too wide and the lines were not adding up. Based on the previous threads, I was able ...
Eric's user avatar
  • 59
0 votes
2 answers
80 views

How to center a large equation on the page?

I have the following definition that I am attempting to type into my Latex document. I've attempted to place it both in a \centerline{...} and \adjustbox{center}{...}, but I keep getting errors about ...
Ryan Pierce Williams's user avatar
2 votes
3 answers
197 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} \...
junichiyamasaki's user avatar
0 votes
2 answers
277 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} \...
g_don's user avatar
  • 809
1 vote
1 answer
48 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$ &...
Memristor's user avatar
  • 119
0 votes
2 answers
44 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 ...
Georgie's user avatar
0 votes
1 answer
75 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 ...
Carlos's user avatar
  • 1
2 votes
1 answer
131 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}...
Evan Aad's user avatar
  • 11.1k
0 votes
0 answers
167 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 ...
relinquere's user avatar
1 vote
1 answer
88 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 } \...
As if's user avatar
  • 23
3 votes
2 answers
486 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 ...
Jon's user avatar
  • 133
0 votes
1 answer
301 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 ...
emnha's user avatar
  • 445
1 vote
1 answer
56 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]{...
Sean_TBI_Research's user avatar
1 vote
3 answers
253 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 ...
Ross's user avatar
  • 21
3 votes
1 answer
67 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 ...
Tchak's user avatar
  • 33
0 votes
2 answers
391 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{...
Elif's user avatar
  • 1
0 votes
3 answers
70 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 ...
Math122's user avatar
  • 241
0 votes
1 answer
594 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 ...
Markov's user avatar
  • 33
0 votes
1 answer
52 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 ...
TFT's user avatar
  • 207
0 votes
1 answer
623 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 ...
Waxler's user avatar
  • 860
0 votes
1 answer
1k 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} \...
Waxler's user avatar
  • 860
0 votes
1 answer
461 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 ...
Waxler's user avatar
  • 860
1 vote
1 answer
630 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 ...
TFT's user avatar
  • 207
0 votes
0 answers
87 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 ...
Markov's user avatar
  • 33
1 vote
1 answer
275 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. \...
Garth Fleming's user avatar
1 vote
2 answers
241 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@{}} ...
Matej Minarik's user avatar
0 votes
1 answer
168 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} \...
yangtzech's user avatar
3 votes
1 answer
187 views

Box repeat shape of word

Hi, is there any way how to make "box" follow shape of words?
WinnieNotThePooh's user avatar
1 vote
2 answers
1k 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 ...
Matthew Son's user avatar
4 votes
3 answers
338 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 ...
jeiglsperger's user avatar
1 vote
2 answers
355 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 ...
Robin Georg's user avatar
0 votes
2 answers
75 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 ...
Codewraith's user avatar
2 votes
1 answer
280 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 ...
Nasser's user avatar
  • 20.4k
0 votes
0 answers
207 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 ...
johhny tex's user avatar

1
2 3 4 5