图表编号缺少句号

图表编号缺少句号

我正在班上写一篇科学论文memoir。图表的编号系统似乎使用了格式Chapter Figure number in chapter,但不包括Chapter和之间的任何分隔符Figure number in chapter

这会导致类似代码galaxies in figure \ref{fig:mo_2.7}.,参考文档中的第一个图,产生图 11 中的 SDSS 星系

这看起来像是“图十一”(11),而不是“图一点一”(1.1),正如我期望图形参考包生成的那样。实际图形下方的标题也出现了同样的问题。因此,对于文档的第一个图形,代码如下

\begin{figure}[hbtp]
\centering
\includegraphics[scale=1]{literature_comparisons/Mo2010_fig_2_27_right.png}
\caption[Galaxies in the SDSS]{The colour–magnitude\index{galaxy colour} relation of about 365,000 galaxies in the SDSS\index{SDSS} (see section \ref{bimodality} for discussion).
}
    \label{fig:mo_2.7}
\end{figure}

使用 pdflatex 编译后产生以下文本:

图 11. SDSS 中大约 365,000 个星系的颜色-星等关系(讨论见第 1.2.1 节)。

如您所见,章节标签的引用与章节、节和小节编号均以句点分隔时效果良好。但是,图表和表格标签的引用均缺少句点。为了说明此编号在整个文档中的外观,请参阅 latex 生成的图表列表: 图表列表,显示 6 个条目,编号为 11、12、13、21、22 和 31

该文件没有 31 张图表,但有三章包含图表。

本论文的序言是

\documentclass[11pt, oneside, a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,width=138mm,top=35mm,bottom=35mm,bindingoffset=10mm]{geometry}
\usepackage{url}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{mathrsfs,amsmath}
\usepackage{units}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{bibentry}
\usepackage{subcaption}
\usepackage{makeidx}
\usepackage{acro}
\usepackage{caption}
\captionsetup{labelsep=period}
\include{content/acronyms}
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}
\usepackage{perpage}
\MakePerPage{footnote}
\captionsetup[subfigure]{labelformat=simple}
\renewcommand\thesubfigure{\alph{subfigure})}
\setlength{\parindent}{0pt}
\nonzeroparskip
\newsubfloat{figure}
\newcommand{\thesisTitle}{Alpha Omega}
\newcommand{\thesisSubtitle}{}
\newcommand{\thesisName}{AA BB}
\newcommand{\thesisDate}{\today}
\newcommand{\thesisFirstSupervisor}{XX YY}
\newcommand{\thesisSecondSupervisor}{YY ZZ}
\newcommand{\thesisUniversity}{\protect{XX U}}
\newcommand{\thesisUniversityDepartment}{Department of X}
\newcommand{\thesisUniversityInstitute}{Institute X}
\newcommand{\thesisUniversityCity}{Cityname}
\newcommand{\thesisUniversityStreetAddress}{XX Road}
\newcommand{\thesisUniversityPostalCode}{XXXXX}
\renewcommand*{\cftappendixname}{Appendix\space}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\chapterstyle{madsen}
\DoubleSpacing
\setsecnumdepth{subsection}
\nobibliography*
\makepagestyle{myruled}
\makeheadrule {myruled}{\textwidth}{\normalrulethickness}
\makefootrule {myruled}{\textwidth}{\normalrulethickness}{\footruleskip}
\makeevenhead {myruled}{}{\small\itshape\leftmark}{}
\makeoddhead {myruled}{}{\small\itshape\rightmark}{}
\makeevenfoot {myruled}{\small \thepage}{}{}
\makeoddfoot {myruled}{}{}{\small \thepage}

\makepsmarks {myruled}{
\nouppercaseheads
\createmark {chapter} {both} {shownumber}{}{. \ }
\createmark {section} {both}{shownumber}{} {. \ }
\createmark {subsection} {both}{shownumber}{} {. \ }
\createmark {subsubsection}{both}{shownumber}{} {. \ }
\createplainmark {toc} {both} {\contentsname}
\createplainmark {lof} {both} {\listfigurename}
\createplainmark {lot} {both} {\listtablename}
\createplainmark {bib} {both} {\bibname}
\createplainmark {index} {both} {\indexname}
\createplainmark {glossary} {both} {\glossaryname}
}

\makepagestyle{plain}
\makefootrule {plain}{\textwidth}{\normalrulethickness}{\footruleskip}
\makeevenfoot {plain}{\small \thepage}{}{}
\makeoddfoot {plain}{}{}{\small \thepage}
\makeindex

\makepsmarks {plain}{
\nouppercaseheads
\createmark {chapter} {both} {shownumber}{}{. \ }
\createmark {section} {both}{shownumber}{} {. \ }
\createmark {subsection} {both}{shownumber}{} {. \ }
\createmark {subsubsection}{both}{shownumber}{} {. \ }
\createplainmark {toc} {both} {\contentsname}
\createplainmark {lof} {both} {\listfigurename}
\createplainmark {lot} {both} {\listtablename}
\createplainmark {bib} {both} {\bibname}
\createplainmark {index} {both} {\indexname}
\createplainmark {glossary} {both} {\glossaryname}
}
\setsecnumdepth{subsubsection}
\pagestyle{myruled}
\makeindex

我怎样才能让乳胶在图表和表格标签及参考文献中添加句点?


编辑:

在评论中讨论之后,我展示了一个重现该问题的最小示例以及解决该问题的修复程序。最小示例是:

\documentclass{memoir}

\usepackage{graphicx}

\begin{document}

\mainmatter
\chapter{Introduction}
\begin{figure}
\includegraphics[scale=1]{plot.png}
\caption{Plot}
\label{fig:plot}
\end{figure}

See figure \ref{fig:plot}.

\end{document}

更换

\mainmatter

\mainmatter
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}

修复了表面层面的问题,图形编号系统现在在Chapter和 之间包含一个句点Figure number in the chapter

截图上写着“参见图一一点一”。

相关内容