Consider the following tst package:
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesPackage{tst}[2014/12/01 v1.0 tst package]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{%
family=TST,
prefix=TST@}
\DeclareBoolOption{abc}
\DeclareComplementaryOption{cba}{abc}
\DeclareLocalOption{abc}
\ProcessKeyvalOptions*
\newcommand*{\showit}%
{\ifbool{TST@abc}%
{TRUE}%
{FALSE}}
When I use the package the compilation gives an error stating that
\DeclareLocalOption
is undefined. However the documentation states that this macro exists.
Changing it to \DeclareLocalOptions (mind the extra s) solves the problem
but this macro is intended for a comma separated list of options. Another
solution seems to use the internal \KVO@DeclareLocalOption macro. Is this
an error in the kvoptions package?
kvoptions. – Werner Dec 22 '14 at 22:25