符号列表不显示输入

符号列表不显示输入

我正在使用该tocloft包创建一个符号列表。但我希望出现在列表中的输入并没有出现在列表中。这是我的代码的 MWE:

\documentclass[12pt,openright,a4paper,oneside]{report}

\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}

\usepackage{tocloft}

\newcommand{\listofsymbs}{List of Symbols}
\newlistof[chapter]{symbols}{sym}{\listofsymbs}

\newcommand{\symb}[1]{%
    \refstepcounter{symbols}%
    #1%
    \addcontentsline{sym}{symbols}{\protect\numberline{\thesymbols}#1}}

\begin{document}

\listofsymbs

The generation of electric energy by photovoltaic network distributed in Asgard has greatly increased in recent years. Between 1995 and 2009, 39 photovoltaic systems connected to the grid were installed in Asgard, of which 35 were in operation in 2009, totaling an operating power of 161.32 \symb{kWp}

\end{document}

我得到的只是标题List of Symbols,但没有我想要添加的任何符号。

在此处输入图片描述

相关内容