I have this command \loremlines{n} which makes n lines of lipsum text. However, it does not work well with \lettrine (as seen below). I also want to be able to use the command in other environments as well, and thus want a more "general" command \loremlines that can be used in a lot of situations, not just with lettrine.
MWE:
\documentclass{article}
\usepackage{lettrine}
\usepackage{lipsum,multicol}
% This is from a .sty file:
\RequirePackage{parskip}
\newbox\one
\newbox\two
\long\def\loremlines#1{%
\setbox\one=\vbox {%
\lipsum%
}
\setbox\two=\vsplit\one to #1\baselineskip
\unvbox\two}
\begin{document}
\lettrine{1}{} \textbf{Step 1} \loremlines{3}
\section{\loremlines{1}}
\begin{center}
\begin{tabular}{|p{0.47\textwidth}|p{0.47\textwidth}|}
\hline
{\loremlines{2} } & {\loremlines{3} } \
\hline
\end{tabular}
\end{center}
\loremlines{2}
\end{document}
Result:
Result without parskip (almost desired output):
I would like for the text to continue on the same line as "step 1".
Alternativley, I can live with a command that prints n words of lipsum.
To be clear: I just want the command to print words from lipsum, that is approximatley n lines long. Is there some way of counting LaTeX line breaks and just keep printing words untill n line breaks have been reached? I want it to follow whatever formatting it currently is in. If it is called in the middle of a paragraph, it should just keep going inside that paragraph without starting a new one.


