Skip to content

添加了盲审版的简单逻辑 #61

@Connaught0

Description

@Connaught0

因为懒得在下一个新环境来pull了,所以麻烦作者手动改一下,现在只需要将所有的信息置空即可生成盲审版封面
使用时记得在main.tex中usepackage
shuthesis.cls
line5
\RequirePackage{etoolbox}
line 442-602

\def\shu@first@page{\renewcommand{\ULthickness}{1.8pt}%
 {\noindent\ifxetex\XBSong\else\bfseries\songti\fi%
 中图分类号:{\bfseries\ifblank{\shu@catalognumber}{空白空}{\shu@catalognumber}}\hfill 单位代号:{\bfseries 10280\hphantom{000}}\\
 密\hphantom{空白空}级:\expandafter\ifshu@secret\shu@secret@content\else%
 \shu@secretlevel\fi\hfill 学\hphantom{空白}号:{
  \bfseries \makebox[3.5em]{\ifblank{\shu@id}{空白空}{\shu@id}}
  }}
 \par\vskip1mm
 \noindent\uline{\hskip105mm}\par\vskip2mm
   \ifshu@nocolor
   \raisebox{1ex}[0pt][0pt]{
   \includegraphics[height=3cm,width=9.8cm]{shublack.pdf}}\hskip5mm
   \includegraphics[height=3.3cm,width=2.7cm]{shulogoblack.pdf}
   \else
   \raisebox{1ex}[0pt][0pt]{
   \includegraphics[height=3cm,width=9.8cm]{shu.pdf}}\hskip5mm
   \includegraphics[height=3.3cm,width=2.7cm]{shulogo.pdf}\fi\par\vskip5mm
   \centerline{\maxsize\ifxetex\LanTingHei\else\bfseries\heiti\fi\shu@cdegree 学位论文}
 \par\vskip-1mm
 \noindent\uline{\hskip\linewidth}\par\vskip1mm
 {\zihao{-1}\bfseries
  \centerline{SHANGHAI~~UNIVERSITY}
  \ifshu@profmaster
  \centerline{\MakeUppercase{\shu@edegree}'S}
  \centerline{DISSERTATION}
  \else
  \centerline{\MakeUppercase{\shu@edegree}'S~~DISSERTATION}\fi}
 \begin{center}
  {\setlength\arrayrulewidth{1pt}
  \begin{tabular}{|c|c|}
    \hline
    \begin{minipage}[c][4cm][c]{2.5em}
      \centering%
      \zihao{-2}\ifxetex\LanTingHei\else\heiti\fi\makecell{题\\ 目}
    \end{minipage}
    &
    \begin{minipage}[c][4cm][c]{11cm}
      \centering%
      \erhao[1.4]\bfseries\ifxetex\LanTingHei\else\heiti\fi
      \shu@ctitle
    \end{minipage}
    \\\hline
  \end{tabular}}
 \end{center}
 \vfill\renewcommand{\ULthickness}{1pt}
 \begin{center}
  {\heiti\xiaoer[1.9]
  \begin{tabular}{cc}
    \makebox[4em][s]{作者}          & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@cauthor}{空白空白空白}{\shu@cauthor}%
                              }} \\
    \makebox[4em][s]{学科专业}      & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@cmajor}{空白空白空白}{\shu@cmajor}%
                              }} \\
    \makebox[4em][s]{导师} & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@csupervisor}{空白空白空白}{\shu@csupervisor}%
                              }} \\
    \makebox[4em][s]{完成日期}      & \uline{\heiti\makebox[12em]{\shu@coverdate}}\\
  \end{tabular}}
 \end{center}
 \if@openright\cleardoublepage\else\clearpage\fi}
\newcommand{\makefirstpage}{
 \newgeometry{left=3.5cm,right=3.5cm,top=3cm,bottom=3.5cm}
 \shu@first@page
 \restoregeometry}
\newcommand{\shu@committee}{
 \pagestyle{shu@onlyhead}
 {\noindent 姓\hphantom{空白}名:{\ifblank{\shu@cauthor}{空白空}{\shu@cauthor}}\hfill 学号:{\makebox[3.5em]{\ifblank{\shu@id}{空白空}{\shu@id}}}\\
  论文题目:\let\\=\relax{\shu@ctitle}} \par
 \vskip1.5cm
 \noindent\centerline{\zihao{2} \ifxetex\LanTingHei\else\bfseries\heiti\fi 上海大学} \par
 \vskip1.5cm
 \erhao[1.5] 本论文经答辩委员会全体委员审查,
 确认符合上海大学\shu@cdegree 学位论文质量要求。\par
 \vskip3.9cm
 \zihao{-2} 答辩委员会签名:\par
 \vskip1cm
 主\hphantom{空白}席:\par
 \vskip1cm
 委\hphantom{空白}员:\par
 \vskip5cm
 导\hphantom{空白}师:\par
 \vskip1cm
 答辩日期: \hphantom{空白空白}年\hphantom{空白}月\hphantom{空白}日
 \if@openright\cleardoublepage\else\clearpage\fi
 }
