Skip to main content

Questions tagged [width]

{width} is the measurement of the extent of something from side to side.

Filter by
Sorted by
Tagged with
4 votes
3 answers
140 views

Expand \hbox to the width of parent \vbox

I have two \hboxes, one above another, inside \vbox: \documentclass{article} \begin{document} Some\vbox{\hbox{longer text above}\hbox{shorter text}}and some more text. \end{document} Which ...
Filip Ž's user avatar
0 votes
0 answers
38 views

Creating a Multi-page, Auto-scaling Table with Repeating Headers in LaTeX for Multilingual Data

I need assistance in creating a LaTeX table in overleaf that can span multiple pages, automatically scale its columns to fit content when additional columns are added, and include repeating headers on ...
heavendew's user avatar
4 votes
1 answer
52 views

Fit tcolorbox to table

I am trying to make the tcolorbox to fit its content, a table, and not to span to textwidth . I've look through a lot of questions (1,2,3,4) but nothing seem to work, i tried tabularx too. Unless I ...
G. Bay's user avatar
  • 2,111
0 votes
1 answer
68 views

Getting the Maximum Width of a List of Items

I'm trying to write a command to get the maximum width of a (comma separated) list of items, for example \myLengthCommand{lorem,ipsum,lorem ipsum} should return the width of the text "lorem ipsum&...
Dave's user avatar
  • 317
1 vote
1 answer
77 views

Setting output width in IguanaTeX

I am using IguanaTeX to create equations in a powerpoint. I would like to make each equation a seperate numbered object so that I can animate each one. However, they also need to be the same width so ...
akb427's user avatar
  • 73
0 votes
1 answer
42 views

How to add page margins (border lines) to a latex document? Also how to increase the line width of the border

