summaryrefslogtreecommitdiff
path: root/graphics/chemobabel/example-en.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-09-20 03:01:38 +0000
committerNorbert Preining <norbert@preining.info>2022-09-20 03:01:38 +0000
commit7907f67d07d36a7e20421a1ec3a0eceecac4aacd (patch)
tree7aae41d00037cc944480cecfa75b88048a672970 /graphics/chemobabel/example-en.tex
parentfe872ca5d5d1bb989da6b31802b8e0bfb0342e45 (diff)
CTAN sync 202209200301
Diffstat (limited to 'graphics/chemobabel/example-en.tex')
-rw-r--r--graphics/chemobabel/example-en.tex50
1 files changed, 50 insertions, 0 deletions
diff --git a/graphics/chemobabel/example-en.tex b/graphics/chemobabel/example-en.tex
new file mode 100644
index 0000000000..3f98668adf
--- /dev/null
+++ b/graphics/chemobabel/example-en.tex
@@ -0,0 +1,50 @@
+%#! Usage:
+% * To typeset all at once:
+% $ pdflatex -shell-escape example-en.tex (without ``extract'' option)
+% * To typeset more safely:
+% $ pdflatex example-en.tex (with ``extract'' option: \usepackage[extract]{chemobabel})
+% $ pdflatex -shell-escape ChemFigFile.tex (auto-generated pdfLaTeX source)
+% $ pdflatex example-en.tex (without ``extract'' option)
+
+\documentclass{article}
+\usepackage[librsvg]{chemobabel}
+
+\title{An Example for \textsf{chemobabel} Package}
+\author{Acetaminophen}
+\begin{document}
+\maketitle
+
+The formulas below are generated using \textsf{chemobabel} package with the help of Open Babel and Inkscape.
+
+\begin{figure}[ht]
+ \centering
+ \smilesobabel{CCO}{}
+ \caption{Ethanol}
+\end{figure}
+
+\begin{figure}[ht]
+ \centering
+ \smilesobabel[scale=0.8]{C1[C@H](C)C[C@@H](O)C1}{}
+ \caption{(1\textit{S},3\textit{S})-3-Methylcyclopentanol}
+\end{figure}
+
+\begin{figure}[ht]
+ \centering
+ \smilesobabel[scale=0.7]{Cl/C=C/Br}{}
+ \smilesobabel[scale=0.7]{Cl/C=C\Br}{}
+ \caption{(\textit{E})-1-bromo-2-chloroethene \& (\textit{Z})-1-bromo-2-chloroethene}
+\end{figure}
+
+\begin{figure}[ht]
+ \centering
+ \chemobabel[scale=0.6]{draw/ATP.cdx}{-xd}
+ \caption{ATP (Adenosine triphosphate)}
+\end{figure}
+
+\begin{figure}[ht]
+ \centering
+ \chemobabel[scale=0.4]{draw/Brevetoxin A.mol}{}
+ \caption{Brevetoxin A}
+\end{figure}
+
+\end{document}