![评论包不起作用(附案例)](https://linux22.com/image/392072/%E8%AF%84%E8%AE%BA%E5%8C%85%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%88%E9%99%84%E6%A1%88%E4%BE%8B%EF%BC%89.png)
\documentclass[a4paper, 12pt]{article}
\usepackage{comment}
\title{title}
\author
{
\begin{comment}
...
\end{comment}
Author
}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
\end{document}
答案1
它的工作原理如下:
\documentclass[a4paper, 12pt]{article}
\usepackage{comment}
\title{title}
\begin{comment}
A comment
\end{comment}
\author{Author}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
\end{document}
这是因为环境不能处于争论之中(是的,甚至是争论comment
)。