Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [parbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Parbox with multiple baselineskip height

I'm defining a chapter style, and I'd like to print the chapter title within a \parbox. I'd like the \parbox take a vertical space which is in any case an exact multiple of \baselineskip. In the ...
Iacobus1983's user avatar
1 vote
1 answer
46 views

wrapfigure overlapping fcolorbox

I'm using wrapfigure together with fcolorbox, but it seems the figure overlaps the colorbox, as shown in the image below. Is it possible for the wrapfigure not to overlap with the fcolorbox? It ...
DavidC.'s user avatar
  • 861
1 vote
1 answer
65 views

How to put a text inside a box within a boxed environment?

I have the following LaTeX code, which makes use of a boxed environment. I want to put some of the text within a dashed and normal box, but it throws an error. Any ideas how to achieve this? \...
pixel's user avatar
  • 1,370
0 votes
0 answers
27 views

Dash boundary incorrect in parbox?

If I create a parbox in moderncv, the dashes are out, like: \documentclass[11pt,a4paper]{moderncv} \moderncvtheme[blue]{classic} \firstname{Foo} \familyname{\textsc{Bar}} \begin{...
tobiasBora's user avatar
  • 8,994
1 vote
2 answers
57 views

Question on overlapping parbox

I don't understand why the following lines don't overlap properly with a parbox involved. The First Line collapses perfectly, but the Second Line does not. Of course, if parbox is set to [b], the ...
zgrizz's user avatar
  • 149
0 votes
1 answer
22 views

Centering a single line within a `\parbox` inside a `tabular` cell

Let us consider the following code: \documentclass{article} \begin{document} \begin{tabular}{|c|} \hline \parbox{6cm}{\vspace{.2cm}% \textbf{Title of my cell}\\ Here ...
Daneel Olivaw's user avatar
1 vote
2 answers
83 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=...
bradrn's user avatar
  • 212
0 votes
1 answer
619 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 ...
jowe_19's user avatar
  • 1,013
2 votes
1 answer
89 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 ...
Garulfo's user avatar
  • 193
0 votes
0 answers
60 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 ...
InfiniteLooper's user avatar
0 votes
0 answers
35 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 ...
joshisanonymous's user avatar
0 votes
1 answer
51 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 (...
user avatar
3 votes
1 answer
363 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 ...
Jacob Shulman's user avatar
0 votes
1 answer
54 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 ...
melodyscat's user avatar
0 votes
1 answer
59 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 ...
Ólafur Víðir Guðbjargarson's user avatar
0 votes
1 answer
152 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 ...
Júlia's user avatar
  • 1
1 vote
0 answers
47 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 ...
Enlico's user avatar
  • 2,612
2 votes
2 answers
136 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 ...
Christian P.'s user avatar
1 vote
2 answers
66 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} \...
Maniel Sotomayor's user avatar
0 votes
1 answer
131 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 ...
beaver's user avatar
  • 65
6 votes
3 answers
153 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} \...
Juan Castaño's user avatar
1 vote
1 answer
52 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}...
martijn van Hooff's user avatar
0 votes
2 answers
128 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 '&...
SSSOF's user avatar
  • 5
0 votes
1 answer
79 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 ...
tush's user avatar
  • 1,147
2 votes
1 answer
24 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{...
logic9527's user avatar
0 votes
2 answers
67 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 ...
JamesT's user avatar
  • 3,201
0 votes
2 answers
96 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} \...
Waxler's user avatar
  • 860
0 votes
2 answers
69 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 ...
danijar's user avatar
  • 1,035
2 votes
1 answer
84 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 ...
lyl's user avatar
  • 2,747
2 votes
1 answer
371 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 \...
BrenD's user avatar
  • 21
2 votes
2 answers
513 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{...
Blanco's user avatar
  • 303
1 vote
2 answers
68 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 ...
Kavi's user avatar
  • 15
0 votes
0 answers
36 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 ...
wdsgn's user avatar
  • 311
0 votes
1 answer
238 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: \...
heroxav's user avatar
  • 103
0 votes
1 answer
56 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, ...
merlinND's user avatar
  • 135
0 votes
3 answers
100 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|} %-------------------------------------------------------------------- \...
Aria's user avatar
  • 1,523
0 votes
0 answers
46 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 ...
Jurandi Leão's user avatar
0 votes
2 answers
341 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=...
xxxyyy's user avatar
  • 11
0 votes
1 answer
110 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} \...
lyl's user avatar
  • 2,747
0 votes
1 answer
91 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 ...
lyl's user avatar
  • 2,747
0 votes
1 answer
133 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}...
tush's user avatar
  • 1,147
0 votes
1 answer
78 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, ...
lyl's user avatar
  • 2,747
3 votes
1 answer
150 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 ...
steve's user avatar
  • 2,256
1 vote
2 answers
584 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 ...
lyl's user avatar
  • 2,747
1 vote
2 answers
208 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{...
nowox's user avatar
  • 1,417
0 votes
0 answers
59 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{} ...
akj's user avatar
  • 283
0 votes
1 answer
171 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, ...
AkaAkane's user avatar
  • 153
1 vote
2 answers
671 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] ...
Baldovín Cadena Mejía's user avatar
0 votes
0 answers
51 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 ...
user256421's user avatar
1 vote
2 answers
331 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{...
user77538's user avatar