summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lewis
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 /macros/latex/contrib/lewis
Initial commit
Diffstat (limited to 'macros/latex/contrib/lewis')
-rw-r--r--macros/latex/contrib/lewis/README12
-rw-r--r--macros/latex/contrib/lewis/lewis.pdfbin0 -> 47067 bytes
-rw-r--r--macros/latex/contrib/lewis/lewis.sty26
3 files changed, 38 insertions, 0 deletions
diff --git a/macros/latex/contrib/lewis/README b/macros/latex/contrib/lewis/README
new file mode 100644
index 0000000000..c588c29f44
--- /dev/null
+++ b/macros/latex/contrib/lewis/README
@@ -0,0 +1,12 @@
+LEWIS.STY - Lewis Structures LaTeX Package Version 0.1
+
+Author: Kent Horvath - 23 May 2006
+
+License: This software is provided as part of the public domain. Do with it as you wish.
+
+Requirements: LaTeX 2e
+
+Usage: \lewis{X}{1}{2}{3}{4}{5}{6}{7}{8}
+
+Where X is the element symbol and 1-8 are the symbols to be placed in the electron dot position where 1 is in the lower left hand corner and 1-8 proceed clockwise around X.
+
diff --git a/macros/latex/contrib/lewis/lewis.pdf b/macros/latex/contrib/lewis/lewis.pdf
new file mode 100644
index 0000000000..49193d5cdb
--- /dev/null
+++ b/macros/latex/contrib/lewis/lewis.pdf
Binary files differ
diff --git a/macros/latex/contrib/lewis/lewis.sty b/macros/latex/contrib/lewis/lewis.sty
new file mode 100644
index 0000000000..16e6515876
--- /dev/null
+++ b/macros/latex/contrib/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}}}}
+