Stack Exchange Network

Stack Exchange network consists of 175 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
2answers
33 views

Why \parbox makes inter-word spacing very wide and how to fix it?

How to keep \parbox and at the same time get rid of excessive spacing between words? \documentclass[varwidth]{standalone} \begin{document} \parbox{40mm} { \everypar{\parshape 2 0mm 40mm 5mm ...
1
vote
1answer
33 views

Adjusting perimeter of colorbox to fit text

Consider this MWE: \documentclass[11pt]{article} \usepackage[left=1.5cm,top=2.5cm,right=3.5cm,bottom=3.2cm,a4paper]{geometry} \usepackage{xcolor} \usepackage{adjustbox} \usepackage{setspace} \...
1
vote
1answer
25 views

Using parbox in two column format

I am trying to put two tables side by side in two column format. But I am getting the error ! Missing number, treated as zero. l l.460 \end{tabular*} } ...
0
votes
2answers
45 views

Framed box with only bottom rules and multiple lines inside a table cell

I want to have a table with cells which have multiple lines and bottom rules. I've tried \begin{tabular}{cc} \renewcommand{\arraystretch}{1.5} Title & \parbox{18em}{\centering A very very very ...
4
votes
3answers
237 views

Empty optional argument or Not giving optional argument at all?

I learnt that \parbox has five arguments, that is: \parbox[<align>][<height>][<inner-align>]{<width>}{<text>}. So I constrcut my own \myparbox in which I add \sloppy\...
2
votes
1answer
162 views

Automatically justify text in \parbox

The left part of the attached figure showes the nomal typeset of \parbox. The first/second lines are fully filled with words, and the rest words are bent to the third line. What interests me is: how ...
5
votes
4answers
175 views

How to remove the last line-feed raised by \foreach

As the following example showes, there are an extra line-feed which is not needed. Is there a way to eliminate? Example: \documentclass{article} \usepackage{tikz} \begin{document} \def\mylist{str1,...
0
votes
1answer
46 views

How to make a macro like \parbox with a style of spread align

I'd like to construct a macro like \parbox, but with a style of spread align, as the option [s] in \makebox. That is to say, when the width of text is less than the defined width(only one line of ...
0
votes
0answers
30 views

Issues with footnotes using wrapping parbox with longtable, threeparttable and tablenotes

I have an issue with footnote not showing up when I wrap the threeparttable/longtable with a parbox. If I remove the wrapping parbox from the code below, the footnote show up under the table, as I ...
1
vote
1answer
54 views

Creating box on long enumeration

Hello so I want to make a box outside of enumeration: \noindent\fbox{ \parbox{\textwidth}{ \begin{enumerate} \item Matriks contoh merupakan matriks berukuran 2x2 seperti berikut: \\ $\...
1
vote
0answers
38 views

colortbl conflict with tabular parbox? [duplicate]

I have a large document that I want to fix column widths in several tables and I have previously done so using p{XXin} column types (where XX is some number). I recently moved to a new computer and ...
0
votes
0answers
55 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
146 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
69 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
891 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
254 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
49 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
114 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
159 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
44 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
31 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
60 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
91 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
321 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
246 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
220 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
92 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
43 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
57 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
244 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
128 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
82 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
56 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
91 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
156 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
263 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{...
4
votes
3answers
461 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
113 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
338 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
281 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
128 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 %...
4
votes
2answers
372 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
109 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
437 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
161 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
218 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
131 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
99 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
257 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 ...