\usepackage{tocloft}
\newcommand\listexamplename{\large{知识点清单}}
\newlistof[chapter]{knowledgepoint}{kp}{\listexamplename}
\newcommand{\points}[1]{%
\par\noindent\textbf{知识点\refstepcounter{knowledgepoint} \theknowledgepoint~#1}
\addcontentsline{kp}{knowledgepoint}{\protect\numberline{\theknowledgepoint}#1}\par
}
\usepackage[hidelinks]{hyperref}
\usepackage{multicol}
\renewcommand\cftkpprehook{\begin{multicols}{2}}
\renewcommand\cftkpposthook{\end{multicols}}
我新建了一个知识点目录,想让每一章的标题下面插入一个知识点目录,只显示本章的所有知识点