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

learn more… | top users | synonyms

2
votes
1answer
31 views

Available width inside algorithm2e

I wanted to use an environment inside an algorithm2e and it turned out, that it is too wide. I tried to draw some boxes to see the width, and it turned out that \textwidth is too large inside the ...
4
votes
2answers
58 views

Error when specifying width of column in table

\documentclass{beamer} \begin{document} \begin{frame} \begin{table} \begin{tabular}{c{15mm} | c | c | c | c} Television & Radio & Washer & Dryer & Computer \\ \end{tabular} ...
2
votes
1answer
72 views

Rescale paragraph to fit margins or detect used width of paragraph

I want to write a command or similar that allows me to rescale a given paragraph to fit a given frame, keeping the aspect ratio. The problem is that the paragraph is usually manually set and not ...
5
votes
2answers
70 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
1
vote
1answer
18 views

Image does not crop

When I do the following: \includegraphics[width=1.0\textwidth]{image.jpg} The space where the image should be, is correctly scaled to the size of the scaled image, but the image itself doesn't ...
5
votes
1answer
39 views

Tabbing environment in tabular environment cancels set table width

I have a table with a tabbing environment in it. I don't want the table to exceed a certain width, but the tabbing environment seems to ignore this. So while inserting a lot of 'blas' in row 5 results ...
3
votes
2answers
70 views

How I can create a command that can be treated as a number?

I need to put a symbol over some text, I want to use \hspace{#1} where #1 is the width of the #1 text used. For example, write \mycommand{p}{b} and the result to be shown like the b over the p, just ...
1
vote
1answer
48 views

Table with width assignment

I am trying to create a matrix in texmaker when using the wizard-->quick tabular i get a table, but I want to have equal spacing between the columns , so at the option i choose fixed column width when ...
2
votes
1answer
52 views

tabu to textwidth yields a table wider than textwidth

I have a code for a table that should fit to textwidth, but for some reason it doesn't. Any ideas why? \documentclass {article} \usepackage [T2A] {fontenc} \usepackage [utf8] {inputenc} \usepackage ...
4
votes
1answer
30 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
46 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 ...
5
votes
1answer
54 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
46 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
37 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
68 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
220 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
149 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
42 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
42 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
74 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
73 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. ...
1
vote
1answer
36 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
39 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 ...
5
votes
2answers
147 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] ...
6
votes
2answers
90 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
85 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, ...
4
votes
2answers
95 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 ...
3
votes
1answer
36 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
19 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
207 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
96 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
67 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
76 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
92 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
161 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 ...
2
votes
1answer
47 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 ...
3
votes
0answers
44 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
90 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
118 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
306 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
83 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
111 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
120 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 ...
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
91 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
77 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 ...
3
votes
2answers
239 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 ...
4
votes
1answer
157 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 ...
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 ...