Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[a4paper]{scrreprt}
- \newcommand{\cmd}{\begingroup
- \catcode`_=12 \cmdint}
- \newcommand{\cmdint}[1]{%
- \texttt{#1}%
- \endgroup
- }
- \newenvironment{wrap}{}{}
- \usepackage{environ}
- \NewEnviron{wrap2}{\BODY}
- \begin{document}
- \cmd{some_test}
- \begin{wrap}
- \cmd{some_test}
- \end{wrap}
- \begin{wrap2}
- \cmd{some_test}
- \end{wrap2}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement