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

learn more… | top users | synonyms

1
vote
0answers
9 views

Automatically scale image based on its native/actual size [duplicate]

I want Latex to detect images that are larger than the page width and automatically scale them down to fit, similar to what this does: \includegraphics[width=\textwidth]{path/to/image} However, I ...
3
votes
1answer
23 views

Natural width when centering a minted environment

I'm writing a report in which I have some code snippets. Using the following code, I'm able to create, and centre, a good-looking minted environment: \documentclass{article} % Required for minted ...
2
votes
1answer
36 views

table spanning only one column width in a multicol document

I have a two-column document and what to inset a table. My problem is that the some of the columns in the table overlaps into the other side column. I have found a question which deals with generating ...
3
votes
2answers
58 views

Width of column after multicolumn header

When multicolumn headers in tables use more horizontal space than the columns they are 'heading', then the additional width is entirely allocated to the rightmost column. The following MWE: ...
1
vote
1answer
29 views

How to define caption width in longtable?

I have a longtable within a landscape environment. Not sure the landscape is relevant but ... \begin{landscape} \begin{longtable}{lll} \caption{bla bla bla long ...} table & table & table ...
2
votes
1answer
36 views

Table cell widths vary in multirow environment?

I'm writing my thesis and am no LaTeX expert. It uses a template style file I believe and the format is under one thesis.tex file while each chapter is input using the \input command. I'm trying to ...
1
vote
0answers
44 views

Width of headings-column in CV template

I want to modify the Rensselaer Polytechnic Institute CV template to increase the width of the column allocated to the headings on the left side of the page. ...
3
votes
1answer
34 views

Columns with varying widths - one with text and one with images

Is there a way to make two columns in a document? One column for images and the other for texts. But I want the column of images to be smaller than the column of text. And I want to be able to adjust ...
4
votes
1answer
84 views

Minor difference in width of column and text

Below is an MWE. %--------------------------------------------------------------------- % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS ...
3
votes
1answer
37 views

How to make a lilypond snippet fully justified (according to surrounding text)?

My issue I have a lilypond snippet (i.e. some music staffs) embedded within a document containing text. My question: How to make the snippet justified, i.e. that its size matches the \textwidth? ...
3
votes
1answer
36 views

Personalized floatstyle

I would like to personalize some floatstyle. Here is my MWE: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
1
vote
0answers
54 views

How to set algorithm width to avoid overfull \hbox problem

I wrote the following latex text, but the log shows an error that overfull \hbox(10.0pt too wide) detected. I am sure that the algorithmic part exceed the width limit. Even if I type a few words, the ...
0
votes
1answer
35 views

How to establish the width of a column in a longtable

I wrote a table by longtable. It works correctly but I would like to improve the layout of the width a column. In the figure below you can see the result: As you can see, the last colums is very ...
2
votes
2answers
29 views

Minipage environment

I am using minipage environment in one slide of my beamer presentation. Basically, what I would like to have is the following: top of the slide: a picture on the left and some description on the ...
1
vote
0answers
42 views

Dynamic width table

I am generating Latex file which contains tables and now I am looking for best multi-page table enviroment. I found longtabu environment which looks good but I have a few problems with it. For ...
6
votes
1answer
54 views

Switching from one column to two columns on a frame

I am writing a presentation, and would like to use the following layout: On top, there is one big box spannign the whole page width, below, there are two boxes side by side. My problem is that the ...
0
votes
0answers
28 views

Column width not equal in table [duplicate]

I have the following problem. In a multi-column table, some of the columns are not equally width-sized with the rest ones. If someone could help, I would be grateful! Below my code: ...
1
vote
1answer
37 views

different column widths in a tabular [duplicate]

I would like that the width of the first column of an array to be 2cm and the second column to be 1cm. I have the following document but apparently the setting for the width of the second column is ...
1
vote
0answers
48 views

Linewidth of tabular with booktabs varies randomly

The Following MWE produces the output that I want to achieve: \documentclass[11pt, a4paper, twoside, %openright, toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt} ...
1
vote
2answers
39 views

How to create a -left and -right aligned table of a certain width?

I am trying to create a table that spans the width of the page, with two columns, aligned right-ragged and left-ragged respectively. However, this is proving weirdly difficult, as I cannot seem to get ...
4
votes
1answer
42 views

Change environment's width

I'm writing my homework and I would like to change the environment's dimensions of \documentclass[10pt,spanish]{article} % INICIO PAQUETES \usepackage{amsmath} \usepackage{graphicx} ...
0
votes
1answer
117 views

Margin widths and positioning in “oneside” memoir document

In a "onesided" memoir-based document, two custom \newcommands use both the marginpar and the sidepar commands respectively. The marginpars go to the right side and the sidepars on the left side. Some ...
1
vote
1answer
81 views

Yet another table that won't fit on page

After about 3 hours of looking through related material and failing to find a solution, I've concluded that there isn't a pattern that can be followed to fit a generic table to a generic page. Every ...
2
votes
0answers
37 views

Creating a line that goes until the margin

I understand that I can use the command \underline{\textwdith}} to get a line that stretches from one side of the page to the other, but what if I want to have some text first and then have the line ...
1
vote
1answer
47 views

Extending side margins for Title section in IEEEtrans document class

How can one extend the side margins only for the title section of IEEEtrans (conference) document class? I need to have more words fitting in each line for the "title only". ...
10
votes
5answers
601 views

In LaTeX, make a box with the width of another text

I am looking for a command like \makebox{text to set width}[c]{new text} which would make a box with the width of text to set width containing ____new text____ centered.
0
votes
1answer
64 views

How to avoid text from overlapping adjacent columns using `longtable`

