summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-07 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2024-04-07 03:01:17 +0000
commit8b8ca487806f0f30fc532309d920767c745b568d (patch)
tree1604dc9a44a3f42cfee4057bb579d2c543c8e9ec /macros
parentf575848b7516a7012346378e3d5fbf357ed14f0b (diff)
CTAN sync 202404070301
Diffstat (limited to 'macros')
-rw-r--r--macros/latex/contrib/bookcover/README2
-rw-r--r--macros/latex/contrib/bookcover/bookcover-example1.pdfbin717534 -> 717536 bytes
-rw-r--r--macros/latex/contrib/bookcover/bookcover-example2.pdfbin82337 -> 82335 bytes
-rw-r--r--macros/latex/contrib/bookcover/bookcover.dtx146
-rw-r--r--macros/latex/contrib/bookcover/bookcover.ins4
-rw-r--r--macros/latex/contrib/bookcover/bookcover.pdfbin1572853 -> 1594968 bytes
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.dtx80
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.pdfbin734850 -> 736315 bytes
8 files changed, 195 insertions, 37 deletions
diff --git a/macros/latex/contrib/bookcover/README b/macros/latex/contrib/bookcover/README
index 8c6a2a48da..2c4bdb2ed9 100644
--- a/macros/latex/contrib/bookcover/README
+++ b/macros/latex/contrib/bookcover/README
@@ -1,4 +1,4 @@
-bookcover class, 2015-2022 by Tibor Tomacs
+bookcover class, 2015-2024 by Tibor Tomacs
This class helps typesetting book covers and dust jackets.
diff --git a/macros/latex/contrib/bookcover/bookcover-example1.pdf b/macros/latex/contrib/bookcover/bookcover-example1.pdf
index 39d5f4d433..9a0bf0a0fb 100644
--- a/macros/latex/contrib/bookcover/bookcover-example1.pdf
+++ b/macros/latex/contrib/bookcover/bookcover-example1.pdf
Binary files differ
diff --git a/macros/latex/contrib/bookcover/bookcover-example2.pdf b/macros/latex/contrib/bookcover/bookcover-example2.pdf
index 68861f16ef..18f966373c 100644
--- a/macros/latex/contrib/bookcover/bookcover-example2.pdf
+++ b/macros/latex/contrib/bookcover/bookcover-example2.pdf
Binary files differ
diff --git a/macros/latex/contrib/bookcover/bookcover.dtx b/macros/latex/contrib/bookcover/bookcover.dtx
index c71b62e227..c33d32f1cd 100644
--- a/macros/latex/contrib/bookcover/bookcover.dtx
+++ b/macros/latex/contrib/bookcover/bookcover.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2015-2022 by Tibor Tomacs
+% Copyright (C) 2015-2024 by Tibor Tomacs
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.2
@@ -17,12 +17,12 @@
% \iffalse
%<*driver>
\ProvidesFile{bookcover.dtx}
-\newcommand{\eifiledate}{2022/12/29}
-\newcommand{\eifilever}{v3.5}
+\newcommand{\eifiledate}{2024/04/06}
+\newcommand{\eifilever}{v3.6}
%</driver>
%<class>
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<class>\ProvidesClass{bookcover}[2022/12/29 v3.5 class for book covers and dust jackets]
+%<class>\ProvidesClass{bookcover}[2024/04/06 v3.6 class for book covers and dust jackets]
%
%<*driver>
\documentclass{ltxdoc}
@@ -92,6 +92,8 @@
\color{black!90}\mbox{}\lower.15ex\hbox{[B}ook%
\color{red!70!black}\lower.15ex\hbox{C}over\lower.15ex\hbox{]}}}
+\def\bookcoversizename#1(#2,#3)#4{\texttt{\color{command}#1} ($#2\times#3$\,#4)}
+
\setlength{\parindent}{0pt}
\setlength{\parskip}{8pt}
\renewcommand{\descriptionlabel}[1]{\hspace{0mm}}
@@ -126,7 +128,7 @@
% \textsf{Class for book covers and dust jackets}\\[2mm]
% {\large\texttt{bookcover.cls}\\
% \eifilever\ (\eifiledate)}}
-% \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\href{mailto:tomacs.tibor@uni-eszterhazy.hu}{\texttt{tomacs.tibor@uni-eszterhazy.hu}}}}
+% \author{Tibor T\'{o}m\'{a}cs\\{\normalsize\href{mailto:tomacs.tibor@gmail.com}{\texttt{tomacs.tibor@gmail.com}}}}
% \date{}
% \maketitle
%
@@ -174,15 +176,53 @@
% \medskip The list of \meta{options}:
%
% \begin{compactdesc}
-% \item[]\commandinline|coverheight=!<length>!| Cover height (default \texttt{coverheight=240mm}).
-% \item[]\commandinline|coverwidth=!<length>!| Front/back cover width (default \texttt{coverwidth=170mm}).
+% \item[]\commandinline|cover=!<size-name>!| It specifies the front/back cover width and height (without bleed) by name (default \texttt{cover=default}). Allowed \meta{size-names} (width${}\times{}$height):
+% \bookcoversizename{default}(170,240){mm}
+% \bookcoversizename{a0}(841,1189){mm}
+% \bookcoversizename{a1}(594,841){mm}
+% \bookcoversizename{a2}(420,594){mm}
+% \bookcoversizename{a3}(297,420){mm}
+% \bookcoversizename{a4}(210,297){mm}
+% \bookcoversizename{a5}(148,210){mm}
+% \bookcoversizename{a6}(105,148){mm}
+% \bookcoversizename{b0}(1000,1414){mm}
+% \bookcoversizename{b1}(707,1000){mm}
+% \bookcoversizename{b2}(500,707){mm}
+% \bookcoversizename{b3}(353,500){mm}
+% \bookcoversizename{b4}(250,353){mm}
+% \bookcoversizename{b5}(176,250){mm}
+% \bookcoversizename{b6}(125,176){mm}
+% \bookcoversizename{c0}(917,1297){mm}
+% \bookcoversizename{c1}(648,917){mm}
+% \bookcoversizename{c2}(458,648){mm}
+% \bookcoversizename{c3}(324,458){mm}
+% \bookcoversizename{c4}(229,324){mm}
+% \bookcoversizename{c5}(162,229){mm}
+% \bookcoversizename{c6}(114,162){mm}
+% \bookcoversizename{b0j}(1030,1456){mm}
+% \bookcoversizename{b1j}(728,1030){mm}
+% \bookcoversizename{b2j}(515,728){mm}
+% \bookcoversizename{b3j}(364,515){mm}
+% \bookcoversizename{b4j}(257,364){mm}
+% \bookcoversizename{b5j}(182,257){mm}
+% \bookcoversizename{b6j}(128,182){mm}
+% \bookcoversizename{ansia}(8.5,11){in}
+% \bookcoversizename{ansib}(11,17){in}
+% \bookcoversizename{ansic}(17,22){in}
+% \bookcoversizename{ansid}(22,34){in}
+% \bookcoversizename{ansie}(34,44){in}
+% \bookcoversizename{letter}(8.5,11){in}
+% \bookcoversizename{legal}(8.5,14){in}
+% \bookcoversizename{executive}(7.25,10.5){in}
+% \item[]\commandinline|coverheight=!<length>!| Cover height without bleed. It overrides the height specified by the \texttt{cover} option.
+% \item[]\commandinline|coverwidth=!<length>!| Front/back cover width. It overrides the width specified by the \texttt{cover} option.
% \item[]\commandinline|spinewidth=!<length>!| Spine width (default \texttt{spinewidth=5mm}).
% \item[]\commandinline|flapwidth=!<length>!| Flap width (default \texttt{flapwidth=0mm}).
% \item[]\commandinline|wrapwidth=!<length>!| Wrap width (default \texttt{wrapwidth=0mm}). It has no effect with \texttt{flapwidth=0mm} option.
% \item[]\commandinline|bleedwidth=!<length>!| Bleed width (default \texttt{bleedwidth=5mm}).
% \item[]\commandinline|marklength=!<length>!| Mark length (default \texttt{marklength=10mm}).
% \item[]\commandinline|foldingmargin| or \commandinline|foldingmargin=true| The bleed will not a trimmed area but a folding margin. The crop marks will be placed at the corners of the bleed and the options \texttt{flapwidth} and \texttt{wrapwidth} will be ineffective, meaning there will be no flaps.
-% \item[]\commandinline|foldingmargin=false| (Default.)
+% \item[]\commandinline|foldingmargin=false| (Default.)
% \item[]\commandinline|10pt| (Default.) Normal font size is 10\,pt.
% \item[]\commandinline|11pt| Normal font size is 11\,pt.
% \item[]\commandinline|12pt| Normal font size is 12\,pt.
@@ -267,6 +307,11 @@
% \end{commandlst}
% The possible \meta{geometry parameteres} are the same as for |\newgeometry| in the |geometry| package. Its default value is |margin=1in|. Unlike |\newgeometry|, it can be used in the preamble as well. See an example in the Subsection~\ref{subsec:desc}.
%
+% If you want to check the set dimensions, use the following command in the |bookcoverdescription| environment:
+% \begin{commandlst}
+% \showbookcoverparameters
+% \end{commandlst}
+%
% If the value of the \texttt{trimmed} option is \texttt{true}, then you can set the trimmed part by the following command before any \texttt{bookcover} environment:
% \begin{commandlst}
% \bookcovertrimmedpart{!<trimmed part>!}[!<left>!,!<bottom>!,!<right>!,!<top>!]
@@ -897,8 +942,9 @@
\DeclareVoidOption{10pt}{\PassOptionsToClass{10pt}{article}}
\DeclareVoidOption{11pt}{\PassOptionsToClass{11pt}{article}}
\DeclareVoidOption{12pt}{\PassOptionsToClass{12pt}{article}}
-\DeclareStringOption[170mm]{coverwidth}
-\DeclareStringOption[240mm]{coverheight}
+\DeclareStringOption{coverwidth}
+\DeclareStringOption{coverheight}
+\DeclareStringOption[default]{cover}
\DeclareStringOption[5mm]{spinewidth}
\DeclareStringOption[0mm]{flapwidth}
\DeclareStringOption[0mm]{wrapwidth}
@@ -929,6 +975,7 @@
%% NEW IF
\newif\if@inbookcoverenv
+\newif\if@bookcoverset@check
%% USER LENGTHS
@@ -958,6 +1005,59 @@
\let\partheight\bookcover@partheight@
\let\partwidth\bookcover@partwidth@
+%% COVER SIZE SETTING
+
+\def\bookcover@coversetsize#1(#2,#3)#4{
+ \ifdefstring{\bookcover@cover}{#1}{
+ \ifdefstring{\bookcover@coverwidth}{}{\def\bookcover@coverwidth{#2#4}}{}
+ \ifdefstring{\bookcover@coverheight}{}{\def\bookcover@coverheight{#3#4}}{}
+ \@bookcoverset@checktrue}{}}
+
+\bookcover@coversetsize{a0}(841,1189){mm}% ISO A0
+\bookcover@coversetsize{a1}(594,841){mm}% ISO A1
+\bookcover@coversetsize{a2}(420,594){mm}% ISO A2
+\bookcover@coversetsize{a3}(297,420){mm}% ISO A3
+\bookcover@coversetsize{a4}(210,297){mm}% ISO A4
+\bookcover@coversetsize{a5}(148,210){mm}% ISO A5
+\bookcover@coversetsize{a6}(105,148){mm}% ISO A6
+\bookcover@coversetsize{b0}(1000,1414){mm}% ISO B0
+\bookcover@coversetsize{b1}(707,1000){mm}% ISO B1
+\bookcover@coversetsize{b2}(500,707){mm}% ISO B2
+\bookcover@coversetsize{b3}(353,500){mm}% ISO B3
+\bookcover@coversetsize{b4}(250,353){mm}% ISO B4
+\bookcover@coversetsize{b5}(176,250){mm}% ISO B5
+\bookcover@coversetsize{b6}(125,176){mm}% ISO B6
+\bookcover@coversetsize{c0}(917,1297){mm}% ISO C0
+\bookcover@coversetsize{c1}(648,917){mm}% ISO C1
+\bookcover@coversetsize{c2}(458,648){mm}% ISO C2
+\bookcover@coversetsize{c3}(324,458){mm}% ISO C3
+\bookcover@coversetsize{c4}(229,324){mm}% ISO C4
+\bookcover@coversetsize{c5}(162,229){mm}% ISO C5
+\bookcover@coversetsize{c6}(114,162){mm}% ISO C6
+\bookcover@coversetsize{b0j}(1030,1456){mm}% JIS B0
+\bookcover@coversetsize{b1j}(728,1030){mm}% JIS B1
+\bookcover@coversetsize{b2j}(515,728){mm}% JIS B2
+\bookcover@coversetsize{b3j}(364,515){mm}% JIS B3
+\bookcover@coversetsize{b4j}(257,364){mm}% JIS B4
+\bookcover@coversetsize{b5j}(182,257){mm}% JIS B5
+\bookcover@coversetsize{b6j}(128,182){mm}% JIS B6
+\bookcover@coversetsize{ansia}(8.5,11){in}
+\bookcover@coversetsize{ansib}(11,17){in}
+\bookcover@coversetsize{ansic}(17,22){in}
+\bookcover@coversetsize{ansid}(22,34){in}
+\bookcover@coversetsize{ansie}(34,44){in}
+\bookcover@coversetsize{letter}(8.5,11){in}
+\bookcover@coversetsize{legal}(8.5,14){in}
+\bookcover@coversetsize{executive}(7.25,10.5){in}
+\bookcover@coversetsize{default}(170,240){mm}
+
+\if@bookcoverset@check\else
+ \ClassWarning{bookcover}{'\bookcover@cover' is not valid cover size name (changed to 'default' value)}
+ \def\bookcover@cover{default}
+ \ifdefstring{\bookcover@coverwidth}{}{\def\bookcover@coverwidth{170mm}}{}
+ \ifdefstring{\bookcover@coverheight}{}{\def\bookcover@coverheight{240mm}}{}
+\fi
+
%% USER LENGTHS SETTING
\setlength{\coverwidth}{\bookcover@coverwidth}
@@ -969,6 +1069,32 @@
\setlength{\markthick}{\bookcover@markthick}
\setlength{\bleedwidth}{\bookcover@bleedwidth}
+%% SHOW BOOKCOVER PARAMETERS
+
+\def\showbookcoverparameters{%
+ \begin{tabular}{@{}r@{ = }l@{}}
+ book cover type&
+ \ifbookcover@foldingmargin book cover for hardcover book
+ \else
+ \ifdim\flapwidth>0pt dust jacket
+ \else
+ book cover for paperback book
+ \fi
+ \fi\\
+ front/back cover width & \bookcover@coverwidth\\
+ front/back cover height & \bookcover@coverheight\\
+ spine width & \bookcover@spinewidth\\
+ \ifbookcover@foldingmargin
+ \else
+ \ifdim\flapwidth>0pt
+ flap width & \bookcover@flapwidth\\
+ \ifdim\wrapwidth>0pt wrap width & \bookcover@wrapwidth\\\fi
+ \fi
+ \fi
+ bleed width & \bookcover@bleedwidth\\
+ mark length & \bookcover@marklength
+ \end{tabular}}
+
%% PAGE DIMENSIONS SETTING
\geometry{%
diff --git a/macros/latex/contrib/bookcover/bookcover.ins b/macros/latex/contrib/bookcover/bookcover.ins
index c621cb1586..5f601760d3 100644
--- a/macros/latex/contrib/bookcover/bookcover.ins
+++ b/macros/latex/contrib/bookcover/bookcover.ins
@@ -1,5 +1,5 @@
-% Copyright (C) 2015-2022 Tibor Tomacs
+% Copyright (C) 2015-2024 Tibor Tomacs
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.2 of this license or (at your option) any later
@@ -15,7 +15,7 @@
\usedir{tex/latex/bookcover}
\preamble
This is a generated file.
-Copyright (C) 2015-2022 Tibor Tomacs
+Copyright (C) 2015-2024 Tibor Tomacs
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.2 of this license or (at your option) any later
diff --git a/macros/latex/contrib/bookcover/bookcover.pdf b/macros/latex/contrib/bookcover/bookcover.pdf
index a87ac663d1..e6d0f8ee65 100644
--- a/macros/latex/contrib/bookcover/bookcover.pdf
+++ b/macros/latex/contrib/bookcover/bookcover.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/bithesis/bithesis.dtx b/macros/unicodetex/latex/bithesis/bithesis.dtx
index 31ac72566f..a619d4a954 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.dtx
+++ b/macros/unicodetex/latex/bithesis/bithesis.dtx
@@ -21,10 +21,10 @@
%<thesis>\ProvidesExplClass{bithesis}
%<report>\ProvidesExplClass{bitreport}
%<beamer>\ProvidesExplClass{bitbeamer}
-%<cls>{2024-03-26}{3.7.1}{BIT Thesis Templates}
+%<cls>{2024-04-06}{3.7.1}{BIT Thesis Templates}
%
%<*driver>
-\ProvidesFile{bithesis.dtx}[2024/03/26 3.7.1 BIT Thesis Templates]
+\ProvidesFile{bithesis.dtx}[2024/04/06 3.7.2 BIT Thesis Templates]
\documentclass[letterpaper]{l3doc}
\usepackage{dtx-style}
@@ -287,14 +287,36 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\boxempty:}
+% 空的选框。
+% \begin{macrocode}
+\cs_new:Npn \boxempty:
+{
+ \makebox[1em][l]
+ {
+ % 为保证与打了勾的一致,也需套盒子
+ \makebox[0pt][l]
+ {
+ % 默认比基线略高,向下降降
+ \raisebox{-1pt}{$\square$}
+ }
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\boxcheck:}
-% 标签文字之间的间距。
+% 打了勾的选框。
% \begin{macrocode}
\cs_new:Npn \boxcheck:
{
\makebox[1em][l]
{
- \makebox[1pt][l]{$\boxempty$}
+ \makebox[0pt][l]
+ {
+ % 默认比基线略高,向下降降
+ \raisebox{-1pt}{$\square$}
+ }
$\checkmark$
}
}
@@ -405,11 +427,11 @@
{
{originality} {研究成果声明},
{originality_clause} {本人郑重声明:所提交的学位论文是我本人在指导教师的指导下独立完成的研究成果。文中所撰写内容符合以下学术规范(请勾选):
-\par $\boxcheck:$ 论文综述遵循“适当引用”的规范,全部引用的内容不超过50\%。
-\par 论文中的研究数据及结果不存在篡改、剽窃、抄袭、伪造等学术不端行为,并愿意承担因学术不端行为所带来的一切后果和法律责任。
-\par $\boxcheck:$文中依法引用他人的成果,均已做出明确标注或得到许可。
-\par $\boxcheck:$论文内容未包含法律意义上已属于他人的任何形式的研究成果,也不包含本人已用于其他学位申请的论文或成果。
-\par $\boxcheck:$与本人一同工作的合作者对此研究工作所做的任何贡献均已在学位论文中作了明确的说明并表示了谢意。
+\par \boxcheck:\hspace{0.5em} 论文综述遵循“适当引用”的规范,全部引用的内容不超过50\%。
+\par \boxcheck:\hspace{0.5em} 论文中的研究数据及结果不存在篡改、剽窃、抄袭、伪造等学术不端行为,并愿意承担因学术不端行为所带来的一切后果和法律责任。
+\par \boxcheck:\hspace{0.5em} 文中依法引用他人的成果,均已做出明确标注或得到许可。
+\par \boxcheck:\hspace{0.5em} 论文内容未包含法律意义上已属于他人的任何形式的研究成果,也不包含本人已用于其他学位申请的论文或成果。
+\par \boxcheck:\hspace{0.5em} 与本人一同工作的合作者对此研究工作所做的任何贡献均已在学位论文中作了明确的说明并表示了谢意。
\par~特此声明。},
{authorization} {关于学位论文使用权的说明},
{authorization_clause} {本人完全了解北京理工大学有关保管、使用学位论文的规定,其中包括:
@@ -803,6 +825,8 @@
mathAboveDisplaySkip .initial:n = {3pt},
mathBelowDisplaySkip .dim_set:N = \l_@@_style_math_below_display_skip_dim,
mathBelowDisplaySkip .initial:n = {3pt},
+ betterTimesNewRoman .bool_set:N = \l_@@_style_better_new_roman_bool,
+ betterTimesNewRoman .initial:n = {false},
}
% \end{macrocode}
%
@@ -931,7 +955,6 @@
\RequirePackage{listings}
\RequirePackage{enumitem}
\RequirePackage{fmtcount}
-\RequirePackage{stmaryrd}
% \end{macrocode}
%
% 抑制 \pkg{hyperref} 中对 |\hskip| 的 warning 信息。
@@ -991,8 +1014,22 @@
% 设置 Times New Roman 字体。
% 根据学校规范要求,默认情况下也使用 Times New Roman 字体。
% \begin{macrocode}
-\setmainfont{Times~New~Roman}
-\setromanfont{Times~New~Roman}
+\ctex_at_end_preamble:n {
+ \bool_if:NTF \l_@@_style_better_new_roman_bool {
+ \defaultfontfeatures[TeX~Gyre~Termes]
+ {
+ Extension = .otf ,
+ UprightFont = texgyretermes-regular,
+ BoldFont = texgyretermes-bold,
+ ItalicFont = texgyretermes-italic,
+ BoldItalicFont = texgyretermes-bolditalic,
+ }
+ \setmainfont{TeX~Gyre~Termes}
+ }{
+ \setmainfont{Times~New~Roman}
+ \setromanfont{Times~New~Roman}
+ }
+}
% \end{macrocode}
%
% \begin{macro}{\@@_font_path:}
@@ -1858,22 +1895,17 @@
\heiti \zihao{-4}
\scalebox{1.1}\BigStar{}\hspace{4pt} \c_@@_label_special_type_tl\\
- \makebox[1em][l]
{
- \makebox[1pt][l]{\zihao{4}$\boxempty$}
- \bool_if:NT \l_@@_value_cross_research_bool {
- $\checkmark$
- }
+ \zihao{4}
+ \bool_if:NTF \l_@@_value_cross_research_bool {\boxcheck:} {\boxempty:}
}
- \hspace{3pt}\c_@@_label_cross_research_tl\\
- \makebox[1em][l]
+ \hspace{1pt}\c_@@_label_cross_research_tl\\
+
{
- \makebox[1pt][l]{\zihao{4}$\boxempty$}
- \bool_if:NT \l_@@_value_international_student_ugp_bool {
- $\checkmark$
- }
+ \zihao{4}
+ \bool_if:NTF \l_@@_value_international_student_ugp_bool {\boxcheck:} {\boxempty:}
}
- \hspace{3pt}\c_@@_label_international_student_ugp_tl
+ \hspace{1pt}\c_@@_label_international_student_ugp_tl
\end{minipage}
}
\end{flushright}
diff --git a/macros/unicodetex/latex/bithesis/bithesis.pdf b/macros/unicodetex/latex/bithesis/bithesis.pdf
index 1e83f4ec2f..ecffd7bddd 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.pdf
+++ b/macros/unicodetex/latex/bithesis/bithesis.pdf
Binary files differ