Questions tagged [width]

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

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

Single character ellipsis in monospace (teletype)

I would like to get an ellipsis as a single (width) character in \texttt. By default it uses three periods: \documentclass{article} \begin{document} \centering \begin{tabular}{rcc} & ...
0
votes
1answer
166 views

Specify column width + row height for one table

I would like to increase the row height to properly show the fraction of N2O/SiH4 in the table (see attached image). Also, I would like the last column not to increase width according to the pagewidth....
0
votes
2answers
77 views

How can I add horizontal space within a paragraph to move the remainder of the line to some margin?

I am trying to find a Latex command that can be used within a paragraph to create whitespace until some specified distance from the left margin is reached, and then the text resumes. It should do ...
0
votes
0answers
21 views

Make it so that output is single “sheet” with unbounded width

The first line of my TeX document is \documentclass[varwidth=true, border=10pt]{standalone} The output generated is cropped to the width of the content, but it has a maximum width after which it ...
1
vote
1answer
83 views

Specify column width in table

I want to specify the width of my column, each column with a different width. However, if I do specify like {\tabularx = X{1cm}||Y|Y|Y| etc. } the columns are combining in the same cell. Most ideally ...
5
votes
2answers
120 views

\midrule length goes beyond width of table

I would like to have the midrule of my table to the same length as the width of my table. With the code that I currently have, this is the output that I get: Can you please help me get the ...
1
vote
1answer
311 views

minipage that fills space to right margin

