summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/23-01-5.ltx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/PSTricks_en/23-01-5.ltx
Initial commit
Diffstat (limited to 'info/examples/PSTricks_en/23-01-5.ltx')
-rw-r--r--info/examples/PSTricks_en/23-01-5.ltx50
1 files changed, 50 insertions, 0 deletions
diff --git a/info/examples/PSTricks_en/23-01-5.ltx b/info/examples/PSTricks_en/23-01-5.ltx
new file mode 100644
index 0000000000..7f4be23ee9
--- /dev/null
+++ b/info/examples/PSTricks_en/23-01-5.ltx
@@ -0,0 +1,50 @@
+%%
+%% A DANTE-Edition example
+%%
+%% Example 23-01-5 on page 335.
+%%
+%% Copyright (C) 2011 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[]{article}
+\pagestyle{empty}
+\setlength\textwidth{201.70511pt}
+\setlength\parindent{0pt}
+
+\usepackage{pst-3d,pstricks-add,textcomp}
+
+\begin{document}
+\def\CMD#1{\texttt{\textbackslash#1}}
+\begin{pspicture}(0,-0.5)(9,3)
+\psline[linestyle=dashed](0,2)(9,2)
+\psaxes[yAxis=false,tickstyle=bottom](9,0.01)
+\def\Bar{\psframe*[linecolor=lightgray](0,0)(0.5,2)}
+%
+\rput(0.5,0){\Bar}
+\psset{arrowscale=2,linewidth=0.1pt,tbarsize=2mm}
+\psline{|<->|}(0.25,0)(0.25,2)\rput*{90}(0.25,1){\small 2cm}
+%
+\rput(2,0){\psTilt{30}{\Bar}}
+\psarc{->}(2.2,0){2}{0}{26}\rput(4.5,0.5){30\textdegree}
+\pnode(2,0.3){A}\pnode(5.3,2.25){B}
+\ncline{|<->|}{A}{B}\ncput*[nrot=:U]{\small 4cm}
+%
+\rput(6,0){\pstilt{30}{\Bar}}
+\psarc{->}(6.2,0){2}{0}{26}\rput(8.5,0.5){30\textdegree}
+\pnode(6,0.3){A}\pnode(7.65,1.25){B}
+\ncline{|<->|}{A}{B}\ncput*[nrot=:U]{\small 2cm}
+%
+\uput[90](0.5,2.3){\CMD{Bar}}
+\uput[90](3.75,2.3){\CMD{psTilt\{30\}\{\textbackslash Bar\}}}
+\uput[90](7.25,2.3){\CMD{pstilt\{30\}\{\textbackslash Bar\}}}
+\end{pspicture}
+\end{document}