Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [width]

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

1
vote
1answer
30 views

How to stretch a specific column

What I have is a table that should stretch to the text width and want a specific column to stretch. What I have now is \begin{tabular*}{\textwidth}{ll r@{.}l l r@{.}l r@{.}l} ... \end{tabular*} What ...
1
vote
2answers
55 views

TikZ fill color: How to decrease spatial size of fill behind text?

Assumed we have some simple code to display a text node with a colored fill behind the text. Minimum working example (MWE): \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{...
2
votes
2answers
40 views

What is the minipage equivalent of `width=\linewidth` for \includegraphics

width=\linewidth is acceptable input option to \includegraphics, but is not acceptable as input to minipage. What can we replace X with so that \begin{minipage}{X} has a similair width setting to \...
1
vote
0answers
29 views

pgfgantt spans width

I would like to draw Gantt chart, where: is generated by: \documentclass{article} \usepackage{pgfgantt} \begin{document} \begin{ganttchart}{1}{12} \gantttitle{2011}{12} \\ \...
0
votes
1answer
28 views

Defining adaptive width of columns in a table

Is there a neat way to define all column widths in a table as the same value and adapted to the page size? For example I would like the following 32 columns to have all equal width of 1/32 of the ...
0
votes
0answers
22 views

size of 6 subfigures

I'd like to enlarge a set of 6 figures. When I increased x in \begin{subfigure}{x\textwidth}, the figures enlarge to the right and they are off the center. \documentclass{article} \usepackage{...
2
votes
1answer
36 views

Make table notes as wide as `\textwidth` while preserving table's own width

I use the threeparttable package to make tables, for the following reasons: It allows me to conveniently make table notes that may refer to specific text in the table; The table notes are tightly ...
8
votes
2answers
142 views

Auto width tcolorbox around equation

I am using tcolorbox to draw boxes around equations. Since the box widths are equal to the equation widths, long titles are often shrunk, hence looking ugly, as shown here: Is there any way to draw a ...
2
votes
1answer
57 views

my toprule and bottomrule width are different?

I may have change something before at the macro level by accident with some code I got online. How could I set it back? Now I am facing this problem where when I put: \setlength\heavyrulewidth{0.14em}...
4
votes
1answer
169 views

LaTeX - how to detect scale of \includegraphics

I have a general question, so without any example code. I'm implementing part of document containing gallery of images. Generally, I have two types of images: 1) document, typically scanned A4, ...
2
votes
1answer
94 views

Miktex/XeLaTeX - non-working wrapped images (wrapfigure)

I've searched hundereds forums of the same question, but without any working solution. I'd like to insert images to my document to the right side of the page and my text shall wrap them from the left....
2
votes
2answers
62 views

Help with drawing the following circuit diagram

I'm just learning how to use circuitikz and I'm trying to draw the following circuit diagram Here's what I've got so far \begin{circuitikz} \draw (0,0) node[ocirc,ground]{$-m$} to[short] (1,0) ...
1
vote
1answer
36 views

Error Overfull \hbox (6.79999pt too wide) in paragraph

\documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \let\cleardoublepage=\clearpage \begin{document} \noindent\fbox{% \parbox{\...
2
votes
3answers
41 views

How to draw rule from left text edge to right paper edge without overfull?

I'm currently using the following instruction to draw a horizontal rule from the left edge of the text body to the right edge of the paper: \rule{\paperwidth}{2pt} This works, but it results in an ...
1
vote
1answer
41 views

Header with graphical page number outside the body of the text

I am formatting a book using LuaLaTex. I need to obtain headers like and and I am using the titlesec package. I need therefore that the page numbers are outside the standard \textwidth. So far the ...
1
vote
2answers
106 views

Figure position left

This is the code that I use to create a figure: \begin{figure}[H] \includegraphics[width=0.9\paperwidth]{img/Info.png} \caption{Info \label{overflow}} \end{figure} The problem is that the ...
0
votes
2answers
87 views

How to fix differents columns width with tabularx?

I want to create a table with 100% width of the page so i'm using the package tabularx. I need to set the width of the columns, so I decided to separate the table into 20 separate columns. This allows ...
3
votes
1answer
56 views

How to scale multiple elements to maximum width while keeping their relative size fixed?

I have multiple elements in different places of my document. These could be images, TikZ drawings, etc. I want to set the maximum width for each of the elements. Importantly, I also want the elements ...
1
vote
3answers
69 views

table overflow page

I created a table with https://www.tablesgenerator.com/latex_tables I tried to limit the column width with |l| p{1cm} |p{2cm} |p{1cm} |p{1cm} |p{2cm} |p{1cm} |p{1cm}| But it doesn't see to have any ...
4
votes
1answer
87 views

Can I resize a TikZ picture to have certain dimensions (width, height)?

Suppose that I have made aTikZ picture using the standalone class, is there an easy way to determine some fixed output dimension of this picture, say width=16cm, height=12cm? This could be useful in ...
1
vote
1answer
160 views

How to control the width of longtable

That's very strange why the sum of the width of each column does not equal the total width of longtable. I have two tables: \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \...
2
votes
2answers
102 views

ConTeXt: How to reduce the width of a \textbackground environment?

Given A \definetextbackground named blockquote is defined as follows: \setupwhitespace[big] \definetextbackground[blockquote][ location=paragraph, style=italicbold, backgroundcolor=lightgray, ...
0
votes
1answer
73 views

Two-columns table in tabularx with \textwidth

I have a problem with setting up a table, created in tabularx, to the text width of my article. What can I do? Here is the dummy example: \documentclass[12pt]{article} \usepackage{ltablex,booktabs} \...
1
vote
1answer
40 views

Poster with two columns of different width

Why is this so difficult? Tex, stack-exchange, reddit... none have the information I am seeking. My issue is simple, I need to create a poster with two columns: the first one on the left side, thin ...
0
votes
1answer
97 views

Longtable does not fit in page margins

I'm new to LateX and really struggling to get around the page margins. So I've been given a default template (I've made a few adjustments to preamble and packages) to write my dissertation by the ...
0
votes
0answers
18 views

Set table width = `\paperwidth` [duplicate]

I have a large table (with many columns), so that I decide to set its width = \paperwidth. I tried the following: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{table}[htb]...
0
votes
1answer
46 views

adjusting listing width

I have to include a piece of code in a report and I have an overflow problem because of two things: the comments and the fact that the instruction lines are too wide (which is my main problem). I ...
3
votes
2answers
247 views

What is the minimum cell's table width?

I'm kind of stuck in the middle of nowhere because I want to make this table (48 columns I know it's huge... but I need this) fit in a4paper but it seems there is a cell's table minimum width, isn't ...
1
vote
2answers
54 views

Expanding longtable to fill page width with shaded rows

I'm working on a document that contains several long tables. For consistency, I'd like all of these tables to be the same width. I'm assuming that the easiest way to accomplish this is to simple ...
1
vote
1answer
77 views

Strange behaviour with textwidth

I was trying to reproduce some tcolorbox– boxes. Now consider the following MWE: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \...
2
votes
1answer
148 views

How to reduce colorbox width for text?

Here's the MWE: \documentclass[a4paper, 12pt]{article} \renewcommand{\rmdefault}{ptm} \usepackage[table]{xcolor} \definecolor{tpgray}{gray}{0.90} \newcommand{\tp}[1]{\colorbox{tpgray}{#1}} \begin{...
1
vote
1answer
95 views

Creating a Tikz-Picture with respect to paper width

Till now I just create a desired picture for example with QTikz or Tikz-EDT and pass the code afterwards to my document. To fit the picture to the width of the paper I use \resizebox. However, if the ...
2
votes
2answers
96 views

Classicthesis/arsclassica ToC section numbers too wide (and incoherent font)

Desired result: \documentclass{scrbook} \usepackage{classicthesis} %\usepackage{arsclassica} \begin{document} \tableofcontents \setcounter{chapter}{10} \chapter{Some chapter} \...
2
votes
1answer
75 views

A width table (landscape) that is able to break across several pages

I have a landscape table with 18 columns and number of rows that are much less with table notes that I try to fit across two landscape pages. I would like to "cut" the columns so that it goes over two ...
3
votes
1answer
166 views

How to create wide breve accent?

I am in need of a 'wide breve' accent in math mode that can stretch a little bit like \widetilde and \widehat do. I have tried both suggestions from Display a breve over several letters, but the first ...
4
votes
2answers
226 views

Tikzpicture match box width and column width

I can't find a way to match the box width of a tikzpicture and the column width. Here is the code : \tikzstyle{mybox} = [draw=primary_shade3, fill=white, thick, rectangle, rounded corners, inner ...
2
votes
2answers
84 views

Table is bigger than page; words do not fit

I have been struggling with making tables for a while now. I've got a pretty nice layout now, however the table does not fit the page. I looked in tabu documentation (it says \begin{tabu} to <...
2
votes
2answers
136 views

Last column does not have the desired width

I am trying to create a table using tabularx package. I want the first column to have a certain width (38 mm) and all other columns to have the another width (15 mm). But the last column seems to have ...
1
vote
1answer
336 views

How to Center Text in Tabular with Custom Width?

My code : \documentclass[12pt,a4paper]{report} \usepackage{array} \begin{document} \begin{center} \begin{tabular}{|c|m{10em}|m{3em}|m{3em}|m{3em}|m{3em}|} \hline Equation & Linear Form & Y &...
1
vote
2answers
58 views

Tabularx minimum width size and badbox error

I'm trying to reproduce this kind of table Here is my attempt \documentclass[10pt,a4paper]{toptesi} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{booktabs} \usepackage{tabularx}...
1
vote
1answer
48 views

Multicolumn overriding table width

I think multicolumn function is overriding my table width. 4th (1.4cm) and 6th (1.8cm) column width is not as configured, it should be 2.3 cm and then table will get connected with page border. I ...
0
votes
1answer
49 views

Longtable goes over the header in landscape page using \linewidth to set table width

I am trying to make a longtable with the page width in landscape mode. To make it easier to set the column width, I defined a new column type, which is a [p] column but the size is a fraction of \...
1
vote
1answer
75 views

Insert small line above an item in a list without adding extra space (Continued)

This is a follow up to Insert small line above an item in a list without adding extra space. I would like to control the length of the horizontal line to be the same widths as the widest \item in the ...
1
vote
1answer
43 views

Creating individual spaced columns in tables

I'm just getting started with Latex and used several ressouces to create my first document. I'm making progress but I'm struggling with a table. I have 7 rows, the bottom two are supposed to look ...
3
votes
1answer
260 views

`Overfull \hbox` with pgfplots graph

I'm getting an "Overfull \hbox" error when setting width=\textwidth in axis when using pgfplots. Here is a MWE. The exact error shown is Overfull \hbox (6.19328pt too wide) in paragraph at lines 22--...
0
votes
0answers
101 views

Reduce deluxetable width (Latex)

I am doing an article in two columns, the table I am doing exceeds the width limit of a column, I would like to reduce the width of the table (keeping the documentclass and deluxetable). You need some ...
0
votes
1answer
27 views

Equal Width monospace text with changing colors in the same line

I'm trying to create something like the following in Latex: I've tried to \usepackage{color} and put this: \ssmall\begin{ttfamily} \begin{center} \colorbox{yellow}{...
0
votes
2answers
57 views

set tabular/align width within landscape multicols

\documentclass[10pt,landscape,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[utopia,sfscaled]{mathdesign} \usepackage{amsmath} \usepackage{upgreek} \usepackage{...
2
votes
0answers
69 views

The authblk package seems to prevent customizing \maketitle width

I am attempting to make a title block on a poster that has authors with references to their affiliations (using authblk) as well as customizing the width of the title block. Changing the width works ...
0
votes
1answer
53 views

Problem with table width [closed]

I have problem with table, it's always have same width. \begin{center} \begin{longtabu} to 5cm {|X|X|} \caption{Информация об элементах структуры проекта ПУД} \label{tab:04-01} \\ \hline Элемент ...