Questions tagged [parbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
33 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
1answer
46 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 ...
1
vote
1answer
19 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 ...
0
votes
1answer
38 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, ...
1
vote
1answer
31 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}] \...
0
votes
0answers
20 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 ...
0
votes
2answers
49 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 ...
1
vote
1answer
38 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 ...
0
votes
1answer
44 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 ...
2
votes
1answer
36 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 ...
1
vote
1answer
32 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 ...
2
votes
2answers
117 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}...
5
votes
2answers
233 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 ...
2
votes
1answer
69 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 ...
1
vote
1answer
36 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 ...
0
votes
1answer
63 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]{...
0
votes
0answers
63 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 \\ ...
3
votes
1answer
115 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
21 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~\...
2
votes
1answer
36 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 ...
1
vote
2answers
40 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]{...
2
votes
1answer
285 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 ...
4
votes
3answers
420 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\...
2
votes
0answers
44 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, \...
0
votes
1answer
29 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 ...
0
votes
1answer
63 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[...
-1
votes
1answer
118 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 ...
4
votes
1answer
44 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[...
0
votes
1answer
76 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 ...
0
votes
2answers
112 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 \...
0
votes
0answers
88 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 ...
1
vote
1answer
93 views

Line spacing not working in title created using a parbox

I am having some problems with the line spacing on my title page. My title is placed in a parbox and it was all fine until the title went more than 3 lines and then it became all squished up. Code and ...
-1
votes
1answer
94 views

how to center rotatetext parbox?

the code below puts the text MNIST not at center. I want to center it align it with the text SSIM. I change parbox to different values of cm but nothing change. How ? \begin{figure}[t] \...
0
votes
1answer
28 views

Add margin to new lines in parbox

My table \begin{table*}[!t] \ra{1.3} \caption{Well-known scheduling performance measures.}\label{tab:objectives} \centering \resizebox{\textwidth}{!}{\begin{tabular}{@{}llll@{}} \toprule \...
1
vote
2answers
213 views

How to align text and picture with parbox?

I would like to align the top of the picture with the top of the text using parbox. When I compile the following code with LuaTeX, Version 1.10.0 TeX Live 2019/W32TeX format=lualatex 2020.2.26 ...
0
votes
2answers
77 views

Annoying ghost column after parbox

So I've previously asked a question regarding figures and tikzpictures inside boxes from the TeX macro package insbox. I got a working MWE, but implementing it in my full document made me realise ...
0
votes
0answers
43 views

How to center a caption in Table* spanning multiple columns using \parbox?

I have two tables that must be placed side by side and spanning both columns of an article. To do so, I've written the following code: \begin{table*}[!ht] \parbox{.40\linewidth}{ \hfill{}...
1
vote
2answers
79 views

Section heading with shaded background spanning \textwidth, with uniform baseline

I’m trying to adapt one of the answers to this question so that only the section text, and not the section number, has a coloured background. Unfortunately the use of \parbox seems to result in a non-...
0
votes
0answers
90 views

parbox doesn't span text over two columns

In the document I'm writing I need to use a parbox with long text. The problem is that the text inside the parbox doesn't span over two columns. How to make the text inside continue to the next column ...
1
vote
2answers
278 views

How can I present these DNA sequences within a table using \pbox?

I've been stuck on this issue for a while now. I have a table containing some DNA sequences, tabularx couldn't figure out where to hyphenate the sequence and the table ran out of the margins of the ...
1
vote
0answers
500 views

How to resize a parbox depending on the actual text width? [closed]

Context I'm working on a pseudocode package to write algorithms with multiline support. Then, long lines can be broken and the proper identation is handled accordingly. I do the job with parboxes. ...
0
votes
1answer
57 views

vertical alignment of parbox one below the other

I want to align all the parboxes vertically so that the left corners are are equally offset from the dates which are in the left side \documentclass{article} \usepackage{enumitem} \usepackage{...
2
votes
1answer
52 views

Unwanted space between parbox and following paragraph in custom command

I've created a custom command for CV entries. Unfortunately, the spacing between those entries is different, if there is only one line of text in the parbox. The following image shows the problem. My ...
3
votes
2answers
164 views

Same text alignment inside a parbox as the environment where it is

How \parbox could "inherit" the "alignment mode" used in the environment where it is called? In other words, how can I automate the text alignment setting into a \parbox, in order to take the same ...
3
votes
2answers
126 views

Vertically centered material in fixed height rows in tabular environment

The goal is to obtain a table with fixed height rows, and to place the material inside -certain- cells vertically centered. Looking for a robust and simple way, I have worked on this idea: \...
0
votes
0answers
93 views

adjust padding/width of parbox to make space for logos?

I am using the tikzposter class to create a poster for a conference. For conference posters I've typically included two logos, one on either side of the title box, but in this case the box isn't ...
2
votes
1answer
91 views

Alignment of a section in a parbox itself in a tabular cell

Let's go, Here is the result my .tex file gives me now : Here is the result I want : (see the "2" position on the right side, image obtained by replacing \cellcolor{blue!25} \colorbox{green}{\...
2
votes
1answer
277 views

How to make a parbox with rubber width (like \hfill)

I have two parboxes that live next to each other: \parbox[t]{2cm}{Foo!} \hspace{3em} \parbox[t]{12cm}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ...
2
votes
0answers
802 views

fbox of parbox of textwidth length is too wide

I was implementing the code found in this Q/A How to put a long piece of text in a box? to create a command for a paragraph text inside a framed box. However the box goes too far into the margin ...