example: adapt current code to the requirements of examples.
This commit is contained in:
parent
f9728c84ec
commit
361c3bdcd5
@ -6,7 +6,7 @@
|
||||
@rem Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
@rem Public domain.
|
||||
|
||||
set JOBNAME=pkuthss
|
||||
set JOBNAME=thesis
|
||||
@rem 这个变量的值可以为 latex 或 pdflatex。
|
||||
set LATEX=latex
|
||||
@rem 如果无法使用 biber,可以改为“bibtex”。
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# Public domain.
|
||||
|
||||
# 被编译的主文件的文件名,不包括扩展名。
|
||||
JOBNAME = pkuthss
|
||||
JOBNAME = thesis
|
||||
# 这个变量的值可以为 latex、pdflatex 或 xelatex。
|
||||
LATEX = latex
|
||||
# 如果无法使用 biber,可以改为“bibtex”。
|
||||
|
||||
@ -1,18 +1,12 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2013 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\begin{cabstract}
|
||||
本文介绍了 pkuthss 文档模版所提供的功能,
|
||||
并以自身为例演示了该模版的使用。
|
||||
测试。
|
||||
\end{cabstract}
|
||||
|
||||
\begin{eabstract}
|
||||
This paper describes the the functions provided by
|
||||
the pkuthss document template,
|
||||
and provides itself as an example to illustrate
|
||||
the usage of the document class.
|
||||
Test.
|
||||
\end{eabstract}
|
||||
|
||||
|
||||
@ -1,12 +1,8 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\chapter{致谢}
|
||||
|
||||
感谢北大未名 BBS 的 MathTools 版和 Thesis 版诸位同学的支持。
|
||||
特别感谢 pkuthss 模版的最初创作者 solvethis 网友,
|
||||
以及不断地对 Casper 提出的诸多问题予以解答的 cauchy 网友 :)
|
||||
感谢党,感谢国家;感谢 CCTV,感谢 MTV。
|
||||
|
||||
|
||||
@ -1,211 +1,8 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2013 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\chapter{使用介绍}
|
||||
\section{系统要求}\label{sec:req}
|
||||
\chapter{章节}
|
||||
|
||||
正确编译需要以下几部分:
|
||||
\begin{itemize}
|
||||
\item 一个基本的 \TeX{} 发行版。
|
||||
\item CJK 或 XeCJK(供 Xe\LaTeX{} 使用)宏包。
|
||||
\item ctex 宏包\supercite{ctex,ctex-faq}(提供了 ctexbook 文档类)。
|
||||
\item 中文字体。
|
||||
\item 如果要使用 biblatex 进行文献列表和引用的排版的话,
|
||||
还需要 biblatex 宏包\supercite{biblatex};
|
||||
\item 如果需要对中文文献进行按汉语拼音的排序的话,
|
||||
还需要 biber 程序\supercite{biber}。
|
||||
\item 如果默认的文献列表和引用样式的话,
|
||||
还需要作者编写的 biblatex 样式
|
||||
(biblatex-caspervector)\supercite{biblatex-caspervector}。
|
||||
\item 如果需要使用 Makefile 来实现自动编译,还需要 Make 工具;
|
||||
但如果使用由批处理实现的伪“Makefile”就不用了。
|
||||
\end{itemize}
|
||||
|
||||
\myemph{最新}的\myemph{完全版} \TeX{}Live 系统(\myemph{%
|
||||
注:
|
||||
某些 Linux 发行版软件仓库中的 \TeX{}Live 有问题,
|
||||
建议使用独立安装版的 \TeX{}Live%
|
||||
\footnote{\url{http://www.tug.org/texlive/}.}。%
|
||||
})和 \CTeX{} 套装都已经包含除中文字体和 Make 之外所有要求的项目。%
|
||||
\myemph{%
|
||||
为了获得最好的支持,
|
||||
我们建议用户使用最新完全版的 \TeX{} 系统和各宏包。%
|
||||
}
|
||||
|
||||
中文字体需要用户自行获得。\myemph{%
|
||||
注:
|
||||
一些中文字体的字库不全,
|
||||
只有 GB2312 字符集内字符的字体信息。
|
||||
这种情况通常会造成编译生成的 pdf 文件中缺少部分字符,
|
||||
其中一种典型症状是封面的“〇”字显示不出来。
|
||||
如果要使用中易公司的字体,
|
||||
则建议使用 Windows Vista 及其以后版本提供的%
|
||||
宋体、黑体、楷体和仿宋体,
|
||||
以及 Microsoft Office 2003 及其以后版本提供的隶书和幼圆体,
|
||||
这些字体是 GB18030 字符集的,不存在上述问题。%
|
||||
}
|
||||
|
||||
Linux 用户可以从软件源获得 GNU 的 make;
|
||||
其它类 UNIX 系统应该也会提供 make 工具,请参阅相应的文档以获得帮助。%
|
||||
Windows 用户可以从以下地址下载 Windows 下的 GNU make 工具:\\
|
||||
\hspace*{\parindent}%
|
||||
\url{http://gnuwin32.sourceforge.net/packages/make.htm}
|
||||
|
||||
\section{安装方法}\label{sec:inst}
|
||||
|
||||
使用 \TeX{}Live 的用户可以通过在终端中以管理员权限执行
|
||||
\begin{Verbatim}[frame = single]
|
||||
tlmgr install pkuthss
|
||||
\end{Verbatim}
|
||||
来安装 pkuthss 文档模版。
|
||||
|
||||
使用 \CTeX{} 套装的用户可以通过在命令提示符中执行
|
||||
\begin{Verbatim}[frame = single]
|
||||
mpm --install=pkuthss
|
||||
\end{Verbatim}
|
||||
来安装 pkuthss 文档模版。
|
||||
|
||||
\section{模版文件}\label{sec:doc-dir}
|
||||
|
||||
在正确安装 pkuthss 文档模版之后,在终端/命令提示符中执行
|
||||
\begin{Verbatim}[frame = single]
|
||||
texdoc pkuthss
|
||||
\end{Verbatim}
|
||||
所打开的 pdf 所在的同一目录中包含本文档(\verb|pkuthss.pdf|)的源代码%
|
||||
(\verb|utf8/| 和 \verb|gbk/| 两个子目录,
|
||||
两目录中代码除使用的字符编码基本上完全相同)。
|
||||
|
||||
其中,%
|
||||
\verb|utf8/| 目录下的源代码使用的是 UTF-8 编码,适合类 UNIX 系统用户使用;%
|
||||
\verb|gbk/| 目录下的源代码使用的是 GBK 编码,适合 Windows 用户使用。%
|
||||
用户可以试情况将 \verb|utf8/| 或 \verb|gbk/| 中的所有内容复制到合适的目录,
|
||||
并在此目录中根据模版修改出自己的论文。
|
||||
|
||||
\myemph{%
|
||||
注意:
|
||||
在 1.4 rc4 之后版本的 pkuthss 文档模版中,除了 \texttt{Make.bat} 之外,
|
||||
所有文件均是 LF(\texttt{\string\n})换行。
|
||||
在 Windows 下用“记事本”打开这些文件时,
|
||||
所有的换行会变成某个奇怪的字符,而所有文字会挤在一行上。
|
||||
这是“记事本”的固有问题,
|
||||
因此 pkuthss 文档模版的作者建议用户
|
||||
使用支持 LF 换行的文本编辑器编辑文件。%
|
||||
}
|
||||
|
||||
\verb|utf8/| 和 \verb|gbk/| 目录中的重要文件有:
|
||||
\begin{itemize}
|
||||
\item \verb|Makefile|:
|
||||
被 Make 工具调用的 Makefile,用于使编译工作自动化。
|
||||
\item \verb|Make.bat|:%
|
||||
Windows 下的伪“Makefile”,用 Windows 批处理实现。
|
||||
|
||||
\item \verb|chap/|:目录,包含各章节内容:
|
||||
\begin{itemize}
|
||||
\item \verb|copyright.tex|:
|
||||
版权声明部分\footnote{%
|
||||
本文档中的版权声明并不是%
|
||||
学校默认要求的形式\supercite{pku-copyright}。
|
||||
符合学校要求的一个版权声明已经放在此文件中,
|
||||
但用 \texttt{\string\iffalse{} ...\ \string\fi} %
|
||||
注释掉了,
|
||||
用户可以考虑使用这个版本。
|
||||
}。
|
||||
\item \verb|originauth.tex|:
|
||||
原创性声明和使用授权说明部分\supercite{pku-originauth}。
|
||||
\end{itemize}
|
||||
\myemph{%
|
||||
注:%
|
||||
pkuthss 文档模版支持排版学校要求的二维码,
|
||||
请参考 \texttt{copyright.tex} 和
|
||||
\texttt{originauth.tex} 中的相关注释。%
|
||||
}
|
||||
|
||||
\item \verb|img/|:目录,包含论文中所有图片:
|
||||
\begin{itemize}
|
||||
\item \verb|Makefile|:图片部分的 Makefile。
|
||||
\item \verb|Make.bat|:%
|
||||
Windows 下的伪“Makefile”,用 Windows 批处理实现。
|
||||
\item \verb|pkulogo.eps|:北京大学校徽。
|
||||
\item \verb|pkuword.eps|:“北京大学”字样。
|
||||
\end{itemize}
|
||||
\myemph{%
|
||||
注:%
|
||||
pdf\LaTeX{} 方式编译(见第 \ref{sec:compile} 节)
|
||||
可能需要将 eps 图片转换为 pdf 格式,
|
||||
而使用 Makefile 或伪“Makefile”时这些图片可以自动生成;
|
||||
不使用 Makefile 的用户可以手动运行 %
|
||||
\texttt{img/} 目录中的 Makefile 或伪“Makefile”
|
||||
来生成这些图片。%
|
||||
}
|
||||
\end{itemize}
|
||||
|
||||
\section{编译方式}\label{sec:compile}
|
||||
|
||||
pkuthss 文档模版支持三种编译方式,即
|
||||
\begin{itemize}
|
||||
\item \LaTeX{} -- dvipdfmx 方式:\\
|
||||
依次执行 \verb|latex|,\verb|biber|(或 \verb|bibtex|),%
|
||||
\verb|latex|,\verb|latex| 和 \verb|dvipdfmx|。\\
|
||||
\myemph{%
|
||||
注意:除非无法使用 biber,否则不建议使用 bibtex。
|
||||
如果的确要使用 bibtex,请将 biblatex 宏包的\texttt{backend}
|
||||
选项从 \texttt{biber} 改为 \texttt{bibtex},
|
||||
在 Makefile 中将变量 \texttt{BIBTEX} 的值改为 \texttt{bibtex},
|
||||
并去掉 biblatex 宏包和 \texttt{\string\printbibliography} 命令
|
||||
的 \texttt{sorting} 选项。
|
||||
以下各编译方式也存在类似的注意事项,不再重复说明。%
|
||||
}
|
||||
\item pdf\LaTeX{} 方式:\\
|
||||
依次执行 \verb|pdflatex|,\verb|biber|(或 \verb|bibtex|),%
|
||||
\verb|pdflatex| 和 \verb|pdflatex|。
|
||||
\item Xe\LaTeX{} 方式:\\
|
||||
依次执行 \verb|xelatex|,\verb|biber|(或 \verb|bibtex|),%
|
||||
\verb|xelatex| 和 \verb|xelatex|。\\
|
||||
\myemph{%
|
||||
注意:Xe\LaTeX{} 对非 UTF-8 的编码支持不好,
|
||||
因此 Xe\LaTeX{} 方式的编译不支持 GBK 编码。%
|
||||
}
|
||||
\end{itemize}
|
||||
|
||||
pkuthss 文档模版附带的 Makefile 中已经对这三种编译方式进行了完整的配置。
|
||||
用户只需要在 Makefile 中通过设定变量 \verb|JOBNAME| 的值%
|
||||
指定被编译的主文件名,
|
||||
并通过设定变量 \verb|LATEX| 的值指定采用哪种编译方式,
|
||||
即可通过在主文件所在目录调用 Make 工具来实现自动编译:
|
||||
如果是在类 UNIX 环境下,则用户应该调用的命令名为 \verb|make|:
|
||||
\begin{Verbatim}[frame = single]
|
||||
cd /path/to/directory/with/pkuthss.tex
|
||||
make
|
||||
\end{Verbatim}
|
||||
而如果是在 Windows 环境下,
|
||||
则用户应该调用的命令名可能为 \verb|mingw32-make|:
|
||||
\begin{Verbatim}[frame = single]
|
||||
cd \path\to\directory\with\pkuthss.tex
|
||||
mingw32-make
|
||||
\end{Verbatim}
|
||||
|
||||
用户如果不想配置 Windows 下的 GNU Make,
|
||||
则也可以使用由 Windows 批处理实现的伪“Makefile”,
|
||||
通过在主文件所在目录调用 \verb|make|\footnote{%
|
||||
Windows 将批处理文件作为可执行文件,
|
||||
调用时可以不显式地指出扩展名。%
|
||||
}:
|
||||
\begin{Verbatim}[frame = single]
|
||||
cd \path\to\directory\with\pkuthss.tex
|
||||
make
|
||||
\end{Verbatim}
|
||||
\myemph{%
|
||||
注意:%
|
||||
Windows 批处理对于 LF(\texttt{\string\n})换行的批处理文件支持有问题。
|
||||
在命令提示符(cmd)下执行这些批处理文件时没有问题,
|
||||
但双击文件图标执行时就会出错。
|
||||
作者在 Google Code 和北大未名 BBS 上发布的压缩包中 \texttt{Make.bat}
|
||||
均是 CRLF(\texttt{\string\r\string\n})换行,
|
||||
但 \TeX{}Live、\CTeX{} 套装中安装的 \texttt{Make.bat} 和
|
||||
CTAN 上提供的压缩包里的 \texttt{Make.bat}
|
||||
可能是 LF(\texttt{\string\n})换行的。%
|
||||
}
|
||||
测试。
|
||||
|
||||
|
||||
@ -1,11 +1,8 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\specialchap{结论}
|
||||
|
||||
pkuthss 文档模版结构较为简洁、清晰、灵活,较为易于学习和使用。
|
||||
希望它能为各位需要使用 \LaTeX{} 撰写学位论文的同学提供一些帮助。
|
||||
测试。
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2013 Casper Ti. Vector
|
||||
% Copyright (c) 2010-2014 Casper Ti. Vector
|
||||
% All rights reserved.
|
||||
%
|
||||
% Redistribution and use in source and binary forms, with or without
|
||||
@ -33,7 +33,6 @@
|
||||
{
|
||||
\zihao{3}\linespread{1.5}\selectfont
|
||||
|
||||
\iffalse
|
||||
任何收存和保管本论文各种版本的单位和个人,
|
||||
未经本论文作者同意,不得将本论文转借他人,
|
||||
亦不得随意复制、抄录、拍照或以任何方式传播。
|
||||
@ -44,24 +43,5 @@
|
||||
%\vfill\noindent
|
||||
%\includegraphics[height = 5em]{img/barcode}
|
||||
%\par
|
||||
\fi
|
||||
版权所有 \copyright\ 2008--2009 solvethis
|
||||
\par
|
||||
版权所有 \copyright\ 2010--2013 Casper Ti. Vector
|
||||
\vskip 1em
|
||||
|
||||
pkuthss 文档类和 pkuthss-extra 宏包以 %
|
||||
\LaTeX{} Project Public License 发布。
|
||||
本说明(示例)文档的源代码中,除以下文件
|
||||
\begin{itemize}
|
||||
\item \verb|img/pkulogo.eps|
|
||||
\item \verb|img/pkuword.eps|
|
||||
\item \verb|chap/copyright.tex|
|
||||
\item \verb|chap/originauth.tex|
|
||||
\end{itemize}
|
||||
以 New BSD License 发布,
|
||||
以及参考文献和引用使用的样式文件版权声明见相应文件中说明以外,
|
||||
其余部分文件发布在公有领域(public domain)。
|
||||
\par
|
||||
}
|
||||
|
||||
|
||||
@ -1,48 +1,8 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\chapter{pkuthss 文档模版的实现}
|
||||
\raggedbottom % 避免某些奇怪的“Underfull \vbox”警告。
|
||||
\chapter{附件}
|
||||
|
||||
\section{pkuthss 文档类和 pkuthss-extra 宏包的实现}
|
||||
\subsection{共用文件头部}
|
||||
\VerbatimInput[
|
||||
frame = lines, fontsize = {\footnotesize}, tabsize = 2,
|
||||
baselinestretch = 1, lastline = 23, numbers = left
|
||||
]{pkuthss.cls}
|
||||
|
||||
\subsection{\texttt{pkuthss.cls}}
|
||||
\VerbatimInput[
|
||||
frame = lines, fontsize = {\footnotesize}, tabsize = 2,
|
||||
baselinestretch = 1, firstline = 25, numbers = left
|
||||
]{pkuthss.cls}
|
||||
|
||||
\subsection{\texttt{pkuthss-utf8.def} 和 \texttt{pkuthss-gbk.def}}
|
||||
\VerbatimInput[
|
||||
frame = lines, fontsize = {\footnotesize}, tabsize = 2,
|
||||
baselinestretch = 1, firstline = 25, numbers = left
|
||||
]{pkuthss-utf8.def}
|
||||
|
||||
\subsection{\texttt{pkuthss-extra.sty}}
|
||||
\VerbatimInput[
|
||||
frame = lines, fontsize = {\footnotesize}, tabsize = 2,
|
||||
baselinestretch = 1, firstline = 25, numbers = left
|
||||
]{pkuthss-extra.sty}
|
||||
|
||||
\section{pkuthss 说明(示例)文档的源代码}
|
||||
|
||||
本文档的源代码中大部分已经有了较为详细的注释,
|
||||
故请直接参照相应文件中的注释。
|
||||
|
||||
\myemph{%
|
||||
注:%
|
||||
\texttt{img/} 目录中的 \texttt{Makefile} 和%
|
||||
两个 PostScript(\texttt{.eps})文件(都是文本文件)中%
|
||||
也有详细的注释哦 :)%
|
||||
}
|
||||
|
||||
\flushbottom % 取消 \raggedbottom 的作用。
|
||||
测试。
|
||||
|
||||
|
||||
@ -1,46 +1,8 @@
|
||||
% vim:ts=4:sw=4
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
% Copyright (c) 2014 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
\specialchap{绪言}
|
||||
|
||||
本文档是“北京大学论文文档模版”的说明文档,
|
||||
同时也是使用模版的一个示例。
|
||||
|
||||
pkuthss 文档模版由三部分构成:
|
||||
\begin{itemize}
|
||||
\item \textbf{pkuthss 文档类}:
|
||||
其中进行了学位论文所需要的一些基本的设定,
|
||||
主要包括对基本排版格式的设定和提供设置论文信息的命令。
|
||||
\item \textbf{pkuthss-extra 宏包}:
|
||||
其中实现了学位论文中用户可能较多用到的一些额外功能,
|
||||
例如自动在目录中加入参考文献和索引的条目和%
|
||||
自动根据用户设定的文档信息对所生成 pdf 的作者、标题等属性进行设置等。
|
||||
\item \textbf{说明(示例)文档}:
|
||||
说明文档即本文档,
|
||||
在安装(见第 \ref{sec:inst} 节)之后应该可以用 \TeX{} 系统提供的
|
||||
\verb|texdoc| 命令调出:
|
||||
\begin{Verbatim}[frame=single]
|
||||
texdoc pkuthss
|
||||
\end{Verbatim}
|
||||
同时,
|
||||
本文档的源代码(位和本文档的 pdf 文件处于同一目录下)%
|
||||
也正是用户撰写自己的学位论文时的一个模版:
|
||||
用户只需按照模版中的框架修改代码,
|
||||
即可写出自己的论文。
|
||||
\end{itemize}
|
||||
|
||||
在此之前,包括 dypang\supercite{dypang}、FerretL\supercite{FerretL}、%
|
||||
lwolf\supercite{lwolf}、Langpku\supercite{Langpku}、%
|
||||
solvethis\supercite{solvethis} 等的数位网友均做过学位论文模版的工作。
|
||||
本论文模版是 solvethis 的 pkuthss 模版的更新版本,
|
||||
更新的重点是重构和对新文档类、宏包的支持。
|
||||
|
||||
pkuthss 文档模版现在的维护者是 Casper Ti. Vector\footnote%
|
||||
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}}。%
|
||||
pkuthss 文档模版目前托管在 Google Code 上,
|
||||
其项目主页是:\\
|
||||
\hspace*{\parindent}\url{http://code.google.com/p/caspervector/}
|
||||
测试。
|
||||
|
||||
|
||||
@ -1,197 +1,10 @@
|
||||
vim:ts=4:sw=4
|
||||
|
||||
@online{biber,
|
||||
author = {Kime, Philip and Charette, Fran\c{c}ois},
|
||||
title = {Biber: A backend bibliography processor for biblatex (Version 0.9.9)},
|
||||
type = {M/OL},
|
||||
date = {2012-03-29},
|
||||
url = {http://mirror.ctan.org/biblio/biber/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{biblatex,
|
||||
author = {Lehman, Philipp},
|
||||
title = {The biblatex Package: Programmable Bibliographies and Citations (Version 1.7)},
|
||||
type = {M/OL},
|
||||
date = {2011-11-13},
|
||||
url = {http://mirror.ctan.org/macros/latex/exptl/biblatex/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{biblatex-caspervector,
|
||||
author = {Vector, Casper Ti.},
|
||||
title = {biblatex 参考文献和引用样式:caspervector v0.1.9},
|
||||
type = {M/OL},
|
||||
date = {2013-12-27},
|
||||
url = {https://caspervector.googlecode.com/files/biblatex-caspervector-0.1.9.zip},
|
||||
urldate = {2013-12-27},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{caption,
|
||||
author = {Sommerfeldt, Alex},
|
||||
title = {Customizing captions of floating environments},
|
||||
type = {M/OL},
|
||||
date = {2011-11-02},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/caption},
|
||||
urldate = {2013-06-03},
|
||||
}
|
||||
|
||||
@online{ctex,
|
||||
author = {{ctex.org}},
|
||||
title = {ctex 宏包说明(v1.02c)},
|
||||
type = {M/OL},
|
||||
date = {2011-03-11},
|
||||
url = {http://mirror.ctan.org/language/chinese/ctex/},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{ctex-faq,
|
||||
author = {吴凌云},
|
||||
title = {\CTeX{} FAQ(常见问题集),0.4 beta (89) 版},
|
||||
type = {M/OL},
|
||||
date = {2007-01-30},
|
||||
url = {http://mirror.ctan.org/info/ctex-faq/},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{enumitem,
|
||||
author = {Bezos, Javier},
|
||||
title = {Customizing lists with the enumitem package (Version 3.5.2)},
|
||||
type = {M/OL},
|
||||
date = {2011-09-28},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/enumitem/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{fancyhdr,
|
||||
author = {van Oostrum, Piet},
|
||||
title = {Page layout in \LaTeX{}},
|
||||
type = {M/OL},
|
||||
date = {2004-03-02},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/fancyhdr/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{footmisc,
|
||||
author = {Fairbairns, Robin},
|
||||
title = {footmisc --- a portmanteau package for customising footnotes in \LaTeX{}},
|
||||
type = {M/OL},
|
||||
date = {2011-07-06},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/footmisc/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{geometry,
|
||||
author = {Umeki, Hideo},
|
||||
title = {The geometry package (v5.6)},
|
||||
type = {M/OL},
|
||||
date = {2010-09-12},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/geometry/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{graphicx,
|
||||
author = {Carlisle, D. P.},
|
||||
title = {Packages in the `graphics' bundle},
|
||||
type = {M/OL},
|
||||
date = {2005-11-14},
|
||||
url = {http://mirror.ctan.org/macros/latex/required/graphics/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{hyperref,
|
||||
author = {Rahtz, Sebastian and Oberdiek, Heiko},
|
||||
title = {Hypertext marks in \LaTeX{}: a manual for hyperref (v6.82q)},
|
||||
type = {M/OL},
|
||||
date = {2012-05-13},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/hyperref/},
|
||||
urldate = {2012-08-01},
|
||||
}
|
||||
|
||||
@online{dypang,
|
||||
author = {dypang},
|
||||
title = {北京大学硕博论文模版(测试版)},
|
||||
type = {EB/OL},
|
||||
date = {2005-04-05},
|
||||
url = {http://bdwm.net/a.php?b/Thesis/M.1112645491.A/D10F612.rar},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{FerretL,
|
||||
author = {FerretL},
|
||||
title = {新的 pku 博士论文模板},
|
||||
type = {EB/OL},
|
||||
date = {2007-03-27},
|
||||
url = {http://bdwm.net/a.php?b/Thesis/M.1174982168.A/4270722.rar},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{lwolf,
|
||||
author = {lwolf},
|
||||
title = {学士(硕/博)毕业论文模板 [基于 dypang 的模板]},
|
||||
type = {EB/OL},
|
||||
date = {2007-05-15},
|
||||
url = {http://bdwm.net/a.php?b/MathTools/M.1179239165.A/5A2D5A2.rar},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{Langpku,
|
||||
author = {Langpku},
|
||||
title = {Re: 关于置底模版的问题和一些修改},
|
||||
type = {EB/OL},
|
||||
date = {2007-06-01},
|
||||
url = {http://bdwm.net/a.php?b/MathTools/M.1180676700.A/DBB7810.zip},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{solvethis,
|
||||
author = {solvethis},
|
||||
title = {Re: 学位论文模板更新},
|
||||
type = {EB/OL},
|
||||
date = {2008-03-13},
|
||||
url = {http://bdwm.net/a.php?b/Thesis/M.1205377509.A/9413ED2.rar},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{pku-copyright,
|
||||
author = {北京大学研究生院},
|
||||
title = {北京大学学位论文版权声明(首页)},
|
||||
type = {M/OL},
|
||||
year = {2010},
|
||||
url = {http://grs.pku.edu.cn/document/20101110143928832634.doc},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@online{pku-originauth,
|
||||
author = {北京大学研究生院},
|
||||
title = {北京大学学位论文原创性声明和使用授权说明(末页)},
|
||||
type = {M/OL},
|
||||
year = {2010},
|
||||
url = {http://grs.pku.edu.cn/document/20101110143844053593.doc},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
}
|
||||
|
||||
@incollection{pku-thesisstyle,
|
||||
author = {北京大学研究生院},
|
||||
title = {北京大学研究生学位论文的基本要求与书写格式},
|
||||
type = {M/OL},
|
||||
bookauthor = {北京大学研究生院},
|
||||
booktitle = {北京大学研究生手册},
|
||||
publisher = {北京大学},
|
||||
year = {2011},
|
||||
pages = {27-31},
|
||||
url = {http://grs.pku.edu.cn/document/20110829160841775796.doc},
|
||||
urldate = {2012-08-01},
|
||||
userf = {zh},
|
||||
@article{test,
|
||||
author = {Author},
|
||||
title = {Title},
|
||||
type = {J},
|
||||
journal = {Journal},
|
||||
date = {2014-04-01},
|
||||
}
|
||||
|
||||
|
||||
@ -30,44 +30,25 @@
|
||||
% 若需要按照英文文献在前,中文文献在后排序,请设置“sorting = ecnty”;
|
||||
% 若需要按照中文文献在前,英文文献在后排序,请设置“sorting = centy”。
|
||||
\usepackage[backend = biber, style = caspervector, utf8, sorting = none]{biblatex}
|
||||
% 使得打字机粗体可以被使用。
|
||||
\usepackage{lmodern}
|
||||
% 产生 originauth.tex 里的 \square。
|
||||
\usepackage{amssymb}
|
||||
% 提供 Verbatim 环境和 \VerbatimInput 命令。
|
||||
\usepackage{fancyvrb}
|
||||
|
||||
% 使被强调的内容为红色。hyperref 宏包在设置了 colorlinks 时会引入 color 宏包,
|
||||
% 后者定义了 \textcolor 命令,故不用单独引入宏包。
|
||||
\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}
|
||||
|
||||
% pkuthss 文档模版的版本。
|
||||
\newcommand{\docversion}{v1.4}
|
||||
% 设定文档的基本信息。
|
||||
\pkuthssinfo{
|
||||
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
|
||||
ctitle = {北京大学论文文档模版\\pkuthss \docversion},
|
||||
% “\\”在设定 pdf 属性时会被自动过滤掉,于是得到的 pdf 属性中标题为
|
||||
% The PKU dissertation document classpkuthss [版本号]
|
||||
% 此处指定其被替换为“: ”,以使之为
|
||||
% The PKU dissertation document class: pkuthss [版本号]
|
||||
etitle = {%
|
||||
The PKU dissertation document class\texorpdfstring{\\}{: }%
|
||||
pkuthss \docversion%
|
||||
},
|
||||
cauthor = {盖茨波 $\cdot$ 钛 $\cdot$ 维克托},
|
||||
eauthor = {Casper Ti.\ Vector},
|
||||
studentid = {00910???},
|
||||
date = {二〇一四年四月},
|
||||
school = {化学与分子工程学院},
|
||||
cmajor = {化学(?)}, emajor = {Chemistry ... ?},
|
||||
direction = {据说 Casper 自己也不知道},
|
||||
cmentor = {XX 教授}, ementor = {Prof.\ XX},
|
||||
ckeywords = {\LaTeX2e{},排版,文档类,\CTeX{}},
|
||||
ekeywords = {\LaTeX2e{}, typesetting, document class, \CTeX{}}
|
||||
ctitle = {测试文档}, etitle = {Test Document},
|
||||
cauthor = {某某},
|
||||
eauthor = {Test},
|
||||
studentid = {0123456789},
|
||||
date = {某年某月},
|
||||
school = {某某学院},
|
||||
cmajor = {某某专业}, emajor = {Some major},
|
||||
direction = {某某方向},
|
||||
cmentor = {某某教授}, ementor = {Prof.\ Somebody},
|
||||
ckeywords = {某某}, ekeywords = {Something}
|
||||
}
|
||||
% 导入参考文献数据库(注意不要省略“.bib”)。
|
||||
\addbibresource{pkuthss.bib}
|
||||
\addbibresource{thesis.bib}
|
||||
|
||||
\begin{document}
|
||||
% 以下为正文之前的部分。
|
||||
@ -89,8 +70,6 @@
|
||||
\include{chap/introduction}
|
||||
% 各章节。
|
||||
\include{chap/chap1}
|
||||
\include{chap/chap2}
|
||||
\include{chap/chap3}
|
||||
% 结论。
|
||||
\include{chap/conclusion}
|
||||
|
||||
@ -110,7 +89,6 @@
|
||||
]
|
||||
% 各附录。
|
||||
\include{chap/encl1}
|
||||
\include{chap/encl2}
|
||||
|
||||
% 以下为正文之后的部分。
|
||||
\backmatter
|
||||
|
||||
Loading…
Reference in New Issue
Block a user