%% macros to typeset vegan vignettes with jss.cls

%% jss.cls does not collect toc info, but we redefine jss section and
%% subsection commands to add contents line. Line of pdfbookmark can
%% be removed, since toc is used for the purpose.
\renewcommand{\jsssec}[2][default]{\vskip \preXLskip%
  %\pdfbookmark[1]{#1}{Section.\thesection.#1}%
  \refstepcounter{section}%
  \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%
  \centerline{\textbf{\Large \thesection. #2}} \nopagebreak
  \vskip \postMskip \nopagebreak
}
\renewcommand{\jsssubsec}[2][default]{\vskip \preMskip%
  %\pdfbookmark[2]{#1}{Subsection.\thesubsection.#1}%
  \refstepcounter{subsection}%
  \addcontentsline{toc}{subsection}{\protect\numberline{\thesubsection}#1}%
  \textbf{\large \thesubsection. #2} \nopagebreak
  \vskip \postSskip \nopagebreak}

%% smaller examples
\renewenvironment{Schunk}{\par\small}{}

