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

learn more… | top users | synonyms

9
votes
2answers
263 views

Multicolumn block is narrower than the surrounding text

I need to typeset blocks of text in a multicolumn environment, with a title above, and framed with full line width. I'm using the multicol package for that. The issue I face is that the block of text ...
4
votes
1answer
832 views

Multicolumn width calculated for lX columns

I have the following table: \documentclass{article} \usepackage{tabu, longtable} \begin{document} \begin{longtabu} to \textwidth {|l|l|l|lX|} 1 & Column 2 & 3 & ...
2
votes
3answers
2k views

Control column width with left alignment in tabular

I want to make a table with a bigger than default column width for the first column. The text in this column should be left aligned. Here is my code. \begin{tabular}{llll|l} Address1 ...
6
votes
1answer
731 views

How do you get block dimensions in Beamer?

I'm using a block for emphasizing different pieces of information. I'd like those pieces to be constrained to the block dimensions and to use the columns environment, but I don't know how to get the ...
2
votes
2answers
181 views

Setting width of lines in tabular

Is it possible to increase the linewidth of tables like it's possible to set the linewidth in PSTricks? Maybe you could show me how to do it on this example: \begin{tabular}{c|c|c|c} \hline ...
2
votes
2answers
2k views

How can I use the full page width (\textwidth) while importing a table with \includegraphics?

I'm in a 2-column environment. I need to use the entire pagewidth (\textwidth) while importing a table with \includegraphics. \begin{table} \centering \includegraphics[width=\textwidth]{./myfile.pdf} ...
7
votes
2answers
596 views

Macro for the average width of a character

How can i made a macro similar to \averagecharwidth of ConTeX in LaTeX, that calculates the average width of a character based on the frequency of that character into my document ? that macro is show ...
2
votes
1answer
577 views

column width expands page after using landscape, minipage & twocolumn

I am writing a two column report: portrait oriented page. For certain pages I used landscape orientation. In this page a figure takes whole width of the page (29cm). Under this figure I put a two ...
4
votes
1answer
1k views

Calculate parbox width to make it meet the page border?

I'm using the program package to typeset my algorithms. I want my comments to have a light gray background, therefore I'm using colorbox with a parbox inside (for multi-line comments). Now the ...
9
votes
1answer
1k views

I need a customized verbatim environment

I would need a verbatim environment with the following behaviour: It is centered (left and right distance to the page edge should be equal). It can be much wider than the regular text, almost using ...
4
votes
1answer
152 views

In a 2-columned document, how do you get a table to stretch across the entire width?

I'm working on a document that runs two columns of text down the page, like many scientific conference proceedings. However, I'd like for a table to run across the entire width of the page, as it is ...
1
vote
2answers
3k views

longtable in LaTeX too wide?

I am having problems with a longtable, it goes off the side of the page and any attempt to limit the width only seems to work on the first page. Here is a cut down version of my table % Appendix B ...
3
votes
1answer
98 views

Setting width of RawCaption

I have posted a question Different width for caption and floatfoot with floatrow (which contains a MWE) regarding setting caption and \floatfoot width in the floatrow package, which was answered so ...
2
votes
1answer
240 views

How to obtain the width of a column within the APA document class?

I am using the APA document class. My document has some tables: \documentclass[jou]{apa} \usepackage{tabularx} \title{This is the title} \author{This is the author} \begin{document} \maketitle ...
5
votes
1answer
1k views

Different width for caption and floatfoot with floatrow

I am using the floatrow package. I would like to define a separate width for both the caption above and the \floatfoot below the floats. I want the caption to span the entire width of the page, but ...
11
votes
3answers
8k views

Tabular with p type columns to fill page width

I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized. I wish to be able to ...
9
votes
2answers
570 views

Average width of popular TeX fonts

I know I have seen a table of average font widths. I am not sure whether this was for popular LaTeX fonts such as Computer Modern and I can not remember where it was. Does anyone know of such a ...
1
vote
0answers
43 views

Table fixed width [duplicate]

Possible Duplicate: How to obtain width of longtable? I have many tables that I create with longtable or ltablex. How can I make all tables the same width?
5
votes
1answer
5k views

Columns width of array environment

I'm using the array environment and have something like this: \begin{array}{|c|c|} \hline \textbf{x} & \textbf{y} \\ \hline \hline t_1 & lon_1 \\ \hline \end{array} I ...
6
votes
1answer
856 views

How to move dark rectangle in headline of PaloAlto theme after changing the sidebar width?

I'm currently using the beamer PaloAlto theme with a headline and sidebar on each slide. I used the command \setbeamersize{sidebar width left=1.7cm} to fit the table of contents in the sidebar. The ...
4
votes
1answer
827 views

How to put auto width to floatingfigure?

I'm trying to wrap an generated graphic with text. But I cannot find what I have to put instead of 6cm in \begin{floatingfigure}[l]{6cm} to let LaTeX designate correct width like it does with height. ...
2
votes
1answer
549 views

Problem with colortbl and supertable, color width of the row with leading “@{}”

I have a problem with colortbl \rowcolor that insists on making the color width of the rows longer than the actual row width. Snippet of the code: \documentclass[a5paper, 10pt, twoside]{article} ...
5
votes
1answer
423 views

Shrinking text in a node, such that the minimum width and minimum height are the actual width and height of the node

I want to shrink the text in a node such that the minimum height and width are the actual width and height of the node. I found this Shrinking text to the width of a node within a tikzpicture, but I ...
3
votes
1answer
539 views

pgfdeclareshape fillable background path with invisible parts

I want to make a new shape from rectangle, which has only its top and bottom line drawn, but which can be filled. The answer, thank's to Andrew Stacy and percusse look by now as follows: ...
6
votes
2answers
3k views

