Questions tagged [width]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
20 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[...
user avatar
1 vote
2 answers
33 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 ...
user avatar
2 votes
3 answers
164 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 ...
user avatar
  • 437
0 votes
0 answers
21 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 ...
user avatar
2 votes
2 answers
106 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, ...
user avatar
  • 297
0 votes
2 answers
49 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 ...
user avatar
  • 101
2 votes
1 answer
74 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 ...
user avatar
  • 53
0 votes
0 answers
40 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 ...
user avatar
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 \\ ...
user avatar
  • 11
0 votes
2 answers
42 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} ...
user avatar
  • 287
2 votes
1 answer
45 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[...
user avatar
0 votes
0 answers
19 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 \...
user avatar
1 vote
1 answer
29 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 & ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 185
0 votes
1 answer
50 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 = ...
user avatar
  • 171
0 votes
0 answers
19 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 ...
user avatar
  • 185
0 votes
0 answers
28 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 ...
user avatar
0 votes
0 answers
21 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 ...
user avatar
2 votes
1 answer
42 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} \...
user avatar
  • 305
0 votes
3 answers
35 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 &...
user avatar
1 vote
1 answer
42 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. ...
user avatar
3 votes
1 answer
28 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....
user avatar
0 votes
2 answers
100 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} \...
user avatar
3 votes
2 answers
273 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 ...
user avatar
  • 47
1 vote
2 answers
39 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 ...
user avatar
1 vote
2 answers
114 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 ...
user avatar
  • 326
0 votes
1 answer
30 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 ...
user avatar
  • 141
1 vote
1 answer
46 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 ...
user avatar
  • 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} \...
user avatar
3 votes
1 answer
83 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} ...
user avatar
  • 4,907
2 votes
3 answers
62 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 ...
user avatar
  • 155
0 votes
0 answers
183 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 \...
user avatar
  • 256
0 votes
0 answers
51 views

\glsdescwidth in glossaries package: use full page width for descriptions of entries

I am using the glossaries package with the following options and settings: \usepackage[nopostdot,style=super,nonumberlist,toc]{glossaries} \setglossarysection{section} %adjust the width of the second ...
user avatar
  • 57
1 vote
1 answer
87 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' ...
user avatar
  • 33
1 vote
2 answers
43 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} } ...
user avatar
  • 27
0 votes
1 answer
54 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 \...
user avatar
  • 793
2 votes
1 answer
80 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% }% ...
user avatar
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, ...
user avatar
4 votes
2 answers
273 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 ...
user avatar
2 votes
1 answer
69 views

What are the best ways to typeset a table with large texts in LateX?

I am trying to put a Table with 3 rows and two columns but the second column contain a discription with a couple of sentences. How can I write the table command to put the table accordingly to the ...
user avatar
  • 83
1 vote
1 answer
44 views

Table and tablenotes go beyond tablewidth

I created the following table: \titleformat{\chapter} {\normalfont\huge\bfseries}{\thechapter}{1em}{} \titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} \usepackage{appendix} ...
user avatar
  • 35
1 vote
0 answers
43 views

What can I do to center the image and set the width in an already given template? [closed]

The problem I am having is that I am not able to position this image properly into the page. For my uni project, for which I have an overleaf template already, I am trying to insert this picture but ...
user avatar
  • 11
2 votes
1 answer
76 views

tabularx and csvreader putting everything in the last column with one row

This is the same problem I ran into from the previous question, I finally narrowed it down to some line break problem. I found several line of code, that suppose to work and tried it on with my ...
user avatar
4 votes
2 answers
226 views

How can I calculate width using an expression (like \textwidth - \widthof{dummy text})?

Take a table for example. We have one column with some arbitrary length short text, and the other column has large descriptions. To save the reader time: \documentclass{article} \usepackage{lipsum} \...
user avatar
0 votes
1 answer
72 views

Multiply constant to \widthof

I'm trying to compress some text using \resizebox. When I use an absolute value, it works fine \resizebox{2em}{\height}{AAAAA} when I use a partial of e.g. \textwidth it also works fine \resizebox{0....
user avatar
  • 140
1 vote
2 answers
44 views

pgfplots use full textwidth in subfigure environment

So I have two 3d plots I am drawing with pgfplots which I want to have on the same line, and I used the subfigure environment from the subcaption package for that (which I read was the preferred way ...
user avatar
0 votes
4 answers
56 views

Legend with the same width as the table without using threeparttable and minipage?

I am creating tables but I would like the caption to be the same width as the table. I can't use the threeparttable and minipage environments because my university's standard template doesn't allow it....
user avatar
2 votes
1 answer
41 views

How to control width of multicolumn in longtable using tabularx

I have the following table which extends to more than one page. Can someone please help me figure out how to control the width of the columns such that the second and third columns have the largest ...
user avatar
  • 125
1 vote
2 answers
173 views

get height and width of tikz node

Consider this application: \documentclass[border=5pt]{standalone} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node(a) at (0.0, 0.0)[anchor=south west]{\...
user avatar
  • 6,803

1
2 3 4 5
14