%%% This file is based on some work from teicee (https://www.teicee.com)
%%%
%%% 'itemize' definition for retro-compatibility with 'bsys'
%%%
%%% Notes:
%%% - former environment is available through 'olditemize'
%%% - bsystitemize is still available
%%% - bitemize is still available
%%% - itemize, bitemize and bsysitemize are the same.
%%%
%%%
%%% for bitemize definition from bmanual.cls
%%%
%%% Itemize for manuals
%%% \newenvironment{bitemize}{\renewcommand\labelitemi{\textcolor{btextcolor}{\ensuremath{\filledsquare}}}\renewcommand\labelitemii{\textcolor{btextcolor}{--}}\begin{itemize}}{\end{itemize}}
%%%

%%% Vertical spacing between items. Can be overriden
\def\bsysitemizevsize{0.5ex}

%%% New environment
\AtBeginDocument{
        \let\olditemize=\itemize%
        \let\endolditemize=\enditemize%
        \renewenvironment{itemize}{%
        \renewcommand\labelitemi{\textcolor{btextcolor}{\ensuremath{\filledsquare}}}%
        \renewcommand\labelitemii{\textcolor{btextcolor}{--}}
 	\renewcommand\labelitemiii{\textcolor{btextcolor}{$\ast$}}%
        \setlength{\parskip}{\bsysitemizevsize{}}  %% top-margin for first item
        \olditemize%
	\setlength{\parskip}{\bsysitemizevsize{}}  %% top-margin of following items
	}{
	\endolditemize%
	}
}
\newenvironment{bsysitemize}{\itemize}{\enditemize}
\newenvironment{bitemize}{\itemize}{\enditemize}

\AtBeginDocument{
        \let\olddescription=\description
        \let\endolddescription=\enddescription
        \renewenvironment{description}{%
                \begin{olddescription}[style=unboxed]
                }{%
                \end{olddescription}%
                }
}
\newenvironment{bsysdescription}{\description}{\enddescription}
\newenvironment{bdescription}{\description}{\enddescription}
%%
%%
\ifdef{\elink}{\renwecommand{\elink}[2]{\bulink{#1}{#2}}}{\newcommand{\elink}[2]{\bulink{#1}{#2}}}
