I'm trying to create a package with three options as follows:
\usepackage[swpl]{mypack}
swpl option provides the environment
\begin{myexample}[forced bracketed options]...\end{myexample}
available for all xelatex/latex
\usepackage[tcb]{mypack}
tcb option provides the same environment name (with different definition)
\begin{myexample}[other forced bracketed options]...\end{myexample}
available for latex/xelatex and the third option:
\usepackage[pdf,swpl]{mypack} or \usepackage[pdf,tcb]{mypack}
provides the same environment name (with other definition) available for (pdf/lua/xe)latex. I'm triying to adapt related answer for this...but I did not succeed. If anyone can help me with a skeleton (using kvoptions or pgfkeys) I'd appreciate it. I was unable to add [requiered] for the myexample environment and boolean option for swpl and tcb.
PD: Using the same environment name because the first option uses showexpl and the second option tcolorbox for verbatim.
l3keys2e(I think that's what it's called; I'm mobile. Everyone should feel free to correct me:)) – Sean Allred Apr 17 '14 at 05:18