|
From: <mh...@us...> - 2013-07-24 22:39:05
|
Revision: 18257
http://sourceforge.net/p/sbml/code/18257
Author: mhucka
Date: 2013-07-24 22:39:02 +0000 (Wed, 24 Jul 2013)
Log Message:
-----------
Added a new command, \apdx{...}, for referring to appendices, so that they come out as "Appendix X" instead of "Section A".
Modified Paths:
--------------
trunk/project/tex/sbmlpkgspec/sbmlpkgspec.cls
Modified: trunk/project/tex/sbmlpkgspec/sbmlpkgspec.cls
===================================================================
--- trunk/project/tex/sbmlpkgspec/sbmlpkgspec.cls 2013-07-24 21:37:10 UTC (rev 18256)
+++ trunk/project/tex/sbmlpkgspec/sbmlpkgspec.cls 2013-07-24 22:39:02 UTC (rev 18257)
@@ -28,7 +28,7 @@
%% along with this library; if not, write to the Free Software Foundation,
%% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-\def\filedate{2012/11/30}
+\def\filedate{2013/07/24}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sbmlpkgspec}[\filedate\space SBML Level 3
Package Specification Style]
@@ -1031,29 +1031,38 @@
% JSBML User Guide directory.
\labelformat{chapter}{Chapter~#1}
-\labelformat{section}{Section~#1}
-\labelformat{subsection}{Section~#1}
-\labelformat{subsubsection}{Section~#1}
-\labelformat{paragraph}{Section~#1}
\labelformat{table}{Table~#1}
\labelformat{figure}{Figure~#1}
-\newcommand{\@commonFloatRefNoStar}[1]{\xspace\Vref*{#1}\xspace}
-\newcommand{\@commonFloatRefStar}[1]{\xspace\ref{#1}\xspace}
+\newcommand{\sectionlabel}{Section}
+\newcommand{\setlabel}[1]{\renewcommand{\sectionlabel}{#1}}
+\newcommand{\normallabels}{\setlabel{Section}}
+\newcommand{\appendixlabels}{\setlabel{Appendix}}
-\newcommand{\fig}[1]{\@commonFloatRefNoStar{#1}}
-\WithSuffix\newcommand\fig*[1]{\@commonFloatRefStar{#1}}
+\labelformat{section}{\sectionlabel~#1}
+\labelformat{subsection}{\sectionlabel~#1}
+\labelformat{subsubsection}{\sectionlabel~#1}
+\labelformat{paragraph}{\sectionlabel~#1}
-\newcommand{\tab}[1]{\@commonFloatRefNoStar{#1}}
-\WithSuffix\newcommand\tab*[1]{\@commonFloatRefStar{#1}}
+\newcommand{\@commonRefNoStar}[1]{\xspace\Vref*{#1}\xspace}
+\newcommand{\@commonRefStar}[1]{\xspace\ref{#1}\xspace}
-\renewcommand{\sec}[1]{\@commonFloatRefNoStar{#1}}
-\WithSuffix\newcommand\sec*[1]{\@commonFloatRefStar{#1}}
+\newcommand{\fig}[1]{\normallabels\@commonRefNoStar{#1}}
+\WithSuffix\newcommand\fig*[1]{\normallabels\@commonRefStar{#1}}
-\newcommand{\sect}[1]{\@commonFloatRefNoStar{#1}}
-\WithSuffix\newcommand\sect*[1]{\@commonFloatRefStar{#1}}
+\newcommand{\tab}[1]{\normallabels\@commonRefNoStar{#1}}
+\WithSuffix\newcommand\tab*[1]{\normallabels\@commonRefStar{#1}}
+\renewcommand{\sec}[1]{\normallabels\@commonRefNoStar{#1}}
+\WithSuffix\newcommand\sec*[1]{\normallabels\@commonRefStar{#1}}
+\newcommand{\sect}[1]{\normallabels\@commonRefNoStar{#1}}
+\WithSuffix\newcommand\sect*[1]{\normallabels\@commonRefStar{#1}}
+
+\newcommand{\apdx}[1]{\appendixlabels\@commonRefNoStar{#1}}
+\WithSuffix\newcommand\apdx*[1]{\appendixlabels\@commonRefStar{#1}}
+
+
% Misc.
\newcommand{\dblquote} {\verb|"|} %"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|