I often use a minipage to fill up some space, for example in "beamer" presentations. This might look as follows: \includegraphics[totalheight=.35\paperheight]{figure} \begin{minipage}[b][.35\...
0
votes
0answers
32 views

Make caption as wide as (long)table [duplicate]

Assuming I have a table going over several pages \documentclass[DIV=8]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{booktabs,array,ragged2e,longtable} \newcolumntype{...
2
votes
1answer
62 views

How to prevent “leftbar” from breaking “marinpar”?

I'm using the \leftbarcommand provided by the package framed to highlight margin notes. Unfortunately leftbar seems to somehow break the calculation of the margin width once a comment is inserted ...
4
votes
3answers
533 views

I can't use `\width` as the argument for `\parbox` or `minipage`

I can't use \width as the argument for \parbox or minipage. MWE: \documentclass{article} \begin{document} Bla \begin{minipage}{\width}{test}\end{minipage} \end{document} To my understanding, ...
1
vote
2answers
43 views

Should I change size of all figures when changing the number of columns?

I usually use a figure like \begin{figure}[!t} \subfigure[subcap1]{ \includegraphics[width=.9\linewidth]{filename.eps} \label{lab1} }\\\subfigure[subcap2]{ \includegraphics[width=.9\...
2
votes
1answer
753 views

Fitting tikz picture to textwidth

I asked for help once to draw some diagrams using Tikz, the answer that suited my needs used \begin{tikzpicture}[scale=1.1, every node/.style={scale=1.3}] to set the enviroment, and some diagrams ...
8
votes
2answers
376 views

TikZ: How to set width of complicated TikZ-image to \textwidth?

I have one a bit complicated TikZ-image: As you can see, I want to put one single border around this TikZ-image. Due to optical harmony the border should have the exactly same outside dimension like \...
0
votes
2answers
82 views

Longtable with specific columnwidth

I have been trying to resolve this for days and now I surrender. I need a table that can span multiple pages, so I started using longtable instead of tabularx. I tried to do a fixed width column (the ...
3
votes
1answer
279 views

Why does minimum height of a trapezium node affect also the width?

If I change minimum height=... of a trapezium node, also the width changes. It doesn't happen with standard rectangle nodes. \documentclass[border=0pt]{standalone} \usepackage[utf8]{inputenc} \...
-1
votes
2answers
108 views

How to set width of column's with their name in table in LaTeX?

I get a solution in https://tex.stackexchange.com/a/42186/128718 where he gave a solution to create attendance sheet in LaTeX. His solution is good. But,he put column's width and title in separate ...
2
votes
1answer
65 views

Reducing table width [duplicate]

I have the following table: It is very wide. How can I reduce its width? \begin{table}[H] \centering \sisetup{table-format=1.3e-2, table-alignment=center, tight-spacing} \...
3
votes
1answer
53 views

FP calculation problem with multicolumn

I want to do a calculation inside tabular environment, My tabular look like this \documentclass{book} \usepackage{array} \usepackage{fp} \begin{document} \begin{tabular}{|*{4}{c|}} \hline a & ...
2
votes
1answer
939 views

Width of tablenotes and caption (threeparttable)

Could you help me adjusting the width of the \tablenotes and \captionin this MWE? I want both to be whole page and not just as wide as the table. \documentclass{apa6} \begin{document} \begin{table}[...
3
votes
2answers
1k views

Table description aligned with table width

I would like to have a table description underneath the title and above the table itself. In addition, I want the description to be as width as the table itself. I know that the description part is ...
2
votes
2answers
1k views

Tikz axis width and height keys do not get correct aspect ratio

I have a problem when I try to set width and height of the axis environment in a tikzpicture. Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{...
2
votes
1answer
141 views

Remove numbering from fitch.sty natural deduction

Johan Klüwer has a great package fitch.sty for typsetting natural deduction proofs. However I want to define some deduction rules in the vertical fitch format and it does not make sense to have the ...
23
votes
4answers
1k views

Draw TikZ circles with a specific outer radius

For an archery target I need to draw (and fill) a circle which is e.g. exactly 10cm in diameter including its line. However, when using TikZs circle path command the given radius is the middle of the ...
1
vote
0answers
56 views

Why does this tabularx table ignore my width parameter? [duplicate]

I can't set my tabularx table \textwidth wide. I code this: \begin{tabularx}{\textwidth}{l|X} \hline \verb|bla bla bla | & fubar fubar fubar \\ \hline \verb|bla bla bla| & fubar fubar ...
2
votes
2answers
186 views

Width of the content inside `\begin{center} … \end{center}`

Is there a way to know the width used by a paragraph ? In the following code, I would like to adjust the line to be a little bigger than the text "Location: Somewhere over the rainbow". \...
1
vote
2answers
712 views

How to specify width and height of \makebox using \widthof and \heightof without generating error?

As soon as the following (working) definition \newcommand {\TESTFRACTION} {% \makebox [\widthof{${}\left(\frac{a}{1}\right){}$}] {${}\left(\frac{b}{1}\right){}$...
1
vote
1answer
143 views

Width and alignment of captions inside tcolorboxes/parboxes

I am using tcolorbox for boxes containing a theorem. They are divided into two halves: on the left text and equations, on the right a picture. How can I achieve both fit the caption text to (halft ...
2
votes
2answers
245 views

How to make next node same width as previous?

Node TXT1 is automatically sized as well as node TXT2 which is following TXT1. But how to get TXT1 width so that it can be used with text width of TXT2? \documentclass{standalone} \usepackage{tikz} \...
2
votes
1answer
303 views

How to prevent tikzpicture contents from going outside of document bounds?

I need text inside "node" command to automatically break at document margin and transition to next line as it does outside of tikzpicture. \documentclass [% border=10mm, varwidth=...
2
votes
1answer
60 views

Need to make “initial-here” underscores of a uniform width

I need to have a list on which each entry has a number; an underscore line that is only long enough to accommodate a person's initials; and these are both followed by text. The text needs to have ...
1
vote
2answers
203 views

Problem with a wide table which spans multiple pages

I'm doing my PhD thesis, I'm new on LaTeX and I'm struggling with my tables. As seen here: https://imgur.com/oSgQE5V my table spans two pages, but in the second page it doesnt align properly. I ...
4
votes
1answer
3k views

A tcolorbox centered and automatically adjusted to the current text size

Consider the following code: \documentclass[a4paper, 10pt]{article} \usepackage[margin=2cm]{geometry} \usepackage[listings,skins,theorems,breakable]{tcolorbox} \usepackage{lipsum} \usepackage{...
2
votes
2answers
254 views

How can I configure the subcaption of a thin figure?

I have 2 thin images. I put them into a figure using \subfloat from subfig package. The subcaption of each one has the same figure width. I tryed to solve this creating a tabular environment, but didn'...
1
vote
2answers
242 views

Why is \textwidth in tabularx wider than usually?

I have got a problem with tabularx: I want to have two images next to each other on the titlepage of a document. I use tabularx for that. My code is: \begin{titlepage} \begin{tabularx}{\textwidth}...
1
vote
2answers
2k views

How do you adjust column width of a table

I have a table in the following code: \documentclass{revtex4-1} \usepackage{amsmath} \usepackage{mathrsfs} \usepackage{multirow} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{bm} \...
0
votes
0answers
187 views

If condition on text width

I need to create an ``if clause" based on the length of the subtitle. My code is: \documentclass{beamer} \subtitle{Testing the Subtitles} \newlength{\sbtw}\settowidth{\sbtw}{\insertsubtitle} \ifnum ...
2
votes
1answer
2k views

Fill \textwidth with equal-height subfigures of different aspect ratios

I would like two subfigures to have the same height and fill out the available \textwidth (with some margin between them). How can I get the left subfigure to have the height of the right subfigure ...
0
votes
1answer
465 views

How to make “tcolorbox” adjust to width of text it contains and respect the text's line breaks at the same time?

This is my code: \begin{tcolorbox} this is line 1\\ \hspace*{5mm}this is line 2 \end{tcolorbox} This is the code's output (red line is where the right side of the box should've been if it were ...
10
votes
2answers
459 views

How to make \cdot operator same width as / (division slash) operator and vice versa

This is the code I use: \begin{aligned} &a\cdot{}a\\ &a/a \end{aligned} this is the output I get (red line is to emphasize unequal alignment): How can I make cdot's and slash's widths match?...
2
votes
0answers
52 views

Calculate width of expanded string variable (csname) to use in tikz [duplicate]

I am trying to calculate the width of a string defined by csname. The MWE is here \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{calc} \def\EllipseDegrees{120}...
1
vote
0answers
154 views

Change the margin in A3 page, using KOMA script [duplicate]

I have a very large image to be inserted in an A3 page in a A4 page book. I have used KOMA script for A3 page inserted. \afterpage{% Insert after the current page \thispagestyle{empty} \clearpage \...
1
vote
0answers
97 views

same column width across tables inside a longtable

I use many longtables that occupy several pages. These longtables have tables inside that have 1,2 or 3 columns, all of which have the same width: p{2cm}, p{2cm} and p{9.5cm}. I have been playing ...
1
vote
2answers
900 views

Calculating the width of an align structure

I want to encase a \begin{align}\end{align} block in a \parbox of exactly the width it takes up. If I try: \settowidth{\alignwidth}{\vbox{\begin{align} \vec a+\vec b&=(\vec a_x+\vec a_y)+(\vec ...
4
votes
1answer
293 views

Limit tcolorbox to the width of the page

In another thread I asked for a little help with setting up an own solution environment to use in student assignment-sheets. We there checked a boolean (if it's the solution sheet or only the ...
2
votes
1answer
168 views

tcolorbox problems with asymmetric page layout

Using tcolorbox for chapter headings I never had a problem, except when I changed to asymmetric layout. Usually tcolorbox's option spread sidewards works just fine in a chapter's heading (you can ...
2
votes
2answers
641 views

Make a variable length horizontal rule depending on the text width of the title

I have the following custom environment for examples: \documentclass{article} \usepackage{lipsum} \usepackage{amsmath, mathtools, amsthm} \usepackage{graphicx, xcolor} \usepackage[top=1in, bottom=...
1
vote
1answer
107 views

Define the width of a logic puzzle dynamically

I want a PDF page to fit a logic puzzle completely (cropped), but I do not know the resulting width when beginning the block for the puzzle: \documentclass[border=50px]{standalone} \usepackage[german]...
1
vote
1answer
600 views

How to set width of multi row columns and do line breaks [duplicate]

I would like to create a table with a specific column width and an automatic linebreak in my multirow columns. THANKS to Elad Den for my progress. :) Is it possible to automatically set the width ...
9
votes
1answer
8k views

How to know the column width of a two column article?

I'm writing an article with 2 columns. If my document is this: \documentclass[10pt,a4paper, twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ left=2.00cm, right=2....
1
vote
2answers
201 views

Multi-column table width issue

I would like to know how to reduce the size of this table, since it is larger than the text width on one page. Or should I fix the width of each column? If yes how? \begin{document} \begin{table}[!...