Wie hier schon vorgeschlagen funktioniert folgendes
Code:
\documentclass[11pt,a4paper]{report}
\usepackage{verbatim}
\begin{document}
Text
\begin{comment}
Soll nicht erscheinen
\end{comment}
\end{document}
ich benötige jedoch
Code:
\documentclass[11pt,a4paper]{report}
\usepackage{verbatim}
\newenvironment{Loesung}{\begin{comment}}{\end{comment}}
\begin{document}
Text
\begin{Loesung}
Soll nicht erscheinen
\end{Loesung}
\end{document}
das scheitert jedoch mit dem Fehler:
Runaway argument?
! File ended while scanning use of \next.
\par
<*> C:/Daten_C/Dokumente/Minimal/LaTeX1.tex
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
! Emergency stop.
Lösungsidee?
Matthias
Lesezeichen