LaTeX Parbox and Minipage Tutorial

Опубликовано: 17 Апрель 2026
на канале: Zone Stomper
2,428
10

Parboxes & Minipages
Parboxes & minipage environments are similar concepts. They
both allow you to put one or more paragraphs inside of them. In
basic terms, they are boxes for holding paragraphs. Minipages
give you a little more wiggle room as to what they will allow
you to get away with. For example, they permit you to include
\verb commands as well as verbatim environments.
Parbox Section
The text that you are reading now is inside of a parbox container.
It’s width has been set at fourteen centimeters. There are two
mandatory parameters that must be specified. The first is the
width and the second is the text that you are reading.
Minipage Section
Congratulations. Good work. You have entered
a minipage environment. It’s width has
been set at ten centimeters. That number can
be adjusted to suit your needs.
Here, we can include a verbatim environment
if that is to our liking. Check it out:
This is a Python comment.
txt0 = ‘And that concludes our talk’
txt1 = ‘about parboxes and minpages.’
print(txt0 + txt1)
And that concludes our talk about parboxes
and minpages.
LATEX Tutorial Series - ZONE STOMPER
LATEX Parboxes & Minipages
Code Guide:
Experiment - The best way to learn coding is with a keyboard. If you can learn how to type, you
can learn how to code. Use any text editor. I recommend TEXworks.
Own It - If you want to learn typesetting, you probably have something to say. It will be easier for
you to understand the markup if you apply it to your own ideas. Try injecting those ideas into
your documents. Typesetting is all about improving the appearance of content.
File Extension - Always use the .tex file extension. Example: hello world.tex
Code Modifications - Pay attention to lines with comments. Don't type
the comments. Just follow along with the modifications. Typing will help you learn coding.
Line Numbers - Don't type the line numbers into your LATEX code or it will not compile. Line
numbers are for reference only.
Code Demos - All code blocks are followed by resized images of .pdf documents produced from those
code blocks using pdfLATEX. An automated process was used to avoid typos or coding errors.

Enjoy!

Subscribe to Zone Stomper for more tutorials on typesetting, LaTeX, TeX and TikZ.

Merchandise:
https://www.etsy.com/shop/KurtPrintOn...