summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/30-02-12.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/PSTricks_en/30-02-12.ltx')
-rw-r--r--info/examples/PSTricks_en/30-02-12.ltx35
1 files changed, 35 insertions, 0 deletions
diff --git a/info/examples/PSTricks_en/30-02-12.ltx b/info/examples/PSTricks_en/30-02-12.ltx
new file mode 100644
index 0000000000..25e254c717
--- /dev/null
+++ b/info/examples/PSTricks_en/30-02-12.ltx
@@ -0,0 +1,35 @@
+%%
+%% A DANTE-Edition example
+%%
+%% Example 30-02-12 on page 592.
+%%
+%% 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{375.57637pt}
+\setlength\parindent{0pt}
+
+\usepackage{pstricks-add}
+\def\someMath{$\int\limits_1^{\infty}\frac{1}{x^2}\,\mathrm{d}x=1$}
+
+\begin{document}
+\begin{pspicture}(12cm,2cm)
+\psbrace(0,0)(0,2){\fbox{text}}\psbrace[nodesepB=1ex](1.5,0)(1.5,2){\fbox{text}}
+\psbrace[ref=lC](3,0)(3,2){\fbox{text}}
+\psbrace[ref=lt,rot=90,nodesepB=15pt](4.5,0)(4.5,2){\fbox{text}}
+\psbrace[ref=lc,nodesepA=25pt](6,0)(6,2){\someMath}
+\psbrace[rot=90,ref=C,nodesepA=10pt](8.5,0)(8.5,2){\someMath}
+\psbrace*[rot=90,ref=C,nodesepA=-10pt,linecolor=cyan](11.3,2)(11.3,0){\color{cyan}\someMath}
+\end{pspicture}
+\end{document}