Skip to content

Commit

Permalink
fix(GT): add a switch to show special type.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Mar 22, 2024
1 parent 648d5b6 commit c6cd86e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
9 changes: 9 additions & 0 deletions bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,15 @@ \subsubsection{封面选项} \label{sec:cover}
在盲审模式下,不渲染封面。
\end{function}

\begin{function}[added=2024-03-22]{cover/showSpecialTypeBox}
\begin{bitsyntax}[emph={[1]showSpecialTypeBox}]
hideCoverInPeerReview = (*(false)|true*)
\end{bitsyntax}

展示「特殊类型」(研究生模板)的那个信息框。
因为美观原因默认关闭,和研究生院确认过这个信息框重要程度比较低。
\end{function}

\subsubsection{论文基本信息}

\begin{function}{info}
Expand Down
15 changes: 9 additions & 6 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,11 @@
underlineThickness .initial:n = {1pt},
underlineOffset .dim_set:N = \l_@@_cover_underline_offset_dim,
underlineOffset .initial:n = { -10pt },
hideCoverInPeerReview .bool_set:N = \l_@@_style_hide_cover_in_peer_review_bool,
hideCoverInPeerReview .bool_set:N = \l_@@_cover_hide_cover_in_peer_review_bool,
hideCoverInPeerReview .initial:n = {false},
% 研究生的「特殊类型」
showSpecialTypeBox .bool_set:N = \l_@@_cover_show_special_type_box_bool,
showSpecialTypeBox .initial:n = {false}
}
% \end{macrocode}
%
Expand Down Expand Up @@ -1845,7 +1848,7 @@

% 以下内容是「特别类型」的内容,
% 在没有勾选的时候隐藏。
\bool_if:nT {\l_@@_value_international_student_ugp_bool || \l_@@_value_cross_research_bool} {
\bool_if:nT {\l_@@_cover_show_special_type_box_bool || \l_@@_value_international_student_ugp_bool || \l_@@_value_cross_research_bool} {
\begin{minipage}[t]{0.48\textwidth}
\vspace{-12pt}
\begin{flushright}
Expand Down Expand Up @@ -2134,7 +2137,7 @@
% \begin{macrocode}
\DeclareDocumentCommand \MakeCover {}
{
\begin{blindPeerReview}[\l_@@_style_hide_cover_in_peer_review_bool]
\begin{blindPeerReview}[\l_@@_cover_hide_cover_in_peer_review_bool]
\group_begin:

\int_case:nn {\g_@@_thesis_type_int}
Expand Down Expand Up @@ -2384,7 +2387,7 @@
\NewDocumentCommand \MakeOriginality {}
{
\group_begin:
\begin{blindPeerReview}[\l_@@_style_hide_cover_in_peer_review_bool]
\begin{blindPeerReview}[\l_@@_cover_hide_cover_in_peer_review_bool]
\int_case:nn {\g_@@_thesis_type_int}
{
{1}
Expand Down Expand Up @@ -2492,7 +2495,7 @@
% \begin{macrocode}
\NewDocumentCommand \MakePaperBack {}
{
\begin{blindPeerReview}[\l_@@_style_hide_cover_in_peer_review_bool]
\begin{blindPeerReview}[\l_@@_cover_hide_cover_in_peer_review_bool]
\make_paper_back:
\end{blindPeerReview}
}
Expand All @@ -2504,7 +2507,7 @@
% \begin{macrocode}
\NewDocumentCommand \MakeTitle {}
{
\begin{blindPeerReview}[\l_@@_style_hide_cover_in_peer_review_bool]
\begin{blindPeerReview}[\l_@@_cover_hide_cover_in_peer_review_bool]
\@@_make_chinese_title_page:
\@@_make_english_title_page:
\end{blindPeerReview}
Expand Down

0 comments on commit c6cd86e

Please sign in to comment.