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

learn more… | top users | synonyms

2
votes
1answer
54 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
45 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
142 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
203 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
344 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
88 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
128 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
155 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
81 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
92 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
103 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
89 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
299 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
179 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 ...
9
votes
1answer
117 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 ...
0
votes
1answer
2k views

longtabu, column width

having an issue with longtabu and setting columns to a percentage of the table width. I've achieved what i want with tabularx: \documentclass{report} \usepackage{tabularx} \begin{document} ...
2
votes
1answer
70 views

ConTeXt: Ignore stem height

Background Looking to create a stylized chapter heading using the first character of the heading title. Problem The stem (descender) distance of text causes the containing frame's offset to alter ...
3
votes
1answer
160 views

ConTeXt: Scale font for text based on maximum width

Background Looking to devise a scaling factor for two fonts such that the text, when added to the final document, fits on one line. Example In the images below, the two fonts are the first ...
3
votes
3answers
129 views

How can I fix the width of the table?

I have a multi-column table but the width of last three column is float. I want it change line automatically when the text exceeds the table of too long to write in one line. Here is the image and ...
2
votes
2answers
208 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, ...
3
votes
1answer
153 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 ...
5
votes
3answers
207 views

Troubles with column width in the tables headings

Well, we all know that compose tables in LaTeX is not easy, however, despite the large number of existing packages and options to facilitate this, I still have some problems I could not solve, and I ...
1
vote
2answers
54 views

Why is the width in nwu-lecture-style not working? [closed]

It seems that the code in nwu-lecture-style: \insertshortauthor[width=2cm-2pt,center,respectlinebreaks]\par% is not working? I tried: \insertshortauthor[width=2cm minus ...
1
vote
1answer
150 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. ...
0
votes
1answer
154 views

ConTeXt: How to maximize width of column depending on fixed sizes of other columns?

In LaTex, I could do something like: \newcolumntype{C}[1] {>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \newcolumntype{L}[1] ...
4
votes
1answer
73 views

Table width and Header

I would like to create a table as: It is a complicated table both in size and style: I have tried the following code: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} ...
1
vote
1answer
86 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 ...
1
vote
0answers
171 views

How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)?

How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)? Is there some way in which something such as \hsize could be used as an ...
1
vote
1answer
100 views

Very wide equation ruins consecutive side edges

I've just created a set of equations in matrix form which looks fine. It also seems to fit in the space of my document, but in the following space after the equation, the side edge is suddenly gone, ...
0
votes
2answers
596 views

Fit to landscape longtable generated with xtable and sweave

I read many TEX questions/answers on fitting a table to your page width, but cannot figure out how to do apply it in my context (using xtable/sweave). Everything that I tried (using adjustbox, tabu) ...
6
votes
1answer
136 views

How to determine width of \textls? \settowidth doesn't work

Using microtype's \textls, how can I determine the width of the resulting text? Here is a MWE that does not work: \documentclass{article} \usepackage[log-functions=false]{expl3} ...
7
votes
1answer
139 views

How to expand equation to textwidth?

I have an equation like so: \begin{equation} \label{eq:helper_params} \tilde{B} = \begin{bmatrix} CB\\B \end{bmatrix}, \tilde{I} = \begin{bmatrix} I_p\\0 \end{bmatrix}, \tilde{Q} = ...
4
votes
2answers
50 views

Wide table in twoside document

I am using a twoside document style and have a wide table crossing the right margin if it is on a right page. How can I disable the twoside style for just the table to center it. What is the correct ...
4
votes
2answers
2k views

LaTeX p cell width

totally new to LaTeX, this question occured today: I have a table made of 17 columns. Every column is 0,6cm wide. ...
4
votes
1answer
117 views

get width of longest line in table column

Question In a longtable, how do I retrieve the width of the longest line for each column? Background I'd like to use the longtable environment in combination with the ltablex package. The latter ...
2
votes
1answer
205 views

Automatically set the figure width depending on whether the layout is one or two column

I am wondering how do you usually deal with figure width when you are writing a paper. (use \linewidth, \textwidth ? others?) Maybe we can just define a "switch" and use it with ifelse package? ...
2
votes
1answer
170 views

Stretch image width within a two-column layout in ConTeXt

Background Trying to place an image within two-column text. Problem The image renders as follows, where the vertical bar is the column separator: Code The following code produces the problem ...
9
votes
3answers
152 views

Box with adaptive length

When I want to put formulas into boxes, I like the box to adapt to the length of my formula. For example, I don't want to put $1+1=2$ in a very large box. To address this, I use the command \encadrer ...
2
votes
1answer
114 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...
2
votes
2answers
201 views

Table with cells of different widths

I'm trying to typeset a Word doc in LaTeX - mainly so that I can get the results I want, rather than Word (or LibreOffice) making my decisions for me. And my current difficulty consists of a few ...
15
votes
1answer
525 views

More condensed version of \parshape

\parshape can handle arbitrary paragraph shapes. One extreme is contained within How to layout irregular paragraph shape, where it can handle setting paragraphs like this: However, a simplified ...
7
votes
1answer
138 views

Find out actual width of text in nested lists

I am trying to solve the following problem: In regular text, I can place two paragraphs of unequal width side by side using minipages, like so: \documentclass{article} \begin{document} Some text ...
5
votes
2answers
61 views

How to use the width of some text in \dim_compare:nTF directly?

Is it possible to use the width of some text directly inside of a <dimension expression>. I found this way using a temporary box but it seems not very elegant … \documentclass{article} ...
4
votes
3answers
150 views

What should be the right width of an image for each document-classes?

I would like to print good images in A4 document (300 or 600 dpi). Using an external software,I have to merge differents big images to create a bigger one so I have to resize it with the same software ...
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: ...
0
votes
0answers
22 views

Tabularx textwidth tables jump to last page [duplicate]

I am using tabularx to get a table that automatically stretches to the full width of the paper. However, my tables seem to be put at the last page when I apply this code (see below). How can I avoid ...
3
votes
1answer
136 views

How to adjust the width of a frame to a given text?

I'm currently trying to get a frame around some text or pictures with an header as the "W" in this answer. My code is actually the following: \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
409 views

Break box (a long caption) over pages

I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
5
votes
2answers
176 views

Setting widths in a longtable not working

I want to create a longtable that spans several pages, with column widths set to cms by me: \documentclass[12pt]{article} \usepackage{longtable} \usepackage{seqsplit} ...