\newcommand{\shu@authordeclare}{%
 {\noindent 姓\hphantom{空白}名:{\ifblank{\shu@cauthor}{空白空白空白}{\shu@cauthor}}\hfill 学号:{\makebox[3.5em]{\ifblank{\shu@id}{空白空}{\shu@id}}}\\
  论文题目:\let\\=\relax{\shu@ctitle}} \par
 \vskip2.5cm
 \begin{center}
 \zihao{3}\ifxetex\LanTingHei\else\bfseries\heiti\fi 上海大学学位论文原创性声明
 \end{center} \par
 \sihao[1.7]
 本人郑重声明: 所呈交的学位论文是本人在导师指导下,独立进行研究工作所取得的成果。
 除了文中特别加以标注和致谢的内容外,论文中不包含其他人已发表或撰写过的研究成果。
 参与同一工作的其他研究者对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。\par
 \vskip1cm
 \hfill 学位论文作者签名: \hphantom{空白空白空}\par
 \vskip1cm
 \hfill 日期: \hphantom{空白空白}年\hphantom{空白}月\hphantom{空白}日
 \vskip2.5cm
 \begin{center}
 \zihao{3}\ifxetex\LanTingHei\else\bfseries\heiti\fi 上海大学学位论文使用授权说明
 \end{center}
 \par
 本人完全了解上海大学有关保留、使用学位论文的规定,即: 学校有权保留论文及送交论文复印件,
 允许论文被查阅和借阅;学校可以公布论文的全部或部分内容。\par
 ({\ifxetex\XBSong\else\bfseries\songti\fi 保密的论文在解密后应遵守此规定})
 \vskip1cm
 \noindent 学位论文作者签名: \hphantom{空白空白空}
 \hfill 导师签名: \hphantom{空白空白空白空白} \par
 \vskip1cm
 \noindent 日期: \hphantom{空白空}年\hphantom{空白}月\hphantom{空白}日
 \hfill 日期: \hphantom{空白空}年\hphantom{空白}月\hphantom{空白}日 \par
\if@openright\cleardoublepage\else\clearpage\fi}
\newcommand{\shu@cncover}{%
 \vspace*{1.3cm}
 \centerline{\zihao{2} 上海大学\shu@cdisciplines\shu@cdegree 学位论文}
 \vskip3.5cm
 \begin{center}\yihao[1.5]{\bfseries{\shu@ctitle}}\end{center}
 \vskip3.5cm
 \begin{center}\heiti\xiaoer[1.8]
  \begin{tabular}{cc}
    \makebox[4em][s]{作者}          & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@cauthor}{空白空白空白}{\shu@cauthor}%
                              }} \\
    \makebox[4em][s]{学科专业}      & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@cmajor}{空白空白空白}{\shu@cmajor}%
                              }} \\
    \makebox[4em][s]{导师} & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@csupervisor}{空白空白空白}{\shu@csupervisor}%
                              }} \\
  \end{tabular}
 \end{center}
 \vskip3.5cm
 \begin{center}
 \sanhao[1.6]上海大学\shu@cdepartment\\
 \shu@cdate
 \end{center}
\if@openright\cleardoublepage\else\clearpage\fi}
\newcommand{\shu@engcover}{%
 \vspace*{.5cm}
 \begin{center}
 \sanhao[1.6] A Dissertation Submitted to Shanghai University
 for the \\ Degree of \shu@edegree~in \shu@edisciplines\par
 \vskip3cm
 \begin{center}\zihao{1}{\bfseries{\shu@etitle}}\end{center}
 \vskip3cm
 \begin{tabular}{rl}
 Candidate:  & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@eauthor}{空白空白空白}{\shu@eauthor}%
                              }} \\
 Major:      & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@esupervisor}{空白空白空白}{\shu@esupervisor}%
                              }} \\
 Supervisor: & \uline{\heiti\makebox[12em]{%
                              \ifblank{\shu@emajor}{空白空白空白}{\shu@emajor}%
                              }} \\

 \end{tabular}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions