diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-19 18:54:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-19 18:54:54 +0000 |
commit | 2d248026682e0a02fa2b004a0ad2f13f57d8535c (patch) | |
tree | 7088bbd745de030191c2d843c4b3f4d9d5c46d91 /Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty | |
parent | eecee5a57aa7fbeb22e0df8440fb3b06c5117fc7 (diff) |
move german latex docs out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty new file mode 100644 index 00000000000..ed24913d803 --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/echem.sty @@ -0,0 +1,81 @@ +% ECHEM.STY +\RequirePackage{calc} + +\newsavebox{\cbox} + +% Symbol fuer einzelnes Elektron +\newcommand{\echdot} +{{\unitlength=.08\baselineskip% + \begin{picture}(0,0) + \put(0,0){\circle*{2}} + \end{picture}}} +% liegender Balken fuer Elektronenpaar +\newcommand{\echhbar} +{{\unitlength=.08\baselineskip% + \linethickness{0.8\unitlength}% + \begin{picture}(0,0) + \put(-3,0){\line(1,0){6}} + \end{picture}}} +% aufrechter Balken fuer Elektronenpaar +\newcommand{\echvbar} +{{\unitlength=.08\baselineskip% + \linethickness{0.8\unitlength}% + \begin{picture}(2,0)(-1,0) + \put(0,-3){\line(0,1){6}} + \end{picture}}} + +% die horizontalen Symbole (upper und lower) +\newcommand{\hdu}[2][\echdot] +{\sbox{\cbox}{#2}% + \makebox[0pt][l]{\raisebox{1.3\ht\cbox} + {\makebox[\wd\cbox]{#1}}}% +} +\newcommand{\hddu}[1] +{\sbox{\cbox}{#1}% + \makebox[0pt][l]{\raisebox{1.3\ht\cbox} + {\makebox[\wd\cbox] + {\echdot\hspace*{0.6\ht\cbox}\echdot}}}% +} +\newcommand{\hdl}[2][\echdot] +{\sbox{\cbox}{#2}% + \makebox[0pt][l]{\raisebox{-\dp\cbox-0.3\ht\cbox} + {\makebox[\wd\cbox]{#1}}}% +} +\newcommand{\hddl}[1] +{\sbox{\cbox}{#1}% + \makebox[0pt][l]{\raisebox{-\dp\cbox-0.3\ht\cbox} + {\makebox[\wd\cbox] + {\echdot\hspace*{0.6\ht\cbox}\echdot}}}% +} + +% die vertikalen Symbole +\newcommand{\vd}[2][\echdot] +{\sbox{\cbox}{#2}\hspace*{0.1\ht\cbox}% + \raisebox{0.5\ht\cbox}{#1}% + \hspace*{0.1\ht\cbox}% +} +\newcommand{\vdd}[1] +{\sbox{\cbox}{#1}\hspace*{0.1\ht\cbox}% + \makebox[0pt][l]{\raisebox{0.2\ht\cbox}{\echdot}}% + \raisebox{0.8\ht\cbox}{\echdot}% + \hspace*{0.1\ht\cbox}% +} + +% liegende eckige Klammer unten +\newcommand{\atomconnect}[3] +{\sbox{\cbox}{#1#2#3}% + \makebox[0pt][l]% + {\raisebox{-\dp\cbox-.5em}[0pt][1em]% + {\makebox[\wd\cbox][l]{% + \sbox{\cbox}{#1}\hspace{.5\wd\cbox}% + \rule{0.5pt}{0.5em}\hrulefill\rule{0.5pt}{0.5em}% + \sbox{\cbox}{#3}\hspace{.5\wd\cbox}}% + }}% + #1#2#3} + +% einige hilfreiche Abk"urzungen +\newcommand{\2}{\ensuremath{_2}} +\renewcommand{\3}{\ensuremath{_3}} +\newcommand{\sbond}{\,\ensuremath{\cdot}\,} +\newcommand{\dbond}{\,=\,} + |