Skip to content

Commit

Permalink
Merge pull request #379 from BITNP/dev-fky
Browse files Browse the repository at this point in the history
fix: remove \@@_secret_info:x
  • Loading branch information
fky2015 authored Jul 8, 2023
2 parents c92c52d + b70617e commit d77f47f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 21 deletions.
7 changes: 2 additions & 5 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
%
% \subsubsection{辅助函数与常量}
%
% \begin{macro}[added=2023-05-06]{\@@_secret_info:nn,\@@_secret_info:N,\@@_secret_info:n,\@@_secret_info:x}
% \begin{macro}[added=2023-05-06,updated=2023-07-04]{\@@_secret_info:nn,\@@_secret_info:N,\@@_secret_info:n}
% 普通模式下显示参数一,盲审模式下显示参数二。
% \begin{macrocode}
\cs_new:Npn \@@_hide:n #1 {
Expand All @@ -156,9 +156,6 @@
\cs_new:Npn \@@_secret_info:n #1 {
\@@_secret_info:nn {#1} {\tl_map_function:NN {#1} \@@_hide:n }
}

\cs_generate_variant:Nn \@@_secret_info:n {x}

% \end{macrocode}
%
% \end{macro}
Expand Down Expand Up @@ -2038,7 +2035,7 @@
\IfValueTF {#2} {
\@@_secret_info:nn {#1} {#2}
} {
\@@_secret_info:x {#1}
\@@_secret_info:n {#1}
}
}
% \end{macrocode}
Expand Down
5 changes: 1 addition & 4 deletions templates/graduate-thesis/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
\cs_new:Npn \__bithesis_secret_info:n #1 {
\__bithesis_secret_info:nn {#1} {\tl_map_function:NN {#1} \__bithesis_hide:n }
}

\cs_generate_variant:Nn \__bithesis_secret_info:n {x}

\cs_new:Npn \__bithesis_get_const:N #1 {
\__bithesis_if_thesis_english:TF {
\use:c {c__bithesis_label_ #1 _en_tl}
Expand Down Expand Up @@ -1423,7 +1420,7 @@
\IfValueTF {#2} {
\__bithesis_secret_info:nn {#1} {#2}
} {
\__bithesis_secret_info:x {#1}
\__bithesis_secret_info:n {#1}
}
}
\DeclareDocumentCommand \MakeCover {}
Expand Down
5 changes: 1 addition & 4 deletions templates/paper-translation/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
\cs_new:Npn \__bithesis_secret_info:n #1 {
\__bithesis_secret_info:nn {#1} {\tl_map_function:NN {#1} \__bithesis_hide:n }
}

\cs_generate_variant:Nn \__bithesis_secret_info:n {x}

\cs_new:Npn \__bithesis_get_const:N #1 {
\__bithesis_if_thesis_english:TF {
\use:c {c__bithesis_label_ #1 _en_tl}
Expand Down Expand Up @@ -1423,7 +1420,7 @@
\IfValueTF {#2} {
\__bithesis_secret_info:nn {#1} {#2}
} {
\__bithesis_secret_info:x {#1}
\__bithesis_secret_info:n {#1}
}
}
\DeclareDocumentCommand \MakeCover {}
Expand Down
5 changes: 1 addition & 4 deletions templates/undergraduate-thesis-en/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
\cs_new:Npn \__bithesis_secret_info:n #1 {
\__bithesis_secret_info:nn {#1} {\tl_map_function:NN {#1} \__bithesis_hide:n }
}

\cs_generate_variant:Nn \__bithesis_secret_info:n {x}

\cs_new:Npn \__bithesis_get_const:N #1 {
\__bithesis_if_thesis_english:TF {
\use:c {c__bithesis_label_ #1 _en_tl}
Expand Down Expand Up @@ -1423,7 +1420,7 @@
\IfValueTF {#2} {
\__bithesis_secret_info:nn {#1} {#2}
} {
\__bithesis_secret_info:x {#1}
\__bithesis_secret_info:n {#1}
}
}
\DeclareDocumentCommand \MakeCover {}
Expand Down
5 changes: 1 addition & 4 deletions templates/undergraduate-thesis/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
\cs_new:Npn \__bithesis_secret_info:n #1 {
\__bithesis_secret_info:nn {#1} {\tl_map_function:NN {#1} \__bithesis_hide:n }
}

\cs_generate_variant:Nn \__bithesis_secret_info:n {x}

\cs_new:Npn \__bithesis_get_const:N #1 {
\__bithesis_if_thesis_english:TF {
\use:c {c__bithesis_label_ #1 _en_tl}
Expand Down Expand Up @@ -1423,7 +1420,7 @@
\IfValueTF {#2} {
\__bithesis_secret_info:nn {#1} {#2}
} {
\__bithesis_secret_info:x {#1}
\__bithesis_secret_info:n {#1}
}
}
\DeclareDocumentCommand \MakeCover {}
Expand Down

0 comments on commit d77f47f

Please sign in to comment.