summaryrefslogtreecommitdiff
path: root/graphics/chemobabel/example-en.tex
blob: 86f01f643507006bed4bcd7fbcdf94b37106e23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%#! 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.
% Note: \smilesobabel* and \chemobabel* are provided since 2022-10-09.

\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}