Skip to content

Commit

Permalink
Merge pull request #115 from NWPUMetaphysicsOffice/fcz-dev
Browse files Browse the repository at this point in the history
Update yanputhesis.dtx
  • Loading branch information
CongzhuoFang authored Nov 29, 2023
2 parents 7f52b40 + d63cafe commit 00abadb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
*.nlo
*.hd
zhmakeindex
yanputhesis.pdf
yanputhesis-sample.pdf
4 changes: 2 additions & 2 deletions yanputhesis-sample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ \section{插图}
\centering
\begin{subfigure}[t]{0.47\textwidth}
\centering
\includegraphics[scale=0.1]{poster.png}
\includegraphics[scale=0.12]{poster.png}
\caption{\label{subfig:example2-subfig1}}
\end{subfigure}
\begin{subfigure}[t]{0.47\textwidth}
\centering
\includegraphics[scale=0.1]{poster.png}
\includegraphics[scale=0.12]{poster.png}
\caption{\label{subfig:example2-subfig2}}
\end{subfigure}
\end{minipage}
Expand Down
8 changes: 4 additions & 4 deletions yanputhesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@
\RequirePackage{setspace} % 空白长度控制
\RequirePackage{ragged2e} % 对齐
\DeclareCaptionFont{cWuhao}{\sWuhao} % 图表标题为五号
\captionsetup[table]{labelfont=cWuhao,textfont=cWuhao} %
\captionsetup[figure]{labelfont=cWuhao,textfont=cWuhao} %
\captionsetup[subtable]{labelformat=simple, aboveskip=0pt} %
\captionsetup[subfigure]{labelformat=simple, aboveskip=0pt} %
\captionsetup[table]{labelfont=cWuhao,textfont=cWuhao, aboveskip=10pt, belowskip=0pt} %
\captionsetup[figure]{labelfont=cWuhao,textfont=cWuhao, aboveskip=10pt, belowskip=0pt} %
\captionsetup[subtable]{labelformat=simple, aboveskip=10pt, belowskip=-5pt} %
\captionsetup[subfigure]{labelformat=simple, aboveskip=10pt, belowskip=-5pt}%
\AtBeginEnvironment{tabular}{\sWuhao} % 表格内容为五号
\AtBeginEnvironment{tabularx}{\sWuhao} %
\newcolumntype{C}{>{\centering\arraybackslash}X} % 等宽居中
Expand Down
17 changes: 10 additions & 7 deletions yanputhesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,12 @@ $$a_0+a_1+a_2=\sqrt{233}$$
\centering
\begin{subfigure}[t]{0.47\textwidth}
\centering
\includegraphics[scale=0.1]{poster.png}
\includegraphics[scale=0.12]{poster.png}
\caption{\label{subfig:example2-subfig1}}
\end{subfigure}
\begin{subfigure}[t]{0.47\textwidth}
\centering
\includegraphics[scale=0.1]{poster.png}
\includegraphics[scale=0.12]{poster.png}
\caption{\label{subfig:example2-subfig2}}
\end{subfigure}
\end{minipage}
Expand Down Expand Up @@ -796,7 +796,7 @@ int main()
%%-----------------------------------------------------------------------------%
\RequirePackage{geometry} % 纸张尺寸及页边距
% \end{macrocode}
% \markdtxchanges{v1.8.1}{2022/12/06}{摘要关键词之间空一行}
% \markdtxchanges{v1.8.5}{2023/11/29}{微调页眉页脚设置}
% \begin{macrocode}
\geometry{a4paper, % A4 纸张
left=2.5cm, right=2.5cm, top=2.54cm, bottom=2.54cm, % 页边距
Expand Down Expand Up @@ -1020,13 +1020,16 @@ int main()
\RequirePackage{setspace} % 空白长度控制
\RequirePackage{ragged2e} % 对齐
\DeclareCaptionFont{cWuhao}{\sWuhao} % 图表标题为五号
\captionsetup[table]{labelfont=cWuhao,textfont=cWuhao} %
\captionsetup[figure]{labelfont=cWuhao,textfont=cWuhao} %
\captionsetup[table]{labelfont=cWuhao,textfont=cWuhao, aboveskip=10pt, belowskip=0pt} %
\captionsetup[figure]{labelfont=cWuhao,textfont=cWuhao, aboveskip=10pt, belowskip=0pt} %
% \end{macrocode}
% \markdtxchanges{v1.7.0}{2022/10/31}{更新子图、子表格式}
% \begin{macrocode}
\captionsetup[subtable]{labelformat=simple, aboveskip=0pt} %
\captionsetup[subfigure]{labelformat=simple, aboveskip=0pt} %
\captionsetup[subtable]{labelformat=simple, aboveskip=10pt, belowskip=-5pt} %
% \end{macrocode}
% \markdtxchanges{v1.8.5}{2023/11/29}{更新子图与子图标题间距}
% \begin{macrocode}
\captionsetup[subfigure]{labelformat=simple, aboveskip=10pt, belowskip=-5pt}%
% \end{macrocode}
% \markdtxchanges{v1.8.1}{2022/12/06}{重写表格内容为五号格式语句}
% \begin{macrocode}
Expand Down

0 comments on commit 00abadb

Please sign in to comment.