Questions tagged [width]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
44 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 ...
2
votes
1answer
63 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 ...
1
vote
1answer
35 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} ...
1
vote
0answers
32 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 ...
2
votes
1answer
53 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 ...
3
votes
2answers
163 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} \...
0
votes
1answer
32 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....
1
vote
2answers
33 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 ...
0
votes
4answers
51 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....
2
votes
1answer
38 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 ...
1
vote
2answers
45 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]{\...
2
votes
3answers
78 views

How to find the width of the longest line in multi-paragraph text

Question Is it possible to get the width of a multi-paragraph piece of text? For example, if I want to get the width of a single piece of text, I can do the following: \documentclass[a4paper]{article} ...
2
votes
1answer
65 views

How to Specify the Width of a Bclogo Box

QUESTION: Can anyone show me how to specify the width of a bclogo box? I have not found an answer to this nor have I been able to figure out how to do it. Consider, for example, \documentclass[...
2
votes
2answers
46 views

Longtable doesn't stay within the page borders

This is the code I have used \documentclass[12pt]{article} \usepackage{fullpage} \usepackage[british]{babel} \usepackage{graphicx} \usepackage{natbib} \usepackage{booktabs} \usepackage{longtable} \...
6
votes
2answers
106 views

Experiencing some overhang with threeparttable and tablenotes

Here is a working example: \documentclass[preprint, 12pt, 3p, twocolumn, sort&compress]{elsarticle} \usepackage{siunitx} \usepackage{booktabs} \usepackage{graphicx} \usepackage{threeparttable} \...
0
votes
3answers
39 views

How to align text like math formula?

Code is here: \noindent \textit{Pf} Let $G(x)=\displaystyle\int_{a}^{x} f(t) d t$. By (1), $G^{\prime}(x)=f(x)$, therefore $(G-F)^{\prime}(x)=0 $ $\forall x \in[a, b]$. $\Rightarrow$ $(G-F)(x)=...
4
votes
2answers
94 views

Make the text in a table tiny and adjust the width of a table using the user package nicematrix

I am doing some tables for a cheat sheet. My goal is to make a table with the text size \tiny (or smaller...) that the table ( \usepackage{nicematrix}) fit in a column that is width = 0.23\textwidth ...
1
vote
0answers
53 views

Compress text horizontally to fix a given width

I'd like to make a table with each cell having a given width, and with the text in each cell being compressed to fit that width, as in: which I achieved manually using: \begin{table*} \begin{center} ...
2
votes
1answer
50 views

align text in nicematrix and make column the same width

I just try to learn to work with nicematrix. but I am not yet very familiar with it. I have two questions/problems. how can I make every road the same width. As it seems to me the column V10 is ...
2
votes
3answers
68 views

Multicolumn width uneven

I am trying to create a table with this code; \begin{table}[ht] \centering\begin{tabular}{|c|c|c|c|c|} \hline Mean Partnership Duration & \multicolumn {4}{c|}{\centering Number of simulations ...
4
votes
2answers
150 views

How to get the row height and column width within a tabular?

Do you know how I can specify the size of a cell in points (pt) within a tabular, that is the row height and the column witdh? In text mode there are commands like \textwidth or \baselineskip but this ...
2
votes
0answers
38 views

Wrong width for empty part in multipart rectangle

The Tikz&Pgf manual says, on page 820: /pgf/rectangle split empty part width=<length> (no default, initially 1ex) Sets the default width for a node part box if it is empty and empty parts ...
5
votes
2answers
111 views

How To Make An Image As Wide As The Line Width Of The Enumerate Environment

I inserted a graphic in an enumerated list and I am trying to make it as wide as the line width of the enumerated list. If I use the command width=\linewidth, width=\textwidth, or width=\columnwidth ...
1
vote
2answers
52 views

Making a tabular table fit the page width

I am new to LaTeX. I have put together a regression table using the table generator website. I am at the final stage where I want to make the table as wide as the page, but I'm not sure how to do this....
0
votes
0answers
43 views

Longtable package leads my table to become too wide

I am new to LaTeX. I have been trying to create a literature review table using longtable. Without the longtable package my table is the right width, however when I do decide to use the longtable ...
3
votes
2answers
398 views

How to shift a table to the left?

I am sending my paper to mdpi.com. They have their own standard of paper formatting. One of my tables is very wide and exceededs the paper's width There is big space on the left side. Is there a way ...
0
votes
0answers
61 views

Fitting table to column generated from external file (.eps)

I want to know how to fit table column to page from external file with "EPS" format. I'm writing manuscript for Science of the Total Environment which uses two column elsarticle format. In ...
1
vote
1answer
54 views

Setting tabular's width according to a certain number of characters

I have several pages with, for each one, one box inside containing some text. What's happening is that I resized each box according to his \linewitdh (but I think it\ should be a bit better actually ...
2
votes
2answers
76 views

How to solve mismatch of thick curves in tikz?

Consider following MWE: \begin{tikzpicture} \draw (0,0) -- (1,1) -- (2,0); \draw plot [smooth, tension=1.5] coordinates{(0,0) (1,-1) (2,0)}; \begin{scope}[xshift=3cm] \draw[line width=1.5] (0,0) --...
3
votes
1answer
33 views

Fit table with multi-column into two-column page [duplicate]

I want to fit a multi-row table into one page. The table could not fit even after I substitute l with p{4cm}. I have attached my code and screenshot. \begin{table}[] \begin{tabular}{@{}lllll@{}} \...
0
votes
0answers
17 views

Adjust table width to fit two-page column [duplicate]

I want to fit my table into a two-column page and I am using a table* package. This is my code: \centering \begin{tabular}{@{}lllll@{}} (table information) \end{tabular} \label{tab:1} \end{table*...
2
votes
3answers
59 views

tabular: In a centered column, how to make all the entries (except the header) virtually have the same width to make them left-aligned?

For this MWE, how to make D_M virtually have the same width of K_{emf} in order to be left-aligned with K_{emf} while keeping both centered with respect to the column margins? Generally speaking, how ...
0
votes
2answers
38 views

adjusting table to page, hbox too big to fit

I've seen various examples but I am unable to adjust the table to the page accordingly as I continue to get errors when trying the adjust width or textwidth methods: \begin{table}[hb!] \centering \...
1
vote
0answers
55 views

Half consonants [closed]

Is there a generalized code to get the half-consonants? The half-consonants are where a consonant appears cut-off from the right hand side and only about 50-75% of the consonant is visible starting ...
1
vote
2answers
48 views

Get graphic width

I'd like to have a command for inserting images in a figure with a width given by either the dimension of the raw image or the text width, whichever is smaller. I'd like to avoid blowing up images but ...
0
votes
1answer
36 views

Reducing the width of table cells

does anybody know if tabular has any properties where we are able to adjust the width of individual columns? I'm specifically wanting to reduce the space around the arrows and also around the text on ...
2
votes
1answer
43 views

Use width of certain block of text as parameter

I wonder if it's possible to get the width of a certain block of text, passed as an argument in \newcommand and use it numerically inside a conditional. For example, defining a \newcommand which ...
0
votes
0answers
57 views

Custom line width tikz pattern vertical and horizontal lines

If found the following code here to change the width of tikz pattern north west lines. I would like to do the same for vertical and horizontal lines. Can someone tell me what to chang in the code? ...
0
votes
0answers
65 views

Width of Algorithm

My problem is similar to this Adjust width of algorithm float However, I want to centre within an item in an enumerated list so I have indentation to the left, so the above Q/A does not centre within ...
0
votes
1answer
50 views

How to not waste space due to large integration limits?

I have the following formula: As can be seen, it is too wide for the column and I'd like to have it fit the column. Latex wastes a lot of space by not putting the integrand between the integration ...
1
vote
1answer
43 views

Match width of minipage footnote to table environment in which it sits

I have placed table notes inside a \minipage environment, inside a \table environment. I want to hand the \minipage a width argument such that it will match any arbitrary width of the \table in which ...
1
vote
1answer
106 views

Will width=\textwidth also automatically scale the height of the original image?

For example, \includegraphics[width=0.5\textwidth]{Example.jpg} Will the height also been automatically adjusted according to the same ratio of width?
1
vote
2answers
100 views

tikz/pgf: compute width of \small text

In tikz/pgf, there is a function called width("x") . From the pgf manual, it returns: the width of a (horizontal) TeX box containing x. After this sentence it starts to talk about things I ...
2
votes
0answers
61 views

How to set a width measurement to be the width of some string of text in ConTeXt?

I have some code like this: \setupfield[cloze][width=] I need to set width to be the width of some text given to it, such as "hello this is some text" or even just "#1" if it is ...
1
vote
1answer
37 views

How to control the width of my table

I want to control the width of my table. Could I get some ideas to solve this problem? \begin{table}[b] \centering \caption{The results of Human motion recognition [$\%$].} \arrayrulecolor{black} \...
0
votes
1answer
76 views

decide columns for text || multicols

\documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[margin=1in]{geometry} \usepackage[english]{babel} \usepackage{multicol, lipsum} \setlength{\...
1
vote
0answers
46 views

Automated width assignment to diverse-content minipage environment

I want to put these diverse contents (i.e. list enclosed in itemize environment, very long text (not enclosed in array or align environment), and one small picture) in multiple minipage environment ...
0
votes
1answer
68 views

Rules of column width in tabular

I would like to put rules in a tabular to "strike out" a number of consecutive cells within one row. I want these rules to automatically adjust to column width. For example, the width of ...
0
votes
1answer
33 views

Table's width getting out of page

I got this problem with overfull and I don't really know how to arrange the width of my table. I also want to put the Celsius symbol in a new line (just under the Temperature in the same cell)
0
votes
2answers
81 views

How to enlarge figures to take maximum available space?

I am trying to put two figures side by side using minipage. But the figures are shrinking and not using the full page width. How to get figures that use the full page width? \begin{figure}[h] \...

1
2 3 4 5
13