Skip to content

Commit

Permalink
fix: 硕博模板中cover/hideCoverInPeerReview应仍默认为 false
Browse files Browse the repository at this point in the history
重新实现了 #533286fa70Fixes #548
  • Loading branch information
YDX-2147483647 authored and fky2015 committed Aug 29, 2024
1 parent 424e5b8 commit c845fef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ \subsubsection{封面选项} \label{sec:cover}
设置封面信息中下划线的偏移量。
\end{function}

\begin{function}[added=2023-05-09, updated=2024-06-14]{cover/hideCoverInPeerReview}
\begin{function}[added=2023-05-09, updated=2024-08-28]{cover/hideCoverInPeerReview}
\begin{bitsyntax}[emph={[1]hideCoverInPeerReview}]
hideCoverInPeerReview = (*(from-thesis-type)|false|true*)
hideCoverInPeerReview = (*false|true*)
\end{bitsyntax}

\textit{此选项默认值会按论文类型自动设置,一般已满足要求,不需要用户自行修改。}
Expand All @@ -706,7 +706,7 @@ \subsubsection{封面选项} \label{sec:cover}
\begin{itemize}
\item 若设为 |true|,盲审模式下直接删除封面。
\item 若设为 |false|,盲审模式下保留封面,只是隐去个人信息。
\item (默认)若设为 |from-thesis-type|,自动根据论文类型设置。具体来说,本科生设为 |true|,研究生设为 |false|。
\item (默认)若未设置,自动根据论文类型设置。具体来说,本科生设为 |true|,研究生设为 |false|。
\end{itemize}

未启用盲审模式时,此选项无效果。
Expand Down
22 changes: 11 additions & 11 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -615,17 +615,9 @@
underlineThickness .initial:n = {1pt},
underlineOffset .dim_set:N = \l_@@_cover_underline_offset_dim,
underlineOffset .initial:n = { -10pt },
hideCoverInPeerReview .choice:,
hideCoverInPeerReview / true .code:n = { \bool_set_true:N \l_@@_cover_hide_cover_in_peer_review_bool },
hideCoverInPeerReview / false .code:n = { \bool_set_false:N \l_@@_cover_hide_cover_in_peer_review_bool },
hideCoverInPeerReview / from-thesis-type .code:n = {
\@@_if_graduate:TF {
\bool_set_false:N \l_@@_cover_hide_cover_in_peer_review_bool
} {
\bool_set_true:N \l_@@_cover_hide_cover_in_peer_review_bool
}
},
hideCoverInPeerReview .initial:n = {from-thesis-type},
hideCoverInPeerReview .bool_set:N = \l_@@_cover_hide_cover_in_peer_review_bool,
% 此处暂且填充默认值为`false`,待确定`\g_@@_thesis_type_int`后再根据论文类型覆盖默认值
hideCoverInPeerReview .initial:n = {false},
% 研究生的「特殊类型」
showSpecialTypeBox .bool_set:N = \l_@@_cover_show_special_type_box_bool,
showSpecialTypeBox .initial:n = {false},
Expand Down Expand Up @@ -936,6 +928,14 @@
% \begin{macrocode}
\ProcessKeysOptions { bithesis / option }
% \end{macrocode}
% 确定 |bithesis/option| 中的 |\g_@@_thesis_type_int| 后,根据论文类型自动覆盖某些选项的默认值。
% \begin{macrocode}
\@@_if_graduate:TF {
\keys_set:nn {bithesis} {cover/hideCoverInPeerReview = false}
} {
\keys_set:nn {bithesis} {cover/hideCoverInPeerReview = true}
}
% \end{macrocode}
%
% \subsubsection{处理模板选项}
%
Expand Down

0 comments on commit c845fef

Please sign in to comment.