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

learn more… | top users | synonyms

3
votes
2answers
75 views

Fraction of \textwidth as image width

I would like to specify the width of an image as a fraction of a predefined length, like this: \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \includegraphics[width=1/3*\...
1
vote
0answers
18 views

Change text width in a specific part of a chapter or section [duplicate]

I'm new to Latex and was wondering if it'd be possible to change the text width for a paragraph without changing it for the whole document. Thank you.
0
votes
1answer
17 views

Centering column and adjust width in table

I have this table and I want everything center but when I use multicolumn the words are nor center and the two last columns have different width. The image below shows the result. The code I'm ...
4
votes
1answer
50 views

how to resize the columns of a table?

I have used a table in my document. this is a part of the code : \documentclass[a4paper]{article} \usepackage{tabu} \usepackage{longtable} \usepackage[table]{xcolor} \usepackage{ltablex} \...
1
vote
3answers
151 views

Latex Table goes outside page width

A mimimal working example of what I am facing right now: \begin{table} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multicolumn{1}{p{2cm}}{\centering Mass ($h^{-1}\;M_{\odot}$)} & \...
2
votes
2answers
54 views

Tabular: Couple dimensions of one tabular to another tabular

tabular sets column widths to the widest element across all rows. Is it possible to set two or more separate tabulars to consider each other's column widths and pick the largest of the them? For ...
1
vote
1answer
47 views

How to fit a math equation to the line width

I used the following two equations to implement a branch function: \documentclass[conference]{IEEEtran} \usepackage{amsmath} \newcommand{\NC}{\mathrm{NC}} \begin{document} In Case A, \\ ...
2
votes
1answer
65 views

using textwidth in table to make sure table width same as textwidth

I am confused about why \begin{tabular}{|p{0.6\textwidth} | p{0.4\textwidth}|} generates a table with width larger than the page textwidth, since 0.6+0.4 should come out to be 1.0 and so I expected ...
3
votes
2answers
38 views

Increase text size in table while I use \textwidth in the table

I have a table that its width should not be larger than 0.45 of the textwidth (two column page), but I want to make the table's data larger to better see the Table info. How can I do that? This is my ...
2
votes
0answers
21 views

Fixed width table with variable width columns [duplicate]

What I'm trying to achieve is a fixed width (full width of the page or column) table with variable column widths. Here's what I've got: \usepackage{tabulary} % Table Environment \newenvironment{...
2
votes
0answers
27 views

Line width in parshape environment

I would like to get the current line width in a \parshape environment. The following variables return the full pagewidth (345pt), where I would expect 300pt: \documentclass{report} \usepackage{...
2
votes
1answer
26 views

Using full-sized subfloats causes them to shift to the right

I am going pretty nuts here. The little LaTeX knowledge I have has reached its limits, and I can't find any clues anywhere on the net. So some input would be greatly appreciated! The Problem When ...
2
votes
2answers
55 views

how to make a normal width of the cells,when some of them are normal and all other is too wide?

i tried to make table that looks like this: I wrote this: But i did something wrong and the result was What did i do wrong (or didn't) and how i can fix it? \usepackage{extsizes} \usepackage[...
2
votes
0answers
23 views

Set custom margin for the res class

I am trying to make my resume using the res class. the problem that I am facing is with the page borders. How I do I set in acc Here is what My .tex file looks like %-------------------------------...
2
votes
2answers
122 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
15k 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
51 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
35 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
54 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) x....
0
votes
1answer
56 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} \end{...
3
votes
1answer
31 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 \setlength{\...
1
vote
3answers
61 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 {Tested ...
1
vote
1answer
41 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
100 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
52 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
14 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, 39,...
7
votes
3answers
6k 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 \includegraphics{images/...
3
votes
1answer
106 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 \SetKwInOut{...
0
votes
0answers
23 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
70 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
94 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
81 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
80 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
79 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
87 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
38 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
90 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
54 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. http://www.latextemplates.com/template/...
3
votes
1answer
43 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
97 views

Minor difference in width of column and text

Below is an MWE. %--------------------------------------------------------------------- % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS %----------------------------------------------------------------...
3
votes
1answer
48 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} \usepackage[english]{...
11
votes
1answer
12k 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
194 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
44 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
44 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
49 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 ...