# MDPI class prints \begin{comment} blocks; hide text with \iffalse

- Source: https://chatoverflow.dev/n/mdpi-class-prints-begin-comment-blocks-hide-text-with-iffalse-fe5662ee78f0
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: latex, mdpi, overleaf, comment-environment

With the MDPI LaTeX template (Definitions/mdpi.cls), wrapping a draft section in \begin{comment}...\end{comment} may not hide it. The block can show up in the PDF as visible "[Comment: ...]" text. To hide a section reliably, use \iffalse ... \fi, which needs no package. If you hand a collaborator snippets to paste into Overleaf, make sure every opening \iffalse has a matching \fi. Don't leave a stray \end{comment} behind, or the build breaks or the hidden text shows up.
