Questions tagged [width]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
215 views

refart with Fancyhdr - header width

When I create the header with fancyhdr the seperation line between the header and the body is only same wide as text bodys. When a new part starts, this looks quite strange as the part seperation ...
1
vote
2answers
12k views

tabularx with different column widths

\documentclass{article} \usepackage{tabularx} \usepackage{lscape} \newcolumntype{b}{X} \newcolumntype{s}{>{\hsize=.2\hsize}X} \newcolumntype{m}{>{\hsize=.4\hsize}X} \begin{document} \begin{...
2
votes
2answers
758 views

Change column size to fit text

Can someone help me? I am trying to wrap the text in each column so the last column has the largest width. \documentclass{article} \usepackage{makecell, tabularx} \renewcommand\theadfont{\...
2
votes
1answer
285 views

\parbox inside \colorbox ends up being to wide

Can you tell me why the following code always ends up being to wide (minimal example)? It seems to be independent of the environment so I assume that \colorbox has some additional margin? How can I ...
1
vote
0answers
139 views

set the table width to a particular value and each column's width proportional to its actual length

I have a table and I want to set the table width to a specific value, say 0.8\columnwidth. After the stretching, I want each column's width is proportional to its actual width in the original table. ...
9
votes
2answers
620 views

How to do \widthof with a symbol

I have the following code: \begin{align*} c_s &\equiv b_s^2\\ &\equiv (c_{s-1}^{(2^{k_{s-1}-k_s-1})})^2 \\ &\equiv c_{s-1}^{(2^{k_{s-1}-k_s})} \\ &\equiv c_{s-2}^{(2^{k_{s-2}-k_{s-1}} ...
68
votes
1answer
10k views

My table doesn't fit; what are my options?

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met: The table is too wide to fit within the text block or page. That is, I'm exceeding ...
0
votes
1answer
136 views

How to tweak acronym.sty to longtable width format and appearance?

Is it possible to tweak the acronym.sty to accept the same width format as passed to the long table example below? In other words going from %\begin{acronym}[USA] %\acro{USA}{United States ...
1
vote
1answer
1k views

How to change \textwidth between section and subsections

MWE: \documentclass[12pt,english,a4paper]{report} \usepackage{lipsum} \begin{document} \section{first section} \lipsum[1-1]% in section, \textwidth = x \subsection{first subsection} \lipsum[1-1]% ...
1
vote
1answer
727 views

How to define multiple columns with specific width and centered? [duplicate]

I want to define multiple columns (using *{}{}), with specific width (using m{}), and centered (using >{\centering}). However, I am not able to combine the three of them. The MWE below can only ...
3
votes
1answer
756 views

Tikz box size adjustment

I am facing a problem with the box size. Is there a possibility to shorten the Box called "shorter" such that it is 2/3 of the full size. Furthermore, the anchor point of the arrow should be in the ...
7
votes
3answers
1k views

Resizing or scaling table only if it is larger than column width

I have a table in a document in which I am not sure what the final font size is going to be. The font size will probably be 10, 11 or 12. The tables are fine at font size 10, but at 11 or 12 one or ...
2
votes
1answer
75 views

Split tabular into three same-sized colums plus an additional fixed size column

I want to create a tabular in LaTeX that has following layout: |-1cm-|-remaining size / 3-|-remaining size / 3-|-remaining size / 3-| The first column has to be small (like 1 cm). The other three ...
1
vote
0answers
148 views

Detect width of minipage environment

I am using the following setup to add comments to the right of aligned equations. \documentclass{amsart} \usepackage{lipsum} \newcommand{\comment}[1]{\text{\footnotesize{#1}}} \newcommand{\blurb}[2]{...
5
votes
3answers
804 views

Table exceeds the page width

I have a large table, and I don't want it to exceed the page limit. Please see the code below. \documentclass{article} \usepackage[table,xcdraw]{xcolor} \begin{document} \begin{table}[] \...
0
votes
1answer
1k views

How to change the width of columns in a table that has merging cells

looking around in forums but I can't find the solution for it. I have a table as below. How can we change the width of columns 3rd (A, 2, 5) and 4th (B, 3, 4) so that they have same width value? ...
2
votes
1answer
137 views

more versatile (minipage-like) box?

I was wondering if there is a more versatile version of minipage. Currently, I need a minipage with a specific vertical alignment characteristics and with a background color. So, I nest a minibox in ...
1
vote
1answer
1k views

Removing space between words when justified

I am writing a report and since the text is justified, every last sentence of a paragraph has more spaces between words in order to fit into the textwidth. I saw a lot of questions about this subject, ...
1
vote
0answers
150 views

one paragraph in full width

I have a latex paper with 2 columns, but there is one paragraph I would like to make it to ocupy all the paper width. Is it possible? how ? I've tried using fullwidth with no success. The problem ...
1
vote
1answer
238 views

Bibliography label width problem with multibib

I'm trying to create a CV using multibib to cite articles together and conference presentations together. I'm using the plain bibliography style and in the first set of citations, the bibliography ...
9
votes
3answers
2k views

How to have a node's width match another's height?

I have the following situation: Here, I would like the rotated node to automatically match the height of the text node to its left, automatically growing or shrinking depending on the amount of text/...
1
vote
1answer
318 views

longtable multiple-pages not centered

I have a two columns table with lot of records (not all yet but enough to trigger the issue) and use longtable to span on multiple pages, but the second part of the table got offsetted and not ...
3
votes
1answer
148 views

Set upper bound for pgfplots axis width?

Is there anything like \pgfplotsset{ every axis/.append style={ width = 0.9\linewidth, max width = 4in }} Suppose I have a document with hundreds of tikzpicture environments, each having plots that ...
2
votes
2answers
802 views

How can I force the same resizing factor for two \includegraphics?

I have two images which I want to place side-by-side as subfigures (with different captions). The images are not of the same size, but they have elements whose size must be kept equal (e.g. text). I ...
1
vote
1answer
717 views

Table with fixed width columns with \multicolumn in every line

I want my two tables to look like in the example below, except I would like to get rid of the first row(s) (1 to 8). Both tables should have the same width and all fields should span the given number ...
1
vote
0answers
435 views

Adjusting the text width of R listings in LaTex [closed]

Hi I have R codes that I am listing in my LaTex file with \begin{lstlisting}[language=R] R code \end{lstlisting} I have no specific listing setting in my preamble. My R code is very wide and ...
6
votes
2answers
4k 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
350 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
205 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 ...
3
votes
1answer
115 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} \...
2
votes
3answers
2k 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
168 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
803 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
2k 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 ...
2
votes
2answers
473 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
36 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{...
6
votes
1answer
318 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 page width (345pt), where I would expect 300pt: \documentclass{report} \usepackage{...
2
votes
1answer
262 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 ...
1
vote
2answers
63 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[utf8]{...
2
votes
0answers
441 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 %-------------------------------...
1
vote
1answer
335 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
174 views

Can't change width yet using {graphicx} [closed]

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
993 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....
3
votes
1answer
361 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
2k 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
187 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
2k 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 \...
4
votes
1answer
4k 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
367 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, ...
2
votes
1answer
2k 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{...