Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
36 views

A TikZ image set to the width of the entire paper, without changing the header and footer positions and widths

I'm attempting to fit a TikZ image on a page, and would like to make the image as large as possible, without distorting its dimensions. However, at the same time I would also like to be able to ...
2
votes
0answers
22 views

pgfplots: How to align plot width to same width as legend when compiling external?

The user marmot has posted a nice approach on how to adjust the plot width to the legend width. Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \...
1
vote
1answer
16 views

A table with `\hline`s in a tikzposter block

I would like to have a table with \hlines fit inside of a tikzposter block, but the lines stretch outside of the block, as shown in the following image: \documentclass[25pt, a0paper, portrait]{...
2
votes
1answer
18 views

Getting the width of the current container

I'm trying to create a generic command to write a solid heading. The width of the heading should fit into the containing environment in which the heading it rendered. In the example below, the orange ...
2
votes
1answer
38 views

Is there a way to make the text smaller inside a default font setting?

so I've written one document using the default margin settings and another using different margin settings(much wider). I needed to compile both documents so there's an obvious issue now. Let me show ...
0
votes
1answer
27 views

How to set pgf width dynamically based on template settings

I am using matplotlib and exporting my plots as pfg so I can keep math notation in latex. I am using elsarticle. Things were working quite well until I switched the template to two columns. In this ...
0
votes
1answer
88 views

How to format table title width and position

I am generating PDF documentation from rst files using sphinx, latex and latexpdf. The rst files include wide tables with long table titles using "csv-table". I would like the table title to print in ...
1
vote
2answers
28 views

change margins for landscape table

I got a large table in landscape format after some text. The text before the table uses the standard margins set by article. Now for the table afterwards, I would like to change the margins, that is ...
5
votes
2answers
58 views

pgfplots: How to align plot width to same width as legend?

The user marmot has posted a nice approach to put a legend below a multigraph diagram. Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \usetikzlibrary{...
1
vote
1answer
24 views

Reducing width of image captions without messing up subcaptions

The captions in my document are as wide as the text itself and this can lead to parts where the caption seems to continue when in reality it's the document's text. So I wanted to reduce the width of ...
0
votes
1answer
32 views

How do I fit a landscape table to page width?

this is my latex, the columns always see to go over the page width. I know I set width using p instead of l. However, using p, the tables disappears to the next page where it is portrait mode. \...
4
votes
1answer
135 views

Harmonize width of MusiXTex extracts automatically

Several MusiXTeX extracts are placed in a few floats as subfigures. The width variation of these extracts within a figure environment might not please the eye. The widths do not vary much. So a ...
0
votes
1answer
21 views

In inmargin innertheme, how to customize the block title width in the sidebar? [duplicate]

The space indicated by the rectangle below is empty and could be used for the text itself. I realize that I can reduce it by setting lesser sidebar width left, but I would like the titles of block to ...
2
votes
1answer
49 views

How to plot waves representing wireless link connection and set the exact width of a box from one point to another

The following diagram represents two devices connecting wirelessly. \documentclass[12pt]{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} \usetikzlibrary{shapes,arrows.meta,calc,fit,...
2
votes
1answer
44 views

Is there a global variable that reflects the current preferred table column's width?

I wish to insert a (varwidth) box into a table cell, and I want the size of the box to be limited in width to whatever autosize that column would otherwise have, and for any text that I insert into ...
0
votes
0answers
30 views

How to change the text area of a particular page

I have very long (horizontally) equations on a page in the middle of my document. I have used \eject\pdfpagewidth=14in to change the width of that page, but I can't figure out how to change the ...
1
vote
1answer
77 views

How to fix the column width for specific rows of my table?

I am new to Latex, and I was trying to make a table. Everything was fine, until I added the last merged row for notes. It turned out like this: The code I used is here below: \pagebreak \begin{...
1
vote
1answer
37 views

Scale tikzpicture with axis and xbar to the “real” textwidth

So, whenever I create a xbar plot with long labels it happens to me that the tikzpicture is scaled too wide because (I guess) textwidth only applies to the axis but not the labels. So I thought I ...
1
vote
1answer
34 views

How to get the same effect of the X column without using tabularx?

I'm having a little problems with tabularx package. So I'd like to make tables with a column that occupies all the remaining withe space, as a X column type does. In the following MWE the last column ...
1
vote
1answer
67 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
62 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
64 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
35 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
37 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
35 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
49 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
185 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
61 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
187 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
106 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
141 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
76 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
51 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
46 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
359 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
99 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
63 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 ...
0
votes
3answers
109 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
113 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
280 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
114 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
125 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
93 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
163 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
98 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
332 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
60 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
82 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
200 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{...