I am preparing a bilingual document and using the comment package to distinguish between the two languages.
When I use the special character ß in a comment environment then I get an error message (Undefined control sequence.) although I use \usepackage[latin1]{inputenc} correctly.
Outside of the comment environment the character works fine.
The document class seems not to matter - I have the problem with scrbook and book.
\documentclass[]{scrbook}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[
english,
ngerman]
{babel}
\usepackage{comment}
\includecomment{Version-DE}
\excludecomment{Version-EN}
\begin{document}
ß % <-- no problem here
\begin{Version-DE}
Version-DE
ß % <-- big problem here!
\end{Version-DE}
\begin{Version-EN}
Version-EN
\end{Version-EN}
\end{document}
I am not sure what tags to use here...
For Future Reference
I have found some other packages that maybe could be an alternative:
- multiaudience (recommended by the author of the
taggingpackage Brent Longborough, see here) - tagging --> seems to be pretty robust and flexible so far
- srcredact
- version
- versions (extra "s")
- codesection
- xcomment
- optional
Here's all the packages of this kind (conditional typesetting) on CTAN: https://www.ctan.org/topic/cond-comp

\ssthen ;-) – Jul 09 '16 at 18:48commentdoesn't work with “high bit set” characters. See http://tex.stackexchange.com/questions/159820/comment-sty-and-utf8-encoding for a similar problem – egreg Jul 09 '16 at 19:42