1

Like this

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\frame{\vbox to .3\textheight{
    \lipsum[1]\lipsum[10]\
}}
\end{document}

i only need the text within the frame

1

This is most likely an overkill. With TikZ you can use clip. (Update: Typo corrected, big thanks to frougon.)

\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\newlength\myindent
\begin{document}
\myindent=\parindent%
\begin{tikzpicture}
\clip (0,0) rectangle (\textwidth,-0.3\textheight);
\node[anchor=north west,text width=\textwidth,inner sep=0pt,outer sep=0pt,
align=justify] at (0,0){\hspace{\myindent}\lipsum[1]\lipsum[10]};
\end{tikzpicture}

\bigskip

\frame{\vbox to .3\textheight{
    \lipsum[1]\lipsum[10]\
}}
\end{document}

enter image description here

  • 1
    Hello, didn't you mean \clip (0,0) rectangle (\textwidth,-0.3\textheight); (i.e., 0.3\textheight instead of 0.3\textwidth)? – frougon Jan 1 at 7:52

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.