You can use a minipage or a vbox inside the \phantom
-macro to get the real size.
With the blindtext inside a minipage you may get problems at pagebreaks, but a \vbox
should do the work.
Check this example:
\documentclass{scrartcl}
\usepackage{blindtext}
\begin{document}
%Wrong
\fbox{
\phantom{\blindtext}
}
%Problems on page breaks
\fbox{
\phantom{\begin{minipage}{\textwidth}\blindtext\end{minipage}}
}
% The solution?
\fbox{%
\phantom{\vbox{\blindtext}}%
}
\fbox{\phantom{\vbox{\blindtext}}}
\end{document}
The \fbox
es are added to make the space visible. They are not part of the solution.
Based on the comment, I expect this is a MWE for the problem:
\documentclass[twocolumn,english]{scrartcl}
\usepackage{babel}
\usepackage{blindtext}
\begin{document}
pre1: \blindtext
pre2: \blindtext
% \phantom{\blindtext}% One long line
\phantom{\vbox{\blindtext}}%correct paragraph, but in one block.
after \blindtext
\end{document}
Maybe there is another solution, but I don't expect that it can be solved with \phantom
. See also Phantom and line break
\textcolor{white}{\blindtext}
. – leandriis Feb 12 '18 at 13:43transparent
... – Jasper Habicht Feb 12 '18 at 19:46