`\documentclass{article}
\usepackage{xcolor,framed}
\usepackage{lipsum}
\usepackage{verbatim}
\definecolor{shadecolor}{gray}{0.9}
\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}\begin{document}
\lipsum[1]
\begin{comment}
\lipsum[2]
\end{comment}\lipsum[3]
\end{document} `
Per far sparire tutte le note dal pdf finale, ti basta commentare
`\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}
`
e ricompilare.Ciao,
L.
Niente da fare, non funziona…
Un esempio minimale è:
`
\documentclass[12pt,a4paper,draft]{toptesi}
\usepackage[ansinew]{inputenc}
\usepackage{graphicx}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{syntonly}
\usepackage{verbatim}
\usepackage{longtable}
\usepackage[font=normalsize]{caption}
\usepackage{float}
\usepackage[colorlinks=true, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
\usepackage{xcolor,framed}
\definecolor{shadecolor}{gray}{0.9}
\renewenvironment{comment}{\begin{shaded}}{\end{shaded}}
\raggedbottom
\italiano
\begin{document}
Questo non è commentato
\begin{comment}
Questo dovrebbe esserlo
\end{comment}
E questo nuovamente no.
\end{document}
`
e gli errori sono:
`
! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\pdfmark@ …type \space pdfmark}\Hy@endcolorlink
\fi \fi \fi
l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\set@color ->\special {color push \current@color
}\aftergroup \reset@color
l.20 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
`
P.s:Mi scuso se non ho risposto prima ma non avevo il computer a disposizione…