I have a document in latex in which I want to add borders. I have the following code to add borders to the page: \usepackage{calc} \usepackage{eso-pic} \newlength{\PageFrameTopMargin} \newlength{\...
Kiran's user avatar
  • 1
4 votes
2 answers
307 views

How to make a custom symbol `//` in LaTeX the same width as an existing symbol?

I want to define a custom slanted parallel symbol, approximately like this: // $\mathrel{/ \negmedspace /}$. The approach is to input two /, followed by a command like \! to reduce the spacing. What ...
138 Aspen's user avatar
  • 173
1 vote
1 answer
18 views

How to have the left padding/margin be 0 so that this columnwidth image does not have extra margin/padding on right?

How to have the left padding/margin be 0 so that this columnwidth image does not have extra margin/padding on right? \subsubsection{AI3D Benchmark Card} The AI3D Foundation produces a ``Benchmark ...
ina's user avatar
  • 123
2 votes
1 answer
98 views

Width of tcolorbox and resizebox. Prevent boxes to appear in line [duplicate]

As soon as I use resizebox around a few tcolorbox, they all appear in the same line. I want to create a nice layout, with linebreaks, between some of these tcolorboxes, and then just shrink it to fit ...
Albercoc's user avatar
  • 161
1 vote
1 answer
33 views

How to change column width for particular row of table

How can I set this layout? I have made this but it did not work \begin{table}[H] \caption{Current state-of-the-art approaches in UAV fault detection techniques.\label{tab:2}} \begin{tabularx}{\...
Zineb Adaika's user avatar
2 votes
1 answer
20 views

Set automatically the width of a table, based on the column width in which the table appears (in a 2-column document) [duplicate]

I have a document that is split into two columns of different width. In one of the two columns, I would like to add a table that is large exactly as the width of that column. Is there an automatic way ...
Ommo's user avatar
  • 849
0 votes
1 answer
44 views

Adjusting Table Widths

Quick question: how do I make sure that all three tables have the same width? Ideally the entire page with, without modifying the content of the input files: \begin{table}[!tbp] \begin{center} \...
James_'s user avatar
  • 3
1 vote
1 answer
129 views

How to add the shadow effect like the image shown below?

From this code: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, positioning, shadows.blur} \usepackage[most]{tcolorbox} ...
Vishakha's user avatar
  • 119
0 votes
0 answers
16 views

How to make sure a wide table using hvfloat and hv0box is on the correct page

I have several big tables which I am splitting up over multiple pages for a book width-wise using hvfloat and hvObox. In order for this to work the table needs to be placed on pages that are next to ...
zilverdael's user avatar
0 votes
1 answer
42 views

Image in footnote too wide, although set width=textwidth

If I put a graphic in a footnote and apply width=\textwidth to it, it will be wider than the actual text width (see MWE below). (The same holds true for \linewidth.) Apparently includegraphics ...
dia's user avatar
  • 143
3 votes
2 answers
120 views

Set column width with word wrapping and centered text

My objective was to write latex code for the following table created in Word. However, I am unable to format the first column. I would like to define a certain measurement for the column width and ...
Math's user avatar
  • 459
1 vote
1 answer
41 views

How to create multiple big tables using HVObox in HVFloat

I have a several wide tables which I need to split over multiple pages for a book. The idea being that the left page shows the left half of the table, the right page the right half. For example ...
zilverdael's user avatar
0 votes
2 answers
62 views

how to specify line width and line color in longtable environment

In longtable environment (as i need to span the table over multiple pages). How to change specific table line color and line width ? for example, i am using this code, but the green line is exeeding ...
ssyakajam's user avatar
4 votes
1 answer
195 views

Negative `\widthof` doesn't work?

I am basically reasking the same question as here, which hasn't had any definitive answer even yet. I restate the problem. The MWE \documentclass{book} \usepackage{calc} \begin{document} \hspace{...
Atom's user avatar
  • 665
0 votes
0 answers
49 views

Latex Page Width Increase [duplicate]

I am currently working on a paper using the IEEE Access template in LaTeX. I have a wide table that exceeds the default page width (I have used * to make the table full-size), and I would like to ...
Mak Raiaan's user avatar
0 votes
0 answers
399 views

ICLR template for lots of authors

I'm using the ICLR 2024 template and we have lots of authors on our submission. I would have expected the authors to "wrap" and have multiple lines but it's just overflowing. Can someone ...
Anonymous Scientist's user avatar
4 votes
2 answers
181 views

Setting row width in tabular according to the text written inside

So I am making a formula sheet to provide it to students in the pre-cal exam. But it doesn't look good. It looks conjusted. The output is as follows: As one can see in the picture, that the first ...
Badshah Khan's user avatar
0 votes
1 answer
121 views

How to compare aspect ratios?

I have a box whose side lengths are recorded as lengths as in \newlength{\imageWidth} \setlength{\imageWidth}{300mm} \newlength{\imageHeight} \setlength{\imageHeight}{200mm} I am trying to create a ...
Julian's user avatar
  • 751
2 votes
1 answer
98 views

How to make wrapfigure-width adjust to image?

In my report, I am using a lot of figures that wrap around text using the package wrapfig. \begin{wrapfigure}{L}{0.30\textwidth} \centering \includegraphics{Image.pdf} \end{wrapfigure} For ...
Chiron's user avatar
  • 103
0 votes
0 answers
43 views

Automatically calculate epigraph width

I was looking into automaticallly calculating the epigraph width while keeping the epigraph quote left-aligned and non-italic. The following code, copied from a nice solution provided on the page ...
Jansenzoon's user avatar
1 vote
1 answer
102 views

how to fit the table width with rotating table

I am new to overleaf and trying to finish a manuscript using an overleaf template "Template for INFORMS Journal on Data Science" I am trying to rotate a table with 15 columns but the ...
lcwu's user avatar
  • 13
1 vote
3 answers
123 views

I don't get my table width fixed

I doesn't get my code fixed by the width. Latex says that I use illegal character in the array. This is my code: \begin{table}[ht!] \centering \begin{tabular}{|| c{5cm} | c{5cm} | c{5cm} | c{5cm} | c{...
Koen van Dijken's user avatar
3 votes
1 answer
143 views

center and adapt width in tcolorbox

PROBLEM So I'm finishing my tcolorbox styles for my writings, but I can't manage to center the text correctly if it is shorter than the \linewidth. One solution would be to add \centering every time, ...
Agente 156's user avatar
1 vote
1 answer
48 views

adjust the width of table column

I'm trying to make the third column of this table wider, so any suggestions to adjust the third column for a better look? \documentclass{article} \usepackage[margin=2cm,a4paper]{geometry} % set page ...
haithem's user avatar
  • 1,175
0 votes
1 answer
44 views

figure could not be the expected height

I am using latex to write a document, and I need to insert a figure in a whole single page, the code is as follows. \documentclass[10pt]{book} \usepackage{pgfplotstable} \begin{document} \par text 1 \...
wxwuse's user avatar
  • 149
1 vote
2 answers
91 views

Side by side minipage and varwidth

I'm looking for a way to combine the minipage and varwidth environments side by side, so that the width of minipage automatically adapts to that of varwidth, to fill the entire line. \begin{minipage}{\...
MB4E's user avatar
  • 1,106
0 votes
1 answer
25 views

Make contents of several tabularx environments' corresponding columns flush

I am in a situation in which it seems desirable to use multiple tabularx environments to feign a single one. But I would like for the contents of their right-most columns to be flush left with each ...
Noah J's user avatar
  • 515
3 votes
1 answer
90 views

tcolorbox: Dynamic width and breakable

I'm trying to implement a kind of chat inside my document using tcolorbox. But I either can set the width dynamically or allow a pagebreak inside a "chat-message". \documentclass[11pt, ...
Tony's user avatar
  • 41
3 votes
2 answers
335 views

Undefined control sequence setting PDF geometry

Page 8 of the unofficial latex2e manual says One way to do that is to put \pdfpagewidth=\paperwidth and \pdfpageheight=\paperheight in your document’s preamble. However, I get ! Undefined control ...
shmuel's user avatar
  • 1,459
1 vote
1 answer
55 views

Bar Chart offsets with multiple plots

I want to create some histograms and need to represent a few bar charts. However, I am facing two issues with this MWE: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{...
lurgold's user avatar
  • 13
1 vote
0 answers
8 views

itemize environment in tabularx with \hsize adjustment doesn't fill the whole width [duplicate]

I wanted to have a small itemize environment for tabulars, with small spaces to the top and bottom. I found a good example, but not fully understand the mbox setting: \newenvironment{tabitem}{ \...
dendrit's user avatar
  • 11
0 votes
1 answer
51 views

How to get a few paragraphs framed such that the frame is exactly as wide at the surrounding text and stays completely on the one page?

Let's say we want to get one or two paragraphs of text into a visible framed such that: the total width of the frame (including its borders) is the exactly same as the width of the surrounding text (...
user avatar
1 vote
3 answers
113 views

Longtable won't fit page width

I have this table that I want to fit over multiple pages, therefore longtable. Now it won't fit to the page width. The table is pretty big... The second and third column are coordinates and can't be ...
Signe S's user avatar
  • 11
1 vote
2 answers
120 views

How to horizontally center p type columns in tabular?

I have this latex code: \begin{tabular}{|c|*{26}{p{0.1cm}|}} \hline \multirow {2}{*}{Activities} & \multicolumn{4}{c|}{June} & \multicolumn{5}{c|}{July} & \multicolumn{4}{c|}{August} &...
Philipp's user avatar
  • 13
1 vote
1 answer
55 views

Reduce the width of cells in a table using talltblr

Does anybody know how to reduce the width of cells? I couldn't find it. Here is a preview of the problem. The width is too important for the datas. Here is my MWE: \documentclass{article} \...
Guillaume's user avatar
2 votes
1 answer
104 views

Standalone document of a fixed width

My publisher wants my images to be able to be loaded at 100% scale so that font sizes aren't scaled, but requires widths to be one of 20mm, 44mm, 68mm, 82mm or 140mm to correspond to the column widths ...
Cam Lumsden's user avatar
0 votes
1 answer
51 views

How can I fit my longtable within the page limit [closed]

I have the following table code: \begin{longtable}{lllllll} \toprule Monitoring & Thickness & \makecell[c]{Channel\\ Dimensions\\ (W\texttimes{} L) \textmu m}...
kieran m's user avatar
1 vote
2 answers
176 views

Latex Exam Class: custom Line width for exam class "solutionorlines" environment

I am using "solutionorlines" environment of latex exam class for short questions (with solution) which provide lines for answers. The following code codes gives me lines for answers which ...
Tash's user avatar
  • 443
0 votes
1 answer
74 views

Specifying the Length of a Bclogo without Enclosing It in a Minipage

Consider the code \documentclass[12pt]{book} \usepackage{xcolor} \usepackage[tikz]{bclogo} %\usepackage{lipsum} \definecolor{bulgarianrose}{rgb}{0.28, 0.02, 0.03} \begin{document} \thispagestyle{...
DDS's user avatar
  • 9,768
1 vote
2 answers
481 views

Force table width to text column width

seems like an easy problem, but I'm really a newbie to LaTeX and cannot come up with solution even with some QAs on this forum I found. Can you please help? As the picture shows, the table is wider ...
MadyDollar's user avatar
3 votes
1 answer
58 views

Width and height of something to be used in a TikZ graph

In the code below, I would like to calculate the shifts using the width and the height of {\tiny any integer}. My need is to automatically adjust the width and the height of the decorating red box, ...
projetmbc's user avatar
  • 13.4k
3 votes
2 answers
182 views

Control position of footnote block with reledmac footnotes

I've got sample code that produces the following two-column footnote apparatus using the reledmac package. What I'm wondering is how I would manage to shift the entire footnote block over by a pre-...
Jeff Dodson's user avatar
3 votes
1 answer
209 views

How to make the width of the columns in the table equal?

I want to be able to reproduce this table exactly: This is my Tex: \documentclass{article} \usepackage{amsmath} \usepackage{makecell} \usepackage{siunitx} \begin{document} \begin{tabular}{ccccc} ...
Zhao Dazhuang's user avatar
5 votes
1 answer
531 views

How to calculate the total width of a (tabularray) table and pass this length to other packages such tikz or tcolorbox?

Please consider the following code. It produces a table using tabularray which has fixed width columns, so its total width is smaller than \textwidth. How can find out what the total width of the ...
miltos's user avatar
  • 2,637
0 votes
0 answers
24 views

I would like to increase the description width of this acronyms list

\usepackage[acronym,toc,shortcuts]{glossaries} \makeglossaries \input{Glosario} \renewcommand*{\glspostdescription}{} % remove trailing dot \renewcommand{\glsnamefont}[1]{\textbf{#1}} \begin{document}...
René Alba's user avatar

1
2 3 4 5
15