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
3 votes
2 answers
99 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
54 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
  • 905
2 votes
1 answer
50 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
63 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
64 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
  • 10.9k
0 votes
1 answer
38 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
104 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
  • 8,491
2 votes
2 answers
188 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
  • 57
0 votes
2 answers
67 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
183 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
86 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
  • 779
1 vote
1 answer
46 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
0 votes
2 answers
41 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
61 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
126 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
  • 10.9k
0 votes
0 answers
111 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
84 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
282 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
201 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
52 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
196 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
61 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
237 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
62 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
365 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
45 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
  • 95
0 votes
1 answer
296 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
  • 515
0 votes
1 answer
600 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
  • 515
0 votes
1 answer
328 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
  • 515
1 vote
1 answer
441 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
  • 95
0 votes
0 answers
30 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
180 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
182 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
128 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
171 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
612 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
310 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
0 votes
2 answers
247 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
67 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
198 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.7k
0 votes
0 answers
138 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 vote
1 answer
255 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} \...
Luigi Giuffrida's user avatar
0 votes
0 answers
1k 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 \...
stevGates's user avatar
  • 280
0 votes
1 answer
175 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{...
tobiasBora's user avatar
  • 7,803
0 votes
0 answers
635 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 ...
Arianna's user avatar
0 votes
1 answer
114 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]{...
harsha's user avatar
  • 175
0 votes
2 answers
188 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, ...
Nam Tran Le's user avatar
1 vote
1 answer
342 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 ...
C. Binair's user avatar
  • 111
3 votes
2 answers
318 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 ...
Book Of Flames's user avatar
4 votes
1 answer
227 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{...
Shweta Aggrawal's user avatar

1
2 3 4 5