diff options
author | Karl Berry <karl@freefriends.org> | 2013-02-13 23:21:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-02-13 23:21:32 +0000 |
commit | a19e8fc23c74d8bb5f11c0fb7c135ab7e108c36a (patch) | |
tree | b4536f5f508b757969faa484ea16bd7b9234cd35 /Master/texmf-dist/tex/latex/uestcthesis | |
parent | 40c656a1741d7c4ff1434cae0232db497f49deb6 (diff) |
uestcthesis (13feb13)
git-svn-id: svn://tug.org/texlive/trunk@29101 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/uestcthesis')
-rw-r--r-- | Master/texmf-dist/tex/latex/uestcthesis/UESTC.png | bin | 0 -> 39190 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/uestcthesis/UESTC_LOGO.png | bin | 0 -> 15159 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls | 42 |
3 files changed, 32 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/uestcthesis/UESTC.png b/Master/texmf-dist/tex/latex/uestcthesis/UESTC.png Binary files differnew file mode 100644 index 00000000000..6c944f8ce03 --- /dev/null +++ b/Master/texmf-dist/tex/latex/uestcthesis/UESTC.png diff --git a/Master/texmf-dist/tex/latex/uestcthesis/UESTC_LOGO.png b/Master/texmf-dist/tex/latex/uestcthesis/UESTC_LOGO.png Binary files differnew file mode 100644 index 00000000000..4ba81f11c37 --- /dev/null +++ b/Master/texmf-dist/tex/latex/uestcthesis/UESTC_LOGO.png diff --git a/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls b/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls index c23e6d1eb57..b2b8699ecd5 100644 --- a/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls +++ b/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls @@ -22,15 +22,14 @@ %% %% The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>. %% -%% This work consists of the files uestcthesis.dtx, uestcthesis.ins and -%% GBT7714-2005NLang-UESTC.bst. -%% and the derived file uestcthesis.cls. +%% This work consists of the files uestcthesis.dtx, uestcthesis.ins +%% and the derived file uestcthesis.cls and uestcthesis.bst. %% Other files in this work's package are belongs to the respective owners. %% \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesClass{uestcthesis} - [2013/01/22 v0.21 UESTC thesis class] + [2013/02/12 v0.3 UESTC thesis class] \LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook} \RequirePackage{etoolbox} \RequirePackage{ifthen} @@ -256,6 +255,7 @@ } \renewcommand{\date}[3]{ \renewcommand{\@date}{#1年#2月#3日} +\newcommand{\@year}{#1}%用于pdf元信息 } \newcommand{\oraldefensedate}[3]{ \newcommand{\@oraldefensedate}{#1年#2月#3日} @@ -554,6 +554,16 @@ \ifthenelse{\equal{#4}{}}{}{,#4} \ifthenelse{\equal{#5}{}}{}{,#5} } +\ifthenelse{\equal{#5}{}}{ +\ifthenelse{\equal{#4}{}}{ +\ifthenelse{\equal{#3}{}}{ +\def\@pdfckeywords{#1, #2, 关键字应3-5个} +}{\def\@pdfckeywords{#1, #2, #3}} +}{\def\@pdfckeywords{#1, #2, #3, #4}} +}{\def\@pdfckeywords{#1, #2, #3, #4, #5}} +\hypersetup{% +pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 +} \chapter*{摘要}%插入不带章号的摘要 } {\\[3mm]%摘要后换行空出3mm @@ -597,19 +607,19 @@ \theoremstyle{nonumberplain} \newtheorem{zhengming}{证明} \RequirePackage[numbers,sort&compress]{natbib} -\RequirePackage{hypernat} \newcommand{\citeup}[1]{\textsuperscript{\cite{#1}}} \ifblank{\multibibflag@uestcthesis}{}{ \RequirePackage[resetlabels]{multibib} \newcites{publications}{NULL} -\bibliographystylepublications{GBT7714-2005NLang-UESTC} +\bibliographystylepublications{uestcthesis} \nocitepublications{*} \def\bibliographypublications#1{\let \temp@auxout \@auxout \let \addtocontents \mb@addtocontents \let \@auxout \@auxoutpublications \let \jobname \@auxoutpublicationsname \bibliography {#1}} } \RequirePackage{cmap}%pdflatex编译时,可以生成可复制、粘贴的中文PDF文档 +\RequirePackage{hyperxmp}%在pdf中加入XMP高级元信息 \RequirePackage[pdftex,unicode, bookmarksnumbered=true, bookmarksopen=true, @@ -619,10 +629,23 @@ linkcolor=red, anchorcolor=green, urlcolor=blue, - breaklinks=true - ]{hyperref} + breaklinks=true, +pdfdisplaydoctitle=true +]{hyperref} +\input{contents/titlepage.tex}%pdf元信息中需要封面的部分内容,所以在此处导入封面信息 +\hypersetup{% +pdftitle={\@title}, +pdfauthor={\@author}, +pdfcopyright={Copyright (C) \@year, \@author}, +pdfsubject={\thesisname@degree}, +pdflicenseurl={http://121.49.98.197/tasi/doc/fj_dcx.doc}, +pdfcreator={PDFLaTeX with uestcthesis class}, +pdflang={zh-CN}, +pdfpagelayout={TwoPageRight} +} \RequirePackage[small]{subfigure} \RequirePackage{enumerate} +\RequirePackage{color,marvosym} \RequirePackage[header,cols=3,hyper=true]{glossary} \makeglossary \renewcommand{\glossaryname}{主要符号表} @@ -637,7 +660,6 @@ \AtBeginDocument{%插入到论文内容的最前面。 \begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。 -\input{contents/titlepage.tex}%导入封面信息 \maketitle%生成并插入封面 \Cabstractmatter%设置中文摘要版式 \include{contents/Cabstract}%插入中文摘要 @@ -665,7 +687,7 @@ \addcontentsline{toc}{chapter}{致\enspace 谢}%将致谢编入目录 \input{contents/acknowledgements.tex}%插入致谢内容 \newpage -\bibliographystyle{GBT7714-2005NLang-UESTC} +\bibliographystyle{uestcthesis} \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 \addcontentsline{toc}{chapter}{参考文献}%将参考文献编入目录 \nocite{*}%若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献列表中。 |