Skip to content

Commit

Permalink
Fix section counter in appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
liboyue committed Feb 4, 2020
1 parent 5a93e77 commit fce9412
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jmlr2e.sty
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
% be invented.)
% Last edited June 17, 2019 Fabian Pedregosa
% Added a preprint option
% Last edited February 3, 2020 Boyue Li
% Fixed section counter in appendix
%
% The name of this file should follow the article document
% type, e.g. \documentstyle[jmlr]{article}
Expand Down Expand Up @@ -345,7 +347,8 @@ are provided at \url{http:https://jmlr.org/papers/v#1/#6.html}.\hfill}}%
\renewcommand{\appendix}{\par
\setcounter{section}{0}
\setcounter{subsection}{0}
\def\thesection{\Alph{section}}
\def\thesection{\Alph{section}}%
\ifdefined\theHsection \def\theHsection{\Alph{section}} \fi%
\def\section{\@ifnextchar*{\@startsiction{section}{1}{\z@}{-0.24in}{0.10in}%
{\large\bf\raggedright}}%
{\@startsiction{section}{1}{\z@}{-0.24in}{0.10in}
Expand Down

0 comments on commit fce9412

Please sign in to comment.