Skip to content

Commit

Permalink
V2 pretest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Dec 27, 2022
1 parent 700093d commit 838c0e9
Show file tree
Hide file tree
Showing 77 changed files with 6,453 additions and 3,078 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@
/.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
build_v*.sh export-ignore
dev-v2.tex export-ignore
12 changes: 5 additions & 7 deletions .latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ $ENV{'TZ'}='Asia/Shanghai';
# Ensure './texmf//' is in '$TEXINPUTS'.
ensure_path( 'TEXINPUTS', './texmf//' );

# Use lualatex with latexmk.
# $pdf_mode = 4;

# Use xelatex with latexmk.
# PDF generate method
# - 1 pdfTeX
# - 3 LaTeX + DVIPDFMx
# - 4 LuaLaTeX
# - 5 XeLaTeX
$pdf_mode = 5;

# Disable postscript and dvi output.
$postscript_mode = $dvi_mode = 0;

# Add common patterns for tex engines.
set_tex_cmds( '-synctex=1 %O %S' );

Expand Down
26 changes: 0 additions & 26 deletions build_v1.sh

This file was deleted.

15 changes: 0 additions & 15 deletions build_v2.sh

This file was deleted.

63 changes: 18 additions & 45 deletions contents/floats.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ \subsection{单个图形}
\label{fig:cn_100t}
\end{figure}

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

\subsection{多个图形}

简单插入多个图形的例子如图~\ref{fig:SRR} 所示。这两个水平并列放置的子图共用一个
Expand Down Expand Up @@ -69,38 +62,13 @@ \subsection{多个图形}
\end{minipage}
\end{figure}

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

如果要为共用一个计数器的多个子图添加子图题,建议使用较新的 \pkg{subcaption}宏
包,不建议使用 \pkg{subfigure} 或 \pkg{subfig} 等宏包。

推荐使用 \pkg{subcaption} 宏包的 \cs{subcaptionbox} 并排子图,子图题置于子图之
下,子图号用 a)、b) 等表示。也可以使用 \pkg{subcaption} 宏包的 \cs{subcaption}
(放在 minipage中,用法同 \cs{caption})。

搭配 \pkg{bicaption} 宏包时,可以启用 \cs{subcaptionbox} 和 \cs{subcaption} 的双
语变种 \cs{bisubcaptionbox} 和 \cs{bisubcaption},如图~\ref{fig:bisubcaptionbox}
所示。

\begin{figure}[!hbtp]
\centering
\bisubcaptionbox{$R_3 = 1.5\text{mm}$ 时轴承的压力分布云图}%
{Pressure contour of bearing when $R_3 = 1.5\text{mm}$}%
[6.4cm]{\includegraphics[height=2.5cm]{pressure15.jpg}}
\hspace{1cm}
\bisubcaptionbox{$R_3 = 2.5\text{mm}$ 时轴承的压力分布云图}%
{Pressure contour of bearing when $R_3 = 2.5\text{mm}$}%
[6.4cm]{\includegraphics[height=2.5cm]{/pressure25.jpg}}
\bicaption{包含子图题的范例(使用 subcaptionbox)}
{Example with subcaptionbox}
\label{fig:bisubcaptionbox}
\end{figure}

\pkg{subcaption} 宏包也提供了 \pkg{subfigure} 和 \pkg{subtable} 环境,如
图~\ref{fig:subfigure}。

Expand All @@ -121,12 +89,24 @@ \subsection{多个图形}
\label{fig:subfigure}
\end{figure}

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
搭配 \pkg{bicaption} 宏包时,可以启用 \cs{subcaptionbox} 和 \cs{subcaption} 的双
语变种 \cs{bisubcaptionbox} 和 \cs{bisubcaption},如图~\ref{fig:bisubcaptionbox}
所示。

\begin{figure}[!hbtp]
\centering
\bisubcaptionbox{$R_3 = 1.5\text{mm}$ 时轴承的压力分布云图}%
{Pressure contour of bearing when $R_3 = 1.5\text{mm}$}%
[6.4cm]{\includegraphics[height=3cm]{example-image-a.pdf}}
\hspace{1cm}
\bisubcaptionbox{$R_3 = 2.5\text{mm}$ 时轴承的压力分布云图}%
{Pressure contour of bearing when $R_3 = 2.5\text{mm}$}%
[6.4cm]{\includegraphics[height=3cm]{example-image-b.pdf}}
\bicaption{包含子图题的范例(使用 subcaptionbox)}
{Example with subcaptionbox}
\label{fig:bisubcaptionbox}
\end{figure}


\section{表格}

Expand Down Expand Up @@ -188,13 +168,6 @@ \subsection{复杂表格}
\end{threeparttable}
\end{table}

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

如某个表需要转页接排,可以用 \pkg{longtable} 实现。接排时表题省略,表头应重复书
写,并在右上方写“续表 xx”,如表~\ref{tab:performance}。

Expand Down
2 changes: 1 addition & 1 deletion contents/math_and_citations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ \subsection{定理环境}
\section{引用文献的标注}

按照教务处的要求,参考文献外观应符合国标 GB/T 7714 的要求。模版使用 \BibLaTeX\
配合 \pkg{biblatex-gb7714-2015} 样式包
配合 \pkg{biblatex-gb7714-2015} 样式包%
\footnote{\url{https://www.ctan.org/pkg/biblatex-gb7714-2015}}
控制参考文献的输出样式,后端采用 \pkg{biber} 管理文献。

Expand Down
2 changes: 2 additions & 0 deletions contents/nomenclature.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
\begin{nomenclature*}
\label{chap:symb}

\sjtusetup{style={float-font=\normalsize}}

\begin{longtable}{rl}
$\epsilon$ & 介电常数 \\
$\mu$ & 磁导率 \\
Expand Down
203 changes: 0 additions & 203 deletions dev-v2.tex

This file was deleted.

Binary file removed figures/pressure15.jpg
Binary file not shown.
Binary file removed figures/pressure25.jpg
Binary file not shown.
Loading

0 comments on commit 838c0e9

Please sign in to comment.