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

learn more… | top users | synonyms

4
votes
1answer
28 views

Minimum width for beamer frame number

In certain beamer themes, the frame number is displayed as No./tot in the bottom right corner, following the date. Since the frame number is not constant in width, this makes the date “move” from ...
3
votes
3answers
42 views

Columns are not the same width in a table

I have the following code for a table, but I can't figure out why 2 columns are wider: \newcolumntype{C}{>{\centering\arraybackslash}p{2em}} \begin{table}[h] \centering ...
10
votes
3answers
6k 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 ...
5
votes
1answer
48 views

How to obtain a fixed gap between columns in a table?

How can I center a column of a table which is raggedleft/raggedright at a specified position? Basically the length between W and X, X and Y and Y and Z should be the same, W should be raggedright, Z ...
3
votes
2answers
40 views

Problem with 'longtable' and the width of the table

I'm using the package longtable to define a table in two pages but it has too much width when I write long text in a cell that fills until the border of the page and doesn´t have room for all the ...
2
votes
0answers
35 views

How to calculate exactly the proper textwidth to get a pregiven wrapping?

I have a text written with 12pt letters. I would like to use 10pt letters with shorter textwidth but the same wrapping. How to calculate the width? It is possible to force LaTeX to do the same ...
4
votes
2answers
57 views

How to set fit height and width for tcbox according to the text inside?

I want to place a word into a \tcbox, but the box has too much space around the word. For example, the word "EQUAL".
7
votes
3answers
205 views

Make box with minimum width (in math mode)

How can I give a box a minimal width, in math mode? That is, I would like a command something like \minwidth{exp}{width}, which will always typeset exp, but additionally, if the natural length of exp ...
3
votes
2answers
144 views

How can I improve the look of my table? (no white space, nice font size, and not going off the end of page)

I just want a nice plot but I try different things and sometimes it goes of the page, or there is white space (like now). I would like adequate spacing between lines and varying font heights. Here ...
1
vote
1answer
38 views

Set linewidth of listings inside animation?

How can I set the linewidth of a listings if this is inside animateinline? So far it seems that this setting is ignored in this situation. But it works outside the animate. This seems to be another ...
2
votes
1answer
36 views

Table width with ctable

i'm having a problem with the width of a table in my thesis. Its my first document with Latex. I have two tables. First table: \ctable[ caption = {Comparison between $K_D$ values in \citet{SPM_1977} ...
0
votes
1answer
72 views

Table with different widths and rows

I am using the following code to write the table \documentclass[11pt, fullscreen=true, bookmarks=false]{beamer} \usepackage[utf8x]{inputenc} %\usepackage[T2A]{fontenc} ...
4
votes
2answers
67 views

How to measure the width of items in itemize environment?

I want the output of the code below to be like this image. How to do this? Please keep in mind that the width of [Foo Bar Foo]'s is variable. So it should be calculated automatically. ...
2
votes
2answers
171 views

How to make a wide longtable fit on page?

I'm new to LaTeX, and copied over a table from Excel into TeXShop (mac) using the macro. I set it as a longtable because it spans two pages, but with regard to width, the table isn't fitting. Also, ...
1
vote
1answer
32 views

How many pixels, inches or centi meters is a linewidth in a two columned article?

I'm writing an article. The article consists of two columns and is created using: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} How long is a 1.\linewidth in pixels, inches or centi meters?
2
votes
1answer
34 views

\widthof text in a def'd subroutine inside a tikzpicture? [duplicate]

I have already seen \widthof within tikzpicture, but this is slightly different. I have a rather complex Tikz image, which I'd like to eventually include in a Latex document; as such, I'd like this ...
1
vote
1answer
132 views

ConTeXt: How to control vertical and horizontal line thickness in tables?

In LaTeX, I could do something like: \begin{longtabu} to \linewidth {X |[3pt] X} ... \tabucline[3pt]{-} ... \end{longtabu} which would produce vertical and horizontal lines of 3pt thickness. ...
5
votes
2answers
144 views

In a table: Problem equalling the width of only three columns

I am writing a thesis in a large .tex file in Vim. As I show in this image, the first, second and third column have different spacing (width): This is the code for the table: \begin{table}[h] ...
5
votes
1answer
2k views

Modifying the headline width in Beamer Warsaw

I am using Beamer Warsaw for a presentation. I need to modify the headline and the footline, since the title of the work is very long. Therefore, for the footline the adjustment is: ...
4
votes
2answers
86 views

How to fit the width of a tcolorbox to a long title (single line)?

Using "clip title=false" enables a tcolorbox long title to sit on a single line. However, the width of the tcolorbox itself remains fitted to the content. How can the tcolorbox width be fitted to the ...
6
votes
2answers
87 views

Do I really have to specify the width of my wrapfigure twice?

I'm trying to add a figure to my document. Because I want text to wrap around it, I use the wrapfigure environment: \begin{wrapfigure}{r}{1cm} \begin{center} \includegraphics[width=1cm]{"My ...
7
votes
2answers
75 views

How to achieve same table width with different column numbers

I have to print several tables with distinct number of columns. I'm using lingtable because sometimes these tables contains over 300 rows each. Here's the problem. Even defining a fixed width in cm, ...
3
votes
1answer
32 views

How can I get a slimmer \textbar?

I use \textbar in my headers in order to separate the page number from the section. \thepage\hspace{0.5ex}\textbar\hspace{1ex}\thesection\sectiontitle But I want to slim the thickness of the ...
1
vote
0answers
18 views

Wrong width in pstool

I try to set up a report with the assistance of matlabfrag and pstool. I have an issue to define the correct width of such an diagram. Especially in combination with includegraphics, the problem ...
5
votes
2answers
198 views

How to calculate the width for placing 2 big images side by side?

