底部无字母

底部无字母

我怎样才能删除用 制作的标题前的字母\subbottom?通常的星号(如\caption*)似乎不起作用。

\documentclass{memoir}% http://ctan.org/pkg/memoir
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\newsubfloat{figure}% Allow subfloats in figure environment
\begin{document}

\begin{figure}
  \centering
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-a}}
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-b}}
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-c}}
  \caption{Round}
\end{figure}

\end{document} 

标准\subbottom命令(如使用上述代码所示)在每个图形下创建以 (a)、(b)、(c) 开头的子标题。我希望标题不带索引(a、b、c 等)。

答案1

您可以本地或全局重新定义子标题设置。以下是仅影响一个环境的“本地”版本figure

\documentclass{memoir}% http://ctan.org/pkg/memoir

\usepackage{graphicx}% http://ctan.org/pkg/graphicx

\newsubfloat{figure}% Allow subfloats in figure environment

\begin{document}

\begin{figure}
\centering
\renewcommand{\thesubfigure}{}% no subfigure number
\tightsubcaptions % we want tight subcaptions
\setlength{\subfloatlabelskip}{0pt}% no space between number and caption

\subbottom[Increase]{%
  \includegraphics[width=0.3\linewidth]{example-image-a}}
\subbottom[Increase]{%
  \includegraphics[width=0.3\linewidth]{example-image-b}}
\subbottom[Increase]{%
  \includegraphics[width=0.3\linewidth]{example-image-c}}

\caption{Round}
\end{figure}

\end{document}

在此处输入图片描述

对于“全球”版本,后面的三行\centering应该放在序言中。

答案2

最简单的解决方案似乎是不使用-command subbottom

您可以定义一个新命令来排版小页面和其他内容,以节省一些输入。

\documentclass{memoir}% http://ctan.org/pkg/memoir
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{showframe}
\newsubfloat{figure}% Allow subfloats in figure environment
\begin{document}

\begin{figure}
    \centering
    \subbottom[Increase]{%
        \includegraphics[width=0.3\linewidth]{example-image-a}
    }
    \subbottom[Increase]{%
        \includegraphics[width=0.3\linewidth]{example-image-b}
    }
    \subbottom[Increase]{%
        \includegraphics[width=0.3\linewidth]{example-image-c}
    }
    \caption{Round}
\end{figure}



Not using subbottom
\begin{figure}
    \centering
    \begin{minipage}{.3\linewidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-a}\par
        Increase
    \end{minipage}\hfill
    \begin{minipage}{.3\linewidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-b}\par
        Increase
    \end{minipage}\hfill
    \begin{minipage}{.3\linewidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-c}\par
        Increase
    \end{minipage}
    \caption{Round}
\end{figure}

\end{document} 

如果你真的想要删除用于引用的数字(字母),请在序言中添加以下内容。

\makeatletter
\@namedef{thesubfigure}{}
\makeatother

答案3

\@memsubcaption另一个选择是修补以隐藏标签,因为评论中已经提到希望将其作为全局设置:

\documentclass{memoir}
\usepackage{graphicx}
\usepackage{etoolbox}

\newsubfloat{figure}

\makeatletter
\patchcmd{\@memsubcaption}{\@nameuse{@@the#1}}{}{}{}
\patchcmd{\@memsubcaption}{\@nameuse{@the#1}}{}{}{}
\makeatother

\begin{document}

\begin{figure}
  \centering
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-a}}
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-b}}
  \subbottom[Increase]{%
    \includegraphics[width=0.3\linewidth]{example-image-c}}
  \caption{Round}
\end{figure}

\end{document}

在此处输入图片描述

相关内容