枚举上述小页面的专用方法

枚举上述小页面的专用方法

我想枚举一组 tikzpictures,标签位于每张图片的上方和中心。我想使用枚举环境来执行此操作,而不必手动插入每个标签。

第一组图片是我手动做的,第二组是一个不太好的枚举。 在此处输入图片描述

梅威瑟:

\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage{float}
\usepackage{multicol}
\usepackage{enumitem}
\usepackage{caption}
\captionsetup[figure]{labelformat=empty}
\usepackage[cm]{fullpage}
\begin{document}    
        \begin{figure}[H]
            \begin{minipage}[t]{0.3\textwidth  }
                \caption{(1)}
                \centering
                \begin{tikzpicture}             
                \tkzDefPoint(0,0){A}        
                \tkzDrawCircle[R](A,1.2 cm)                         
                \end{tikzpicture}
            \end{minipage}
            \qquad
            \begin{minipage}[t]{0.3\textwidth  }
                \caption{(2)}
                \centering
                \begin{tikzpicture}[scale=0.92]
                    \tkzDefPoint(0,0){A}        
                    \tkzDrawCircle[R](A,1.2 cm)             
                \end{tikzpicture}
            \end{minipage}
            \qquad
            \begin{minipage}[t]{0.3\textwidth  }
                \caption{(3)}   
                \centering
                \begin{tikzpicture}
                    \tkzDefPoint(0,0){A}        
                    \tkzDrawCircle[R](A,1.2 cm)         
                \end{tikzpicture}
            \end{minipage}          
        \end{figure}         
        
        
        
        \begin{multicols}{3}
            \begin{enumerate}
                \item 
                \begin{minipage}{0.3\textwidth  }
                    \begin{tikzpicture}
                        \tkzDefPoint(0,0){A}        
                        \tkzDrawCircle[R](A,1.2 cm)         
                    \end{tikzpicture}
                \end{minipage}
                \item 
                \begin{minipage}{0.3\textwidth  }
                    \begin{tikzpicture}
                        \tkzDefPoint(0,0){A}        
                        \tkzDrawCircle[R](A,1.2 cm)         
                    \end{tikzpicture}
                \end{minipage}
                \item 
                \begin{minipage}{0.3\textwidth  }
                    \begin{tikzpicture}
                        \tkzDefPoint(0,0){A}        
                        \tkzDrawCircle[R](A,1.2 cm)         
                    \end{tikzpicture}
                \end{minipage}
            \end{enumerate}             
        \end{multicols}
    
\end{document}

答案1

在该包的帮助下subcaption

\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage{caption}
\captionsetup[figure]{labelformat=empty}
\usepackage[cm]{fullpage}
\usepackage{subcaption}
\renewcommand\thesubfigure{\arabic{subfigure}}
\begin{document}    
        \begin{figure}
            \begin{subfigure}[t]{0.3\textwidth}
                \caption{}
                \centering
                \begin{tikzpicture}             
                \tkzDefPoint(0,0){A}        
                \tkzDrawCircle[R](A,1.2 cm)                         
                \end{tikzpicture}
            \end{subfigure}
            \qquad
            \begin{subfigure}[t]{0.3\textwidth}
                \caption{}
                \centering
                \begin{tikzpicture}[scale=0.92]
                    \tkzDefPoint(0,0){A}        
                    \tkzDrawCircle[R](A,1.2 cm)             
                \end{tikzpicture}
            \end{subfigure}
            \qquad
            \begin{subfigure}[t]{0.3\textwidth}
                \caption{}   
                \centering
                \begin{tikzpicture}
                    \tkzDefPoint(0,0){A}        
                    \tkzDrawCircle[R](A,1.2 cm)         
                \end{tikzpicture}
            \end{subfigure}          
        \end{figure}     
\end{document}

在此处输入图片描述

相关内容