1、使图表编号和公式编号显示为 - 表示的方法:LaTeX使图表编号和公式编号显示为 - 表示的方法_latex表格名称带-_zorchp的博客-优快云博客
2、设置图名与图序、表名与表序之间的间距
\usepackage{caption}
\usepackage{subcaption}
\DeclareCaptionLabelSeparator{onespace}{\; ~}
% 指定图片的标签分割
\captionsetup[figure]{labelsep=onespace}
\DeclareCaptionLabelSeparator{twospace}{\quad ~}
% 指定表格的标签分割
\captionsetup[table]{labelsep=twospace}
举个例子,部分学校学位论文要求表序与表名之间的间距为两个字距,图序与图名之间间距为1个字距,此时这段代码就非常有用了
参考链接::https://blog.youkuaiyun.com/ProgramChangesWorld/article/details/51582247
https://www.latexstudio.net/archives/8652.html
3、去除参考文献中的双斜杠(针对专著文献)
\RequirePackage[backend=biber,maxnames = 99,style=biblatex/gb7714-2015,gbpunctin=false,gbpub=false, gbnamefmt =lowercase]{biblatex} % , gbbiblabel=plain
\DefineBibliographyStrings{english}{in={}}
上述代码需要加入进cls文件中,参考链接:https://www.cnblogs.com/lafiizh/p/12112236.html
4、图片单独占一页时放在页面顶部
\clearpage % 强制单独一页
\begin{figure}[p!]
\centering
\includegraphics[width=\TwoSidefigWidth]{selfImages/3D U-Net.png}
\caption{3D U-Net分割结果可视化示例}
\label{Fig3-9}
\end{figure}
[p!]选项不能保证将图片放置在页面顶部,具体取决于页面布局和文本内容。如果无法在页面顶部放置图片,则可以尝试使用\vspace{}命令在图片和页面顶部之间添加一些垂直间距来实现所需的效果。如下面代码所示:
\clearpage % 强制单独一页
\vspace{1em}
\begin{figure}
\vspace{1cm} % 设置图片到页面顶部距离
\centering
\includegraphics[width=\TwoSidefigWidth]{selfImages/3D U-Net.png}
\caption{3D U-Net分割结果可视化示例}
\label{Fig3-9}
\end{figure}
5为图目录每个条目添加“图”字
\usepackage{titletoc} % 导入包
\titlecontents{figure}
[0pt]
{}
{\songti\zihao{-4} 图\thecontentslabel\quad}
{}{\hspace{.5em}\titlerule*[8pt]{.}\contentspage}
6 ctex设置表明和描述在表格之上
% 设置表格标题位于表格正文上方
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
7设置表目录、图目录的条目字体大小,参考自链接:
{\normalsize \listoftables % 显示表目录并设置表目录条目字号}