Skip to content

Commit e6190e4

Browse files
committed
chemobabel.dtx: a bit more
1 parent f934c91 commit e6190e4

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,29 @@ ChemDraw files or SMILES notations using Open Babel.
77
This package offers a new choice for chemists who need
88
chemical structures in LaTeX documents.
99
With this package you can insert chemical structural formulas
10-
into your PDF files easily with the help of Open Babel and Inkscape.
10+
into your documents easily with the help of Open Babel.
1111

1212
Various chemical formats are allowed for input,
1313
for example, `.cdx`, `.mol` and `.smi`.
1414

1515
## Package Contents
1616

17-
- chemobabel.sty: Package itself
17+
- chemobabel.sty: Package itself; provides `\chemobabel` and `\smilesobabel`
1818
- chemobabel-{en,ja}.pdf: Basic usage (source: chemobabel.dtx)
1919
- example-en.{tex,pdf}: Examples in English
2020
- example-ja.{tex,pdf}: Examples in Japanese
2121

2222
Sample ChemDraw files and MDL Molfiles are also included.
2323

24+
## Requirements
25+
26+
To use this LaTeX package, it is necessary to enable execution
27+
of the following external commands via `latex -shell-escape`.
28+
29+
- `obabel` (Open Babel)
30+
- `inkscape` or `rsvg-convert` (for SVG -> PDF/EPS conversion)
31+
- `pdfcrop` or `ps2eps` (optional; for cropping large margins of PDF/EPS)
32+
2433
## License
2534

2635
This package is distributed under the BSD 2-Clause License.

chemobabel.dtx

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
\usepackage[nofontspec,defaultsups]{newpxtext}
1818
\usepackage[zerostyle=c,straightquotes]{newtxtt}
1919
\usepackage{newpxmath}
20+
\usepackage{ascmac}
2021
\usepackage[librsvg]{chemobabel}
2122
\usepackage[bookmarksnumbered=true,hidelinks,%
2223
pdftitle={User Manual for chemobabel.sty},%
@@ -123,6 +124,32 @@ becomes wrong.\\ See \url{https://github.com/openbabel/openbabel/issues/338}
123124
%<ja>問い合わせや改善案などはGitHubのIssuesへお願いします。
124125
\end{figure}
125126

127+
\begin{figure}[ht]
128+
\centering
129+
%<en>Also available on CTAN:
130+
%<ja>CTANからも入手可能です →
131+
\url{https://www.ctan.org/pkg/chemobabel}\par
132+
%<en>Distributed with \TeX\ Live and MiK\TeX.
133+
%<en>Below is a short description for CTAN:\par
134+
%<ja>\TeX\ LiveやMiK\TeX でも配布されています。
135+
%<ja>以下はCTANの短い紹介文です。\par
136+
\begin{screen}
137+
This package provides a way to convert and include
138+
chemical structure graphics from various chemical formats,
139+
such as ChemDraw files, MDL molfile or SMILES notations
140+
using Open Babel.
141+
To use this \LaTeX\ package, it is necessary to enable execution
142+
of the following external commands via \Lcode{latex -shell-escape}.
143+
\begin{itemize}
144+
\item \Lcode{obabel} (Open Babel)
145+
\item \Lcode{inkscape} or \Lcode{rsvg-convert}
146+
(for SVG -> PDF/EPS conversion)
147+
\item \Lcode{pdfcrop} or \Lcode{ps2eps}
148+
(optional; for cropping large margins of PDF/EPS)
149+
\end{itemize}
150+
\end{screen}
151+
\end{figure}
152+
126153
\clearpage
127154
\setcounter{tocdepth}{3}
128155
\tableofcontents

0 commit comments

Comments
 (0)