Questions tagged [width]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
50 views

Table contents not in good shape

\usepackage{lipsum,tabularx} \newcolumntype{Y}{>{\centering\arraybackslash}X} % centered version of "X" column type \begin{tabularx}{\textwidth}{|c|Y|} \hline & \multicolumn{4}{c}{...
3 votes
3 answers
245 views

How to change row width?

\documentclass[a4paper]{article} \usepackage{amsmath,amssymb} \usepackage{amsfonts} \begin{document} \[\displaystyle \lim_{x \to+\infty}f(x)=\frac{\lim_{x \to+\infty}1+\lim_{x \to+\infty}\frac{1}{x^2}+...
  • 167
1 vote
1 answer
29 views

pgfplots graph with secondary y-axis not same width as without secondary y-axis

In pgfplots, how can I make a graph with secondary y-axis to be the same width as the graph without secondary y-axis? I am already specifying the same width, but clearly in the output they are of ...
0 votes
2 answers
17 views

How to align node with one node, minimum width from another node?

Suppose I have two nodes (A and B in example) already defined. Suppose I want a third node C to be (e.g.) below node A and stretching so far to line up with node B. \documentclass[tikz]{standalone} \...
0 votes
3 answers
69 views

How to make one page wider to accommodate a long equation on that page

I have an equation (an array with many rows and columns) which is much wider than the text width. Is there a way to make the page as wide as the equation, just for the page that the equation is on?
0 votes
0 answers
18 views

Is there a possibility of writing length or width of measurements in latex as a sum or difference of 2 or more values

I wish to know if there exist a way in latex of writing the length or width of something as a sum or difference of 2 or more measurements e.g \parskip + \baselineskip, and/or \textheight - 5\parskip?
  • 492
1 vote
0 answers
40 views

automatically adjust the width of align environment

I want to make an environment, say myalign, that is similar to align environment, but satisfying the following additional requirements: myalign enables tag, and myalign* disables it If the width of ...
1 vote
3 answers
48 views

Subcaption outside box environment - Align subcaption and table width

I am trying to align the width of my subcaption text below a table to the table width. I use \scalebox and \input to adjust the size of the table. However, my text below the table is wider than the ...
  • 57
0 votes
1 answer
33 views

Size of tikz picture like \textwidth or \pagewidth

I want to make picture with tikz, and then fill background with something. To do it properly, I want to get the size of picture (height and width). Is there a command that will give me whole size of ...
0 votes
0 answers
78 views

How to make width to tabularray smaller so it fits text

I want to have this table fit in textwidth, but at the moment, it goes off page. I cannot seem to get it working. EDIT: I am using the following code: \begin{table} \caption{Most used packages ...
0 votes
0 answers
30 views

Shrink font size of cell in longtable when text is bigger than cell width

I have a longtable with a fixed cell width and i need that when the text is bigger than the size of the cell it shrinks and not break line. \begin{longtable}{|p{0.15\textwidth}|p{0.15\textwidth}|p{0.4\...
2 votes
1 answer
46 views

Page-wide figure with sidecaption in two column article

Having some trouble getting my latex document to format this properly. I know there's difficulty using floats in two column documents, but there's got to be a way to make this work properly. I'd like ...
0 votes
0 answers
21 views

Width of images as max to textwidth, but scale down

I'm using images in my master thesis and I want them to be no wider than linewidth, but scale them down to 70%. How can I do this? Current code: \begin{figure}[!htb] \centering \includegraphics[...
1 vote
2 answers
35 views

Increase spacing in table of contents only for specific portion

I have a text with some chapters, then all the indices and afterwards the appendices. When I just print the table of contents in the beginning, the heading of the appendix is too long and it overlaps ...
2 votes
3 answers
176 views

Move too long equation to center and expand the width of text in LaTeX?

I make a formula that is too long so it shows not centred. I hope to move it to the centre and expand the text width only for this formula so after this formula, I hope the width of text return to ...
  • 731
0 votes
0 answers
25 views

Fixed font size for tables with variable columns

I have a problem that similar the this one. Basically I need different tables be with a same text font, align to the center (don't have a problem that the width of the tables be different). My case is ...
2 votes
2 answers
119 views

How to modify the cell dimensions in tikzcd?

Code: \[ \begin{tikzcd}[cells={nodes={draw=gray}}] \text{Math is excellent!} \ar[r, rightarrow] \ar[d, leftarrow] & \text{w} \ar[d, rightarrow]\\ \text{w} \ar[u, rightarrow] \ar[r, ...
  • 329
1 vote
2 answers
57 views

How can I make my image 0.5 cm wider than \textwidth?

A related question to my question is this question, where it is discussed how to scale an object to a certain proportion of textwidth. However, what if I want to make an object 0.5 cm wider than ...
  • 131
2 votes
1 answer
101 views

ConTeXt: Equivalent to \linewidth

I'm thinking about switching from LaTeX to ConTeXt. I'm using LaTeX extensively to create teaching materials with an extended version of xsim. There are a lot of things I would need to port, one of ...
  • 53
0 votes
0 answers
140 views

STATA esttab table not fitting into the page

I am exporting a table from STATA to LaTeX by using the esttab command. However, the output does not fit on a single page. I have tried adjusting the text width, text size, and have tried to rotate ...
0 votes
2 answers
68 views

How to make my table fit the page? How to put some parts on the next page?

The following table needs to fit into the page width and some parts of it should be put onto the next page: ... \begin{tabular}[htb]{|c|l|l|} \hline Parameter & Definition & Value \\ ...
  • 11
0 votes
2 answers
46 views

Fitting table to textwidth without packages and keeping centered text alignment

I am working on a machine where I currently cannot import packages. I want to fit a table into textwidth without the usual package. I managed to do this fixing the column width manually using p{2cm} ...
  • 343
2 votes
1 answer
74 views

how to align and automatically adjust tcolorbox width with tikzpicture inside or title?

I couldn't find a way to make the tcolorbox adjust automatically with the tikzpictures inside or the title (if it's wider). I also want them to appear on the same line. Here's my MWE \documentclass[...
0 votes
0 answers
37 views

Set the width of \TextField to the width of the table width

I want my \textfield width to fill the width of the table. For now I have this: \documentclass[a4paper,2pt]{article} \usepackage{hyperref}% load last unless you know a package should be loaded later \...
1 vote
1 answer
31 views

Why does tabularx give a trailing column - and how can I get rid of that?

So, I am trying to create a table using; \begin{tabularx}{\textwidth}{|c|c|c|} \hline col1 & col2 & col3 \\ \hline item 11 & item 12 & item 13 \\ \hline item 21 & item 22 & ...
0 votes
0 answers
29 views

Limit image width and heigth, if manual scale exceeds page width or height

Objective I have a few images which I would prefer to all have the same scaling, with the exception of images that are too wide or too tall to fit on a single page. Code to Limit Image Width % Auto ...
  • 197
0 votes
1 answer
54 views

Table does offscreen latex [duplicate]

For some reason, as I am trying to increase and add columns, it goes offscreen. Why does this happen exactly: Latex: \documentclass[a4paper,svgnames,11pt]{article} \textheight = 220mm \textwidth = ...
  • 171
0 votes
0 answers
20 views

Use scale if latex image is small enough, center in page otherwise [duplicate]

I automatically generate a bunch of diagrams, and I'd like them to be automatically formatted to fit the page according to the following style: If the diagram (in the form of a .png figure) is ...
  • 197
0 votes
0 answers
30 views

Introduce a table which takes all the width of a current article page (with 2 columns writting text) and continue after to write text on 2 columns

I am writing a scientific article and I neeed help to put a table taking all the width of paper (which is writing on main both text columns). Here is an example of these main both text columns : I ...
0 votes
0 answers
24 views

How to set separate parameters for each entity in msc package?

I am using the msc package in Overleaf to draw a Message Sequencing Chart in latex ( i am compiling using xetex since pdflatex will not display msc diagrams ) and referring to the manual provided on ...
2 votes
1 answer
43 views

Fix intercolumn whitespace in tabular

I'm getting too much whitespaces and that makes values not maintain their alignment, spewing out into the margin. What do I need to do to fix this? \documentclass[12pt,notitlepage]{article} \...
  • 317
0 votes
3 answers
40 views

Table is not wide enough, caption is at wrong location, and the top line missed

I want a table like this ignore the content please, what I have is this, can anybody help me? Thanks \begin{table}[!ht] \centering \begin{tabular}{cccc} %\toprule & Item1 &...
1 vote
1 answer
56 views

How to adjust the table size if it is too wide [duplicate]

everyone, I have a question about fixing the width of the table in my paper. The code is shown below. Since there are too many contents in the same row in the table, it looks too large for my paper. ...
3 votes
1 answer
33 views

includegraphics: option for downscaling only

in the scripts for my students, I have a lot of screenshots which I include into the paper via e. g. \includegraphics[width=0.7\linewidth]{"MyScreenshot"} do scale them down which works fine....
0 votes
2 answers
271 views

How to reduce table width? [duplicate]

I'm trying to add a table to my IEEE paper but its width is too much. Please help me fix the width to make it fit. \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{cite} \...
  • 1
3 votes
2 answers
329 views

Table text overlapping

I am trying to make a table with the following code, but the first column second row contents are overlapping with the first column third row. This does not happen for the entire row. I tried to use ...
  • 47
1 vote
2 answers
58 views

How to force a minimum width for a snippet in "standalone"

My question is very similar to this one. However, my request is for a minimum width, instead of a minimum height. I need to create little snippets of formulas with LaTeX. I'm using TexMaker to write ...
1 vote
2 answers
188 views

Adjust width and height on page in landscape mode

I'm writing a business plan using the business plan theme from elsamuko. The last part is a financial plan which is added on an empty page in landscape mode. I want to add just a simple pdf output to ...
  • 346
0 votes
1 answer
100 views

how to change the width of a single block in beamer keeping it centered

A very similar question was already asked here. Unfortunately, as it often happens, it was mistakenly marked as a duplicate of the following question. While the latter is a perfectly legitimate ...
  • 141
1 vote
1 answer
59 views

Estimating the width of multiline text

I am using a macro made by user121799 originated from Gonzalo Medina (The main code is given in the first link). The macro takes the label text of the description environment defined in enumitem ...
  • 413
0 votes
0 answers
20 views

Overfull \hbox when \textwidth exceeds \columnwidth while using \includegraphics in a 2 column template [duplicate]

I have a 2 column template in Overleaf. I would like the figure to span both the columns (otherwise the text in the figure becomes too small). I tried the following script: \begin{figure} \...
3 votes
1 answer
86 views

Preventing Content of Tabular Environment from Running Off the Page

Consider the right content of the 2-column tabular environment generated by the code \documentclass{book} \begin{document} \thispagestyle{empty} \Large \begin{tabular}{l l} ...
  • 5,657
2 votes
3 answers
67 views

How to I get my table with multiple multicolumns and mulitrows to fit the page width?

I have a latex table which has multiple multirows and multicolumns, which currently looks like this: As you can see, in the description column, the cells do not expand vertically to fit the text, but ...
  • 155
0 votes
0 answers
481 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 \...
  • 260
1 vote
1 answer
169 views

Adjust booktabs table width to content

Can somebody tell me how I can adjust a tabluarx' width to its content? Consider the following working example: \documentclass[a4paper,twoside]{article} \usepackage{booktabs} % for 'tabularx' ...
  • 33
1 vote
2 answers
55 views

minipage's \textwidth is actually slightly wider and indented, even with the parskip package. Why?

Here is my MWE: \documentclass[]{article} \usepackage{showframe} \usepackage{lipsum} \usepackage{parskip} \begin{document} \lipsum[1] \fbox{ \begin{minipage}{\textwidth} \lipsum[1] \end{minipage} } ...
  • 37
0 votes
1 answer
57 views

Enlarge width of part in book while using \Large

About this code \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{tocbibind} \usepackage{color} \title{A book} \author{PUCK} \date{\today} \begin{document} \maketitle \Large \...
  • 913
2 votes
1 answer
103 views

How to draw \hrule based on text width?

I have a \divider command where it draws a thick hrule and a thin hrule to achieve the style I want: \newcommand{\divider}[1]{% \vskip-2pt % {% \color{black}% \hrule% }% ...
2 votes
1 answer
32 views

Using \widthof without an intermediate variable

I know how to get the width in pt or sp of, say, the letter x in LaTeX using the calc package: \newlength{\xwidth}% \setlength{\xwidth}{\widthof{x}}% \the\xwidth{}, \number\xwidth sp.% As a C hacker, ...
4 votes
2 answers
411 views

Reduce witdth of matrix column with package nicematrix

I'm trying to write a relatively wide matrix with the package nicematrix, using the environment pNiceMatrix. I can fix the global width using the option [columns-width=xx], and if I fix it to 0mm, it ...

1
2 3 4 5
14