Skip to content

[博士论文模板求助] 每章最后的成果,如何跟随盲审模式自动mask掉关键信息? #471

Answered by YDX-2147483647
YoungZnBIT asked this question in Q&A
Discussion options

You must be logged in to vote

我试了一下,可能给原来的publications环境加个参数更简单。

\begin{publications}[这是个可选参数,不填时按原来效果,填了就会省略一部分;只要填了,无论填什么效果都一样]
  \addpubs{eg}
  \printbibliography[heading=none,type=article,category=mypub,keyword=ch5,resetnumbers=true]{}
\end{publications}

修改bithesis.cls/bithesis.dtx,加个 optional (o)(原来的 body (+b) 从#1顺延到#2),用\IfNoValueT {#1} {…}包裹要删掉的部分:

 % \begin{environment}{publications}
 % 生成攻读学位期间发表论文与研究成果清单。
 %    \begin{macrocode}
-\NewDocumentEnvironment {publications} {+b}
+\NewDocumentEnvironment {publications} {o +b}
   {
     % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。
     \begin{blindPeerReview}[\l_@@_publications_omit_bool]
+      \IfNoValueT {#1} {
       % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。
       % …

Replies: 16 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YDX-2147483647
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #464 on April 22, 2024 02:45.