Questions tagged [textwidth]
The textwidth tag has no summary.
163 questions
2 votes
1 answer
107 views
Tikz - Is it possible to adjust the distance between Tikz nodes so that it changes dynamically with fixed length depending on the text content?
I adapted cfr's solution from my previous question for the adjustment of dimensions from Tikz nodes and changed the text content of some nodes: \documentclass{standalone} \usepackage{tikz} \...
4 votes
1 answer
136 views
\tcbitemize[raster columns=n] - How can I change the widths from n-1 \tcbitem nodes so that they fit to the width of a separate \tcbitem box?
What I have tried so far shows following code: \documentclass{standalone} \usepackage{amssymb, amsfonts, dsfont} \usepackage{tcolorbox} \tcbuselibrary{raster} \begin{document} %gray "IBM&...
0 votes
1 answer
83 views
Why would I be getting a runaway argument error when scaling/changing an image size?
I've been working at this issue for over a week now and I cannot for the life of me figure out why this is happening. I have an article with a lot of images, all of them are inserted as figures. I'm ...
4 votes
2 answers
239 views
Relationship between \hsize and \textwidth
If I change textwidth in the preamble, it is effective for the whole document. But if I change the textwidth for one specific page in the document, it seem to have no effect at all, though I ...
0 votes
1 answer
46 views
How to center a tikzpicture within a red box and fit it to the text width?
I am trying to center a tikzpicture within a red box and make sure the entire box fits the textwidth. Currently, the tikzpicture fits the text width, but I am not sure how to center it inside a red ...
1 vote
1 answer
61 views
How can I adjust a tikzpicture axis with two y-axes to fit the text width?
I am encountering a problem where my tikzpicture exceeds the text width in my document on the right-hand side. How can I ensure that the tikzpicture fits within the text width? my code \documentclass{...
0 votes
0 answers
85 views
Part of the text in the second column overflows the page width
I have tried multiple ways to fix the problem, but I cannot adjust the second column to fit the page width as the years and part of the text overflows the margin. Also, is it possible to include a ...
1 vote
1 answer
203 views
Two Column Layout with Paracol - How Can I Set the Column Widths?
I am typesetting some Gujarati poem lyrics using the polyglossia, verse and paracol packages. Here is an example of how I wish the lyrics to be typset: Each stanza of the poem is written on a new ...
0 votes
2 answers
95 views
centered text across multicoulmn table with auto line break
I'm using xltabular and I have a table with multicolumns and multirows combined. Everything is fine so far except for the multicolumn cells with one text in it. I want that to be centered, and it ...
2 votes
1 answer
71 views
How do I change the width of my text to be different than the width occupied by headers and footers?
I have tried to change the margins AND textwidth using the geometry package but it seems as though you cannot use the two together. I am using XeLaTeX on overleaf. Here is a MWE: \documentclass[10pt]{...
3 votes
4 answers
445 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 ...
1 vote
0 answers
118 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: ...
1 vote
2 answers
225 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 \\ ...
2 votes
1 answer
2k 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 ...
0 votes
1 answer
152 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 ...