Stack Exchange Network

Stack Exchange network consists of 174 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 [parbox]

The tag has no usage guidance.

0
votes
0answers
39 views

How do I add a background image to just a parbox?

I'm trying to design my CV and want to have a box at the top which contains some content on the left end (name and title) and content on the right (maybe a few rows containing contact info sorts of ...
0
votes
1answer
28 views

How to add margin inside a parbox?

I have create a parbox as below that I would like to have a margin between the border the text for top, bottom, left, and right: \begin{center}\shadowbox{\parbox{0.85\textwidth}{text text text}}\end{...
1
vote
1answer
30 views

How can I make these \parbox margins wider in LaTeX

I have the below command, followed by the text that I want displayed. I've attached a display of the output. I would like the top middle text to have wider margins. I've tried tweaking the \parbox ...
9
votes
3answers
887 views

Any ideas on how this table could be made better looking?

\usepackage{multirow} \begin{table}[htbp] \begin{tabular}{p{2.5cm}p{2.5cm}p{1.5cm}p{6.5cm}} \hline \multicolumn{2}{c}{\textbf{Parameters}} & \multirow{2}{*}{\textbf{Used ...
0
votes
2answers
76 views

Underfull \hbox (badness 10000) in paragraph at lines 36--37

I get warning which I can't understand. This is my latex code: \documentclass[a4paper,10]{article} \usepackage[zw32010,crossmark]{ticket} \usepackage{graphicx} \usepackage{fontspec} \usepackage[...
2
votes
2answers
37 views

Wrapped text getting merged with column values

I am using the following code for a table which doesn't look pleasing at all. I was able to wrap text but it is getting merged in the values given in the column. Any help would be appreciated. \begin{...
5
votes
1answer
110 views

Weird behavior in \date field

I'm trying to "trick" the date field in \maketitle into allowing me an extra line to link to the latest version of my paper. I borrowed an example from here, and it works. However, when I try to edit ...
1
vote
1answer
32 views

How to align right every new line in latex parbox

How to align right every new line which I made using \ in parbox? I've used parbox in latex for creating different part in latex business card. On the left side I've used parbox and it is ...
3
votes
2answers
30 views

How can I fix this overflowing parbox issue?

I am trying to use an indented parbox, but the \textwidth command in the width parameter doesn't account for the indentation, and so the text overflows outside of my margin. How could I fix this? ...
0
votes
2answers
28 views

Easy way to line-break specific table cells

I have a table with long text and found a way to get rid of the issue where one has to do line-breaks manually. Here is the code for a very simple version of this layout: \usepackage{booktabs} % for ...
0
votes
1answer
41 views

Cancel auto spacing/new line using parbox

I don't know why but with this code, Latex provide me a new line after each \wedge and some weird spaces after \alpha and \notin $\rightarrow$= \parbox{5.5cm}{ $\{((s_1,s_2),\alpha,(s_1',s_2)) | \...
3
votes
1answer
56 views

\comment (verbatim-package) inside \parbox throws errors - What is the problem?

I have defined my own environment - lets call it 'myenv' - which shows and hides its content based on some global settings. I'm using the \comment and \endcomment commands from the verbatim package, ...
3
votes
1answer
166 views

How to highlight a `enumerate` environment in latex?

This is a continuation of this question. The following code works very well to highlight a paragraphs(and inline texts too). \makeatletter \newcommand{\hl}[1]{% \setbox\@tempboxa\hbox{#1}% \...
4
votes
2answers
175 views

How to highlight some inline text using parbox?

I have some paragraphs to highlight for later edit in my latex document. For that I use the following code \newcommand{\hl}[1]{\noindent\colorbox{pink}{\parbox{\dimexpr\linewidth-2\fboxsep} {#1}}} ...
6
votes
1answer
195 views

Using \color inside a \parbox causes vertical displacement

When modifying my answer to this question I came across some odd behaviour. If \color{<color>} is used at the start of a top-aligned \parbox, then the entire box is moved downwards, like this: \...
6
votes
1answer
65 views

\parbox in mathmode in Lyx

I am trying to write multiline text inside the mathmode in Lyx like this: I did that based on this answer. I have made it work in Lyx by defining a macro so that the usage is and the output is that ...
5
votes
2answers
38 views

Form consisting of boxes. How to glue par-/frameboxes?

I was given the following to fill in, however the template was given in a word file and it is really awful to edit in and format properly. I've tried to recreate it in Latex. My attempt is the ...
0
votes
1answer
44 views

Making framed section heading, using multiple parbox

I'm trying to build custom section headings, which have the text in the top of a coloured box of a specified height, with another coloured box of a specified height beneath. Much like this: The ...
1
vote
1answer
122 views

vertically-align left-center-right line to the top

I found this answer which shows how to have a line with left, center, and right-aligned text. The thing is that I want essentially two lines, or a line break within each component. This is fine, ...
3
votes
1answer
120 views

Big gap between two parboxes in modified RTL expex environment

Below are several sets of identical side-by-side parboxes; the right parbox contains an interlinear gloss (expex) and the left contains regular text. The top three sets are before the modified expex ...
1
vote
1answer
73 views

\ex with parbox causing example number to go into margin

The only difference between the two examples below is that the first one uses \ex (which displays an example number) and the second uses \exdisplay (no example number). They are otherwise exactly the ...
2
votes
2answers
40 views

Animateinline works in Beamer but not report

I have the following code that works in Beamer (first time using animateinline btw) and would like to add to a pdf text, but when I transition to report, it throws errors: Missing \endcsnmame ...
0
votes
1answer
51 views

Multirow fails to join rows in tabular containing parboxes and figures

I am trying to join the rows of table that contains parboxes and figures, but multirow doesn't seem to work. Could someone please help me? Below is a minimum working example. Thanks, Jorge. UPDATE1: ...
5
votes
1answer
132 views

how can we get all these parboxes to align?

I have been reading Leslie Lamport's book on LaTeX and he discusses parboxes. He notes: Many LaTeX users fail to realize how much they can do with the box-making commands described above. I will ...
2
votes
3answers
205 views

parbox in enumerate

The box is exceeds the right boundary probably because of the textwidth. I would like to have it aligned. Besides, what is \noindent for? Why it seems to be the same with or without it. \begin{...
5
votes
3answers
360 views

I can't use `\width` as the argument for `\parbox` or `minipage`

I can't use \width as the argument for \parbox or minipage. MWE: \documentclass{article} \begin{document} Bla \begin{minipage}{\width}{test}\end{minipage} \end{document} To my understanding, ...
0
votes
0answers
95 views

Use \parbox like \empheq

MWE \documentclass[a4paper]{article} \usepackage{geometry} \usepackage[svgnames]{xcolor} \usepackage[listings,skins,breakable,hooks,most]{tcolorbox} \usepackage{empheq} \usepackage[color]{changebar} ...
2
votes
2answers
258 views

Highlight parbox with frame

I have a little problem. I use parbox and textblock to position my text in front of a more or less complicated background-image. Now I would like to highlight my parboxes to see if all margins are ...
2
votes
1answer
213 views

Scalebox, Parbox, and Page Break

I have a long equation inside the scalebox. However, I can not force it to break between the pages. The code looks like this: \scalebox{.95}{\parbox{\textwidth}{ \begin{align} bla1 & bla2 \\ bla3 ...
6
votes
1answer
117 views

Equal size for parbox

I made a diagram with pstrick for my bachelor thesis. For this I defined a new variable. \documentclass[% a4paper, % Papierformat oneside, % einseitiger Druck %...
3
votes
2answers
238 views

Center text around certain position using overpic

I am using the overpic package to place text inside of a figure. For using line breaks inside a put command I use parbox (see example code). \documentclass{article} \usepackage{graphicx} \usepackage[...
2
votes
2answers
73 views

Spacing Issue with table and parbox

how is it possible to correct the spacing of column 1 and the other spaces? The MWE: \documentclass{article} \usepackage{booktabs} \usepackage[table]{xcolor} \usepackage{array} \usepackage{graphicx}...
5
votes
2answers
367 views

How to use the full textwidth for tablenotes under multiple tables?

When i use multiple tables or also in the case of subtables and want to include one tablenote which describes all tables simultaneously the tablenote is only created for the left table not using the ...
2
votes
1answer
120 views

Pseudo-code with algorithmic. Escape and indent a function using varwidth and parbox

I'm using the algorithmic package to create pseudo-code for my document. One of the algorithms has a few lines that are too long and they go too far to the edge of the page so I wanted to add a ...
1
vote
2answers
163 views

Align enumerate label with minipage content in its items

This question is based on my previous question, List labels on left with Arabic using Polyglossia, however, it can be read by itself as well. NOTE: You will have to use XeLaTeX and probably change ...
4
votes
3answers
2k views

Access height of a \parbox

Within a \parbox I can access its width via \linewidth (useful e.g. if I want to place an image as wide as the \parbox). Is there a way of accessing the height of a \parbox when the height is fixed ...
1
vote
2answers
95 views

How do I make an “inlined” parbox's top line align with its preceding text?

I have this document: \documentclass{article} \begin{document} $\rightarrow$ \parbox{6cm}{The quick brown fox jumped over the lazy dog. You've eaten pepper? Now drink juice!} \end{document} which ...
4
votes
2answers
79 views

How can I create a box which extends to the end of the line?

I want to create a (par)box which starts wherever I am right now and extends to the end of the line. I noticed this related question: Get current position in the line / get space until end of line ...
0
votes
1answer
173 views

Overfull underfull \hbox

I am new to LaTeX and I am having trouble with a document. I am working off a CV template on ShareLaTeX. I understand that overfull and underfull in hbox is a problem having to do with text being ...
2
votes
1answer
197 views

raggedright text writes over wrapfigure in a parbox

I want to have a parbox with an image in the top right corner and text floating around it. Using \wrapfigure, this works well. However, this doesn't seem to work with \raggedright, as the text simply ...
2
votes
2answers
290 views

Centralize table cells when using multirow and multicolumn

I have a big table shown above with some problems: 1- I want to centralize (horizontally and vertically) the contents of all cells except the second column, vertically and horizontally. Also to ...
0
votes
1answer
143 views

A parbox inside a textblock

I would like to have absolute positioning with centering vertical alignment. I am trying to achieve this by using a \parbox inside a \textblock (from textpos): \documentclass{article} \usepackage[...
1
vote
1answer
61 views

vertical alignment in amsmath aligned

I have the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &\pi(x) & \parbox{8cm}{Lorem ipsum dolor sit amet, harum electram vim ut. ...
1
vote
1answer
130 views

Text inside parbox is invisible

The text inside the \parbox isn't showing up on the compiled pdf. What is the solution to this problem? Best regards from Sweden. \documentclass[11pt]{article} \usepackage[margin=2.5cm,a4paper]{...
0
votes
1answer
201 views

How to make a box with the minimal height and vertical alignment inside the box?

I need to set minimal table (one-row table) height, and valign content inside it. For this prupose i wrap tabular in parbox in tabular i have correct valign, and parbox gives me min height. My ...
2
votes
1answer
77 views

Whats wrong in the document composition?

I generate document automatically, and got the error ! Extra alignment tab has been changed to \cr. I know this error, but i can't understand the reason in my case. Here is minimum example: \...
3
votes
1answer
504 views

Solving “overfull \vbox” in table with multirow

This table has been causing me nothing but problems. Right now, it looks OK: But it's clear the vertical spacing is not so good. "Region" is too high (which I tried to address with the [fixup] ...
1
vote
1answer
68 views

How to split lines in msc message

I have long messages in an msc diagram. I thought of splitting the message into two lines so they do not overlap. I tried parbox but that resulted in an error. How can I split text line in an msc ...
4
votes
1answer
355 views

Irregular line spacing in parbox or minipage inside align environment using amsart

When I use a parbox or minipage inside an align environment (from the amsmath package) while using the amsart document class, the line spacing within the parbox is irregular. The following example ...
0
votes
2answers
290 views

Unable to center figures in table using parbox

I am trying to create a table with four figures centered and the next row should have its text centered. As you can see, the parboxes aren't centered, I've tried several ways to fix this but am ...