summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_6_de/04-05-2.ltx
blob: 2fa762f97a9bd8924a3d979a62d739be82fe06a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%% 
%%  Ein Beispiel der DANTE-Edition
%% 
%% 
%%  Copyright (C) 2010 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{214.324pt}
\setlength\parindent{0pt}
\usepackage[utf8]{inputenc}
\StartShownPreambleCommands
\usepackage{pstricks}
\StopShownPreambleCommands
\begin{document}
\begin{pspicture}[showgrid=true](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}