Suppose i have a package like this:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{test}[2014/08/21 Example package]
\newcommand{\bla}{}
\DeclareOption{optiona}{
\renewcommand{\bla}{Choice A}
}
\DeclareOption{optionb}{
\renewcommand{\bla}{Choice B}
}
\ProcessOptions\relax
And i want to write a documentation, where i want to show both options like this:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[optionb]{test}
\begin{document}
This is the output with optiona:
\bla %prints Choice A
This is the output with optionb:
\bla%prints Choice B
\end{document}
How do i achieve that? i found something about keyval, but honestly, i don't get how that works. Any helpful tips?