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

learn more… | top users | synonyms

1
vote
1answer
35 views

Setting table-width exactly to linewidth

I'm trying to create a table with exactly the same width as the surronding text. I would expect that the command \resizebox{\linewidth}{!}{..table..} should do the job. However, the tables width is ...
0
votes
0answers
21 views

Longtabu not able to shrink text to textwidth

I have a really long table with papers, their authors and some other info about the paper. I use longtabu to make it a long table, and as some papers have a lot of authors I would like to make sure ...
1
vote
1answer
46 views

How to change the size of the right/main column in the koma-moderncvclassic?

I am using the koma-moderncvclassic package to re-create my CV. How can I manipulate the size of the right side column using so the column width matches the page layout respectively the width of the ...
2
votes
1answer
38 views

Set width of tabular column to the width of tabular numerals

Take the following code: \documentclass{article} \usepackage[oldstyle, tabular]{libertine} \usepackage{array} \newlength{\period} \settowidth{\period}{9999--9999} \begin{document} ...
6
votes
2answers
72 views

How to restrict width of tcolorbox according to the length of the text it contains

I have created a tcolorbox (as given in tcolorbox version 3.40 manual - page 155) LaTeX Code: \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, ...
2
votes
1answer
21 views

bound width of a single lstlisting to one column inside a two column IEEE template

I use IEEE double column template and inside it I add a C++ code. I expect the code to be bounded within a single column however it infringes to the next column. How to fix this code? I would avoid ...
1
vote
1answer
20 views

Increasing table width and centering word within column using longtable package

Problems: Increasing table width to 100% Centering table header word (i.e. criteria) Repeating table captions on every page Questions: How do I increase table width to 100%? How do I center the ...
1
vote
2answers
74 views

Make table 100 percent in width and add solid vertical divider

Problem: Making the table 100% in width and adding vertical lines only for letters A-K. Minimal working example (MWE): \begin{table}[htp] \centering \footnotesize\setlength{\tabcolsep}{2.5pt} ...
1
vote
1answer
42 views

specified column width

I'm using the following code for the table. Currently it is set up so that I can change the width of all column (except the first one) to the same width. Can someone help me tweet it so that I can ...
0
votes
0answers
24 views

width of table cell

I'm playing with a class file and the exact positioning of the text by using the textpos package depends on the exact width of a table cell. Is there a way to obtain this width, say by using ...
0
votes
0answers
25 views

How to let Multirow cooperate with Tabulary's “auto wrap”?

I have been using Tabulary's capability to auto wrap things. But I cannot find a way for Multirow to cooperate with it. Basically, in Tabulary I use \begin{tabulary}{\linewidth}{|L|L|L|L|L|r|} so ...
1
vote
0answers
56 views

Align fixed-width columns to the decimal point

