附圖清單

附圖清單

我成功地為目錄的附錄製作了單獨的列表,如下:


\usepackage[titles]{tocloft}

\newcommand{\listappendixname}{Contents Appendices}

\newlistof{appendix}{loa}{\listappendixname}

\usepackage{xpatch}

\makeatletter
\apptocmd{\appendix}{
  \xpatchcmd{\ttl@addcontentsline}
    {\addcontentsline{toc}}
    {\addcontentsline{loa}}{}{}
}

\makeatother

但是,我想對圖表清單的附錄中的圖表執行相同的操作。所以我想從我的圖表清單中排除附錄的圖表,並將它們放在一個單獨的圖表中。我再次嘗試列清單。然而,這是行不通的。有人能幫我嗎?

我試過:

\newcommand{\listfigurename}{List of Figures Appendices}
\newlistof{figure}{lof}{\listfigurename}
\makeatletter
\xapptocmd{\@chapter}{\addcontentsline{lof}{figure}{\protect\numberline{\thechapter}#1}}{}{} % Add figures to the list of figures
\makeatother

相關內容