Skip to main content

Questions tagged [textwidth]

The tag has no usage guidance.

3 votes
4 answers
272 views

Reduce the column padding in tabular environment

I've tried nearly everything with no success and I don't know why... I have a tablular with 9 columns and the only solution I found for fitting it into textwidth is using adjustbox, which I don't like ...
Peybol's user avatar
  • 33
1 vote
0 answers
31 views

\begin{listing} environment taking full page width when used inside of \begin{itemize} environment

I am using \begin{listing} environment inside of \begin{itemize} environment. But the listing output is taking full page width instead of the itemize environment width. Here is the complete example: ...
AKASH YADAV's user avatar
0 votes
2 answers
69 views

0.5\textwidth + 0.5\textwidth is longer than \textwidth

Consider the following MWE: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \begin{tabular}{p{\textwidth} } \toprule Column1 \\ ...
lukygee's user avatar
  • 59
2 votes
1 answer
98 views

Width of tcolorbox and resizebox. Prevent boxes to appear in line [duplicate]

As soon as I use resizebox around a few tcolorbox, they all appear in the same line. I want to create a nice layout, with linebreaks, between some of these tcolorboxes, and then just shrink it to fit ...
Albercoc's user avatar
  • 161
0 votes
1 answer
38 views

Set a fixed width for footer/header with fancyhdr

I'm using the geometry package for settings like textwidth and margins. fancyhdr uses the initial text geometry setting. Through my document I also change the geometry of the text layout (i.e. not the ...
telephone's user avatar
  • 127
0 votes
0 answers
25 views

Repeat characters n times to fill the current line [duplicate]

In this answer, someone provides a macro for repeating a string a given number of times. Here's a minimal working example of that macro: \documentclass{article} \makeatletter \newcount\my@repeat@...
Rodrigo Morales's user avatar
0 votes
1 answer
44 views

Adjusting Table Widths

Quick question: how do I make sure that all three tables have the same width? Ideally the entire page with, without modifying the content of the input files: \begin{table}[!tbp] \begin{center} \...
James_'s user avatar
  • 3
0 votes
0 answers
41 views

Geometry package page dimensions do not scale properly

I am trying to create a latex document on overleaf web editor, there are fixed requirements for the dimensions of the document and when I use the geometry package and set those dimensions and then ...
jones871's user avatar
0 votes
1 answer
42 views

Image in footnote too wide, although set width=textwidth

If I put a graphic in a footnote and apply width=\textwidth to it, it will be wider than the actual text width (see MWE below). (The same holds true for \linewidth.) Apparently includegraphics ...
dia's user avatar
  • 143
2 votes
1 answer
73 views

How to put frame around each page with white space buffer so that text are do not touch the frame?

I like to put frame around each page. Only around the text area of the page. Not including the header and footer. I am also using fancyhdr. After some struggle, I got the following. But the frame ...
Nasser's user avatar
  • 20.3k
2 votes
2 answers
47 views

Length and align left margin of longtable

I am using longtable to present the list of Notations, and the codes are as follows. \documentclass[10pt]{book} \usepackage{newpxtext,newpxmath} \linespread{1.05} \usepackage{tabularx} \usepackage{...
wxwuse's user avatar
  • 149
3 votes
1 answer
137 views

Which fontsize does "em" refer to in Tikz?

With tikz, I set font size to \footnotesize, but text width=5em is not as wide as 5 times width of one character from \footnotesize. \documentclass{article} \usepackage{tikz,lipsum} \begin{document} \...
Y. zeng's user avatar
  • 2,105
0 votes
1 answer
44 views

figure could not be the expected height

I am using latex to write a document, and I need to insert a figure in a whole single page, the code is as follows. \documentclass[10pt]{book} \usepackage{pgfplotstable} \begin{document} \par text 1 \...
wxwuse's user avatar
  • 149
5 votes
3 answers
814 views

Change text width for parts of the page

Is it possible to change text width in the middle of a page? If I use \newgeometry and \restoregeometry this forces a page break. The package changepage and the command \adjustwidth work for the MWE ...
Haim's user avatar
  • 539
1 vote
1 answer
190 views

Wrap text in table column with \textwidth, \multicolumn and \multirow in LaTeX

I'm looking to wrap the text in the 3rd column, so that the table doesn't render too small (and disproportionate) on my document. Here is my code: \begin{table}[] \resizebox{\textwidth}{!}{\begin{...
mk123's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
11