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.

1
vote
1answer
23 views

figure* environment of multicolumn documents, full width without margin

Which width, instead of \textwidth (as suggested here), can I use here to avoid getting an "Overfull \hbox" warning? I expect it's the page width minus margins. \documentclass[twocolumn, draft]{...
3
votes
1answer
74 views

Stata to Latex: Formatting a table - width, wrapping notes and caption position

I'm a newbie to stata and latex when it comes to direct export of tables. After reading some documentation, I used the following code (after labeling the variables): eststo: quietly regress defgh ...
1
vote
2answers
73 views

Create table using exact horizontal and vertical cell sizes with intentional cell overlap

I need to create a table where each cell is 1em x 1em. The contents of each cell in the table will be a single glyph from a special Unicode font. Each glyph is 1.1em x 1.1em. There is intentional ...
1
vote
2answers
45 views

Making two figures the same scale and fit on a line

Let's say I have a bunch of images, (two in this MWE) \begin{figure}[h] \begin{subfigure}{\linewidth} \includegraphics[width=.95\linewidth]{whacknot} \caption{Fritz-Qualdor count of greezable ...
1
vote
2answers
31 views

Multicolumn wider than subcolumn

I'm dealing with an aesthetic issue related to a multicolumn in a table. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{multicol} \usepackage{booktabs} \begin{...
5
votes
2answers
88 views

Find the width of a figure in latex, to properbly align multiple minipages within a figure

I want something like this: made with this MWE: \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{duckuments} \newsubfloat{figure} \begin{...
2
votes
1answer
26 views

exam: How to make the solution box span the whole text width regardless the question level?

I would like to make any solution box span the whole text width for any question/part/subpart/subsubpart. \documentclass{exam} \renewcommand{\solutiontitle}{\noindent\textbf{\underline{Answer:}}\par\...
1
vote
2answers
45 views

Pgfplots: Legend with multiple columns and rows, different entry widths

I have two data sets of five curves each that I want to display in one tikzpicture. The five curves of the first data set are solid lines, the five curves of the second data set are dashed. In the ...
0
votes
1answer
35 views

Width of a \schembox inside schemata

I have this diagram \documentclass[12pt,a4paper]{memoir} \usepackage[T1]{fontenc} % Support for more character glyphs \usepackage[utf8]{inputenc} %per interpretare tutti i caratteri \usepackage{...
3
votes
3answers
106 views

tabularx column has extra padding at right?

\documentclass[]{article} \usepackage{tabularx} \newcolumntype{h}{>{\hsize=.5\hsize}X} % half width of X \begin{document} \begin{table} \begin{tabularx}{\linewidth}{ h | X | X } \...
0
votes
1answer
51 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
27 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
20 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
25 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
39 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
39 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
143 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
47 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 ...
4
votes
2answers
61 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{...
0
votes
0answers
32 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
33 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. \...
3
votes
1answer
174 views

Harmonize width of MusiXTex extracts automatically

Several MusiXTeX extracts are placed in a few floats as subfigures of a document. The width variation of these extracts within a figure environment might not please the eye. The widths do not vary ...
0
votes
1answer
35 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
55 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
48 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
42 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
89 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
41 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
35 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
159 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
64 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
80 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 \...
0
votes
0answers
41 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
49 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
41 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
93 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
226 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
68 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
196 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
112 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
174 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
151 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
54 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
49 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
977 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 ...
1
vote
2answers
124 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
67 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
165 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
143 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
361 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} \...