하위 캡션과 표가 있는 그림 목록에서 페이지 번호를 어떻게 제거합니까?

하위 캡션과 표가 있는 그림 목록에서 페이지 번호를 어떻게 제거합니까?

~ 안에하위 캡션: lof에서 페이지 번호 제거, 누군가가 하위 캡션을 사용할 때 그림 목록에서 페이지 번호를 제거하는 방법을 묻습니다. 이것은 그 자체로는 잘 작동합니다.

그러나 이 구성으로 테이블 목록을 생성하면 테이블 목록이 완전히 비어 있습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

\documentclass{article}
\usepackage{tabu}
%\usepackage{caption}
\usepackage{subcaption}

\captionsetup[subfigure]{list=true}

\usepackage[subfigure]{tocloft}

\newcounter{lofdepth}
\setcounter{lofdepth}{2}

\cftpagenumbersoff{subfigure}


\begin{document}
\listoffigures

\listoftables

\clearpage

\begin{figure}[!ht]
\centering
\begin{subfigure}{.5\linewidth}
\centering
A
\caption{test subfigure}
\end{subfigure}%
\begin{subfigure}{.5\linewidth}
\centering
B
\caption{another test subfigure}
\end{subfigure}
\caption{A figure with subfigures}
\end{figure}

\begin{table}
\begin{tabu}{X | c | c | c | c }%
        Method & Mean Bin & Worst Bin & RMS Error & Dead Time \\ \hline%
        Delay line & 60~ps & 165~ps & 40~ps & 2.5~ns \\
        Type A (FSR) & 30~ps & 65~ps & 25~ps & 5~ns \\
        Type B (ISR) & -- & -- & 10~ps & 45~ns
    \end{tabu}%
\caption{A Table}
\end{table}

\end{document} 

관련 정보