I'm trying to put 2 images in a row with this code, and runs well, but... don't adapt the size of the last 2 images in a row. \documentclass[12pt,a4paper]{article} \usepackage{graphicx} ...
4
votes
2answers
86 views

Can I change the overall width of the invoice package's table?

I'm using \usepackage{invoice}, and I'm wondering if I can adjust the width of the table? \documentclass{article} \usepackage{invoice} \date{September 1994} \begin{document} \begin{invoice}{USD}{0} ...
4
votes
1answer
58 views

Shouldn't this table span the whole page width?

I have this table definition as part of a invoice \begin{tabularx}{\textwidth}[ht]{lXrr}% It worked fine for years until I have a very short word in the X column for the first time. Now my table is ...
5
votes
1answer
67 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
4
votes
3answers
85 views

Set default width of \shadowbox to line, not column, width

When I insert a shadowbox using Lyx (Insert>Box>Drop Shadow) the width is specified as 100% of column width (1\columnwidth). This is the source code it generates: ...
5
votes
1answer
142 views

tikz: how to define a flowchart (hexagon) loop shape that keep its width fixed but adapts its height to the text inside it?

I am using following (hexagon) loop definition I found in Stackexchange in my flowchart. When the number of text lines in it increases, the width of the whole shape also increases. I want the width of ...
3
votes
0answers
41 views

How to limit the width of a subheading?

The thesis formatting manual has the following requirement: Subheading width: A long subheading title should be divided into two or more lines. No single line may be wider than 4 inches. ...
2
votes
1answer
45 views

Align downscaled graphics to the left

I include a PDF as a figure in my document, and the PDF is a great deal wider than the \linewidth. I use the adjustbox package to set the width to slightly more than \linewidth, but I can't figure out ...
2
votes
1answer
81 views

How to indent long comment continuation in the algorithmicx pseudocode

In the MWE, I try to add line continuation indent to the answer given in Properly indent comments with no line-numbering in algorithmicx E.g. I am trying to write the \LineCommentCont . I am using ...
2
votes
1answer
107 views

Table exceeds page width (tabularx and tabulary)

I'm trying to fit this table to the page width but I can't. I tried the tabularx environment and the contents got mixed. I tried also the tabulary environment: it's better, the contents are not mixed ...
14
votes
1answer
292 views

Expanding a Tikz rectangle to fill remaining text width

I would like to place a shaded rectangle between the left and right footers, which fills the space in-between. The left footer can be of variable width, so I would like the rectangle to automatically ...
3
votes
2answers
81 views

Modify global size of booktabs table

Here is the table I am trying to make: \documentclass{book} \usepackage{tabularx, booktabs} \usepackage{lipsum} \begin{document} \begin{table} \centering \begin{tabularx}{\textwidth}{lll} ...
1
vote
2answers
103 views

Table Formatting - Width

Okay so I am having some trouble with tables in Latex. I tried to find a solution within the already asked questions out there, but I haven't been able to either make sense or get these to work. ...
1
vote
1answer
113 views

How can I nicely typeset this MySql query with the listings package?

I am trying to show output of MySql explain in my LaTeX document. I am using listings package to make listings. Sample LaTeX code: \begin{lstlisting}[language=SQL,caption={SQL query explained}] ...
1
vote
1answer
80 views

Trouble creating basic tables

I am currently writing my dissertation in LaTeX, ran into a brick wall creating a simple table. I want it to look similar to this (Quick mockup done in Numbers) The main issues I'm facing resolve ...
9
votes
2answers
229 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
6answers
3k 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, ...
8
votes
2answers
87 views

How do I vary the height of braces without varying the width?

I am trying to highlight pieces of a formula with some text on the side, but one of those pieces is multiple lines. The solution that I came up with was to use braces in an array to highlight the ...
1
vote
0answers
86 views

Tabularx inside of Table becomes wider than the textwidth

I have many tabularx enviornments and have been using \linewidth to keep the table width flush with the text width. I now have a need to insert these tabularx segments inside of a float table ...
8
votes
1answer
74 views

Minipage width not acurate

I have the following document, with several minipages of 12cm width. Each minipage contains a different number of minipages (with a sum of 12cm for all of them). So every *sub*minipages should fit ...
4
votes
1answer
151 views

Inserting an A1 image into an A4 document whilst maintaining page numbers?

I'm a bit new to LaTeX so sorry if this is obvious. I'm trying to insert a large image (which I have created a pdf version of) into an A4 document. I have tried using pdfpages and fitpaper=true to ...
3
votes
2answers
210 views

pgfplotstable column width & row height

I am drawing a large heatmap containing only colors using \pgfplotstabletypeset. The table contains 103 columns, and 111 rows, which I am trying to squeeze in the area of 13cm * 16cm. In order to save ...
1
vote
0answers
21 views

Have a table-cell spanning entire table with automatic width [duplicate]

I'm formatting a table, and I the bottom row has to have the "table notes". I'm not allowed to use the threeparttable package (or any other special package). I know I can use something like ...
9
votes
1answer
104 views

What is the cleanest way to adjust the dimensions (height, depth, width to the left and right) of a symbol?

Every once in a while the nominal (i.e. declared) dimensions of a symbol are not identical to the actual ones. This can be intentional or not, but sometimes it is inconvenient. The dimensions of ...
1
vote
1answer
84 views

Issue with table and text width

I ask for help since I cannot cope with an issue occurring in the compilation of my LaTeX file. I put a table in a section (documentclass cv), but unfortunately the table starts from the middle of the ...
3
votes
1answer
139 views

How to determine minimum width of rectangle with distance between two nodes

From similar questions and given examples about how to calculate distances between two points in the TikZ manual, I was not able to figure out how to extract from them a solution for my (probably ...