Questions tagged [parbox]
The parbox tag has no usage guidance.
175
questions
1
vote
2
answers
64
views
Moving paragraph start to avoid clash with header
I have a document where paragraph-level headings are placed in the margins. I’ve implemented this using KOMAscript as in the following MWE:
\documentclass{scrartcl}
\RedeclareSectionCommand[afterskip=...
0
votes
1
answer
82
views
Text in \AddToShipoutPictureBG
I would like to put some text in the command \AddToShipoutPictureBG the desired output is printed in red on the picture. How can I do this ?
I've tried using Foot left \hfill \page \hfill Foot right ...
1
vote
1
answer
72
views
in minipage and parbox, lineskip is smaller
I am writing exercises answers, and I would like one particular answer to be displayed on two lines (in my example, answer n°(6)). I tried to use a parbox or a minipage environment, but in both cases ...
0
votes
0
answers
44
views
An automatic parbox
I want a box (or minipage) containing some lines to make a specific height.
Vertical spaces can be added automatically to fill between lines to adjust height.
The box has to be as close as possible to ...
0
votes
0
answers
21
views
Vertically align parbox text with tabular text
I have a table made with tabular that's 3 lines and a parbox that's 1 line. I want the text in the parbox to line up with the first line of the table, but I can't seem to make that happen. I would ...
0
votes
1
answer
29
views
How to get a few paragraphs framed such that the frame is exactly as wide at the surrounding text and stays completely on the one page?
Let's say we want to get one or two paragraphs of text into a visible framed such that:
the total width of the frame (including its borders) is the exactly same as the width of the surrounding text (...
3
votes
1
answer
190
views
\parbox not working, or invisible?
I want to use \parbox to, well, make a box around text. But when I typeset, I just get the text and no box... I have no idea why. I am afraid it could be something in my preamble... I keep including ...
0
votes
1
answer
42
views
Spacing between parboxes distributed unevenly
I'm fairly new to Latex and not sure, if the solution to my problem is an obvious one. I'm trying to get the spacing between the lines of those parboxes to be distributed evenly; the same distance ...
0
votes
1
answer
45
views
Can't get two figures side by side to work
I have tried quite many methods of getting two figures to compile side by side. Most of these method end up giving this error
Emergency stop subcaption.sty 66
Which shows this line in the file ...
0
votes
1
answer
108
views
Text not visible because of page break
I'm trying to force a page break since the text is not visible, but I can't. I still don't understand why the text is not visible, since the space is there... I'm very new to the LaTeX world, so I ...
1
vote
0
answers
39
views
Weird spacing when using tabular inside of center inside of tcolorbox env [closed]
Here's a minimal example:
\documentclass{article}
\usepackage[most]{tcolorbox}
\newtcolorbox{workinprogress}[1][]{
parbox=false,
#1
}
\begin{document}
\begin{workinprogress}[oversize]
this ...
2
votes
2
answers
109
views
Subfigure with vertically centered subcaptions on the side
I am trying to have multiple subfigures in rows with their respective subcation on the left side of them. I found a useful answer on the LaTeX forums using \parbox, but the subcaptions are not ...
1
vote
2
answers
61
views
How to match parallel columns text after section title?
I'd like to match the text first line between two columns at the same vertical level after their respective section titles.
MWE:
\documentclass{memoir}
\usepackage{paracol}
\usepackage{microtype}
\...
0
votes
1
answer
99
views
Why does the following use of \parbox not work? [closed]
\documentclass{article}
\begin{document}
\parbox[c][5cm][t]{\dimexpr\linewidth+1\fboxsep\fboxrule}{
\hrule width \hsize height 0pt
some text
}%
\end{document}
I am getting the error ! Missing ...
6
votes
3
answers
146
views
Wrong length (or \parbox)
Let's say I want a perfect alignment of these two equations (an OCD I have). The red line is just for comparison:
This is my MWE:
\documentclass{article}
\usepackage {amsmath}
\begin{document}
\...
1
vote
1
answer
49
views
Centering a rotated cell
I tried quite some things but I am not able to get the rotated cells nicely centered. e.g. Patient is a bit more to the left.
origin=tl to origin=tc did not work
\centering did not work
\begin{center}...
0
votes
2
answers
96
views
parbox in math mode creating extra spaces between characters
\framebox{
\parbox[t][2cm]{2cm}{
$S: <NM, <Other> >$
}
}
Will output: S :< N M, < other >> with extra spaces between '> >' and between 'N M' and '&...
0
votes
1
answer
54
views
Extend the height of parbox
I have the following command that prints text in the margins:
\DeclareRobustCommand{\solutionpage}[1]{\marginpar{%
\colorbox{lightgray}{\protect\parbox[t]{\dimexpr\marginparwidth-2\fboxsep}{~Proof ...
2
votes
1
answer
21
views
How to make a sentence break at the right place in a parbox within algorithmicx-package?
I have this code
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{amsmath,amssymb,amsfonts}
\usepackage[noend]{algpseudocode}
\usepackage{algorithm}
\usepackage{...
0
votes
2
answers
58
views
How to put an in-text DOI citation in a box to reduce space within the beamer document class?
I have created a custom \citedoi{} command based off biblatex's \citeurl{} command that is working fine. I can then put the \citedoi{} within a box near images or other things that need citations that ...
0
votes
2
answers
80
views
Imposing similar heights for boxes using \parbox
I am trying to impose similar heights for 2 different boxes. I am trying to use \parbox but this doesn't work very well since the boxes have still different heights :
\documentclass{beamer}
\...
0
votes
2
answers
50
views
How to correct vertical spacing after multiple side-by-side parboxes?
I use a \dated macro to put a date at the end of the line with some text left of it, using two parbox.
When the text uses only a single line, the spacing underneath this construct looks fine. But when ...
2
votes
1
answer
68
views
parbox inner vertical-align "b" causes unexpected vertical white space
In the following codes, I put something into a lrbox named mybox. Then the content of the box is typeset by a parbox with three inner vertical-align modes - c, t and b. For t and c, the typeset is ...
2
votes
1
answer
172
views
Tikzposter - Stretching the title box to accommodate a long title
I have a long title for my tikzposter, which I want to keep all on one line for the sake of the poster's spacing.
What I have now is this:
\centering
\settitle{
\parbox{\linewidth}{
\centering \...
2
votes
2
answers
428
views
fbox without vspace
I am going to give a definition of a problem as follows.
\newcommand{\defproblem}[3]{
\vspace{4mm}
\noindent\fbox{
\parbox{0.98\textwidth}{
#1 \\
\textbf{...
1
vote
2
answers
57
views
How do you center parbox vertically in a table
I created a table with images in them.
However I want the first column to have text and it should be centered vertically and the text should be rotated 90degrees.
To do this, I used a parbox however I ...
0
votes
0
answers
31
views
Vertical centering using \longtable together with \parbox and in-table equations with enumeration [solved]
I am writing a multipage table using the \longtable package, and it includes equations within the cells of one columns. Since I want to preserve the document equation enumeration for later referencing ...
0
votes
1
answer
147
views
tcolorbox overflowing text when using parbox=false
I have the problem that when I add parbox=false to the options of tcolorbox, the text within the box is not breaking properly. Do you have an idea what might be the issue?
Here is the code:
\...
0
votes
1
answer
45
views
Alignment of overflowing rotated \parbox
I am looking to achieve the following within a figure:
A main graphics element which occupies the full \linewidth
Rotated text labels on the left and on the right, vertically centered with graphics, ...
0
votes
3
answers
73
views
On moving a parbox generated by p{width} to the very right in a tabular
Let us focus on the following code:
\documentclass{book}
\begin{document}
\begin{tabular}
{|l|
r@{}@{\hspace{0.3em}}
|l|r|}
%--------------------------------------------------------------------
\...
0
votes
0
answers
42
views
Thesis cover formatting
I need to put on the cover of my work: a picture, the name of the university, and another picture (logo). But the figures are one below the other (I need everything in the same line). I'm trying the ...
0
votes
2
answers
240
views
LaTex - Table formatting (multicolumn, multirow, parbox)
I have created the table below.
However, there are some formatting problems that I can't get fixed.
\documentclass[9pt,twocolumn]{article}
\usepackage{tabularx}
\usepackage[format=plain, indention=...
0
votes
1
answer
95
views
Height of \parbox can not be assigned with condition?
I want to assign the height of my \parbox with condition, as I did below, but fail. Why and how to deal with it?
Code:
\documentclass[a4paper]{article}
\usepackage{etoolbox}
\usepackage{geometry}
\...
0
votes
1
answer
81
views
How to merge cells made by \parbox vertically
\documentclass[a4paper]{article}
\usepackage{xcolor,pgf,etoolbox}
\usepackage{geometry}
\geometry{showframe}
\geometry{left=1cm,right=1cm,top=1cm,bottom=1cm}
\parindent0pt
\begin{document}
\fboxsep0pt
...
0
votes
1
answer
105
views
Width of parbox inside colorbox
I want to insert a colorbox into a margin paragraph. parbox is used to keep the line breaks.
What value should I pass to \parbox's width so it doesn't get too wide as it does now?
\documentclass{book}...
0
votes
1
answer
73
views
How to store/append code for later use
To store some code for later use, I can think of two ways: \appto from etoolbox and \sbox.
They both have some problems in use.
For \appto, later invoke of a macro will cover the value of the former, ...
3
votes
1
answer
127
views
tikzcd inside parbox
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\parbox{\textwidth}{\[
\begin{tikzcd}
a \arrow{r}{} & b
\end{tikzcd}
\]}
\end{document}
The MWE above throws a ...
1
vote
2
answers
411
views
How to make all \parbox with same height
Running the following MWE will get an ugly typeset which I think is for the reason of different heights of all thees\parboxs.
My question is: As the contents of all \parbox cannot be foreseen, how to ...
1
vote
2
answers
142
views
How to insert a margin inside a double frame parbox?
I simply would like to insert a bit of space inside my parbox, but the following mess up with the frames:
\documentclass{article}
\begin{document}
\begin{center}
\fbox{
\setlength\fboxsep{...
0
votes
0
answers
57
views
tabu and extra vertical space for tall equation
Q:
Why tabu adds extra vertical space before first line of cell contents if the second line of a paragraph is too tall?
MWE below contains three use cases:
tabular (from array) approach with p{} ...
0
votes
1
answer
128
views
Struggling with parboxes' width and placement in TikZ
I am trying to update my own resume/cv in LaTeX. I haven't needed to typeset anything in several years, so my LaTeX is very, very rusty. I took a look at several "cv" classes I like (limecv, ...
1
vote
2
answers
503
views
What's the difference between [position]] and [inner-pos] parameters in \parbox?
I am trying to understand the documentation of \parbox (documentation link: http://www.emerson.emory.edu/services/latex/latex_147.html). However, I don't understand the difference between [position] ...
0
votes
0
answers
43
views
Parbox figure and linespacing adjustments
I need a table of 5 columns where the last column contains figures. When I use \parbox , the spacing between lines increases and the figures are not aligned under the lat column. How can I fix it ...
1
vote
2
answers
246
views
Make the line down in parbox
Why do I get a line in the middle?
\documentclass{article}
\begin{document}
%%\parbox[alignment][height][inner-alignment]{width}{text}
The answer is:\parbox[c][][b]{2cm}{\hrulefill}.\par
\end{...
1
vote
2
answers
566
views
\parbox with stretchable height
I am trying to create a framed \parbox that stretches to fill the available space. I have tried
\fbox{\parbox[c][0pt plus 1fill][t]{3in}{...Content...}}
but the \parbox doesn't seem to stretch at all....
1
vote
1
answer
85
views
What is the distance to right margin in nested aligned and enumerate environments?
I am using the \aligned environment within an \enumerate setup for formatting my assignment submissions. I have tried using the \align*, \flalign*, and \alignat environments but they didn't behave ...
1
vote
1
answer
140
views
Why does adding a \label at the beginning of a \parbox affect its layout?
I was surprised to notice that adding a \label at the beginning of a parbox changed the layout of its contents:
\documentclass{article}
\begin{document}
A\parbox[t]{3em}{\tiny B\\C} (no label)
A\...
1
vote
1
answer
83
views
Suppress counting of fbox, parbox, minipage as table
I am running into an issue where either the fbox, parbox, or minipage is being counted as a table. As an example, I have added sample code that is similar to my setup. This code results in the first ...
1
vote
1
answer
192
views
Can I avoid indentation of margin items when using parbox=false in a tcolorbox?
For a book project, examples, theorems, etc. are all styled using tcolorbox. (This part is not really negotiable -- the LaTeX code is generated by PreTeXt.)
I've been trying to figure out how to get ...
0
votes
2
answers
785
views
Multi-line explanation including math and text next to equation in Overleaf
I saw two answers1 2 suggesting the use of \parbox in an \align* environment in order to type some long explanation next to an equation progression. I want this explanation to include a math ...