%% %% Ein Beispiel der DANTE-Edition %% %% 7. Auflage %% %% Beispiel 04-05-2 auf Seite 60. %% %% Copyright (C) 2016 Herbert Voss %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% %% See http://www.latex-project.org/lppl.txt for details. %% %% %% ==== % Show page(s) 1 %% %% \documentclass[]{exaarticle} \pagestyle{empty} \setlength\textwidth{217.16928pt} \setlength\parindent{0pt} \usepackage[utf8]{inputenc} %StartShownPreambleCommands \usepackage{pstricks} %StopShownPreambleCommands \begin{document} \begin{pspicture}[showgrid](0,-0.5)(8,6) \psTextFrame[linecolor=lightgray,ref=l](0,0.5)(4,1.5){Hallo} \psTextFrame[linecolor=blue](2,4)(4,6){\color{blue}Hallo} \psTextFrame*[linecolor=red!40,ref=lB](7,4)(8,6){\Huge H} \psTextFrame*[linecolor=blue!40,ref=rt](7,1)(8,3){\Huge H} \psTextFrame[linestyle=dashed](4.5,0)(6.5,6){\parbox{2cm}{\centering Hier kommt Text in einer \texttt{\textbackslash parbox}, der über mehrere Zeilen geht und dennoch horizontal und vertikal zentriert erscheint.}} \psTextFrame*[linecolor=cyan!20,rot=90](.5,2)(1.5,6){\parbox{4cm}{\centering Hier kommt Text über mehrere Zeilen, der zudem gedreht ist.}} \end{pspicture} \end{document}