Questions tagged [parbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
45 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=...
user avatar
  • 1
0 votes
1 answer
40 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} \...
user avatar
  • 2,189
0 votes
0 answers
37 views

Unusual Illegal unit of measure (pt inserted) in table involving tabular and subcaption

I have weird Illegal unit of measure (pt inserted) error that I cannot get rid off for some reason. The error occurs in tables that look like the one below (text details changed to xx). I haven't ...
user avatar
  • 133
0 votes
1 answer
48 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 ...
user avatar
  • 2,189
0 votes
1 answer
30 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}...
user avatar
  • 298
0 votes
1 answer
59 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, ...
user avatar
  • 2,189
3 votes
1 answer
74 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 ...
user avatar
  • 1,944
1 vote
2 answers
58 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 ...
user avatar
  • 2,189
1 vote
1 answer
33 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{...
user avatar
  • 989
0 votes
0 answers
40 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{} ...
user avatar
  • 253
0 votes
1 answer
48 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, ...
user avatar
1 vote
2 answers
68 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] ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
1 vote
2 answers
37 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{...
user avatar
1 vote
2 answers
81 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....
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 101
1 vote
1 answer
46 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\...
user avatar
  • 3,914
1 vote
1 answer
62 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 ...
user avatar
1 vote
1 answer
91 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 ...
user avatar
0 votes
2 answers
189 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 ...
user avatar
  • 113
1 vote
1 answer
33 views

Extend tabular signature lines to a prior parbox width automatically

My universities thesis style requirements dictate that a declaration page is furnished with information boxes (signature etc.). I can extend the signature lines to the end of the \parbox boundary ...
user avatar
0 votes
1 answer
55 views

Text out of fbox

What I'm trying to do is to put an equation inside an fbox. Here's my MWE: \documentclass[12pt]{article} \usepackage[italian]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath, amsthm, amssymb, ...
user avatar
1 vote
1 answer
47 views

Tikzpictures and parbox inside an enumerate environment, how do I align everything to the top?

I start showing what I got and what I would like to achieve: My code is the following: \begin{enumerate}[(i)] \item \begin{tikzpicture}[scale=0.6,every node/.style={draw=black,circle}] \...
user avatar
0 votes
0 answers
21 views

Missing number, treated as zero within simple parbox/spacebox macro

I have a macro using parbox, spacebox, and some simpler whitespace. This generates a "Missing number, treated as zero." error for every time I use the macro. It still compiles to a PDF ...
user avatar
  • 1
0 votes
2 answers
103 views

How to place boxed text next to an image of the same height?

I'd like to mimic the following style: having an image of an author next to a textbox of the same height. However, my attempt is humorously unsettling: It appears that the aspect-ratio of my face ...
user avatar
  • 103
1 vote
1 answer
48 views

Inconsistent paragraph spacing with \parbox for custom design

I am working on a project that requires generating latex code programmatically from a JSON file, which contains a transcribed conversation. The design of the final goal is non-standard. It requires ...
user avatar
0 votes
1 answer
130 views

Pagebreak in \parbox

is there a possibility to allow pagebreaks within a \parbox environment? Here's the example \documentclass{article} \pdfpageheight=10cm \begin{document} \centering \parbox{5cm}{ Lorem ipsum dolor sit ...
user avatar
2 votes
1 answer
43 views

Parbox won't stay vertically centered in some cases

I thought I had finally understood vertical alignment behavior of parboxes, but then this happened: I have this tabularx with parboxes inside and broke my case (in XeLaTeX) down to this minimal ...
user avatar
1 vote
1 answer
37 views

aligning text level of text and parbox where text is wrapped

I would like this: With the Tex code at the bottom I obtain this: Tex code: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} Text1 \> \parbox{0.8\textwidth}{bla bla bla bla ...
user avatar
2 votes
2 answers
191 views

parbox automatic width calculation

Consider the following MWE: \documentclass[letterpaper]{article} \usepackage{amsmath} \begin{document} \noindent $\begin{aligned}[t] \left( \frac{1}{2}-\frac{1}{4} \right) \left( \frac{1}{2}-\frac{3}...
user avatar
  • 27.6k
5 votes
2 answers
425 views

Why does a parbox of height zero consume vertical space?

Assume we have a document where we have one paragraph of text, followed by two vspace boxes, followed by another paragraph of text. I thought that I could insert a parbox with zero height between the ...
user avatar
2 votes
1 answer
111 views

How to draw vertical line with exactly the height of a parbox next to it

I am trying to create small sections for a cv where the section name and a vertical line should be next to the content. The section name should be centered and the vertical line should be exactly the ...
user avatar
  • 303
1 vote
1 answer
40 views

Sideways cell and normal cell don't align properly in tabularx

I'm trying to make a table where the first two columns should have their content rotated 90 degrees (sideways), the third normal (written horizontally), and the last one should have a \multirow with ...
user avatar
  • 413
0 votes
1 answer
89 views

\textls letterspacing and parbox

I have a hack for fitting as much text as possible in a 2-line parbox using \textls (microtype package). Here is the code: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage[cyr]{...
user avatar
0 votes
0 answers
178 views

Indents and spacings starting a line are ignored in parbox

When inside a \parbox, indents and spacings (like \indent, \quad, \hspace{}, etc...) are ignored when starting a line. For example, this code: \parbox[t]{10cm}{ \indent indent does not work \\ ...
user avatar
3 votes
1 answer
219 views

Why does \raggedright not work inside a minipage in this case?

In trying to suppress underfull box warnings in annotations to equations in align environments, I'm experimenting with \raggedright. I've discovered that it works inside a \parbox but not inside a ...
user avatar
0 votes
0 answers
41 views

Problems with aligning in \parbox and \rule alignment

I'm using the Twenty Seconds Resume/CV: https://www.latextemplates.com/template/twenty-seconds-resumecv https://www.overleaf.com/latex/templates/twenty-seconds-curriculum-vitae/kfgsngtymkfj However I ...
user avatar
  • 3
0 votes
0 answers
24 views

\raggedleft in conjunction with \\ not working in header

I am really struggling with the last change in my thesis regarding the header. The header is defined in the template I have to use like this: \def\@evenhead{\parbox{\textwidth}{ {\thepage\hfill~\...
user avatar
2 votes
1 answer
40 views

Help in placing "2 parboxes in a single Row" in Bulleted or numbered Items

I want to make a book which has many instructions for solving mathematical problems and equations. It describes each step for equation solving. There are many steps. Each step is different item. The ...
user avatar
1 vote
2 answers
60 views

Using overbrace with parbox in equations

I'm trying to use overbrace with parbox in an equation, but haven't been very successful. Any ideas on how to properly do it? \documentclass[10pt]{beamer} \usetheme[progressbar=frametitle]{...
user avatar
  • 504
2 votes
1 answer
482 views

Center a \parbox or \minipage vertically

I'm not sure if I understand it correctly, but with pos=c either a parbox or a minipage should vertically align the baseline of the center line with the baseline of the text outside? However, what ...
user avatar
  • 597
4 votes
3 answers
845 views

How to automatically linebreak an inline math formula?

Here is an example of a parbox that produces both an underfull and an overfull warning: \parbox{100pt}{A set of comparison triplets \(T = \{ (i,j,l) | z_i \;is\; more\; similar\; to\; z_j\; than\; z_l\...
user avatar
  • 175
2 votes
0 answers
63 views

tcolorbox is measuring the wrong height when a parbox follows

Awhile back, I learned how to measure the y coordinate in my pdf. I've recently run into a combination of parbox, tcolorbox, and XeLaTeX that is giving me bad results. In the following example, \...
user avatar
  • 4,863
0 votes
1 answer
94 views

Multi-line rows in a table are too close together

For a scientific paper I use the llncs layout. There I have created a table with tabular. The first column of this table should take half of the text width. The content of this first column can be of ...
user avatar
1 vote
1 answer
128 views

Parbox for longtext

I'm looking for basic way of placing long text into parbox or some other box which will break the page if needed. Please take a look at my code. What is wrong? \documentclass{article} \usepackage[...
user avatar
  • 205
-1 votes
1 answer
155 views

Recreate Word document to include inside .tex

I would like to include 3 pages of a word document (an Informed Consent for my studies) in my .tex document. I could include each PDF but I would like to know how can I recreate the document in TeX ...
user avatar
  • 474
4 votes
1 answer
46 views

How to reserve the exact text size for the next frame

how to reserve the exact size of the response text for the next frame (when I use siunitx and animateinline combined). \documentclass{beamer} \usepackage{amsmath,amsthm,amsfonts,amssymb} \usepackage[...
user avatar
0 votes
2 answers
136 views

Two columns of matching text

I'm formatting a translated book. There is a section where there is a poster that consists of two columns of related text. The various paragraphs, or in some cases, groups of paragraphs, match up with ...
user avatar
0 votes
2 answers
192 views

Style questions by using \multirow and \parbox for getting a nicely formatted table

The following situation gives me a lot of headache: 1) I would like to use \parbox to have also block text in the multirow areas. With the code below this doens't work. I tried to combine \parbox and \...
user avatar
0 votes
0 answers
177 views

How to turn off automatic text justification in a \parbox?

The following code produces the result in the picture below. How can I avoid text justification at the line that starts with "Create Challenge"? I have tried to apply what is suggested here but it ...
user avatar