Skip to content

Commit

Permalink
Set default font for tablenotes of threeparttable
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Jan 5, 2025
1 parent 7ea4ecf commit e7c7c93
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ustcthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2748,11 +2748,12 @@
% 图注、表注使用 `\figurenote` 或 `\tablenote` 命令,与 `apa7.cls` 一致。
% 图注采用宋体 11pt,单倍行距,段前6磅,段后0磅。
% 多个图注则须顺序编号,注序左缩进2字,与注文之间空一字符,续行悬挂缩进左对齐,两端对齐。
\let\ustc@figure@note@font\ustc@caption@font
\newcommand\figurenote[1]{%
\begingroup
\par
\setlength\parskip{6bp}%
\ustc@caption@font
\ustc@figure@note@font
\parbox{\linewidth}{#1\par}\par
\endgroup
}
Expand All @@ -2763,6 +2764,13 @@
\figurenote{#1}%
}

% 设置 \pkg{threeparttable} 表注的默认字号。
\AtEndOfPackageFile*{threeparttable}{
\AtBeginEnvironment{tablenotes}{%
\ustc@figure@note@font
}
}

% 不宜将多个插图连续排版,插图与文字论述段落应穿插排版。

% 修改默认的浮动体描述符为 |h|。
Expand Down

0 comments on commit e7c7c93

Please sign in to comment.