I need to use the same format (or pretty similar) at the start of the \begin{longtable}{...} and preferably the same \mylenght defined from the suggested fixes to my previous problem: First problem ...
0
votes
1answer
86 views

Longtabu still not able to shrink text to textwidth even after using X columns

My problem is very similar to this one: Longtabu not able to shrink text to textwidth where the table goes outside the page, even after I explicitly set the width to \textwidth. I also followed the ...
1
vote
1answer
42 views

Can't get table to correct width oder size

I'm aware that here lots of questions regarding table formatting, but I couldn't fight the fitting answer and meanwhile I think it is any global misconfiguration. My goal: fit table on page in ...
0
votes
1answer
32 views

Reducing the width of a prooftree without changing the font size

How can I change the width of the following prooftree without changing its font size? I would like to remove the big space between T1 and T5 \begin{prooftree} %T1 \AxiomC{$\langle {\tt y:=1}, ...
1
vote
1answer
82 views

Widening the width of blocks in beamer

Related to this question I would like to permanently widen the width of blocks in beamer. The effect should be that of block at the bottom of the picture, whereas the block at the top is the standard ...
3
votes
2answers
61 views

Tabu table is too wide though there is enough space to shrink

I'm trying to make this table to fit to \textwidth. The first column has column type X from tabu package which should make it work. But it does not. Adding the "to \textwidth" option dosen't have any ...
4
votes
1answer
205 views

Why is listings' frame width a little larger then \textwidth?

Here is the sample code: \documentclass[]{article} \usepackage{listings} \lstset{ basicstyle=\ttfamily\footnotesize, frame=single, % adds a frame around the code } \begin{document} ...
3
votes
1answer
107 views

Determine width of a milticolumn cell

I am attempting to draw a rectangle within a multicolumn, and would like it to span the width of the cell and be consistant with a similar rectangle drawn in a standard cell. I am struggling to ...
3
votes
1answer
183 views

longtable inside adjustbox

The following longtable (or longtabu) is too wide. Naive as I am, I have put the table into a adjustbox, but it does not compile. \documentclass{article} \usepackage{longtable} \usepackage{tabu} ...
2
votes
2answers
160 views

What's the problem with this code? Overfull \hbox

I want to create something like this in word by MathType 6.9 But I have MikTex 2.9 and texmaker installed on my computer. Just to try out the code and see what is wrong with that, I've created the ...
2
votes
1answer
59 views

Lyx / Knitr - R Code in chunck goes beyond set width

I use Lyx (2.1.4) with knitr (1.10.5). I have a lot of trouble having the code chunks respect the width that I tried setting through various ways: In the chunk options (width=50); ...
2
votes
1answer
61 views

pgfplots: How to adjust the width of the drawing area?

I want to produce plots that fit into the columns of a text document. My problem is that setting width=\linewidth seems to apply on the axis and labels only. When I put the legend outside it sticks ...
1
vote
1answer
66 views

Aligning three figures next to each other based on text width

Problem: I am trying to align three figures next to each other with text centered to each figure. This is going well until the box for the third box does not adjust after the text width. Minimal ...
12
votes
2answers
424 views

How to make underbrace label text wrap at brace width?

Is there a way to make underbrace label text automatically wrap at the underbraces width, preferably even with automatic syllabication? Example where brace label text exceeds underbrace width: ...
5
votes
2answers
85 views

Changing width of table lines

We know that by adding \setlength\arrayrulewidth{xpt} changes the thickness of all the table lines. If I wanted to change specific table lines, how to do it? \documentclass[11pt]{article} ...
1
vote
1answer
159 views

Different column widths using multicol with pictures and text [closed]

Is it possible to specify different column widths in a multicol environment? For example, in a three column layout, can the left column be set to 0.16, the center column be set to 0.64 and the right ...
0
votes
2answers
88 views

Multicolumn table with different size

I have the following multicolumn table, but I would like to have these columns in different width. For example, columns "Cast name" should be wider that columns "percentage". Could someone kindly let ...
2
votes
3answers
115 views

Table exceeds text width

My table exceeds the text width... I have already tried lots of stuff (ex: tabularx, tabulary and others that I can't remember right now) to try to correct but none of them has solved my problem. I ...
2
votes
0answers
78 views

how to set sidebar color width

I encountered another problem. I am trying to set the hight of the header and the width of the sidebar. I am using: \makeatletter \setlength{\beamer@headheight}{1,2cm} \makeatother ...
1
vote
1answer
48 views

Multirow line width

I'm having an issue with this code \begin{table}[H] \begin{longtable}{| p{4cm} | p{2cm} | p{7cm} |} \hline \multicolumn{3}{| p{14cm} |}{\cellcolor{lightgray} \centering \textbf{Iniciar ...
2
votes
1answer
87 views

How to fit image inside box

I know that I can scale an image to text width with \textwidth, however, the template I am using requires a surrounding box and my image gets out of it. I am using: \begin{figure}[h!] ...
3
votes
2answers
164 views

Fix column width of table

I have two tables in this code: \documentclass[a4paper,11pt]{article} \begin{document} \title{} \author{} \date{\today} \maketitle \section{Header} \begin{table}[!htbp] \centering \footnotesize ...
1
vote
2answers
137 views

Aligned Equation Resizing? (Above or Below \textwidth)

My input: \begin{equation} \begin{aligned}[t] & \min\limits_{\bm{\Delta(P,Q),u}} & & \sum\limits_i u_i, \\ & \text{s.t.} & & (P_{min_k},Q_{min_k}) \leq (P_k,Q_k) \leq ...
2
votes
1answer
68 views

Shrink equations in align to fit page width

I read several similar questions, but none was on align environment. Here is my example. \documentclass{article} \usepackage{amsfonts} \usepackage{amsmath} \begin{document} \noindent where $B(a, ...