在 SCfigure 环境中编辑标题设置

在 SCfigure 环境中编辑标题设置

我正在使用 SCfigure 环境,来自侧盖封装因为我想在图形的侧面添加标题。经过一段时间的参数调整后,我终于让图形看起来像我想要的那样。

唯一缺少的是添加到图题的丑陋的“图 1”文本。由于我正在制作演示文稿,只有文本的标题看起来会更好。因此,我想删除实际标题之前的“图 1。”文本。

我读到只需重新执行命令即可,例如:

\renewcommand{\figurename}{"New Text"}

但这不管用。我尝试什么都不写,只写一个空格,甚至一个下划线,但在所有情况下,“图 1。”文本仍然留在标题之前。

非常感谢您对如何编辑此内容的任何想法。

我的图形代码:

\usepackage{amsthm} % Required for theorem environments
\usepackage{bm} % Required for bold math symbols (used in the footer of the     \usepackage[pdftex]{graphicx} % Required for including images in figures
\usepackage{tikz} % Required for colored boxes
\usepackage{booktabs} % Required for horizontal rules in tables
\usepackage{multicol} % Required for creating multiple columns in slides
\usepackage{lastpage} % For printing the total number of pages at the bottom of each slide
\usepackage[english]{babel} % Document language - required for customizing section titles
\usepackage{microtype} % Better typography
\usepackage{tocstyle} % Required for customizing the table of contents
\usepackage{sidecap}


\begin{SCfigure}[1][b!]
  \centering
  \caption{The masked priming paradigm: The duration of the prime and the     presence of forward and backward masks result in unconscious processing     of the prime.}
  \includegraphics[width=0.61\textwidth,width=0.5\linewidth]%
    {priming_example2}% picture filename
\end{SCfigure}

答案1

您可以使用包自定义标题caption;然后\addto\captionsenglish可以更改标签。

\documentclass{article}
\usepackage{amsthm} % Required for theorem environments
\usepackage{bm} % Required for bold math symbols (used in the footer of the     \usepackage[pdftex]{graphicx} % Required for including images in figures
\usepackage{tikz} % Required for colored boxes
\usepackage{booktabs} % Required for horizontal rules in tables
\usepackage{multicol} % Required for creating multiple columns in slides
\usepackage{lastpage} % For printing the total number of pages at the bottom of each slide
\usepackage[english]{babel} % Document language - required for customizing section titles
\usepackage{microtype} % Better typography
\usepackage{tocstyle} % Required for customizing the table of contents
\usepackage{caption}
\DeclareCaptionLabelFormat{onlyname}{#1}
\captionsetup{labelformat=onlyname,labelsep=period}
\usepackage{sidecap}

\addto\captionsenglish{\renewcommand{\figurename}{Whatever I want}}

\begin{document}

\begin{SCfigure}[1][b!]
  \centering
  \caption{The masked priming paradigm: The duration of the prime and the     presence of forward and backward masks result in unconscious processing     of the prime.}
\rule{0.61\textwidth}{0.5\linewidth}
%  \includegraphics[width=0.61\textwidth,width=0.5\linewidth]%
%    {priming_example2}% picture filename
\end{SCfigure}

\end{document}

在此处输入图片描述

答案2

由于您已经加载了caption包,另一个选择是说

\captionsetup[figure]{name={Whatever I want}}

完整示例:

\documentclass{article}
\usepackage{amsthm} % Required for theorem environments
\usepackage{bm} % Required for bold math symbols (used in the footer of the     \usepackage[pdftex]{graphicx} % Required for including images in figures
\usepackage{tikz} % Required for colored boxes
\usepackage{booktabs} % Required for horizontal rules in tables
\usepackage{multicol} % Required for creating multiple columns in slides
\usepackage{lastpage} % For printing the total number of pages at the bottom of each slide
\usepackage[english]{babel} % Document language - required for customizing section titles
\usepackage{microtype} % Better typography
\usepackage{tocstyle} % Required for customizing the table of contents
\usepackage{caption}
\DeclareCaptionLabelFormat{onlyname}{#1}
\captionsetup{labelformat=onlyname,labelsep=period}
\usepackage{sidecap}

\captionsetup[figure]{name={Whatever I want}}

\begin{document}

\begin{SCfigure}[1][b!]
  \centering
  \caption{The masked priming paradigm: The duration of the prime and the     presence of forward and backward masks result in unconscious processing     of the prime.}
\rule{0.61\textwidth}{0.5\linewidth}
%  \includegraphics[width=0.61\textwidth,width=0.5\linewidth]%
%    {priming_example2}% picture filename
\end{SCfigure}

\end{document}

在此处输入图片描述

相关内容