Skip to content

Commit

Permalink
Support multiple pages of sub-figures
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebye committed Jan 24, 2020
1 parent d7a9018 commit 312db91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ xelatex main.tex

### 插入图片和表格

插入图片使用`figure`环境,自动调整图片前后的间距。插入表格使用`table`环境,自动调整表格前后的间距和默认的字体大小。
插入图片使用`figure`环境,自动调整图片前后的间距,添加子图则使用`\subfloat`命令。若子图过多需要跨页则在间断处插入`\subfloatpagebreak`命令。插入表格使用`table`环境,自动调整表格前后的间距和默认的字体大小。

图片文件可以统一放在`./pic`目录下。具体插入图片和表格的代码参考范例`main.tex`

Expand Down
3 changes: 2 additions & 1 deletion thesis-uestc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@
\graphicspath{{./pic/}}

\RequirePackage[titles]{tocloft}
\usepackage[labelformat=simple]{subcaption}
\RequirePackage[labelformat=simple]{subcaption}
\captionsetup[sub]{font=small, belowskip=0pt}
\renewcommand{\thesubfigure}{(\alph{subfigure})}
\newcommand{\subfloatpagebreak}{\end{figure}\clearpage\begin{figure}[tb]\ContinuedFloat}

\urlstyle{rm}
\raggedbottom
Expand Down

0 comments on commit 312db91

Please sign in to comment.