texlive[63225] Master/texmf-dist: pkuthss (4may22)

commits+karl at tug.org commits+karl at tug.org
Wed May 4 22:50:11 CEST 2022


Revision: 63225
          http://tug.org/svn/texlive?view=revision&revision=63225
Author:   karl
Date:     2022-05-04 22:50:11 +0200 (Wed, 04 May 2022)
Log Message:
-----------
pkuthss (4may22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pkuthss/example.pdf
    trunk/Master/texmf-dist/doc/latex/pkuthss/pkuthss.pdf
    trunk/Master/texmf-dist/doc/latex/pkuthss/readme/ChangeLog.txt
    trunk/Master/texmf-dist/doc/latex/pkuthss/readme/chap/pkuthss-chap2.tex
    trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss-english.patch
    trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.bib
    trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.tex
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkulogo.pdf
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-gbk.def
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-utf8.def
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.def
    trunk/Master/texmf-dist/tex/latex/pkuthss/pkuword.pdf

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/pkuthss.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/readme/ChangeLog.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pkuthss/readme/ChangeLog.txt	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/doc/latex/pkuthss/readme/ChangeLog.txt	2022-05-04 20:50:11 UTC (rev 63225)
@@ -1,3 +1,8 @@
+2022-05-04, v1.9.2
+
+	* Changes to package code:
+	- Support pkufont via unicode-math instead of newtx when using xelatex.
+
 2021-10-16, v1.9.1
 
 	* API changes:

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/readme/chap/pkuthss-chap2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pkuthss/readme/chap/pkuthss-chap2.tex	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/doc/latex/pkuthss/readme/chap/pkuthss-chap2.tex	2022-05-04 20:50:11 UTC (rev 63225)
@@ -1,7 +1,7 @@
 % Documentation for pkuthss.
 %
 % Copyright (c) 2008-2009 solvethis
-% Copyright (c) 2010-2019,2021 Casper Ti. Vector
+% Copyright (c) 2010-2019,2021-2022 Casper Ti. Vector
 %
 % This work may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License, either version 1.3 of this license or (at
@@ -306,9 +306,10 @@
 
 除此之外,pkuthss 文档类还可能调用以下这些宏包:
 \begin{itemize}
-	\item 启用 \verb|pkufont| 选项时会调用
-		newtxtext 和 newtxmath\cupercite{newtx} 宏包,
-		否则会调用 latexsym\cupercite{latexsym} 宏包。
+	\item 启用 \verb|pkufont| 选项时会调用 unicode-math
+		\cupercite{unicode-math} 宏包(\hologo{XeLaTeX} 编译)或
+		newtxtext/newtxmath\cupercite{newtx} 宏包(非 \hologo{XeLaTeX}
+		编译),否则会调用 latexsym\cupercite{latexsym} 宏包。
 	\item 启用 \verb|pkufoot| 选项时会调用
 		tikz\cupercite{tikz} 和 scrextend\cupercite{scrextend} 宏包。
 	\item 启用 \verb|pkuspace| 选项时会调用

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss-english.patch
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss-english.patch	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss-english.patch	2022-05-04 20:50:11 UTC (rev 63225)
@@ -200,11 +200,11 @@
  	% 以下为正文之前的部分,默认不进行章节编号。
  	\frontmatter
 diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def
-index afed37b..e74e4bf 100644
+index e1d9566..7cfbd32 100644
 --- a/tex/pkuthss-utf8.def
 +++ b/tex/pkuthss-utf8.def
 @@ -27,13 +27,13 @@
- 	[2021/03/29 v1.9.0 Labels and captions in UTF-8 encoding
+ 	[2021/10/16 v1.9.1 Labels and captions in UTF-8 encoding
  		for the pkuthss document class]
  
 -\def\label at ctitle{题目:}
@@ -225,10 +225,10 @@
  \def\label at blindcover{(匿名评阅论文封面)}
  \def\label at blindctitle{中文题目:}
 diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls
-index 6ee4e69..5f782f6 100644
+index 5aaf3ae..68bc3a4 100644
 --- a/tex/pkuthss.cls
 +++ b/tex/pkuthss.cls
-@@ -305,7 +305,7 @@
+@@ -332,7 +332,7 @@
  	\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
  	\fancyfoot[C]{\zihao{5}\normalfont{\thepage}}
  	\if at twoside
@@ -237,7 +237,7 @@
  		\fancyhead[CO]{\zihao{5}\normalfont\thss at int@setcase{\leftmark}}
  	\else
  		\fancyhead[C]{\zihao{5}\normalfont\thss at int@setcase{\leftmark}}
-@@ -355,14 +355,14 @@
+@@ -382,14 +382,14 @@
  				\zihao{1}\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
  				\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
  			\fi%
@@ -254,7 +254,7 @@
  		}
  		\vfill
  		% Information about the author.
-@@ -370,18 +370,18 @@
+@@ -397,18 +397,18 @@
  			% Slightly adjust the line skip when using new font size.
  			\zihao{3}\linespread{1.75}\selectfont
  			\def\thss at tmp@len{0.56\textwidth}

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.bib	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.bib	2022-05-04 20:50:11 UTC (rev 63225)
@@ -1,7 +1,7 @@
 % Documentation for pkuthss.
 %
 % Copyright (c) 2008-2009 solvethis
-% Copyright (c) 2010-2021 Casper Ti. Vector
+% Copyright (c) 2010-2022 Casper Ti. Vector
 %
 % This work may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License, either version 1.3 of this license or (at
@@ -85,10 +85,11 @@
 @online{caption,
 	author = {Sommerfeldt, Alex},
 	title = {Customizing captions of floating environments},
+	edition = {Ver.~3.6},
 	type = {M/OL},
-	date = {2011-11-02},
+	date = {2022-02-20},
 	url = {https://ctan.org/pkg/caption},
-	urldate = {2017-03-01},
+	urldate = {2022-05-04},
 	language = {english},
 }
 
@@ -105,7 +106,8 @@
 
 @online{enumitem,
 	author = {Bezos, Javier},
-	title = {Customizing lists with the enumitem package (Version 3.5.2)},
+	title = {Customizing lists with the enumitem package},
+	edition = {Ver.~3.5.2},
 	type = {M/OL},
 	date = {2011-09-28},
 	url = {https://ctan.org/pkg/enumitem},
@@ -138,10 +140,11 @@
 @online{graphicx,
 	author = {Carlisle, D. P.},
 	title = {Packages in the `graphics' bundle},
+	edition = {Ver.~1.2d},
 	type = {M/OL},
-	date = {2016-12-23},
+	date = {2021-09-16},
 	url = {https://ctan.org/pkg/graphicx},
-	urldate = {2017-03-01},
+	urldate = {2022-05-04},
 	language = {english},
 }
 
@@ -170,10 +173,11 @@
 @online{newtx,
 	author = {Sharpe, Michael},
 	title = {New TX font package},
+	edition = {Ver.~1.71},
 	type = {M/OL},
-	date = {2017-01-30},
+	date = {2022-03-02},
 	url = {https://ctan.org/pkg/newtx},
-	urldate = {2017-03-01},
+	urldate = {2022-05-04},
 	language = {english},
 }
 
@@ -180,10 +184,11 @@
 @online{scrextend,
 	author = {Kohm, Markus},
 	title = {KOMA-Script: a versatile \hologo{LaTeX2e} bundle},
+	edition = {Ver.~3.35},
 	type = {M/OL},
-	date = {2017-01-02},
+	date = {2021-11-13},
 	url = {https://ctan.org/pkg/koma-script},
-	urldate = {2017-03-01},
+	urldate = {2022-05-04},
 	language = {english},
 }
 
@@ -200,7 +205,8 @@
 
 @online{tikz,
 	author = {Till Tantau},
-	title = {The TikZ and PGF Packages: Manual for version 3.0.1a},
+	title = {The TikZ and PGF Packages},
+	edition = {Ver.~3.0.1a},
 	type = {M/OL},
 	date = {2015-08-29},
 	url = {https://ctan.org/pkg/pgf},
@@ -229,6 +235,17 @@
 	language = {english},
 }
 
+ at online{unicode-math,
+	author = {Robertson, Will and Stephani, Philipp and Wright, Joseph and Hosny, Khaled},
+	title = {Experimental Unicode mathematical typesetting: The unicode-math package},
+	edition = {Ver.~0.8q},
+	type = {M/OL},
+	date = {2020-01-31},
+	url = {https://ctan.org/pkg/unicode-math},
+	urldate = {2022-05-04},
+	language = {english},
+}
+
 @online{dypang,
 	author = {dypang},
 	title = {北京大学硕博论文模版(测试版)},

Modified: trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.tex	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/doc/latex/pkuthss/readme/pkuthss.tex	2022-05-04 20:50:11 UTC (rev 63225)
@@ -51,7 +51,7 @@
 }
 
 \newif\ifblind\blindfalse
-\newcommand*{\docversion}{v1.9.1}
+\newcommand*{\docversion}{v1.9.2}
 \pkuthssinfo{
 	cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
 	ctitle = {北京大学学位论文模版{\thssnl}pkuthss \docversion},
@@ -60,7 +60,7 @@
 		\texorpdfstring{\thssnl}{: }pkuthss \docversion%
 	},
 	cauthor = {盖茨波·钛·维克托}, eauthor = {Casper Ti.\ Vector},
-	date = {\zhdigits{2021}年\zhnumber{10}月},
+	date = {\zhdigits{2022}年\zhnumber{5}月},
 	studentid = {00910???}, school = {化学与分子工程学院},
 	cmajor = {应用化学}, emajor = {Applied Chemistry},
 	direction = {据说 Casper 自己也不知道}, mentorlines = {2},

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkulogo.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-gbk.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-gbk.def	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-gbk.def	2022-05-04 20:50:11 UTC (rev 63225)
@@ -24,7 +24,7 @@
 %   pkuword.eps
 
 \ProvidesFile{pkuthss-gbk.def}
-	[2021/10/16 v1.9.1 Labels and captions in GBK encoding
+	[2022/05/05 v1.9.2 Labels and captions in GBK encoding
 		for the pkuthss document class]
 
 \def\label at ctitle{\xCC\xE2Ŀ\xA3\xBA}

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-utf8.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-utf8.def	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss-utf8.def	2022-05-04 20:50:11 UTC (rev 63225)
@@ -24,7 +24,7 @@
 %   pkuword.eps
 
 \ProvidesFile{pkuthss-utf8.def}
-	[2021/10/16 v1.9.1 Labels and captions in UTF-8 encoding
+	[2022/05/05 v1.9.2 Labels and captions in UTF-8 encoding
 		for the pkuthss document class]
 
 \def\label at ctitle{题目:}

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls	2022-05-04 20:50:11 UTC (rev 63225)
@@ -1,7 +1,7 @@
 % Peking University dissertation document class
 %
 % Copyright (c) 2008-2009 solvethis
-% Copyright (c) 2010-2021 Casper Ti. Vector
+% Copyright (c) 2010-2022 Casper Ti. Vector
 % Copyright (c) 2021 Kurapica
 %
 % This work may be distributed and/or modified under the conditions of the
@@ -25,7 +25,7 @@
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{pkuthss}
-	[2021/10/16 v1.9.1 Peking University dissertation document class]
+	[2022/05/05 v1.9.2 Peking University dissertation document class]
 
 % eg. `\thss at int@boolopt{spacing}{true}' will expand to:
 %   \newif\ifthss at opt@spacing \thss at opt@spacingtrue
@@ -65,8 +65,6 @@
 % Process all class options now.
 \ProcessOptions\relax
 
-% Prevent fontspec (loaded by xeCJK) from interfering with newtxmath.
-\ifthss at opt@pkufont\PassOptionsToPackage{no-math}{fontspec}\fi
 % Work around the `\lvert already defined' error.
 % cf. <https://github.com/CTeX-org/ctex-kit/issues/454>.
 \ifthss at opt@pkufont\RequirePackage{amsmath}\fi
@@ -90,11 +88,40 @@
 
 \ifthss at opt@pkufont
 	% Use Times New Roman / Arial according to school regulation.
-	% Option used to prevent newtxtext from manipulating footnote marks.
-	\RequirePackage[defaultsups]{newtxtext}
-	\RequirePackage[cmintegrals, varg]{newtxmath}
+	\ifxetex
+		\RequirePackage{unicode-math}
+		\setmathfont[
+			Extension = .otf,
+			BoldFont = XITSMath-Bold
+		]{XITSMath-Regular}
+		\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
+		\let\sumop\relax\let\prodop\relax
+		\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
+		\DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51}
+		\renewcommand{\Box}{\mdlgwhtsquare}
+
+		\setmainfont[
+			Extension = .otf,
+			UprightFont = *-Regular,
+			BoldFont = *-Bold,
+			ItalicFont = *-Italic,
+			BoldItalicFont = *-BoldItalic
+		]{XITS}
+		\setsansfont[
+			Extension = .otf,
+			UprightFont = *-regular,
+			BoldFont = *-bold,
+			ItalicFont = *-italic,
+			BoldItalicFont = *-bolditalic
+		]{texgyreheros}
+	\else
+		% `nofontspec' avoids errors like `The font "FangSong" cannot be found'.
+		% `defaultsups' prevents newtxtext from manipulating footnote marks.
+		\usepackage[nofontspec, defaultsups]{newtxtext}
+		\usepackage[varg]{newtxmath}
+	\fi
 \else
-	% Provides `\Box' for originauth.tex if newtx is absent.
+	% Provides `\Box' for originauth.tex if XITSMath/newtx is absent.
 	\RequirePackage{latexsym}
 \fi
 

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.def	2022-05-04 20:49:56 UTC (rev 63224)
+++ trunk/Master/texmf-dist/tex/latex/pkuthss/pkuthss.def	2022-05-04 20:50:11 UTC (rev 63225)
@@ -23,7 +23,7 @@
 %   pkuword.eps
 
 \ProvidesFile{pkuthss.def}
-	[2021/10/16 v1.9.1 Labels and captions for the pkuthss document class]
+	[2022/05/05 v1.9.2 Labels and captions for the pkuthss document class]
 
 \def\label at ementor{Directed by\ }
 \def\euniversity{Peking University}

Modified: trunk/Master/texmf-dist/tex/latex/pkuthss/pkuword.pdf
===================================================================
(Binary files differ)



More information about the tex-live-commits mailing list.