Skip to content

Commit 3f0bbf2

Browse files
committed
tidy up
1 parent 046ac6c commit 3f0bbf2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

chemobabel.sty

+7-7
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
\fi
7575

7676
%% ----- Make a directory for images -----
77-
\newcommand\chemobabelimgdir{chemobabelimgdir}
78-
\chemob@bel@exec{mkdir \chemobabelimgdir}
77+
\def\chemob@bel@imgdir{chemobabelimgdir}
78+
\chemob@bel@exec{mkdir \chemob@bel@imgdir}
7979

8080
%% ----- Definition of external commands -----
8181
\def\smilesob@bel@obabelcmd#1#2{obabel -:"#1" -O \smilesob@belGetName.svg #2}
@@ -135,7 +135,7 @@
135135
%% ----- Definition of \smilesobabel -----
136136
\newcounter{smilesob@belCounter}
137137
\setcounter{smilesob@belCounter}{1}
138-
\newcommand\smilesob@belPrefix{\chemobabelimgdir/smilesobabelimg}
138+
\newcommand\smilesob@belPrefix{\chemob@bel@imgdir/smilesobabelimg}
139139
\newcommand\smilesob@belGetName{\smilesob@belPrefix\arabic{smilesob@belCounter}}
140140

141141
% 1: (optional) options for includegraphics
@@ -176,7 +176,7 @@
176176
%% ----- Definition of \chemobabel -----
177177
\newcounter{chemob@belCounter}
178178
\setcounter{chemob@belCounter}{1}
179-
\newcommand\chemob@belPrefix{\chemobabelimgdir/chemobabelimg}
179+
\newcommand\chemob@belPrefix{\chemob@bel@imgdir/chemobabelimg}
180180
\newcommand\chemob@belGetName{\chemob@belPrefix\arabic{chemob@belCounter}}
181181

182182
% 1: (optional) options for includegraphics
@@ -385,9 +385,9 @@
385385
\chemob@bel@ifnochem{}{%
386386
\chemob@bel@warn{%
387387
Some chemical structures are extracted.\MessageBreak
388-
Run 'pdflatex -shell-escape ChemFigFile.tex'}}%
388+
Run 'pdflatex -shell-escape \chemob@bel@outname.tex'}}%
389389
}
390-
% \smilesobabel*[#1]{#2} => normalized to \smilesobabel[#1]{#2}{#3}
390+
% \smilesobabel*[#1]{#2} => normalized to \smilesobabel[#1]{#2}{}
391391
\renewcommand\smilesobabel@i{%
392392
\begingroup
393393
\let\do\@makeother \dospecials \catcode`\{=1 \catcode`\}=2
@@ -412,7 +412,7 @@
412412
\string\newpage}%
413413
[\smilesob@belGetName.\chemob@belimgExt]%
414414
\addtocounter{smilesob@belCounter}{1}}
415-
% \chemobabel*[#1]{#2} => normalized to \chemobabel[#1]{#2}{#3}
415+
% \chemobabel*[#1]{#2} => normalized to \chemobabel[#1]{#2}{}
416416
\renewcommand\chemobabel@i{%
417417
\begingroup
418418
\let\do\@makeother \dospecials \catcode`\{=1 \catcode`\}=2

0 commit comments

Comments
 (0)