Error while using the new command \reponse created in the preambule.
What is wrong with the definition of the newcommand ? It must be linked with comment package ...
Example that works seems the same : How to use `\begin` & `\end` in a new command
Thanks for help.
Error : File ended while scanning use of \next \end{answer} while using the commande \reponse
\documentclass{article}
\usepackage{comment}
\includecomment{answer}
\newcommand{\reponse}[1]{%
\begin{answer}
{\textbf{The answer is :}#1}
\end{answer}}
\begin{document}
% i would like to write :
\reponse{ok}
\reponse{ok}
% ...
% instead of :
\begin{answer}
{\textbf{The answer is:} ok}
\end{answer} <- error line
\begin{answer}
{\textbf{The answer is:} ok}
\end{answer}
%...
\end{document}
verbatim
: a comment environment is treated the same.