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

learn more… | top users | synonyms

2
votes
2answers
101 views

Longtable doesn't fit page size

I have a longtable and it doesn't fit the page size. How to fix it? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % Включаем пакет для поддержки русского ...
10
votes
3answers
14k views

Set longtable to fit the page-width

I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: and the related tex code is: \usepackage{array} \usepackage{multirow} \usepackage{longtable} ...
2
votes
1answer
38 views

Formatting table to have column width in twocolumn article

I have these tables in an article which I need to be of the article column width with equal columns, or whatever looks the best. I also would like to not put a full line break between the rows, but ...
1
vote
0answers
28 views

Can't change width yet using {graphicx}

I just finished installing LaTeX and I would like to resize an image but I'm getting the message "! Paragraph ended before \Gin@ii was complete.". I am already using the package {graphicx} so I'm not ...
1
vote
0answers
34 views

R xtable and table width

I have to fit a table with many columns to the width of a page, using xtable and longtable environment. My R code is library(xtable) data <- matrix( data = 1000000000, ncol=14, nrow = 100) ...
0
votes
1answer
51 views

How can I make this table bigger and centered, while still being on one page?

Made this table excel and included it in sharelatex like this: \begin{figure}[htp] \centering \includegraphics[width=1\textwidth]{Figures/reviewtable} \caption{insert} \label{fig:reviewtable} ...
3
votes
1answer
23 views

ToC chapter number width & memoir class

I've changed the chapter numbering to Roman, and now I want to increase the number width in the table of contents in order to avoid overlapping with chapter titles. The usual trick ...
1
vote
3answers
53 views

Change Table Cell width

I want to replicate this in latex, where the cell of the bottom row is not as wide as the others on top, so far my code and output is: \begin{center} \begin{tabular}{|l | p{13cm}|} \hline ...
1
vote
1answer
37 views

Make column widths of multiple matrix columns equal

I have some gauss matrices in an align* environment, like this: \documentclass{article} \usepackage{amsmath} \usepackage{gauss} \newcommand{\BAR}{% \hspace{-\arraycolsep}% \strut\vrule % the ...
2
votes
1answer
55 views

ModernCV long name and title on the same line

Is it possible to have a long title and name on the same line in moderncv? Currently, it looks like this: The ideal would be that there is no line break after Juantostos. I tried to uncomment the ...
2
votes
3answers
4k 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} ...
4
votes
3answers
11k 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 ...
3
votes
1answer
30 views

Length of Titlerule

I have a picture on the right side of the title. For the title I'm using the underlining with \titlerule. Is it possible to adjust the line in length? I would like to have the line only go to the ...
1
vote
1answer
13 views

Argument to get margin width for line

I am typing up a homework assignment and am trying to separate the problem from the solution using a line. For example right now I have by using \textbf{Problem 1 -} Chapter 5: 31, 35, 36, 38, ...
7
votes
3answers
5k views

Resize all images in Latex to a percentage width

I am auto-generating multiple tex files using pandoc (one tex file for each of my chapters). Pandoc generates this tex code for each image. \begin{figure}[htbp] \centering ...
3
votes
1answer
69 views

how to fit algorithm to line width in latex

the following algorithm exceeded the width of the column: \begin{algorithm}[!htb] \caption{........} \label{alg:BuildMG} %\algsetup{linenosize=\small} \scriptsize \DontPrintSemicolon ...
0
votes
0answers
20 views

Automatic table width adjustment with the array package

I was searching for a way to vertically and horizontally align my text and found a good way here. However using M I need to set the width for every column, which is what l did automatically for me ...
2
votes
3answers
57 views

How to set the width of my table?

I've some trouble to set the right width for my table. As you can see in the code below, I use the diagbox package to format my tables header. \begin{table} \centering \begin{tabular*}{\textwidth}{| ...
2
votes
0answers
47 views

PGFPlots - Legend box aligning with axis [duplicate]

I am trying to increase the size of the legend such that it exactly fits to size of the plot. But even after having a look at the PGF manual I could not figure out how I can realise my plan. ...
1
vote
2answers
80 views

Size and placement of subfigure of different original size

I have a figure which has three similar subfigures and one of a different size (showing the legend of the other three). I'm having problems making the size and placing in the document look good. This ...
3
votes
2answers
70 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
0answers
10 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
45 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 ...
3
votes
1answer
64 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? ...
2
votes
1answer
60 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 ...
2
votes
1answer
37 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
1answer
48 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 ...
1
vote
0answers
50 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
39 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
89 views

Minor difference in width of column and text

Below is an MWE. %--------------------------------------------------------------------- % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS ...
3
votes
1answer
41 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} ...
11
votes
1answer
11k views

Auto-fit table column widths based on content

Is there any solution in LaTeX tables that implements similar functionality to MSWord's AutoFit?
2
votes
0answers
143 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
41 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
38 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
45 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
62 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
45 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
58 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
41 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
49 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} ...
3
votes
1answer
578 views

how to resize the width of subcaption

I have two pictures and I'm using \usepackage{subcaption} to place them beside each other. The output might look like the following . The problem in the above picture is that it is difficult to ...
0
votes
1answer
162 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
129 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
40 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
73 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". ...
1
vote
1answer
304 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 ...
10
votes
5answers
692 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
91 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 ...