summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx')
-rw-r--r--Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx b/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
index fb90e48a8d7..7b148c0f95b 100644
--- a/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
+++ b/Master/texmf-dist/source/latex/chemstyle/chemscheme.dtx
@@ -667,9 +667,9 @@ An example file for PDFLaTeX use.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\def\csh@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${%
- #5/#6/#7\space v1.4\space}
+ #5/#6/#7\space v1.4a\space}
\ProvidesPackage{chemscheme}
- [\csh@id $Id: chemscheme.dtx 45 2008-07-23 11:27:13Z joseph $
+ [\csh@id $Id: chemscheme.dtx 48 2008-07-31 19:22:43Z joseph $
Support for chemical schemes]
% \end{macrocode}
%\end{macro}
@@ -838,11 +838,18 @@ An example file for PDFLaTeX use.
\floatname{scheme}{\schemename}
\newcommand*{\listofschemes}{%
\listof{scheme}{\listschemename}}}
+% \end{macrocode}
+%\changes{v1.4a}{2008/07/31}{Fixed bug with float definition, \pkg{floatrow}
+% and chapters}
+% Using \pkg{floatrow}, the definition depends on whether chapters
+% are in use.
+% \begin{macrocode}
\newcommand*{\csh@makesch@floatrow}{%
- \DeclareNewFloatType{scheme}
- {fileext=los,placement=tbp,name=Scheme}
- \@ifundefined{chapter}{}
- {\floatsetup[scheme]{within=chapter}%
+ \@ifundefined{chapter}
+ {\DeclareNewFloatType{scheme}
+ {fileext=los,placement=tbp,name=Scheme}}
+ {\DeclareNewFloatType{scheme}
+ {fileext=los,placement=tbp,name=Scheme,within=chapter}%
\csh@fixchapter}%
\newcommand*{\listofschemes}{%
\listof{scheme}{\listschemename}}}