How to set equal size of cells in tabular environment when \multicolumn extend the size of above cell?

The code example is shown as follows: \documentclass{article} \usepackage{latexsym} \usepackage{bm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{center} ...
3
votes
2answers
482 views

Measuring the width of a verbatiminput block

Is there any way of measuring the width of a VerbatimInput block? In other words, I would like something along the following lines, except that the verbatim data should be taken from an external file ...
5
votes
1answer
423 views

Modify width of main text block in tufte-handout

Is it possible to increase the size of the main text in the tufte-handout class to 80% of the paper width?
7
votes
3answers
10k views

matrices too big to fit the width of a page

When I type matrices in beamer class, they are often too big to fit the width of a page. What is the way to make the matrices smaller? I also want to make the font of the entries of these matrices ...
4
votes
6answers
4k views

How can I auto adjust a equation to appear in the entire page? (Scale to equations, is this exist?)

If I have a document like this: \documentclass[landscape, 12pt]{report} \usepackage[landscape]{geometry} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
6
votes
3answers
204 views

How to conditionally control the width of a figure with minimal code duplication?

I am using \iftoggle to switch between a for-review (doublespaced, onecolumn) and photo-ready (singlespaced, twocolumn) layout. I want to change the width of figures to be optimal for both, depending ...
6
votes
4answers
3k views

Set width of text in list

I am attempting to produce a list that has a width of (say) 5cm, as opposed to going to the far right of the page. Any advice is appreciated.
5
votes
3answers
2k views

Table exceeds page

I'm new to tex and got a problem with a table that exceeds the page, because the content is too wide. I'd expect the table to wrap the text into a new line / new lines, if the text is too long for the ...
4
votes
2answers
472 views

How to measure the width of a longtable dynamically and use this width in footer?

I'm having trouble computing the width of a longtable and using it later in the table. This site offers several suggestions and I have implemented one of them. However, because of scope, or because ...
8
votes
1answer
7k views

Two-column list: different column widths

I wish to create a two-column list. One side of the list will contain relatively short items (1-2 short words) and the other side will have longer items (4-5 short-to-long words). For example: 1. ...
0
votes
1answer
515 views

Persistent change of caption width in memoir

How do you persistently change caption width in memoir? I know you can use \changecaptionwidth followed by a \captionwidth{...}, but that only works within a float and I don't want to have to specify ...
2
votes
1answer
890 views

Center subfloat above extended subcaption in subfig package

In the subfig package, the command \captionsetup[subfigure]{width=<length>} extends the width of a subcaption. Now how can the subfloats be centered above their enlarged subcaptions? The ...
2
votes
1answer
1k views

Setting subcaption width for specific subcaptions

In the subfig packge, the command \captionsetup[subfigure]{width=<length>} can set the width of all subcaptions within a figure. How can the width of just a single subcaption in a figure be ...
3
votes
3answers
3k views

Set width of a custom environment

I'm trying to make a letter template (I don't want to use the existing one) and I am trying to make an environment for the adress at the top. I want it to be a certain width and located to the right ...
3
votes
1answer
2k views

Glossary term list width

I am using glossaries package in my document and I have some long term names. This breaks my layout. I tried to apply: \setlength{\glspagelistwidth}{0.3\linewidth} And it did not work at all. If I ...
3
votes
1answer
2k views

algorithmicx: shorten algorithm

My algorithms takes up too much space in the document. I would like to do 2 things: set the width bigger, so the lines which does not fit to a single line would do remove lines with end keywords ...
3
votes
2answers
8k views

latex how to make table as the same width as the textwidth?

I have used \begin{tabularx} or \begin{tabular*} but neither of these two work, these two environment managed to increase the width of the table as the same as the text, while they cannot let the ...
0
votes
1answer
677 views

Creating multiple columns of different width

I'm pretty new to LaTeX and am using it to write an exam. I'm using the geometry package to create two columns. I'd like one column to be 5" and the second column to be 1" with 0.5" separating the ...
5
votes
2answers
10k views

How to set table size to \linewidth without using a package such as tabularx?

PLOS journals provide the following instructions for preparing a LaTeX manuscript: Do NOT use any other packages than those specified in the template. If you use any other packages, your ...
7
votes
1answer
6k views

Auto-fit table column widths based on content

Is there any solution in LaTeX tables that implements similar functionality to MSWord's AutoFit?
4
votes
4answers
1k views

How to obtain width of longtable?

I need to create multiple tables of the same width, one of them needs to be a longtable due to spanning multiple pages. I could set the width of all of them to a predefined value. However, I would ...
5
votes
1answer
1k views

Scale an image where both width & height are off limits

When using images bigger than the text-area, I want to scale them but considering at the same time width and height. The problem happens to appear when both width and height are off limits. Here, I ...
9
votes
1answer
1k views

Shrinking text to the width of a node within a tikzpicture

I would like to be able to scale text to the width of a TikZ node. Using \widthof within tikzpicture as a starting point, I've arrived at somewhat of a solution, except it has incorrect spacing, and ...
68
votes
2answers
97k views

How to create fixed width table columns with text raggedright/centered/raggedleft?

I would like to create a table with some columns' width specified, while the text in those columns should be centered both horizontally and vertically. I found out that \usepackage{array} ...
4
votes
2answers
1k views

\parbox “textwidth” for the combined width of a subset of table cells

I would like the parbox width of the text in a multicolumn to be calculated automatically from the combined width of the cells that the multicolumn spans. (Their width will vary in different copies of ...
8
votes
2answers
3k views

How to make really wide tables narrower

Is there a way to fix extremely wide tables? I have the following table: \begin{tabular}{lllll} \toprule & Manual Tests & Randoop 2.5 Minutes With GUI Code & ...