summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lewis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-05-29 17:31:07 +0000
committerKarl Berry <karl@freefriends.org>2006-05-29 17:31:07 +0000
commit0fa508b270dee7a028a8ad97bf2482b6ab09b983 (patch)
treed5c92b6082f7dfffb76f4233c91858eeebba0159 /Master/texmf-dist/tex/latex/lewis
parent279d9d8590eec42bd05bfad15109c83af050d5cd (diff)
new latex package lewis
git-svn-id: svn://tug.org/texlive/trunk@1611 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lewis')
-rw-r--r--Master/texmf-dist/tex/latex/lewis/lewis.sty26
1 files changed, 26 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lewis/lewis.sty b/Master/texmf-dist/tex/latex/lewis/lewis.sty
new file mode 100644
index 00000000000..16e65158762
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lewis/lewis.sty
@@ -0,0 +1,26 @@
+% lewis.sty version 0.1 22-May-2006.
+% Kent Horvath kenthorvath@gmail.com
+% I contribute this software to the public domain. No rights reserved.
+%
+% Commands:
+% ~~~~~~~~~
+% \lewis {X}{.}{.}{.}{.}{.}{.}{.}{.}{.}{.} - Draws rudimentary lewis structures around
+% - desired symbol X. Each {.} may be replaced
+% - by the desired symbol to be placed at the
+% - corresponding position. Note that the dots
+% - are drawn clockwise starting in the lower
+% - left hand side of the symbol X.
+% Examples:
+% ~~~~~~~~
+% The Lewis Structure for XeF_2 is
+% \lewis{\ce{F}}{.}{.}{.}{.}{}{}{.}{.}--\lewis{Xe}{}{.}{.}{.}{.}{}{.}{.}--\lewis{F}{}{}{.}{.}{.}{.}{.}{.}
+%
+% Caution:
+% ~~~~~~~
+% This package is provided without guarantees or support. I don't recommend
+% that you use this package at all.
+
+\ProvidesPackage{lewis}[2006/05/22 v0.1 Draw Lewis Structures]
+
+\providecommand{\lewis}[9]{ \mbox{\ensuremath{ \begin{array}{c} _{#4 \,\, #5}\\ \raisebox{0.25em}{\ensuremath{^{#3}_{#2}}}\,\mbox{#1}\, \raisebox{0.25em}{\ensuremath{^{#6}_{#7}}}\\ \raisebox{0.3em}{\ensuremath{^{#9 \,\, #8}}}\\ \end{array}}}}
+