Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 硕博模板中cover/hideCoverInPeerReview应仍默认为 false #549

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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