% Define ifsolutions only if it is not defined yet (see Makefile)
\@ifundefined{ifshowpagenrs}{%
	\newif\ifshowpagenrs
	\showpagenrstrue
}{}
\@ifundefined{ifshowsummary}{%
	\newif\ifshowsummary
	\showsummarytrue
}{}
\@ifundefined{ifshownotes}{%
	\newif\ifshownotes
	\shownotestrue
}{}
\@ifundefined{ifshowcriticism}{%
	\newif\ifshowcriticism
	\showcriticismtrue
}{}

\newcommand{\pagenrStyle}{\small\color{darkgray}}

\newcommand{\criticismStart}{\emph{Criticism:} }
\newcommand{\criticismStyle}{\color{RedOrange}}

\newcommand{\noteStyle}{\color{gray}}

\newcommand{\termStyle}{\it}

\PassOptionsToPackage{dvipsnames}{xcolor}
\RequirePackage{xcolor}

\newcommand{\pagenr}[1]{%
	\ifshowpagenrs\begingroup\pagenrStyle\enspace(p. #1)\endgroup\fi}
\newcommand{\pagenrs}[1]{%
	\ifshowpagenrs\begingroup\pagenrStyle\enspace(pp. #1)\endgroup\fi}
\newcommand{\summary}[1]{%
	\ifshowsummary #1\fi}
\newcommand{\parnote}[1]{%
	\ifshownotes\begingroup\noteStyle#1\endgroup\fi}
\newcommand{\note}[1]{%
	\parnote{\enspace(#1)}}
\newcommand{\criticism}[1]{%
	\ifshowcriticism\begingroup\criticismStyle\criticismStart{}#1\endgroup\fi}
\newcommand{\term}[1]{%
	\begingroup\termStyle #1\endgroup}
