1

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[utf8]{inputenc}
\usepackage{lipsum}
\begin{document}
\section{Introduction}
\parbox[t]{0.15\textwidth}{\textbf{Intro}}
\parbox[t]{0.8\textwidth}{\lipsum}
\end{document}

enter image description here

2
  • Please add some clarifications. Will your document contain more of these pairs of a short word and a long text? Probably something like a customized description environment could be useful instead of the parboxes.
    – leandriis
    Commented Jun 4, 2020 at 14:31
  • do not use a box, they are not breakable, this should be set as a description list. Commented Jun 4, 2020 at 14:57

1 Answer 1

2

Boxes are unbreakable, you want a list here:

enter image description here

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{enumitem}
\begin{document}
\section{Introduction}
\begin{description}[leftmargin=70pt,labelwidth=60pt,labelsep=10pt]
\item[Intro]
\lipsum 
\end{description}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .