I tried resizing a \parbox
-d text into a 5cm x 5cm
square box (without keeping the aspect ratio). The output is absolutely strange to me, even if I don't specify the height. Couldn't find the cause/culprit. Why does the output happen to be this? Is there a way to do this somehow?
\documentclass{article}
\usepackage{lipsum}
\usepackage{lmodern}
\usepackage[demo]{graphicx}
\begin{document}
\resizebox{5cm}{!}{\parbox{20cm}{\lipsum{1}}}
\includegraphics[width=5cm, height=5cm]{}
\newpage
\resizebox{5cm}{5cm}{\parbox{20cm}{\lipsum{1}}}
\includegraphics[width=5cm, height=5cm]{}
\end{document}
I've some tried some possibilities like \parbox[t][][t]...
but the output was even worse that way.
\parbox
is, by default, centered on the baseline, whereas the\includegraphics
sits on the baseline. Try\parbox[b]