\specialcomment takes 3 arguments; the second argument is supposed to precede the comment text, and the third argument is supposed to be appended to the comment text.
However, this does not happen; the comment text is printed (or not, according to the option that has been selected) but nothing precedes the comment text and nothing is appended to it. I have tried modifying the code in comment.sty directly, replacing the arguments #2 and #3 in the definition part of \specialcommand with some sample text, and this does not change anything.
The only way I have managed to get this to work is to introduce the additional text directly into the definition of the \AfterIncludedCommment macro, immediately before and after the \input command.
Here is an example of code that I have tried, that should work (according to the documentation, and other postings on the internet), but doesn't:
Code: Select all
\usepackage{comment}
\usepackage{color}
\specialcomment{answer}{\begingroup\sffamily\color{blue}}{\endgroup}
% exclude the comments
% \excludecomment{answer}
% include the comments
\includecomment{answer}
\begin{answer}
This is the answer text
\end{answer}
Thank you