I define a new column type for a fixed width column with centre aligned text as follows: \newcolumntype{d}[2]{>{{\rightdots{#1}}r<{\rightdots}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}} ...
4
votes
1answer
54 views

Beamer - Wide Example Box

I am using this code to get an untitled example block. \begin{exampleblock}{} \end{exampleblock} As we know, this box has a width equal to the text width. How can I modify the code to get a box ...
1
vote
1answer
35 views

Cannot make \arraybackslash work after defining custom columns

I use: \usepackage{array} \newcolumntype{fwLa}[1]{>\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} ...
0
votes
0answers
20 views

how to resize the width of subcaption

I have two pictures and I'm using \usepackage{subcaption} to place them beside each other. The output might look like the following . The problem in the above picture is that it is difficult to ...
1
vote
0answers
35 views

How do I uniformly change bar thickness, box width and add error bars?

I need help with a few adjustments on this group plot. I managed to solved my previous problem but now I´m searching for a needle in a haystack. 1. How do I make the bars thinner so they may fit ...
0
votes
1answer
31 views

Why is tikz getting a different \linewidth or drawing a different rectangle inside a minipage under the same conditions?

Question I have a signature macro that determines whether to include a signature for a final production or whether to put in a red unsigned box (for pre-production copies). For some unknown reason, ...
5
votes
5answers
242 views

Boxes automatically sized to reach end of line?

I'm setting up a little test, which includes empty boxes for students to write their answers. The boxes start at different places on the page, but I'd like - for neatness - each box to reach to the ...
1
vote
2answers
66 views

How to deal with very long formulas

I have a very long formula that does not fit in the page. What should I do? Here is the code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} ...
0
votes
1answer
35 views

tabu how to specify individual absolute column width and row height?

I am trying to generate a table that requires different row widths. The first column should have as little width as possible (just to print single digit 1,2,3 upto 9), whereas column 3 (where I have ...
2
votes
1answer
83 views

Customize tabular with tikz: extract width of a column

Currently I use this custom type of tabular (with packages tikz, booktabs, etoolbox): \def\head#1\\{\shead#1&\\} \def\shead#1&#2\\{\color{white}#1\ifstrempty{#2}{\\}{&\shead#2\\}} ...
6
votes
1answer
122 views

Fully Customized Table in Latex

Is it possible to have a customized table in LaTeX that has the following features? Be able to define Width and/or Height for specific row/column Be able to highlight/color a specific row or column ...
3
votes
1answer
109 views

Optimizing width of table (tabulary)

I'm trying to fit this table to the width of the page, however, whenever I try to change the header width with the command {p{}} it doesn't adjust the width of the three main headers Population, ...
4
votes
1answer
66 views

Adjust text within table using Tabulary

Problem: After looking into already existing threads about Tabulary, I could not find out what was wrong with the following code. The text does not adjust within the table. Code: ...
4
votes
3answers
210 views

Problem with the width of a table

I used the following code to generate a table, but I have faced the problem that clarifies in the attached picture. Any solutions? \documentclass[11pt,journal,compsoc]{IEEEtran} ...
2
votes
1answer
70 views

Too wide line spacing?

Following the likelihood function \begin{equation} \prod_{i=1}^n E \lbrace B_{k_{i_1}} (x_{i_1}) B_{k_{i_2}} (x_{i_2}) \rbrace E [ A^2 \lambda_1^* (x_{i_1}) \lambda_2^*(x_{i_2}) \exp ...
2
votes
1answer
105 views

Set minipage width to the available space

I am trying to fit 2 minipages next to each other, and I would like one to take 20% of the \textwidth, and the other one the rest of the space available, with a margin between both minipages that I ...
5
votes
3answers
177 views

How to make a fixed height-width box with custom padding

I am new to latex, I am trying to include output of TI84 calculator in my document. It is supposed to look like this: Following is what I am able to make. My output's height and width arrange ...
0
votes
0answers
29 views

Package colortbl problem: wrong width of the colored row with ''@{}'' in column spec list

The MWE: \documentclass{article} \usepackage{xcolor} \usepackage{colortbl} \begin{document} \setlength{\tabcolsep}{0pt} \begin{tabular}{|c|c|@{}p{0pt}@{}} \hline \rowcolor{cyan!70!black} Dummy ...
10
votes
3answers
195 views

How can I make an algorithm environment wider than \linewidth or \textwidth?

I have already tried two things: \makebox[1.2\textwidth][c]{...} which did not work (perhaps missing \item). \redefinegeometry does not work well in this case beacause it’s not on a single page. MWE: ...
1
vote
1answer
36 views

Decreasing font size increases border width

(hopefully) no duplicate of Number of pages decreases when font size increases, because the font size is one of the defaults. In an attempt to fit more text on a page, I decreased the font size, only ...
1
vote
1answer
199 views

Make longtable automatically fit page (line width)

I have a longtable in landscape mode that is automatically split on multiple pages when there are too many rows. I have solved the length problem. Now I have a problem with width, the rows are going ...
2
votes
2answers
50 views

How can I broaden a caption?

I’m trying to extend a caption beyond \textwidth. I tried it with \makebox, however, that resuls in an error: \documentclass{article} ...
1
vote
1answer
44 views

Latex longtable coulumn width [closed]

I have started learning Latex and writing my thesis. I want to typeset a long table. \begin{centering} \begin{longtable}{p{3.5cm}p{10cm}} ...
2
votes
1answer
36 views

Centered columns with fixed width using tabularx

How do I center the last seven columns in the attached text without dropping the fixed table width or the fixed column width? \documentclass[a4paper,12pt,oneside]{article} ...
2
votes
1answer
74 views

TikZ xscale \linewidth/width

I have a series of eps picture to be included in a LaTeX document. They need to be stretched to fit the linewidth, without mantaining their ratio. This solution works perfectly: ...
2
votes
2answers
270 views

Make a column of a table take up all remaining width without other columns wrapping to the next line

I want to make a table with 3 columns. The table will fit the width of the container. The left column will be right aligned and take up as little width space as possible. The center column will be ...
1
vote
2answers
100 views

Table Column Width Error

I'm trying to produce a table in LaTeX and I almost succeed. The table is this one: My question is: why the fourth column of "Gennaio", "Febbraio" and "Maggio" isn't as the same width as the rest? ...
0
votes
1answer
93 views

Expand table columns proportionally to textwidth

I have a simple table: \begin{table}[h] \begin{tabular}{|l|l|l|l|l|} \hline First entry & 2nd & 3rd little longer & Forth & Fifth\\ \hline\hline 4.7\% & 11.7\% & 2.5\% ...
4
votes
4answers
173 views

Make uppercase letter have same width as number in math mode?

I want to have \[ \begin{array}{c} \phantom{+} \, 39A_{12} \\ \underline{+ \, 488_{12}} \\ \phantom{+} \, 866_{12} \end{array} \] but the spacing looks awkward with the "A". Is there a way to get ...
7
votes
1answer
96 views

How can I make the width of the caption match that of the listing?

How can I fix the captions width to match the listing? As in the picture below: Code is here: \documentclass{article} \usepackage{xcolor} \usepackage{listings} ...
2
votes
1answer
62 views

Adaptative column width

I am currently automating a report generation and I am now trying to obtain a consistent look on my arrays. I am currently working on a part where the pages need to be set in landscape mode, so I am ...
3
votes
1answer
67 views

Why the background of a pgf fitting node with minimum width equal to another (backgrounded) fitting node's width is shifted?

I have two pgf fitting nodes: one below the other, left aligned, with different (unpredictable) widths, and I'd like them be backgrounded, with backgrounds of the same width. For this, I got help ...
1
vote
3answers
518 views

How to specify the multicolumn width in table header? [closed]

I want to read/input the body of a table from a separate file. I have mostly solved this problem using this question. But when I try to read a table with multicolumn from a separate file, it failed. ...
2
votes
1answer
86 views

Set column width to point

I currently have a tabularx table with four columns. I initialize the environment like this: \begin{tabularx}{\linewidth}{l p{0.4\linewidth} | l X l X} How could I change this so that the second ...
4
votes
1answer
111 views

Tabularx: columns with different widths

My code can be found below. \documentclass[fleqn,10pt]{SelfArx} % Document font size and equations flushed left \usepackage[font=small]{caption} % New commands ...
2
votes
1answer
228 views

Lilypond generated with MuseScore does not fit the width of the page in XeTeX doc

I am using MuseScore 1.3 on Ubuntu 14.04 to write my scores. Then I save them as LilyPond files, and include them in my tex document using \lilypondfile, like this: \documentclass[a4paper]{article} ...
2
votes
3answers
35 views

How can I change a table column's size and its text justification at the same time in LaTeX?

I am a newbie in LaTeX but I know that this command {|>{\small} l | p{2.8cm} | p{2.93cm} | p{2.85 cm} | p{2.58 cm} | } will change first column justification to left and set the size for other ...
5
votes
2answers
174 views

Width of the caption of a figure

I am having trouble making the caption beneath a figure to be of same width of the figure (less than the width of the paragraphs in the same page). How can I force the caption width to be the same as ...
1
vote
1answer
64 views

column width for text without space

how is it possible to control the column width in a table having a very long text without space. \begin{table} \begin{tabular}{l p{2cm}} datapath & ...