Skip to content

Commit

Permalink
fix:修复表格标题样式
Browse files Browse the repository at this point in the history
  • Loading branch information
wrm244 committed Apr 26, 2024
1 parent 3eb0b16 commit 60632ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chapters/chapter1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
在过去的几十年里处理器上的晶体管数量依照摩尔定律\cite{Tan.Du.ea_2021}的预测呈现出指数级的增长趋势,如这张50年间的微处理器的发展趋势图(\cref{fig:processor-trend})所示。
……


\chapter{第二章示例}
\begin{figure}[htb]
\includegraphics[width=0.8 \textwidth]{50-years-processor-trend.png}
\caption[处理器发展]{近50年微处理器发展趋势} % 中括号中内容为插图索引中显示内容,可在题注内容过长时使用
Expand Down
2 changes: 1 addition & 1 deletion chapters/chapter2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ \section{跨页表格示例}
\endfirsthead
%
\multicolumn{6}{c}%
{{表 \thetable\ RSM仿真实验规划表 (续)}} \\
{\fontsize{10.5pt}{10.5pt}\selectfont\heiti{表 \thetable\ RSM仿真实验规划表 (续)}} \\
\toprule
标准序 & 运行序 & $H_{rib}\ \rm{(mm)}$ & $H_{pf}\ \rm{(mm)}$ & $N_{pf}$ & $N_{ac}$ \\ \midrule
\endhead
Expand Down
Binary file added main.pdf
Binary file not shown.
14 changes: 9 additions & 5 deletions thesis-guet.cls
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,15 @@


% ===============设置图表格式===============
\DeclareCaptionFont{bfheiti}{\fontsize{10.5pt}{10.5pt}\selectfont\heiti}
\captionsetup{width=\textwidth - 60pt}
\captionsetup[subfigure]{aboveskip=2pt, belowskip=2pt} % width=36pt 设置子图标题的宽度
\captionsetup[subfoat]{aboveskip=2pt, belowskip=2pt}
\captionsetup[figure]{aboveskip=3pt, belowskip=0pt} %设置标题与插图或表格之间的垂直距离,设置标题与下文之间的附加垂直距离, 如果标题在插图或表格之下;或标题与上文之间的附加垂直距离, 如果标题在插图或表格之上。该参数的默认值是0pt。为6pt,下面为0pt
\captionsetup[table]{aboveskip=0pt, belowskip=6pt}
\captionsetup[longtable]{aboveskip=0pt, belowskip=6pt}
\captionsetup[subfigure]{aboveskip=5.25pt, belowskip=2pt,labelfont=bfheiti,textfont=bfheiti} % width=36pt 设置子图标题的宽度
\captionsetup[subfoat]{aboveskip=5.25pt, belowskip=2pt,labelfont=bfheiti,textfont=bfheiti}
\captionsetup[figure]{aboveskip=5.25pt, belowskip=0pt,labelfont=bfheiti,textfont=bfheiti}
%设置标题与插图或表格之间的垂直距离,设置标题与下文之间的附加垂直距离,
%如果标题在插图或表格之下;或标题与上文之间的附加垂直距离, 如果标题在插图或表格之上。该参数的默认值是0pt。为6pt,下面为0pt
\captionsetup[table]{aboveskip=5.25pt, belowskip=6pt,labelfont=bfheiti,textfont=bfheiti}
\captionsetup[longtable]{aboveskip=0pt, belowskip=6pt,labelfont=bfheiti,textfont=bfheiti}
\setlength{\intextsep}{9pt} % 控制出现在页⾯中间的浮动体(如使⽤了h 选项的浮动体)与上下方文本之间的垂直距离
% \setlength{\textfloatsep}{6pt} % 控制出现在页⾯的顶部或底部的浮动体与⽂本之间的垂直距离

Expand All @@ -419,6 +422,7 @@
\def\@floatboxreset{\centering} %
}
\AtBeginEnvironment{tabular}{\small} %表格字体小五
\AtBeginEnvironment{tabularx}{\small} %表格字体小五
\AtBeginEnvironment{tabular*}{\small} %表格字体小五
\AtBeginEnvironment{longtable}{\small} %跨页表格字体小五
%\captionsetup{format=hang} %caption工具包在加载时可以修改标题的很多方面,也可以通过 captionsetup命令也可以在工具包选项中修改。\captionsetup[浮动体类型]{参数1=选项, 参数2=选项,…}其中可选参数浮动体类型的选项可以是figure或table,如果省略该参数, 则表示这两种浮动体都适用。format:plain默认值,将标题作为普通段落排版。hang将标题从第二行起悬挂缩进排版,缩进宽度等于标题标志加分隔符的宽度。indention设置从标题第二行起的附加缩进宽度, 例如indention=5mm,其默认值是0pt。
Expand Down

0 comments on commit 60632ed

Please sign in to comment.