Skip to content

Commit

Permalink
degree -> chinesedegree.
Browse files Browse the repository at this point in the history
  • Loading branch information
weijianwen committed Jan 15, 2016
1 parent 924109a commit cc40329
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions sjtuthesis.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@
\def\sjtu@value@serialnumber{}
\def\sjtu@value@school{}
\ifsjtu@bachelor
\def\sjtu@value@degree{学士}
\def\sjtu@value@chinesedegree{学士}
\def\sjtu@value@englishdegree{Bachelor}
\else
\ifsjtu@master
\def\sjtu@value@degree{硕士}
\def\sjtu@value@chinesedegree{硕士}
\def\sjtu@value@englishdegree{Master}
\else
\ifsjtu@doctor
\def\sjtu@value@degree{博士}
\def\sjtu@value@chinesedegree{博士}
\def\sjtu@value@englishdegree{Doctor}
\else
\ClassError{sjtuthesis}%
{Unknown value for degree.}{}
\fi
\fi
\fi
\def\sjtu@label@statement{申请\sjtu@value@school\sjtu@value@degree\sjtu@label@thesis}
\def\sjtu@label@statement{申请\sjtu@value@school\sjtu@value@chinesedegree\sjtu@label@thesis}

% 论文原创性声明
\def\sjtu@label@original{学位论文原创性声明}
Expand Down
10 changes: 5 additions & 5 deletions sjtuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
\newcommand\studentnumber[1]{\def\sjtu@value@studentnumber{#1}}
\newcommand\confidential[1]{\def\sjtu@value@confidential{#1}}
\newcommand\school[1]{\def\sjtu@value@school{#1}}
\newcommand\degree[1]{\def\sjtu@value@degree{#1}}
\newcommand\chinesedegree[1]{\def\sjtu@value@chinesedegree{#1}}
\renewcommand\title[2][\sjtu@value@title]{%
\def\sjtu@value@title{#2}
\def\sjtu@value@titlemark{\MakeUppercase{#1}}}
Expand Down Expand Up @@ -421,7 +421,7 @@
\if@twoside
%% 正文页眉页脚
\fancypagestyle{main}{
\fancyhead[LO, RE]{\small\kaishu\sjtu@value@school\sjtu@value@degree\sjtu@label@thesis}
\fancyhead[LO, RE]{\small\kaishu\sjtu@value@school\sjtu@value@chinesedegree\sjtu@label@thesis}
\fancyhead[RO]{\nouppercase{\small\kaishu\leftmark}}
\fancyhead[LE]{\nouppercase{\small\kaishu\sjtu@value@titlemark}}
\fancyfoot[C]{\small ---~{\bfseries\thepage}~---}
Expand All @@ -430,7 +430,7 @@
%% 开章页页眉页脚
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[LO,RE]{\nouppercase{\small\kaishu\sjtu@value@school\sjtu@value@degree\sjtu@label@thesis}}
\fancyhead[LO,RE]{\nouppercase{\small\kaishu\sjtu@value@school\sjtu@value@chinesedegree\sjtu@label@thesis}}
\fancyhead[RO]{\nouppercase{\small\kaishu\leftmark}}
\fancyhead[LE]{\nouppercase{\small\kaishu\sjtu@value@titlemark}}
\fancyfoot[C]{\small ---~{\bf\thepage}~---}
Expand All @@ -439,14 +439,14 @@
\else
%% 正文页
\fancypagestyle{main}{
\fancyhead[L]{\small\kaishu\sjtu@value@school\sjtu@value@degree\sjtu@label@thesis}
\fancyhead[L]{\small\kaishu\sjtu@value@school\sjtu@value@chinesedegree\sjtu@label@thesis}
\fancyhead[R]{\nouppercase{\small\kaishu\leftmark}}
\fancyfoot[C]{\small ---~{\bf\thepage}~---}
\renewcommand{\headheight}{32pt}
}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[L]{\nouppercase{\small\kaishu\sjtu@value@school\sjtu@value@degree\sjtu@label@thesis}}
\fancyhead[L]{\nouppercase{\small\kaishu\sjtu@value@school\sjtu@value@chinesedegree\sjtu@label@thesis}}
\fancyhead[R]{\nouppercase{\small\kaishu\leftmark}}
% \fancyhead[L]{\small {\it\sjtu@value@titlemark}}
\fancyfoot[C]{\small ---~{\bf\thepage}~---}
Expand Down

0 comments on commit cc40329

Please sign in to comment.