Skip to content

Commit

Permalink
docs: finish polishing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Sep 30, 2022
1 parent f3b16c7 commit 0186b7d
Show file tree
Hide file tree
Showing 8 changed files with 787 additions and 320 deletions.
304 changes: 226 additions & 78 deletions bithesis.dtx

Large diffs are not rendered by default.

163 changes: 115 additions & 48 deletions templates/graduate-thesis/bithesis.cls

Large diffs are not rendered by default.

72 changes: 49 additions & 23 deletions templates/lab-report/bitreport.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitreport}
{2022-09-29}{3.0.3}{BIT Thesis Templates}


{2022-09-30}{3.0.4}{BIT Thesis Templates}
\int_new:N \g__bithesis_report_type_int

\clist_const:Nn \c__bithesis_report_type_clist
{ common, undergraduate_proposal}
\seq_new:N \l__bithesis_right_seq
Expand Down Expand Up @@ -191,29 +188,39 @@
{1} {
\begin{titlepage}
\centering

\vspace{23mm}

\tl_if_empty:NF \l_bit_coverimagepath_tl {
\includegraphics[width=.5\textwidth]{\l_bit_coverimagepath_tl}\\
}

\vspace{10mm}

\heiti\fontsize{24pt}{24pt}\selectfont{\l__bithesis_value_title_tl}\\

\vspace{67mm}
\begin{spacing}{2.2}
\songti\zihao{3}
\clist_set:Nn \l__bithesis_input_clist {
{\textbf{\qquad 院:}} {\l__bithesis_value_school_tl},
{\textbf{\qquad 业:}} {\l__bithesis_value_major_tl},
{\textbf{\qquad 级:}} {\l__bithesis_value_class_tl},
{\textbf{\qquad 号:}} {\l__bithesis_value_student_id_tl},
{\textbf{\qquad 名:}} {\l__bithesis_value_author_tl},
{\textbf{任课教师:}} {\l__bithesis_value_supervisor_tl},
}

\__bithesis_render_cover_entry:n \l__bithesis_input_clist
\begin{spacing}{2.2}
\songti\zihao{3}

\clist_set:Nn \l__bithesis_input_clist {
{\textbf{\qquad 院:}} {\l__bithesis_value_school_tl},
{\textbf{\qquad 业:}} {\l__bithesis_value_major_tl},
{\textbf{\qquad 级:}} {\l__bithesis_value_class_tl},
{\textbf{\qquad 号:}} {\l__bithesis_value_student_id_tl},
{\textbf{\qquad 名:}} {\l__bithesis_value_author_tl},
{\textbf{任课教师:}} {\l__bithesis_value_supervisor_tl},
}

\__bithesis_render_cover_entry:n \l__bithesis_input_clist

\end{spacing}

\end{spacing}
\vspace*{\fill}

\centering

\songti\fontsize{12pt}{12pt}\selectfont{
\tl_if_empty:NTF \l__bithesis_cover_date_tl {
\today
Expand All @@ -229,11 +236,15 @@
\topskip=0pt
\vspace*{-16mm}
\centering
\hspace{-6mm}\songti\fontsize{22pt}{22pt}\selectfont{北京理工大学}\par
\hspace{-6mm}
\songti\fontsize{22pt}{22pt}
\selectfont{北京理工大学}\par

\vspace{13mm}

\hspace{-6mm}\heiti\fontsize{24pt}{24pt}\selectfont{本科生毕业设计(论文)开题报告}\par
\hspace{-6mm}
\heiti\fontsize{24pt}{24pt}
\selectfont{本科生毕业设计(论文)开题报告}\par

\vspace{53mm}

Expand All @@ -246,7 +257,7 @@
{\textbf{\qquad 名:}} {\l__bithesis_value_author_tl},
{\textbf{指导教师:}} {\l__bithesis_value_supervisor_tl},
{\textbf{校外指导教师:}} {\l__bithesis_value_external_supervisor_tl},
}
}

\__bithesis_render_cover_entry:n \l__bithesis_input_clist

Expand All @@ -256,6 +267,7 @@

\centering
\hspace{-6mm}\songti\fontsize{12pt}{12pt}\selectfont{\today}

\end{titlepage}
}
}
Expand All @@ -279,24 +291,38 @@
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\ctexset{section={
format={\raggedright \bfseries \songti \zihao{-3}},
format={
\raggedright \bfseries \songti \zihao{-3}
},
beforeskip = 24bp plus 1ex minus .2ex,
afterskip = 24bp plus .2ex,
fixskip = true,
name = {,.\quad}
}
}
\ctexset{subsection={
format = {\bfseries \songti \raggedright \zihao{4}},
format = {
\bfseries \songti \raggedright \zihao{4}
},
beforeskip = 24bp plus 1ex minus .2ex,
afterskip = 24bp plus .2ex,
fixskip = true,
}
}
\fancyhf{}
\int_case:nn {\g__bithesis_report_type_int} {
{1} {\fancyhead[R]{\fontsize{10.5pt}{10.5pt}\selectfont{\l__bithesis_value_title_tl}}}
{2} {\fancyhead[R]{\fontsize{10.5pt}{10.5pt}\selectfont{北京理工大学本科生毕业设计(论文)开题报告}}}
{1} {
\fancyhead[R]{
\fontsize{10.5pt}{10.5pt}
\selectfont{\l__bithesis_value_title_tl}
}
}
{2} {
\fancyhead[R]{
\fontsize{10.5pt}{10.5pt}
\selectfont{北京理工大学本科生毕业设计(论文)开题报告}
}
}
}
\fancyfoot[R]{\fontsize{9pt}{9pt}\selectfont{\thepage}}
\renewcommand{\headrulewidth}{1pt}
Expand Down
Loading

0 comments on commit 0186b7d

Please sign in to comment.