Skip to content

Commit b1f2d2e

Browse files
committed
chemobabel.dtx: show obabel version
1 parent 8ca308f commit b1f2d2e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,6 @@ ChemFigFile.*
171171
*-crop.pdf
172172
chemobabel-en.tex
173173
chemobabel-ja.tex
174+
obversion.txt
174175
00archives/base-*.pdf
175176
00archives/chemobabelimgdir/*

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ chemobabel-en.tex: chemobabel.dtx
1313
chemobabel-ja.tex: chemobabel.dtx
1414
lualatex chemobabel.ins
1515
chemobabel-en.pdf: chemobabel.sty chemobabel-en.tex
16+
obabel -V >obversion.txt
1617
lualatex -shell-escape chemobabel-en.tex
1718
lualatex chemobabel-en.tex
1819
lualatex chemobabel-en.tex
1920
chemobabel-ja.pdf: chemobabel.sty chemobabel-ja.tex
21+
obabel -V >obversion.txt
2022
lualatex -shell-escape chemobabel-ja.tex
2123
lualatex chemobabel-ja.tex
2224
lualatex chemobabel-ja.tex

chemobabel.dtx

+8-6
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ a \LaTeX\ package for \textbf{generating chemical structural formulas}
6464
to be inserted in your documents.
6565
The formulas can be generated \textbf{from many kinds of chemical data
6666
formats}, including MDL Molfiles, ChemDraw files and even from
67-
SMILES notations, with the help of Open Babel and Inkscape.
68-
The formulas below are generated using this method.
67+
SMILES notations, with the help of Open Babel.
68+
The formulas below are generated using this method.\footnote{Unless
69+
otherwise noted, this documentation used \Lcode{\input{obversion.txt}}}
6970

7071
日本語版ドキュメントはchemobabel-ja.pdfを参照してください。
7172
%</en>
7273
%<*ja>
7374
この文書では,\textbf{化学構造式を生成}して\LaTeX の文書中に挿入するための
74-
パッケージである\Lpack{chemobabel.sty}と同梱リソースの使い方を説明します
75+
パッケージである\Lpack{chemobabel.sty}の使い方を説明します
7576
構造式はOpen Babelの機能を利用することにより,MDL Molfile, ChemDrawファイル,
7677
さらにはSMILES表記法を含む\textbf{さまざまな化学データ形式から生成}できます。
77-
以下の構造式はこの方法によって出力されたものです。
78+
以下の構造式はこの方法によって出力されたものです\footnote{特に断りがない
79+
限り,この文書で使用した版は\Lcode{\input{obversion.txt}}です。}。
7880

7981
For English documentation, please refer to chemobabel-en.pdf.
8082
%</ja>
@@ -88,8 +90,8 @@ For English documentation, please refer to chemobabel-en.pdf.
8890

8991
\begin{figure}[ht]
9092
\centering
91-
\chemobabel[width=90mm]{draw/ATP.cdx}{} \hspace{1cm}
92-
\chemobabel*[width=35mm]{draw/Glucose.cdx}
93+
\chemobabel[width=80mm]{draw/ATP.cdx}{} \hspace{1cm}
94+
\chemobabel*[width=30mm]{draw/Glucose.cdx}
9395
\caption{ATP (Adenosine triphosphate) \& Glucose (from ChemDraw files)}
9496
\end{figure}
9597
\begin{center}\small

0 commit comments

Comments
 (0)