diff options
author | Karl Berry <karl@freefriends.org> | 2011-02-24 23:36:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-02-24 23:36:18 +0000 |
commit | 2a886fbce3b9f2ed32e02e952d4b300e6e3dd7b4 (patch) | |
tree | 1e795c05f0261278a6d0889ad79c977485ec6e5c /Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx | |
parent | 9b3b61b4613379d47f4dc1700f76efc1c1dbfced (diff) |
new german doc pstricks examples (23feb11)
git-svn-id: svn://tug.org/texlive/trunk@21511 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx')
-rw-r--r-- | Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx b/Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx new file mode 100644 index 00000000000..43b2154c58e --- /dev/null +++ b/Master/texmf-dist/doc/latex/pstricks-examples/36-00-58.ltx @@ -0,0 +1,68 @@ +%% +%% 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{190.324pt} +\setlength\parindent{0pt} +\StartShownPreambleCommands +\usepackage{pstricks,pst-node,pst-slpe} +\def\OneDot{\psdot(0,0)} +\def\TwoDots{\psdots(0,0.2)(0,-0.2)} +\def\ObjectA{% + \pscircle[fillstyle=ccslope,slopebegin=white,slopeend=blue, + slopecenter=0.2 0.5](0.5,0.5){0.55}} +\def\ObjectB{% + \psccurve[fillstyle=ccslope,slopebegin=white,slopeend=blue, + slopecenter=0.9 0.5](0,0.3)(0.2,0)(0.8,0.1)(1,0.2)(1,0.8)(0.8,0.9)(0.2,1)(0,0.8)} +\def\ObjectC#1{% + \psccurve[fillstyle=solid,fillcolor=red!10]% + (0,0.3)(0.2,0)(0.8,0.1)(1,0.2)(1,0.8)(0.8,0.9)(0.2,1)(0,0.8) + \rput(0.5,0.5){#1}} +\def\ObjectD#1{% + \pscircle[fillstyle=solid,fillcolor=red!10](0.5,0.5){0.55} + \rput(0.5,0.5){#1}} +\def\Molecule#1#2#3{% + \pspicture(3,1.1) + \psset{dotscale=1.5}% + \rput(1.3,0.1){\ObjectA} + \rput(0.1,0.1){#1} + \rput{180}(2.9,1.1){#2} + \rput(1,0){\ObjectD{#3}} + \endpspicture% +} +\def\MoleculeA{\Molecule{\ObjectB}{\ObjectC{\TwoDots}}{\OneDot}} +\def\MoleculeB{\Molecule{\ObjectB}{\ObjectC{\OneDot}}{\TwoDots}} +\def\MoleculeC{\Molecule{\ObjectC{\OneDot}}{\ObjectB}{\TwoDots}} +\def\MoleculeD{\Molecule{\ObjectC{\TwoDots}}{\ObjectB}{\OneDot}} + +\StopShownPreambleCommands +\begin{document} +\begin{psmatrix}[colsep=0.5] + [name=MoleculeA] \MoleculeA \\[0pt] + [name=MoleculeB] \MoleculeB & [name=MoleculeC] \MoleculeC \\ + & [name=MoleculeD] \MoleculeD +\end{psmatrix}% Connections and labels +\psset{arrowscale=2} +\ncline[offset=0.2,linewidth=0.15]{MoleculeA}{MoleculeB} +\ncline[offset=0.2,linewidth=0.15]{MoleculeC}{MoleculeD} +\ncarc[offset=-0.4,arcangle=60]{MoleculeB}{MoleculeC} +\naput{\psline[linestyle=dashed]{<-}(1,2)\rput[l](1.2,2){singlet coupling}} +\ncbar[linestyle=dashed,angleA=-60,angleB=-135,armB=0]{<->}{MoleculeB}{MoleculeC} +\nbput[npos=0.9]{lone pair repulsion} +\nbput[npos=0.2]{$\pi_2$} +\nbput[npos=1.8]{$\pi_3$} +\end{document} |