Consider the following minimal non-working example (comment the line with the \test{..}
to compile. I'd like to have a \verb+something+
inside my \test{}
environment. How can I achieve that?
\documentclass{article}
\usepackage{xcolor,fancyvrb}
\newcommand{\test}[1]{{\color{blue}#1}}
\usepackage{siunitx,booktabs}
\begin{document}
This works \verb+\num{6.022e-23}+
\test{This is a test of a \verb+verb+}
\end{document}
\verb
inside a macro definition, or as an argument to one.