0

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

  • 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 Jun 4 '20 at 14:31
  • do not use a box, they are not breakable, this should be set as a description list. – David Carlisle Jun 4 '20 at 14:57
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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.