Questions tagged [parbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
51 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 ...
3
votes
1answer
25 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
26 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
61 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
46 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
15 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
24 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
21 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
58 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
64 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
39 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
35 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
42 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
64 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 ...
0
votes
0answers
19 views

How to smartly adjust parbox in table footer?

For the "Notes" in such tables I always need several attempts to find the right value – here .77 – for the \parbox{.77\linewidth} so that the notes stretch over the entire footer, but they don't pull ...
1
vote
0answers
95 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
36 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
40 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
56 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
97 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
58 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
84 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
108 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
278 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 ...
1
vote
1answer
70 views

Is it possible to redirect unbalanced braces (`{` and `}`) into a tabular column?

This question is a follow up to my previous question: Is it possible to use > and < to pipe opening and closing braces on each side of a cell's content? To be more specific, what I want is to ...
1
vote
1answer
61 views

Space above parbox too small when it has newlines

I have the following MWE: \documentclass{article} \begin{document} qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq \parbox{\linewidth}{ \centering\large AAA qqq XXX \\ qqq AAA qqq } ...
0
votes
2answers
77 views

Some items in enumerate jump left out of margin

I have a boxed list in latex, and for some reason some items jump out of the box out of the left margin. I cannot figure out what is causing this and already have searched and tried some fixes. The ...
0
votes
2answers
105 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
106 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
171 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
94 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
371 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\...
3
votes
1answer
546 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
191 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
68 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
66 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
83 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
63 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
124 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 ...
1
vote
1answer
857 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
128 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 ...
8
votes
3answers
902 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
540 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
61 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
123 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
476 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
82 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
50 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
108 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
190 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, ...