Skip to content

Commit

Permalink
Fix issues #1 and #2 about incorrect appendix labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Sep 1, 2017
1 parent cc88f92 commit 6e2d9cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sbmlpkgspec.cls
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Package Specification Style]
\RequirePackage[T1]{fontenc}
\RequirePackage{suffix}
\RequirePackage{varwidth}
\RequirePackage{etoolbox}

% We use the "optional" package to indicate whether to generate a grayscale
% vs a color version of the document without having to alter the .tex file
Expand Down Expand Up @@ -647,7 +648,7 @@ Package Specification Style]

\fancyhf{}

\newcommand{\@footchpsection}{Section \nouppercase{\leftmark}}
\newcommand{\@footchpsection}{\sectionlabel~\nouppercase{\leftmark}}
\newcommand{\@footpage}{Page \thepage\ of \pageref*{LastPage}}

\renewcommand{\footrule}{}
Expand All @@ -656,7 +657,7 @@ Package Specification Style]
\renewcommand{\headrulewidth}{0.25pt}
\renewcommand{\headrule}{}
\lhead{}%
\rhead{\color{mediumgray}\small\textsf{Section \nouppercase{\rightmark}}}%
\rhead{\color{mediumgray}\small\textsf{\sectionlabel~\nouppercase{\rightmark}}}%
\cfoot{}%
\lfoot{\color{mediumgray}\small\textsf{\@footchpsection}}%
\rfoot{\color{mediumgray}\small\textsf{\@footpage}}%
Expand Down Expand Up @@ -1125,6 +1126,8 @@ Package Specification Style]
\newcommand{\apdx}[1]{\appendixlabels\@commonRefNoStar{#1}\normallabels}
\WithSuffix\newcommand\apdx*[1]{\appendixlabels\@commonRefStar{#1}\normallabels}
\apptocmd{\appendix}{\appendixlabels}{}{}
% Misc.
Expand Down

0 comments on commit 6e2d9cf

Please sign in to comment.