Forbid XeLaTeX compilation without UTF-8.

Bump version number to `1.2 beta2'.
This commit is contained in:
Casper Ti. Vector 2011-06-25 18:08:16 +00:00
parent c3fd42b900
commit 244f0cb4ba
5 changed files with 27 additions and 11 deletions

View File

@ -1,5 +1,6 @@
2010/07/24rev 1.2 beta包括第 1 次更新)。
--- 支持 XeLaTeX。
2010/07/24rev 1.2 beta包括直至第 2 次更新)。
--- 支持 UTF-8 和 GBK编码。
支持 XeLaTeX但不可和 GBK 同用)。
--- 较大规模重构:
定义了一些新命令以实现一些重复的代码的功能,
删除了冗余代码和一些用处不大的旧命令,调整了目录结构。

View File

@ -76,7 +76,12 @@
\verb|pdflatex|\verb|pdflatex|。
\item Xe\LaTeX{}~方式:
即顺次执行~\verb|xelatex|\verb|bibtex|%
\verb|xelatex|\verb|xelatex|。
\verb|xelatex|\verb|xelatex|。%
\emph
{%
注意Xe\LaTeX{}~对非~UTF-8~的编码支持不好,
因此Xe\LaTeX{}~方式的编译不支持~GBK~编码。
}
\end{itemize}
pkuthss~文档模板附带的~Makefile~中已经对这三种编译方式进行了完整的配置。

View File

@ -21,7 +21,7 @@
%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{pkuthss}
[2010/07/24 v1.2beta1 Peking University dissertation document class]
[2010/07/24 v1.2beta2 Peking University dissertation document class]
%
\newif\ifPKUTHSS@GBK \PKUTHSS@GBKtrue
@ -37,8 +37,18 @@
\RequirePackage{graphicx}[1999/02/16]
% 便使
\RequirePackage{geometry}
% CJK CJK
\ifxetex\else
\ifxetex
% XeLaTeX UTF-8
\ifPKUTHSS@GBK
\ClassError{pkuthss}
{XeLaTeX compilation is not supported without UTF-8}
{%
XeLaTeX compilation without UTF-8 is very problematic.\MessageBreak
Therefore please use UTF-8 encoding for the LaTeX code.%
}
\fi
\else
% CJK CJK
\RequirePackage{CJKspace}
\fi

View File

@ -30,8 +30,8 @@
}
@MISC{graphicx-doc,
AUTHOR = "D.\ P.\ Carlisle",
TITLE = "Packages in the 'graphics' bundle",
AUTHOR = "D.{\ }P.{\ }Carlisle",
TITLE = "Packages in the `graphics' bundle",
YEAR = "2005",
}

View File

@ -20,7 +20,7 @@
\hypersetup
{
pdfauthor={Casper Ti. Vector},
pdftitle={北京大学论文文档模板 v1.2 beta},
pdftitle={北京大学论文文档模板 v1.2 beta2},
pdfsubject={北京大学本科生毕业论文},
pdfkeywords={LaTeX2e排版文档类CTeX}
}
@ -28,8 +28,8 @@
%% 各种文档信息。
\renewcommand{\thesisname}{本科生毕业论文}
% 题目一般不宜超过 20 个字。
\title{北京大学论文文档模板\\v1.2 beta}
\etitle{The PKU dissertation document class\\v1.2 beta}
\title{北京大学论文文档模板\\v1.2 beta2}
\etitle{The PKU dissertation document class\\v1.2 beta2}
\author{盖茨波$\cdot$$\cdot$维克托}
\eauthor{Casper Ti.\ Vector}
\studentid{0XXXXXXX}