如何在图片列表中显示 \refstepcounter{figure}

如何在图片列表中显示 \refstepcounter{figure}

这是我的 latex 文档。该图位于表格环境中,该图显示了标题,但没有显示图列表。请问有人能解释我还能做些什么来纠正

\begin{center}
\centering 
  
  \begin{longtable}{ | m{3cm} | c | m{6cm} | }
   \caption{my.Lboro Analysis}
   \label{tbl:myLboro} \\
    \hline
    Type by shape & Figure & Attributes \\ 
    \hline
    \hline
   
    \endfirsthead
    \multicolumn{3}{c}{\tablename\ \thetable{} -- Types} \\          
    \hline
     
      Type by shape & Figure & Attributes \\
      
     \hline
     \hline
     \endhead
     
     \hline
     \multicolumn{3}{c}{Table continuation in next page} \\      
     \hline
     \endfoot

    \hline 
    
    \endlastfoot
    
    
      Applicator brush
    
    &
     
    \begin{minipage}{.3\textwidth}
    
      \includegraphics[width=\linewidth, height=30mm]{applicator}
     \refstepcounter{figure}
     \small
      Figure~\thefigure: Single spiral double stem brush. 
     % \caption{Single spiral double stem brush.}
      
    \end{minipage}
   
    
    & 
    %\begin{minipage}{5cm}
      \begin{itemize}
        \item They are use to apply substance on or to any object.
        \item Handles are made up of Nylon, Acetal, Aluminium, Brass or Stainless steel. 
        \item Fill material consist of Aluminium, Brass, Horse hair or titanium.
        \item They can be single end or double ended brushes.
        \item They are Autoclavable, Static Dissipative or Conductive.
      \end{itemize}
    %\end{minipage}
    \\ \hline
\end{longtable}
  
\end{center}

答案1

设置图形标题后,通过以下方式将标题添加到 LoF

\addcontentsline{lof}{figure}{\numberline{\thefigure}<caption>}

在此处输入图片描述

\documentclass{article}

\usepackage{longtable}
\usepackage{graphicx}

\begin{document}

\listoftables

\listoffigures

\begin{longtable}{ c c c }
  \caption{Table caption} \\
  \hline
  First & Second & Third \\
  \begin{minipage}{.25\linewidth}
    \includegraphics[width=\linewidth]{example-image-a}
    \refstepcounter{figure}%
    Figure~\thefigure: Example image A
    \addcontentsline{lof}{figure}{\numberline{\thefigure}Example image A}
  \end{minipage} &
  \begin{minipage}{.25\linewidth}
    \includegraphics[width=\linewidth]{example-image-b}
    \refstepcounter{figure}%
    Figure~\thefigure: Example image B
    \addcontentsline{lof}{figure}{\numberline{\thefigure}Example image B}
  \end{minipage} &
  \begin{minipage}{.25\linewidth}
    \includegraphics[width=\linewidth]{example-image-c}
    \refstepcounter{figure}%
    Figure~\thefigure: Example image C
    \addcontentsline{lof}{figure}{\numberline{\thefigure}Example image C}
  \end{minipage} \\
  \hline
\end{longtable}

\end{document}     

相关内容