i have an example like
Code: Select all
Note: Example text that is in a parbox
because it is longer than one line
Other text that has a somehow to short distance to the line above
Code: Select all
\documentclass[a4paper,10pt]{article}
\begin{document}
Note: \parbox[t]{4cm}{Example text that is in a parbox because it is longer than one line.}\\
Other text that has a somehow \\to short distance to the line above
\end{document}
I'd like to have a command like
Code: Select all
\usepackage{linegoal}
\newcommand{\lgbox}[1]{\parbox[t]{\linegoal}{#1}\\}
\newcommand{\note}[1]{Note: \lgbox{#1}}
Is the parbox the way i used it overall a bad idea? Or exists some command for this matter already?