Skip to content

Commit a4217d4

Browse files
committed
Fix placement parameters of floats
1 parent 6a2b43e commit a4217d4

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

ustcthesis.cls

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,22 +2901,23 @@
29012901

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

2904-
% 修改默认的浮动体描述符为 |h|。
2905-
\def\fps@figure{h}
2906-
\def\fps@table{h}
2904+
% 修改默认的浮动体描述符为 |htbp|。
2905+
% 根据 <https://texfaq.org/FAQ-floats> 的建议,不应删除 `p`。''
2906+
\def\fps@figure{htbp}
2907+
\def\fps@table{htbp}
29072908

29082909
% \LaTeX{} 对放置浮动体的要求比较强,这里按照 UK TeX FAQ 的建议
29092910
% \footnote{\url{https://texfaq.org/FAQ-floats}} 对其适当放宽。
2910-
\renewcommand\topfraction{.85}
2911-
\renewcommand\bottomfraction{.7}
2912-
\renewcommand\textfraction{.15}
2913-
\renewcommand\floatpagefraction{.66}
2914-
\renewcommand\dbltopfraction{.66}
2915-
\renewcommand\dblfloatpagefraction{.66}
2916-
\setcounter{topnumber}{9}
2917-
\setcounter{bottomnumber}{9}
2918-
\setcounter{totalnumber}{20}
2919-
\setcounter{dbltopnumber}{9}
2911+
\renewcommand\topfraction{.85} % .7
2912+
\renewcommand\bottomfraction{.7} % .3
2913+
\renewcommand\textfraction{.15} % .2
2914+
\renewcommand\floatpagefraction{.66} % .5
2915+
\renewcommand\dbltopfraction{.66} % .7
2916+
\renewcommand\dblfloatpagefraction{.66} % .5
2917+
\setcounter{topnumber}{9} % 2
2918+
\setcounter{bottomnumber}{9} % 1
2919+
\setcounter{totalnumber}{20} % 3
2920+
\setcounter{dbltopnumber}{9} % 2
29202921

29212922
% 插图前后与文字段落之间须留有10磅空行。
29222923
% 插图如果不得不与其它插图或表格连续排版,则它们之间须留有20磅空行。

0 commit comments

Comments
 (0)