首页 > 解决方案 > 如何使用 \listofalgorithms 跳过乳胶列表中的算法?

问题描述

如何跳过乳胶列表中的算法

\listofalgorithms?

在我的文档中,我有一些算法,我在使用时不想列出

\listofalgorithms 

通过对图形环境的回答类比,我尝试过

\caption[]{Algorithm}

反而

\caption{Algorithm}

它给出了一行点和反递增。

我也试过

\captionsetup[algorithm]{list=no}
\captionsetup[algorithm]{list=yes}

也有“算法”。它会导致错误。

在这段代码中,我想删除列表中的算法 2

\documentclass{article}    
\usepackage[lined,boxed,commentsnumbered, ruled,vlined,linesnumbered, frenchkw]{algorithm2e}    
\begin{document}    

\listofalgorithms

\begin{algorithm}
\caption{I want to show this one in the list}
do something \;
\end{algorithm}
    
\begin{algorithm}
\caption{I do not want os show this one in the list}
do something else\;
\end{algorithm}

\begin{algorithm}
\caption{I want to show this one in the list with number 3 not 2}
do nothing \;
\end{algorithm}

\end{document}

谢谢 :)

标签: algorithmlatex

解决方案


推荐阅读