texlive[74717] Master/texmf-dist: hduthesis (21mar25)
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 21 22:22:26 CET 2025
Revision: 74717
https://tug.org/svn/texlive?view=revision&revision=74717
Author: karl
Date: 2025-03-21 22:22:26 +0100 (Fri, 21 Mar 2025)
Log Message:
-----------
hduthesis (21mar25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.tex
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.tex
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.tex
trunk/Master/texmf-dist/doc/latex/hduthesis/hduthesis.pdf
trunk/Master/texmf-dist/source/latex/hduthesis/hdu-graphics.dtx
trunk/Master/texmf-dist/source/latex/hduthesis/hduthesis.dtx
trunk/Master/texmf-dist/tex/latex/hduthesis/beamerthemehdu.sty
trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-exam.code.tex
trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-l3doc.code.tex
trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-typeset.code.tex
trunk/Master/texmf-dist/tex/latex/hduthesis/hduthesis.cls
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-exam.tex
trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/hduthesis/example/cha/
trunk/Master/texmf-dist/doc/latex/hduthesis/example/figures/
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.pdf
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.pdf
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.pdf
trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-stationery.pdf
trunk/Master/texmf-dist/doc/latex/hduthesis/example/reference.bib
Deleted: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-bachelor.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -9,7 +9,8 @@
\hduset
{
- title = 杭州电子科技大学学位论文 \hologo{LaTeX} 模板/本科毕业设计,
+ title = HDU 学士学位论文 \hologo{LaTeX} 模板示例文档/
+ 本科毕业设计,
department = 理学院,
major = 物理学,
class = 英才班,
@@ -16,7 +17,7 @@
stdntid = C668668E,
author = 申智能,
supervisor = 教授:葉芷晴,
- bibsource = reference
+ % bibsource = xampl
}
\begin{document}
@@ -24,18 +25,50 @@
\maketitle
\commitment [ example-image-a/2024-05-31 ]
-\input{cha/abstract.tex}
+\begin{abstract}[cn]
+ \keywords{杭州电子科技大学, 毕业论文, \hologo{LaTeX3}, }
+\end{abstract}
+\begin{abstract}[en]
+ \keywords{HDU, thesis, \hologo{LaTeX3}, }
+\end{abstract}
+
\tableofcontents
-\input{cha/cha1.tex}
-\input{cha/cha2.tex}
-\input{cha/cha3.tex}
-\input{cha/cha4.tex}
-\input{cha/cha5.tex}
-\input{cha/cha6.tex}
-\input{cha/cha7.tex}
-\input{cha/thanks.tex}
+\chapter{引言}
+1
+
+\cite{whole-journal}
+
+\zhlipsum[2]
+\cite{inbook-crossref,whole-set,booklet-full,incollection-crossref,whole-collection,manual-full,mastersthesis-full}
+
+\chapter{公式与插图测试}
+
+\begin{equation}
+ (i\gamma^\mu\partial_\mu - m)\psi = 0
+ \label{2-1}
+\end{equation}
+其中 \eqref{2-1} 为Dirac 方程.
+\[
+ S_x = \frac12\sigma_1 = \frac12
+ \begin{pmatrix}
+ 0 & 1\\
+ 1 & 0
+ \end{pmatrix}, \quad
+ S_y = \frac12\sigma_1 = \frac12
+ \begin{pmatrix}
+ 0 & -i\\
+ i & 0
+ \end{pmatrix}, \quad
+ S_z = \frac12\sigma_1 = \frac12
+ \begin{pmatrix}
+ 1 & 0\\
+ 0 & -1
+ \end{pmatrix}
+\]
+上式为 Pauli 矩阵.
+
\printbibliography
\appendix
Deleted: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-beamer.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -9,7 +9,7 @@
author = SAN Chi Nan (C668668E0),
date = {\today{} / Xiasha Campus},
supervisor = Prof. YIP Tsz Ching,
- bibsource = reference.bib,
+ % bibsource = xampl.bib,
}
\begin{document}
@@ -51,12 +51,12 @@
\begin{alertblock}{Magnetic Sensor}
Magnetic sensors are devices that detect magnetic fields. They are used in a wide range of applications, including automotive, industrial, and consumer electronics.
\end{alertblock}
- Lorem\cite{xu2023unified},
- Ipsum\cite{wang2023electrical},
- dummy\cite{haug2008quantum},
- text\cite{wang2024switching,jhuria2020spin, gilbert2004phenomenological, foros2005magnetization,
- chudnovskiy2008spin, foros2009noise, swiebodzinski2010spin,
- brataas2008scattering, brataas2011magnetization}
+ Lorem,
+ Ipsum,
+ dummy,
+ text
+ \cite{whole-journal}
+ \cite{inbook-crossref,whole-set,booklet-full,incollection-crossref,whole-collection,manual-full,mastersthesis-full}
\end{frame}
\begin{frame}{The NEGF Method}
@@ -85,4 +85,4 @@
\printbibliography
-\end{document}
\ No newline at end of file
+\end{document}
Added: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-exam.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-exam.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-exam.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -0,0 +1,258 @@
+\documentclass[mode = exam, twocolumn]{hduthesis}
+
+\usepackage[fontset = fandol]{ctex}
+\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
+\usepackage{libertine}
+\title{\bfseries 24Fall \textsc{Hdu} 「模拟电子技术」期末试题}
+\author{} \date{}
+
+\ctikzset
+ {
+ amplifiers/fill = cyan!20,
+ resistors/fill = violet!20,
+ sources/fill = yellow!20,
+ diodes/fill = red!20,
+ resistors/scale = .6,
+ capacitors/scale = .6,
+ diodes/scale = .6,
+ sources/scale = .8,
+ inductors/scale = .6,
+ }
+\tikzset {every node/.style = {font = \small}}
+
+\begin{document}
+
+\maketitle
+
+\begin{problem}[12 pt]
+ 如图所示为加减运算电路,求输出电压 $v_o$ 的表达式.
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node [ right ] {$v_o$} to [ short, o- ] ++ (-1,0)
+ node [ op amp, anchor = out ] (A) {$\mathrm A$};
+ \draw (-6.5,2) node [ left ] {$v_{i_1}$} coordinate (vi1)
+ to [ short, o-, european resistor, l = {$R_1 = \qty{30}\kohm$}] ++
+ (2.5,0) coordinate (R1)
+ to [ european resistor, l = {$R_3 = \qty{60}\kohm$} ]
+ (R1 -| A.out) to [ short, -* ] (A.out);
+ \draw (A.- -| vi1) node [ left ] {$v_{i_2}$}
+ to [ short, o-, european resistor, l = ${R_2 = \qty{60}\kohm}$ ] ++
+ (2.5,0) coordinate (R2) -- (A.-);
+ \draw (A.+ -| vi1) node [ left ] {$v_{i_3}$}
+ to [ short, o-, european resistor, l = ${R_4 = \qty{20}\kohm}$ ] ++
+ (2.5,0) coordinate (R4) -- (A.+);
+ \draw (R1) to [ short, *-* ] (R2) node [ above right ] {$v_n$}
+ (R4) node [ below right ] {$v_p$} to [ short, *- ] ++ (0,-.5)
+ to [ european resistor, l_ = $R_5$ ] ++ (0,-1) node [ rground ] {};
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\begin{problem}[12 pt]
+ 如图所示放大电路
+ \begin{enumerate}
+ \item 请判断反馈放大电路的反馈组态.
+ \item 在深度负反馈条件下,求反馈系数和闭环增益表达式.
+ \end{enumerate}
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node (ground) [ rground ] {}
+ to [ european resistor, l = $R_1$] ++ (0,1.25) --++ (0,.25)
+ node [ anchor = S, nigfete, solderdot ] (fet) {$T_1$}
+ (fet.G) to [ short, -o ] ++ (-2,0) node [ left ] (vi) {$v_i$};
+ \draw ([xshift = -1cm]fet.G)
+ to [ short, *-, european resistor, l_ = $R_g$ ] ++ (0,-2) coordinate (Rg) to (Rg |- ground) node [ rground ] {};
+ \draw (fet.S) to [ short, *-, european resistor, l_ = $R_2$ ] ++
+ (2,0) to [ short, -o ] ++ (.5,0) node [ right ] (vo) {$v_o$};
+ \draw (fet.D) to [ european resistor, l = $R_d$ ] ++
+ (0,2) to [ short, -o ] ++ (2.5,0) node [ right ] (VDD) {$V_\text{DD}$};
+ \draw (fet.D) to [ short, *- ] ++ (1,0)
+ node [ pnp, anchor = B ] (pnp) {$T_2$};
+ \draw (pnp.E) to [ european resistor, l = $R_e$ ] ++ (0,1) coordinate (Re)
+ (Re) to [ short, -* ] (VDD -| Re);
+ \draw (pnp.C) to [ short, -* ] (vo -| pnp.C);
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\newpage
+
+\begin{problem}[12 pt]
+ 如图电路,D 为硅二极管,$V_\text{DD} = \qty2\V$,$R = \qty1\kohm$,正弦信号 $v_s = 100 \sin(2\pi \times 50t) \unit\mV$,求输出电压 $v_o$.
+
+ \centering
+ \begin{circuitikz}[american]
+ \draw (0,0) node [ below ] {$+$} to [ short, o- ] ++ (-1.5,0)
+ to [ stroke diode, invert, l_ = D ] ++ (-3,0)
+ to [ european voltage source, l_ = $v_s$ ] ++ (0,-2)
+ to [ battery1, l_ = $V_\text{DD}$] ++ (0,-1) to [ short, -o ] ++ (4.5,0)
+ node [ above ] {$-$};
+ \draw (-1.5,0) to [ short, *-*, european resistor, l_ = $R$ ] ++ (0,-3);
+ \node at (0,-1.5) {$v_o$};
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\begin{problem}[15 pt]
+ 电路如下图所示,硅 BJT 三极管的 $\beta = 100$,$C_1$ 和 $C_2$ 为隔直耦合电容.
+ \begin{enumerate}
+ \item 发射极静态电流 $I_\text{BQ} = \qty1\mA$,求 $R_e$ 的值.
+ \item 集电极电压 $V_\text{CQ} = \qty5\V$,求 $R_c$ 的值.
+ \item $R_L = \qty5\kohm$,求电压增益 $A_\text{VB}$.
+ \end{enumerate}
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node [ npn, anchor = B ] (npn) {$T$}
+ to [ european resistor, l_ = {$R_b = 500$} ] ++ (-2,0)
+ to [ european voltage source, l_ = $V_s$ ] ++ (0,-2)
+ coordinate (ground) node [ rground ] {};
+ \draw (npn.C) to [ european resistor, l_ = $R_c$] ++ (0,1.5)
+ node [ vcc ] {$+\qty{15}\V$} (npn.E)
+ to [ european resistor, l = $R_e$] ++ (0,-1.5)
+ node [ vee ] {$-\qty{15}\V$};
+ \draw (npn.E) to [ short, *-, C = $C_2$ ] ++ (1.75,0) coordinate (C2)
+ (C2 |- ground) node [ rground ] {} -- (C2);
+ \draw (npn.C) to [ short, *-, C = $C_1$ ] ++ (2.5,0)
+ node [ below left ] {$+$} to [ european resistor, l = $R_L$] ++
+ (0,-1.75) coordinate (RL) node [ above left ] {$V_0$}(RL |- ground)
+ node [ rground ] {} node [ left ] {$-$} -- (RL);
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\newpage
+
+\begin{problem}[15 pt]
+ 电路如图所示,设 MOSFET 的参数为 $V_\text{TN} = \qty1\V$,
+ $K_n = \qty{0.8}{\mA/\V^2}$,$\lambda = 0$.
+ \begin{enumerate}
+ \item 试判断场效应管类型,及其工作区.
+ \item 求静态工作点.
+ \item 画出电路的微变等效电路,求电路的电压增益 $A_v$,输入电阻 $R_i$ 和输出电阻 $R_o$.
+ \end{enumerate}
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node [ below ] {$+$}
+ to [ short, o-, C = $C_1$ ] ++ (1.75,0) --++ (.75,0)
+ node (fet) [ anchor = G, nigfete ] {$T$} (fet.S) --++ (0,-2)
+ node [ rground ] (ground) {};
+ \draw (fet.D) to [ european resistor, l_ = {$R_d = \qty{3}\kohm$} ] ++ (0,2)
+ node [ vdd ] (vdd) {$+\qty5\V$};
+ \draw (0,-2) node [ above ] {$-$} coordinate (negative)
+ to [ short, o-* ] (negative -| ground);
+ \draw (1.75,-2)
+ to [ short, *-*, european resistor, l_ = ${R_{g_2} = \qty{20}\kohm}$ ]
+ (1.75,0) to [ european resistor, l_ = ${R_{g_1} = \qty{20}\kohm}$ ]
+ ++ (0,2.5) --++ (0,.5) coordinate (Rg1) to [ short, -* ] (Rg1 -| vdd);
+ \draw (fet.D) to [ short, *-o, C = $C_2$ ] ++ (2.5,0)
+ node [ below ] {$v_o$};
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\begin{problem}[12 pt]
+ 双电源互补对称电路如图所示,设 $V_\text{CC} = \qty{12}\V$,$R_L = \qty{12}\ohm$,
+ $v_i$ 为正弦波,求
+ \begin{enumerate}
+ \item 忽略 BJT 的饱和压降,负载上可能得到的最大输出功率 $P_\text{om}$.
+ \item 直流电源供给的功率 $P_v = \frac2\pi \cdot \frac{V_\text{CC}}{R_L}$,
+ 求放大器的效率 $\eta$.
+ \end{enumerate}
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node [ vee ] {$-V_\text{CC}$} --++ (0,.25)
+ node [ pnp, anchor = C ] (pnp) {$T_2$} (pnp.E)
+ node [ npn, anchor = E ] (npn) {$T_1$} (npn.C) --++ (0,.25)
+ node [ vcc ] {$+V_\text{CC}$};
+ \draw (pnp.E) to [ short, *-o ] ++ (.9,0) --++ (.6,0)
+ node [ right ] {$+$} to [ european resistor, l_ = $R_L$ ] ++ (0,-1.5)
+ node [ right ] {$-$} node [ rground ] {};
+ \draw ([xshift = -1.5cm]pnp.E) coordinate (vi) to [ short, *-o ]
+ ([xshift = -2.5cm]pnp.E) node [ left ] {$v_i$};
+ \draw (npn.B) -| (vi) |- (pnp.B);
+ \end{circuitikz}
+
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\newpage
+
+\begin{problem}[14 pt]
+ 已知如图所示电路,设硅三极管 BJT 的 $\beta = 100$.
+ \begin{enumerate}
+ \item 计算电路的静态工作点.
+ \item 计算双端输入、双端输出时的差模电压增益.
+ \end{enumerate}
+
+ \centering
+ \begin{circuitikz}
+ \draw (0,0) node [ vee ] {VEE $-\qty6\V$}
+ to [ european resistor, l_ = {$R_e = \qty{5.3}\kohm$} ] ++ (0,1)
+ to [ short, -* ] ++ (0,.25) coordinate (base);
+ \draw (base) -| (-1,2) node (npn1) [ npn, anchor = E ] {$T_1$}
+ (npn1.B) to [ short, -o ] ++ (-.25,0) node [ left ] {$V_{i_1}$}
+ (npn1.C) to [ european resistor, l = {$R_{e_1} = \qty{6.2}\kohm$} ] ++
+ (0,2) --++ (1,0) coordinate (top);
+ \draw (base) -| (1,2)
+ node (npn2) [ npn, xscale = -1, anchor = E, reversed ]
+ {\ctikzflipx{$T_2$}}
+ (npn2.B) to [ short, -o ] ++ (.25,0) node [ right ] {$V_{i_2}$}
+ (npn2.C) to [ european resistor, l_ = {$R_{e_2} = \qty{6.2}\kohm$} ] ++
+ (0,2) to [ short, -* ] ++ (-1,0);
+ \draw (top) --++ (0,.25) node [ vcc ] {VCC $+\qty{6}\V$};
+ \draw (npn1.C) to [ short, *-o ] ++ (.25,0) node [ right ] {$V_{e_1}$}
+ (npn2.C) to [ short, *-o ] ++ (-.25,0) node [ left ] {$V_{e_2}$};
+ \end{circuitikz}
+\end{problem}
+\begin{solution}
+
+\end{solution}
+
+\begin{problem}[8 pt]
+ 电路如图所示,试用相位平衡条件判断能不能振荡. 如果能,请说明理由;
+ 如果不能,也请说明理由,并最少程度上修改电路使其能产生振荡.
+
+ \centering
+ \begin{circuitikz}[american]
+ \draw (0,0) to [ short, *-] ++ (.25,0)
+ node [ npn, anchor = B ] (npn) {$T$}
+ node [ transformer, anchor = A2 ] (trans) at (npn.C) {$L$}
+ node [ circ ] at (npn.C) {}
+ node [ circ ] at (trans.outer dot A2) {}
+ node [ circ ] at (trans.outer dot B1) {}
+ node [ rground ] at (trans.B2) {};
+ \draw (trans.A1) --++ (-.5,0) to [ C = $C$ ]
+ ([xshift = -.5cm]trans.A2) -- (trans.A2);
+ \draw (npn.B) to [ C = $C_b$] ++ (-1.5,0) |- (3,-3) |-
+ ([xshift = .25cm]trans.B1) -- (trans.B1);
+ \draw (trans.A1) --++ (0,.5) coordinate (vcc) to [ short, -o ] ++ (-2,0)
+ node [ below ] {$V_\text{CC}$};
+ \draw (npn.E) to [ short, *-*, european resistor, l_ = $R_E$ ] ++
+ (0,-1.5) node [ rground ] (ground) {};
+ \draw (npn.E) --++ (1,0) coordinate (Ce)
+ to [ C = $C_e$ ] (Ce |- ground) -- (ground)
+ to (ground -| npn.B) --++ (-.25,0)
+ to [ short, -*, european resistor, l = $R_{b_2}$] ([xshift = -.25cm]npn.B)
+ coordinate (Rb2)
+ to [ short, -*, european resistor, l = $R_{b_1}$] (Rb2 |- vcc);
+ \end{circuitikz}
+\end{problem}
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-exam.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-mphil.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -17,7 +17,7 @@
stdntid = C668668E0,
author = 申智能/SAN Chi Nan,
supervisor = 教授:葉芷晴/Prof.:YIP Tsz Ching,
- bibsource = reference
+ % bibsource = xampl
}
\begin{document}
Deleted: trunk/Master/texmf-dist/doc/latex/hduthesis/example/hduthesis-stationery.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/hduthesis/example/reference.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/example/reference.bib 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/example/reference.bib 2025-03-21 21:22:26 UTC (rev 74717)
@@ -1,232 +0,0 @@
- at article{cn1,
- title={激光模拟射击训练器械及其射击精度的检定方法},
- author={刘伯来 and 宋作本 and 徐忠瑞},
- journal={山东体育科技},
- volume={24},
- number={4},
- pages={17--19},
- year={2002},
-}
-
- at article{cn2,
- title={一种新型激光射击训练模拟靶的设计},
- author={任宏岩 and 戴炳明},
- journal={大连理工大学学报},
- number={增2},
- pages={186--187},
- year={1997},
-}
-
- at article{cn3,
- title={智能型光电打靶模拟训练系统},
- author={戴炳明 and 任宏岩 and 张雏},
- journal={半导体光电},
- number={03},
- pages={196--197},
- year={1998},
-}
-
- at book{cn4,
- title={半导体激光器及其应用},
- author={黄德修},
- publisher={半导体激光器及其应用},
- year={1999},
- pages={1--27}
-}
-
- at inproceedings{en5,
- title={An optical photo-detector using a distributed amplifier and PIN photodiode combination},
- author={Liang, Jia Yi and Aitchison, Colin S},
- booktitle={1994 IEEE MTT-S International Microwave Symposium Digest (Cat. No. 94CH3389-4)},
- pages={1101--1104},
- year={1994},
- organization={IEEE}
-}
-
- at article{en6,
- title={Photovoltaic materials, past, present, future},
- author={Goetzberger, Adolf and Hebling, Christopher},
- journal={Solar energy materials and solar cells},
- volume={62},
- number={1-2},
- pages={1--19},
- year={2000},
- publisher={Elsevier}
-}
-
- at book{cn7,
- title={光电检测技术},
- author={高稚允 and 高岳},
- year={1995},
- publisher={国防工业出版社},
- pages={172--212}
-}
-
- at book{cn8,
- title={光电技术与实验},
- author={江月松 and 阎平 and 刘振玉},
- publisher={光电技术与实验},
- year={2000},
- pages={119--152}
-}
-
- at book{cn9,
- title={集成运算放大器应用手册},
- author={W.G},
- publisher={集成运算放大器应用手册},
- year={1990},
- pages={3--72}
-}
-
- at book{cn10,
- title={电子线路},
- author={谢嘉奎},
- publisher={北京:高等教育出版社},
- year={1999},
- pages={321--323}
-}
-
- at book{cn11,
- title={数字电路},
- author={龚之春},
- publisher={成都:电子科技大学出版},
- year={1999},
- pages={123--127}
-}
-
- at book{cn12,
- title={单片机基础},
- author={李广弟},
- publisher={北京:北京航空航天大学出版社},
- year={1994},
- pages={6--28}
-}
-
- at article{xu2023unified,
- title={Unified framework of the microscopic Landau-Lifshitz-Gilbert equation and its application to skyrmion dynamics},
- author={Xu, Fuming and Li, Gaoyang and Chen, Jian and Yu, Zhizhou and Zhang, Lei and Wang, Baigeng and Wang, Jian},
- journal={Physical Review B},
- volume={108},
- number={14},
- pages={144409},
- year={2023},
- publisher={APS}
-}
-
- at article{wang2023electrical,
- title={Electrical switchable room-temperature magnetic skyrmions in multiferroic MXene},
- author={Wang, Liming and Ga, Yonglong and Li, Peng and Yu, Dongxing and Jiang, Jiawei and Liang, Jinghua and Wang, Shouguo and Yang, Hongxin},
- journal={Physical Review B},
- volume={108},
- number={5},
- pages={054440},
- year={2023},
- publisher={APS}
-}
-
- at book{haug2008quantum,
- title={Quantum kinetics in transport and optics of semiconductors},
- author={Haug, Hartmut and Jauho, Antti-Pekka and others},
- volume={2},
- year={2008},
- publisher={Springer}
-}
-
- at article{wang2024switching,
- title={Switching intrinsic magnetic skyrmions with controllable magnetic anisotropy in van der Waals multiferroic heterostructures},
- author={Wang, Ze-quan and Xue, Feng and Qiu, Liang and Wang, Zhe and Wu, Ruqian and Hou, Yusheng},
- journal={Nano Letters},
- volume={24},
- number={14},
- pages={4117--4123},
- year={2024},
- publisher={ACS Publications}
-}
-
- at article{jhuria2020spin,
- title={Spin--orbit torque switching of a ferromagnet with picosecond electrical pulses},
- author={Jhuria, Kaushalya and Hohlfeld, Julius and Pattabi, Akshay and Martin, Elodie and Arriola C{\'o}rdova, Aldo Ygnacio and Shi, Xinping and Lo Conte, Roberto and Petit-Watelot, Sebastien and Rojas-Sanchez, Juan Carlos and Malinowski, Gregory and others},
- journal={Nature Electronics},
- volume={3},
- number={11},
- pages={680--686},
- year={2020},
- publisher={Nature Publishing Group UK London}
-}
-
- at article{gilbert2004phenomenological,
- title={A phenomenological theory of damping in ferromagnetic materials},
- author={Gilbert, Thomas L},
- journal={IEEE transactions on magnetics},
- volume={40},
- number={6},
- pages={3443--3449},
- year={2004},
- publisher={IEEE}
-}
-
- at article{foros2005magnetization,
- title={Magnetization noise in magnetoelectronic nanostructures},
- author={Foros, J{\o}rn and Brataas, Arne and Tserkovnyak, Yaroslav and Bauer, Gerrit EW},
- journal={Physical review letters},
- volume={95},
- number={1},
- pages={016601},
- year={2005},
- publisher={APS}
-}
-
- at article{chudnovskiy2008spin,
- title={Spin-torque shot noise in magnetic tunnel junctions},
- author={Chudnovskiy, AL and Swiebodzinski, J and Kamenev, A},
- journal={Physical review letters},
- volume={101},
- number={6},
- pages={066601},
- year={2008},
- publisher={APS}
-}
-
- at article{foros2009noise,
- title={Noise and dissipation in magnetoelectronic nanostructures},
- author={Foros, J{\o}rn and Brataas, Arne and Bauer, Gerrit EW and Tserkovnyak, Yaroslav},
- journal={Physical Review B—Condensed Matter and Materials Physics},
- volume={79},
- number={21},
- pages={214407},
- year={2009},
- publisher={APS}
-}
-
- at article{swiebodzinski2010spin,
- title={Spin torque dynamics with noise in magnetic nanosystems},
- author={Swiebodzinski, J and Chudnovskiy, A and Dunn, T and Kamenev, A},
- journal={Physical Review B—Condensed Matter and Materials Physics},
- volume={82},
- number={14},
- pages={144404},
- year={2010},
- publisher={APS}
-}
-
- at article{brataas2008scattering,
- title={Scattering theory of Gilbert damping},
- author={Brataas, Arne and Tserkovnyak, Yaroslav and Bauer, Gerrit EW},
- journal={Physical review letters},
- volume={101},
- number={3},
- pages={037207},
- year={2008},
- publisher={APS}
-}
-
- at article{brataas2011magnetization,
- title={Magnetization dissipation in ferromagnets from scattering theory},
- author={Brataas, Arne and Tserkovnyak, Yaroslav and Bauer, Gerrit EW},
- journal={Physical Review B—Condensed Matter and Materials Physics},
- volume={84},
- number={5},
- pages={054416},
- year={2011},
- publisher={APS}
-}
\ No newline at end of file
Added: trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf 2025-03-21 21:22:26 UTC (rev 74717)
Property changes on: trunk/Master/texmf-dist/doc/latex/hduthesis/hdu-graphics.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/hduthesis/hduthesis.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/hduthesis/hdu-graphics.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hduthesis/hdu-graphics.dtx 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/source/latex/hduthesis/hdu-graphics.dtx 2025-03-21 21:22:26 UTC (rev 74717)
@@ -3734,4 +3734,77 @@
%<*internal>
\fi
%</internal>
-% \fi
\ No newline at end of file
+%
+%<*driver>
+\documentclass[mode = l3doc, full]{hduthesis}
+\usepackage[mono = false]{libertine}
+\begin{document}
+ \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \title{\bfseries
+% \hologo{hduThesiS} 文档类\\^^A
+% 杭州电子科技大学学位论文 \hologo{LaTeX} 模板^^A
+% }
+%
+% \author{^^A
+% Mingyu Xia \mailto{myhsia at outlook.com}^^A
+% \thanks{Physics Department, Graduate in 07/2025}
+% }
+%
+% \maketitle
+%
+% \begin{center}
+% 此存根文件可确保在运行 |l3build| 时 |hdu-graphics.dtx| 能够顺利展开.
+%
+% This is a stub file to allow extraction of |hdu-graphics.dtx|
+% when running |l3build|.
+% \end{center}
+%
+% \begin{figure}[htbp]
+% \begin{minipage}{.24\linewidth}
+% \centering
+% \fbox{
+% \href{../../../tex/latex/hduthesis/hdulogo.pdf}{
+% \parbox[c][.84\linewidth]{.84\linewidth}{
+% \centering
+% \includegraphics[width = .9\linewidth]{hdulogo}}
+% }
+% }
+% \end{minipage}
+% \hspace*{\fill}
+% \begin{minipage}{.24\linewidth}
+% \centering
+% \fbox{
+% \href{../../../tex/latex/hduthesis/hdutitle.pdf}{
+% \parbox[c][.84\linewidth]{.84\linewidth}{
+% \centering
+% \includegraphics[width = .9\linewidth]{hdutitle}}
+% }
+% }
+% \end{minipage}
+% \hspace*{\fill}
+% \begin{minipage}{.24\linewidth}
+% \centering
+% \fbox{
+% \href{../../../tex/latex/hduthesis/hdubadge.pdf}{
+% \parbox[c][.84\linewidth]{.84\linewidth}{
+% \centering
+% \includegraphics[width = .9\linewidth]{hdubadge}}
+% }
+% }
+% \end{minipage}
+% \hspace*{\fill}
+% \begin{minipage}{.24\linewidth}
+% \centering
+% \fbox{
+% \href{../../../tex/latex/hduthesis/hdumotto.pdf}{
+% \parbox[c][.84\linewidth]{.84\linewidth}{
+% \centering
+% \includegraphics[height = .9\linewidth]{hdumotto}}
+% }
+% }
+% \end{minipage}
+% \end{figure}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/source/latex/hduthesis/hduthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hduthesis/hduthesis.dtx 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/source/latex/hduthesis/hduthesis.dtx 2025-03-21 21:22:26 UTC (rev 74717)
@@ -137,13 +137,11 @@
%</internal>
%
%<*driver|package>
-\RequirePackage{etoolbox, expl3, xparse}
+\RequirePackage{etoolbox}
%</driver|package>
%<*driver>
\documentclass[mode = l3doc, full]{hduthesis}
-\usepackage[fontsize = 10.5pt]{fontsize}
\usepackage[mono = false]{libertine}
-\setmonofont[Scale = .875]{Maple Mono-Light}
\makeindex
\begin{document}
\DocInput{\jobname.dtx}
@@ -182,8 +180,8 @@
% \item 本模板根据杭州电子科技大学教务处颁发的
% \href{https://jwc.hdu.edu.cn/2022/0428/c4528a153813/page.htm}
% {杭电理工类毕业论文写作规范} 编写而成,作者不对使用本模板产生的格式审查问题负责.
-% \ulem{如果您所在的学院因论文查重、收录等原因要求提交 \file{.docx} 格式,
-% 不接收 \file{.pdf} 论文稿件,请勿执意使用本模板,避免因格式转换带来不必要的麻烦.}
+% 如果您所在的学院因论文查重、收录等原因要求提交 \file{.docx} 格式,
+% 不接收 \file{.pdf} 论文稿件,请勿执意使用本模板,避免因格式转换带来不必要的麻烦.
% 使用本模板时,请按编译错误提示操作来勾选同意用户协议.
% \item 欢迎前往 \href{https://github.com/myhsia/hduthesis/issues}{GitHub}
% 提交反馈意见,为推动学校认证与规范化 \hologo{hduthesis} 贡献力量.
@@ -204,10 +202,10 @@
%
% 对于未接触过 \hologo{LaTeX} 的初学者,推荐阅读
% \href{https://tug.ctan.org/info/lshort/english/lshort.pdf}
-% {\ulem{The Not So Short Introduction to \hologo{LaTeX2e}}}
+% {The Not So Short Introduction to \hologo{LaTeX2e}}
% (可在终端执行 |texdoc lshort| 获取)或者其中文版
% \href{http://mirrors.ctan.org/info/lshort/chinese/lshort-zh-cn.pdf}
-% {\ulem{《一份(不太)简短的 \hologo{LaTeX2e} 介绍》}}
+% {《一份(不太)简短的 \hologo{LaTeX2e} 介绍》}
% (可在终端执行 |texdoc lshort-zh-cn| 获取).
%
% \subsection{模板组成}
@@ -294,11 +292,11 @@
% \begin{enumerate}
% \item 模板的章节(\cs[no-index]{chapter}、\cs[no-index]{section}、
% \cs[no-index]{subsection})字体、前后间距完全按照
-% \ulem{杭电理工类毕业论文写作规范}进行设置,虽然这样的设置可能与您的审美不符,
+% 杭电理工类毕业论文写作规范 进行设置,虽然这样的设置可能与您的审美不符,
% 但是这是为了保证论文的格式符合学校的要求.
-% \item \ulem{杭电理工类毕业论文写作规范} 中要求
-% \ulem*{参考文献书写格式应符合GB7714-1987},但目前
-% \ulem{GB7714-2015 为学术界通用格式,在已有新标准情况下旧标准理应废止使用}.
+% \item 杭电理工类毕业论文写作规范中要求
+% 参考文献书写格式应符合GB7714-1987,但目前
+% GB7714-2015 为学术界通用格式,在已有新标准情况下旧标准理应废止使用.
% 所以本模板默认使用 \pkg{gbt7714} 宏包.
% \end{enumerate}
%
@@ -341,23 +339,17 @@
%
% \subsection{手动安装}
%
-% 本模板已上传至 \href{https://ctan.org/pkg/hduthesis}{CTAN}、
+% 本模板采用 \pkg{l3build} 脚本进行打包. 用户可在
+% \href{https://ctan.org/pkg/hduthesis}{CTAN}、
% \href{https://github.com/myhsia/hduthesis/}{GitHub} 和
-% \href{https://gitee.com/myhsia/hduthesis}{Gitee} 平台,
-% 可直接 Clone 项目. 解压后在当前目录运行
+% \href{https://gitee.com/myhsia/hduthesis}{Gitee} 平台
+% Clone 项目\footnote{CTAN 平台并未提供 \file{build.lua} 脚本}.
+% 解压后在当前目录运行
% \begin{quote}
-% "latex hduthesis.ins"
+% "l3build ctan"\\
+% "l3build install"
% \end{quote}
-% 会生成如 \ref{1.2.2} 所示的 Runtime 文件. 接下来获取安装路径,在命令行输入
-% \begin{quote}
-% "kpsewhich -var-value TEXMFLOCAL"
-% \end{quote}
-% 后会输出一个路径. 将上一步生成的文件复制到该路径下 |./tex/latex/hduthesis/|
-% 文件夹中,然后在命令行执行
-% \begin{quote}
-% "sudo mktexlsr"
-% \end{quote}
-% 刷新 \hologo{TeX} 发行版的文件名数据库后即完成安装.
+% 会生成如 \ref{1.2.2} 所示的 Runtime 文件,并将模板安装至本地.
%
% \section{全局选项}
%
@@ -365,7 +357,7 @@
%
% 使用本模板编译本科、硕士学位论文时遇到``编译受阻''报错,请认真阅读封面的用户协议.
% 添加选项 |agreed| 后(即|\documentclass [ agreed ] { hduthesis }|),
-% 方可顺利编译,\ulem{并默认您已同意用户协议}.
+% 方可顺利编译,并默认您已同意用户协议.
%
% 使用 \hologo{hduthesis} 编译信纸、试题解析和本用户手册时,无需 |agreed| 选项.
%
@@ -394,7 +386,7 @@
% \begin{syntax}
% \cs{DocInfo}\marg{key values}
% \end{syntax}
-% 此命令接收键值,用于设置文档信息,\ulem{需在导言区中执行}.
+% 此命令接收键值,用于设置文档信息,需在导言区中执行.
% \begin{keyval}
% \item [\key{title}] \val{list} 用于设置论文题目与封面大标题.
% \item [\key{department}] \val{string} 用于设置学院.
@@ -470,10 +462,10 @@
% 日期的输入格式为 |yyyy-mm-dd|.
% \end{function}
%
-% 对于本科生,只需要签署 ``\ulem*{诚信承诺}'' 一组签名;
-% 对于研究生,则需要签署 ``\ulem*{原创性声明}''、
-% ``\ulem*{(作者同意)学位论文使用授权声明}'' 和
-% ``\ulem*{(导师同意)学位论文使用授权声明}'' 三组签名. 使用用例如下
+% 对于本科生,只需要签署 ``诚信承诺'' 一组签名;
+% 对于研究生,则需要签署 ``原创性声明''、
+% ``(作者同意)学位论文使用授权声明'' 和
+% ``(导师同意)学位论文使用授权声明'' 三组签名. 使用用例如下
%
% \begin{verbatim}
% \begin{document} ... \maketitle
@@ -618,13 +610,13 @@
%
% \subsection{Beamer 主题}
%
-% 本模板中存在独立的 Beamer 主题 "hdu",用于生成杭州电子科技大学风格的 Beamer 幻灯片.
-% 由于本主题为杭州电子科技大学专属,所以该主题暂不开放更改主题色杭电蓝和Logo.
+% 本模板中存在独立的 Beamer 主题 |hdu|,用于生成杭州电子科技大学风格的 Beamer 幻灯片.
+% 该主题目前暂不开放更改主题色杭电蓝和 Logo.
%
-% 加载模块 \pkg{beamer},并进行文档信息设置,即以 "hdu" 为主题制作Beamer.
+% 加载模块 \pkg{beamer} 后可通过 \cs{hduset} 接口设置文档信息.
% 此模块无需 \pkg{agreed} 选项.
% \begin{quote}
-% |\documentclass [ mode = beamer ] { hduthesis }|
+% "\documentclass [ mode = beamer ] { hduthesis }"
% \end{quote}
% 与学士 / 硕士学位论文文档信息设置类似,使用 \cs{DocInfo} 命令,
% 对信件主题、发件人、邮箱、日期和水印进行设置. 此时 \cs{DocInfo} 命令接受键
@@ -643,28 +635,29 @@
% }
% \end{verbatim}
%
-% \subsection{HDU 试卷解析模板}
+% \subsection{HDU 试卷解析模块}
%
+% 加载模块 \pkg{exam} 后即可使用此模块,
+% 此模块无需 \pkg{agreed} 选项.
% \begin{quote}
-% 此模块开发中,敬请期待 |:-)|\quad [预计完成时间:14/03/2025].
-% \vspace{\baselineskip}
-% \begin{flushright}
-% |@myhsia|\\
-% Physics Department\\
-% Hangzhou Dianzi University
-% \end{flushright}
+% "\documentclass [ mode = exam ] { hduthesis }"
% \end{quote}
+% 此模块中预制了 \env{problem} 和 \env{solution} 环境.
%
% \includepdf [ pages = -, nup = 2x4, frame, linktodoc,
% scale = 0.96, delta = .25in .2in
-% ] {hduthesis-beamer.pdf}
+% ] {hduthesis-beamer}
%
+% \includepdf [ pages = -, nup = 1x2, angle = -90, frame,
+% linktodoc, scale = 0.96, delta = 0in .25in
+% ] {hduthesis-exam}
+%
% \begin{thebibliography}{99}
% \bibitem{interface3} The \hologo{LaTeX} Project.
-% The \hologo{LaTeX3} Interfaces. CTAN: Released 2025-01-18.
-% \bibitem{ctex} \url{CTEX.ORG}. C\hologo{TeX} 宏集. 2022/07/14 v2.5.10.
+% The \hologo{LaTeX3} Interfaces. CTAN: Released 2025-03-10.
+% \bibitem{ctex} \url{CTEX.ORG}. C\hologo{TeX} 宏集. 2022-07-14 v2.5.10.
% \bibitem{clsguide} \hologo{LaTeX} Project Team.
-% LaTeX for package and class authors current version
+% \hologo{LaTeX} for package and class authors current version
% \copyright{} Copyright 2023 -- 2024. 2024-09-15.
% \bibitem{source2e} B. Johannes, C. David, J. Alan, L. Leslie L, M. Frank,
% R. Chris, and S. Rainer.
@@ -672,7 +665,7 @@
% 2024-11-01 Patch level 2.
% \bibitem{l3styleguide} The \hologo{LaTeX} Project.
% The \hologo{LaTeX3} kernel: style guide for code authors.
-% CTAN: Released 2025-01-18.
+% CTAN: Released 2025-03-10.
% \bibitem{packages} Package \pkg{etoolbox}, \pkg{geometry}, \pkg{tocloft},
% \pkg{fancyhdr}, etc.
% \bibitem{hdubachelor} 杭州电子科技大学教务处.
@@ -738,8 +731,8 @@
% \end{macrocode}
%
% \begin{macrocode}
-\def \hduthesis at date {2025-03-07}
-\def \hduthesis at version {1.0.0}
+\def \hduthesis at date {2025-03-21}
+\def \hduthesis at version {1.1.0}
\def \hduthesis at maintainerid {myhsia}
% \end{macrocode}
%
@@ -863,11 +856,11 @@
\bool_lazy_all:nT
{
{ !\str_if_empty_p:N \g_@@_mode_tl }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { thesis } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { beamer } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { thesis } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { beamer } }
{ !\str_if_eq_p:ee { \g_@@_mode_tl } { stationery } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { exam } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { l3doc } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { exam } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { l3doc } }
}
{ \@@_msg_warning:nx { unknown mode } { \g_@@_mode_tl } }
% \end{macrocode}
@@ -877,7 +870,7 @@
{
\PassOptionsToClass { aspectratio = 2013 } { beamer }
\exp_args:NNV
- \LoadClass [ \g_@@_base_options_clist ] { beamer }
+ \LoadClass [ \g_@@_base_options_clist ] { beamer }
\usetheme{hdu}
\endinput
}
@@ -888,7 +881,7 @@
{
\PassOptionsToClass { 12pt } { letter }
\exp_args:NNV
- \LoadClass [ \g_@@_base_options_clist ] { letter }
+ \LoadClass [ \g_@@_base_options_clist ] { letter }
\@@_load_module:n { stationery }
\endinput
}
@@ -898,7 +891,7 @@
\str_if_eq:eeT { \g_@@_mode_tl } { exam }
{
\exp_args:NNV
- \LoadClass [ \g_@@_base_options_clist ] { article }
+ \LoadClass [ \g_@@_base_options_clist ] { article }
\@@_load_module:n { exam }
\endinput
}
@@ -910,7 +903,7 @@
\PassOptionsToClass { 11pt, letterpaper, kernel } { l3doc }
\RequirePackage{minted}
\exp_args:NNV
- \LoadClass [ \g_@@_base_options_clist ] { l3doc }
+ \LoadClass [ \g_@@_base_options_clist ] { l3doc }
\@@_load_module:n { l3doc }
\endinput
}
@@ -920,17 +913,17 @@
% \begin{macrocode}
\bool_lazy_any:nT
{
- { \str_if_eq_p:ee { \g_@@_mode_tl } { thesis } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { beamer } }
+ { \str_if_eq_p:ee { \g_@@_mode_tl } { thesis } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { beamer } }
{ !\str_if_eq_p:ee { \g_@@_mode_tl } { stationery } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { exam } }
- { !\str_if_eq_p:ee { \g_@@_mode_tl } { l3doc } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { exam } }
+ { !\str_if_eq_p:ee { \g_@@_mode_tl } { l3doc } }
}
{
\PassOptionsToClass { a4paper, zihao = -4 } { ctexrep }
\PassOptionsToPackage { quiet, no-math } { xeCJK }
\exp_args:NNV
- \LoadClass [ \g_@@_base_options_clist ] { ctexrep }
+ \LoadClass [ \g_@@_base_options_clist ] { ctexrep }
\bool_if:NTF \g_@@_agreement_bool
{
\RequirePackage{hyperref}
@@ -974,23 +967,33 @@
%
% \begin{macrocode}
\RequirePackage { circuitikz, pgfplots, listings, hologo,
- lipsum, zhlipsum, booktabs, multicol }
+ lipsum, zhlipsum, booktabs, multicol }
\pgfplotsset { compat = newest }
-\hologoFontSetup { general = \sffamily }
% \end{macrocode}
% 插图相对路径设置.
% \begin{macrocode}
\graphicspath
{
- {./figure/}{./figures/}{./image/}{./images/}
- {./graphics/}{./graphic/}{./pictures/}{./picture/}
+ {./figure/} {./figures/} {./image/} {./images/}
+ {./graphics/} {./graphic/} {./pictures/} {./picture/}
}
% \end{macrocode}
-% 设置行距倍数和缩进.
+% 设置行距倍数、缩进和公式前后间距.
% \begin{macrocode}
\linespread{1.39}
-\dim_set:Nn \parindent { 2\ccwd }
+\AtBeginDocument
+ {
+ \dim_set:Nn \abovedisplayskip {3pt}
+ \dim_set:Nn \belowdisplayskip {3pt}
+ \dim_set:Nn \parindent { 2\ccwd }
+ }
% \end{macrocode}
+% 公式排版必要宏包加载,行间公式前后间距设置.
+% \begin{macrocode}
+\RequirePackage { mathtools, amssymb, cancel, fixdif,
+ derivative, siunitx, physics2, bm }
+\usephysicsmodule { ab, braket, op.legacy, qtext.legacy }
+% \end{macrocode}
% \begin{macro}{\@@_font_semilarge:, \@@_font_semiLarge:}
% 两种新字体尺寸设置.
% \begin{macrocode}
@@ -1000,46 +1003,35 @@
{ \@setfontsize \@@_font_semiLarge:{16.5}{17.5} }
% \end{macrocode}
% \end{macro}
-% 设置西文字体
+% 设置西文字体、数学字体、中文字体.
% \begin{macrocode}
-\setmainfont{texgyretermes}
- [
- Extension = .otf, UprightFont = *-regular,
- BoldFont = *-bold, ItalicFont = *-italic,
- BoldItalicFont = *-bolditalic
- ]
-\setsansfont{texgyreheros}
- [
- Extension = .otf, BoldItalicFont = *-bolditalic,
- UprightFont = *-regular, BoldFont = *-bold,
- ItalicFont = *-italic, Scale = .9
- ]
-% \end{macrocode}
-% 公式排版必要宏包加载,行间公式前后间距设置.
-% \begin{macrocode}
-\RequirePackage { mathtools, amssymb, cancel, fixdif,
- derivative, siunitx, physics2 }
-\usephysicsmodule { ab, braket, op.legacy, bm-um.legacy }
-\RequirePackage
- [ warnings-off = { mathtools-colon, mathtools-overbracket }
- ] {unicode-math}
-\AtBeginDocument
+\sys_if_engine_xetex:T
{
- \dim_set:Nn \abovedisplayskip {3pt}
- \dim_set:Nn \belowdisplayskip {3pt}
+ \RequirePackage
+ [ warnings-off = { mathtools-colon, mathtools-overbracket }
+ ] {unicode-math}
+ \setmainfont{texgyretermes}
+ [
+ Extension = .otf, UprightFont = *-regular,
+ BoldFont = *-bold, ItalicFont = *-italic,
+ BoldItalicFont = *-bolditalic
+ ]
+ \setsansfont{texgyreheros}
+ [
+ Extension = .otf, BoldItalicFont = *-bolditalic,
+ UprightFont = *-regular, BoldFont = *-bold,
+ ItalicFont = *-italic, Scale = .9
+ ]
+ \tl_if_empty:NF \g__hdu_math_font
+ { \setmathfont { \g__hdu_math_font } }
+ \tl_if_empty:NF \g__hdu_main_CJK_font
+ { \exp_last_unbraced:No \setCJKmainfont \g__hdu_main_CJK_font }
+ \tl_if_empty:NF \g__hdu_sans_CJK_font
+ { \exp_last_unbraced:No \setCJKsansfont \g__hdu_sans_CJK_font }
+ \tl_if_empty:NF \g__hdu_mono_CJK_font
+ { \exp_last_unbraced:No \setCJKmonofont \g__hdu_mono_CJK_font }
}
% \end{macrocode}
-% 数学字体、中文字体设置.
-% \begin{macrocode}
-\tl_if_empty:NF \g_@@_math_font
- { \setmathfont { \g_@@_math_font } }
-\tl_if_empty:NF \g_@@_main_CJK_font
- { \exp_last_unbraced:No \setCJKmainfont \g_@@_main_CJK_font }
-\tl_if_empty:NF \g_@@_sans_CJK_font
- { \exp_last_unbraced:No \setCJKsansfont \g_@@_sans_CJK_font }
-\tl_if_empty:NF \g_@@_mono_CJK_font
- { \exp_last_unbraced:No \setCJKmonofont \g_@@_mono_CJK_font }
-% \end{macrocode}
%
% \begin{macrocode}
%</typeset>
@@ -1078,7 +1070,7 @@
\crefformat{table}{表#2#1#3}
% \end{macrocode}
% \begin{macro}{\@@_cover_spread_box:nn, \@@_cover_center_box:nn}
-% 分散对齐盒子与\ulem{下划线居中对齐盒子}.
+% 分散对齐盒子与 下划线居中对齐盒子.
% \footnote{由 \url{tex.stackexchange.com} 论坛上 |@egreg| 提供接口.}
% \begin{macrocode}
\cs_new_protected:Npn \@@_cover_spread_box:nn #1#2
@@ -1901,7 +1893,7 @@
%</pg.config>
% \end{macrocode}
%
-% \subsection{\module{hdu} Beamer 主题的实现}
+% \subsection{Beamer 主题的实现}
%
% \begin{macrocode}
%<*beamer>
@@ -1943,7 +1935,7 @@
author .tl_set:N = \l_@@_set_author_tl,
date .tl_set:N = \l_@@_set_date_tl,
supervisor .tl_set:N = \l_@@_set_supervisor_tl,
- bibsource .tl_set:N = \l_@@_set_reference_tl,
+ bibsource .tl_set:N = \l_@@_set_bibsource_tl,
}
% \end{macrocode}
% \end{variable}
@@ -2089,8 +2081,7 @@
{
\filldraw [hduRed, ultra~thick, line~cap = butt]
(0,0) --++
- (\paperwidth * \fp_eval:n
- {(\insertpagenumber-1)/(\insertdocumentendpage-1)},0);
+ (\insertpagenumber\paperwidth/\insertdocumentendpage,0);
\draw [white, very~thick, yshift = -.6pt] (0,0) --++
(\paperwidth,0);
}
@@ -2113,13 +2104,7 @@
\filldraw
[ line~cap = round, hdu!60, ultra~thick, path~fading = west
] (0,0) --++
- (2\linewidth *
- \fp_eval:n
- {
- (\insertframenumber - 1)/
- (\inserttotalframenumber - 1)
- }/3,0
- );
+ (\insertpagenumber\linewidth/\insertdocumentendpage * 2/3,0);
}
\vfill
\end{frame}
@@ -2134,7 +2119,7 @@
\renewcommand* \qedsymbol {$\color{gray}\blacksquare$}
\usephysicsmodule{ ab, braket, op.legacy }
% \end{macrocode}
-% 浮动题设置.
+% 浮动体设置.
% \begin{macrocode}
% Figure settings
\RequirePackage [ labelsep = period, figurename = \textsc{Fig},
@@ -2327,6 +2312,113 @@
%
% \begin{macrocode}
\@@_provide_module:n {exam}
+\keys_define:nn { hduthesis / exam }
+ {
+ watermark .tl_set:N = \l_@@_exam_watermark_tl,
+ }
+\NewDocumentCommand \hdutexset {m} { \keys_set:nn { hduthesis / exam } {#1} }
+\DeclareHookRule { shipout / background }
+ { hduthesis / exam } { before } { pgfrcs }
+\AddToHook { shipout / background } [ hduthesis / exam ]
+ {
+ \tl_if_empty:NF \l_@@_exam_watermark_tl
+ {
+ \tikz [ remember~picture, overlay ]
+ \node [ opacity = .2 ] at (current~page)
+ {
+ \includegraphics [ width = \linewidth ]
+ { \l_@@_exam_watermark_tl }
+ };
+ }
+ }
+\RequirePackage
+ {
+ geometry, mathtools, array, bm, esint, keytheorems,
+ siunitx, fixdif, derivative, physics2, tasks, anyfontsize
+ }
+\RequirePackage[inline]{enumitem}
+\RequirePackage{fontawesome5, fancyqr, circuitikz}
+\hook_gput_code:nnn { cmd/faIcon/before } { . }
+ {
+ \group_begin:
+ \fontsize { \fp_eval:n { .9 * \f at size } } { 0 } \selectfont
+ }
+\hook_gput_code:nnn { cmd/faIcon/after } { . } { \group_end: }
+\geometry{margin = 1in}
+\RequirePackage[svgnames]{xcolor}
+\newkeytheorem{note}
+ [ style = remark, numbered = false,
+ name = \color{DarkRed}\sffamily \faIcon{info-circle}~Tip. ]
+\newkeytheorem{problem}
+ [ style = definition,
+ name = \color{DarkGreen}\sffamily \faIcon{pen-square}~Problem ]
+\newkeytheorem{solution}
+ [ style = definition, numbered = false,
+ name = \color{MidnightBlue}\sffamily \faIcon{check-square}~Solution ]
+\usephysicsmodule{ab, op.legacy}
+\settasks { label = \sffamily\Alph*., item-indent = 2.5em, label-offset = .5pt }
+\newcommand \true {\addtocounter{task}{1}\faIcon{check-circle}}
+\def \@result#1 {\underline{~#1~}}
+\def \s at result {\textsf{【\qquad 】}}
+\DeclareRobustCommand \result {\@ifstar\s at result\@result}
+\keys_define:nn { textfig }
+ {
+ ratio .tl_set:N = \l_@@_textfig_ratio_tl,
+ ratio .initial:n = 7 \c_colon_str 2,
+ position .tl_set:N = \l_@@_textfig_position_tl,
+ position .initial:n = c,
+ unknown .code:n = \tl_if_novalue:nF {#1}
+ { \tl_set_eq:NN \l_@@_textfig_position_tl \l_keys_key_tl }
+ }
+\NewDocumentEnvironment{textfig}{ O{} }
+ {
+ \group_begin:
+ \keys_set:nn { textfig } {#1}
+ \seq_set_split:Nee \l_@@_textfig_ratio_seq { \c_colon_str }
+ { \l_@@_textfig_ratio_tl }
+ \noindent
+ \minipage [ \l_@@_textfig_position_tl ]
+ {
+ \fp_eval:n
+ {
+ .96*\seq_item:Nn \l_@@_textfig_ratio_seq {1}/
+ (
+ \seq_item:Nn \l_@@_textfig_ratio_seq {1} +
+ \seq_item:Nn \l_@@_textfig_ratio_seq {2}
+ )
+ }\dimexpr \linewidth
+ }
+ }
+ {
+ \endminipage
+ \vspace{4.5pt plus 1.5pt minus 1.5pt} \par
+ \group_end:
+ }
+\NewDocumentCommand \textfigsplit {}
+ {
+ \endminipage
+ \hspace{.02\linewidth}
+ \minipage [ \l_@@_textfig_position_tl ]
+ {
+ \fp_eval:n
+ {
+ .96*\seq_item:Nn \l_@@_textfig_ratio_seq {2}/
+ (
+ \seq_item:Nn \l_@@_textfig_ratio_seq {1} +
+ \seq_item:Nn \l_@@_textfig_ratio_seq {2}
+ )
+ }\dimexpr \linewidth
+ }
+ }
+
+\makeatother \ExplSyntaxOff
+\usetikzlibrary{ fadings, patterns, arrows, decorations.markings }
+\tikzset
+ {
+ > = stealth',
+ every picture/.append style =
+ { line join = round, line cap = round, thick }
+ }
% \end{macrocode}
%
% \begin{macrocode}
@@ -2350,10 +2442,6 @@
\RenewDocumentCommand \cls {m}
{ \href{https://ctan.org/pkg/#1}{\textsf{#1}} }
\NewDocumentCommand \mailto {m} { \texttt{<\href{mailto:#1}{#1}>} }
-\def \@ulem#1
- { \CJKsout*[thickness = 2.5ex, format = \color{blue!15}]{#1} }
-\def \s at ulem#1 { \CJKunderwave*{#1} }
-\DeclareRobustCommand \ulem { \@ifstar \s at ulem \@ulem }
\def \@key #1
{ \textcolor{red}{\textbf{\texttt{#1}}} ~ \normalfont \texttt{=} ~ }
\def \s at key #1{\textcolor{red}{\textbf{\texttt{#1}}}}
@@ -2386,9 +2474,9 @@
\usetikzlibrary{calc}
\ExplSyntaxOn
\RequirePackage [ pass ] { geometry }
-\RequirePackage { enumitem, dirtree, tabularx, tasks,
- xeCJKfntef, pdfpages, setspace, subcaption }
-\graphicspath { {./example/} }
+\RequirePackage { enumitem, dirtree, tabularx,
+ tasks, pdfpages, subcaption }
+\graphicspath { {} }
\RequirePackage[fontset = fandol]{ctex} \linespread{1.4}
\dim_set:Nn \parindent {0pt}
\hook_gput_code:nnn { env/function/before } { . }
@@ -2448,9 +2536,9 @@
\thispagestyle{empty}
}
\hook_gput_code:nnn { cmd/tableofcontents/before } { . }
- { \clearpage \spacing{1.15} }
-\hook_gput_code:nnn { cmd/tableofcontents/after } { . }
- { \endtitlepage \endspacing \restoregeometry }
+ { \clearpage }
+\hook_gput_code:nnn { cmd/tableofcontents/after } { . }
+ { \endtitlepage \restoregeometry }
\date{
Released ~ \hduthesis at date \quad \texttt{v\hduthesis at version}
\footnote{
Modified: trunk/Master/texmf-dist/tex/latex/hduthesis/beamerthemehdu.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hduthesis/beamerthemehdu.sty 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/tex/latex/hduthesis/beamerthemehdu.sty 2025-03-21 21:22:26 UTC (rev 74717)
@@ -36,7 +36,7 @@
author .tl_set:N = \l__hdu_set_author_tl,
date .tl_set:N = \l__hdu_set_date_tl,
supervisor .tl_set:N = \l__hdu_set_supervisor_tl,
- bibsource .tl_set:N = \l__hdu_set_reference_tl,
+ bibsource .tl_set:N = \l__hdu_set_bibsource_tl,
}
\NewDocumentCommand \hduset { m }
{
@@ -167,8 +167,7 @@
{
\filldraw [hduRed, ultra~thick, line~cap = butt]
(0,0) --++
- (\paperwidth * \fp_eval:n
- {(\insertpagenumber-1)/(\insertdocumentendpage-1)},0);
+ (\insertpagenumber\paperwidth/\insertdocumentendpage,0);
\draw [white, very~thick, yshift = -.6pt] (0,0) --++
(\paperwidth,0);
}
@@ -188,13 +187,7 @@
\filldraw
[ line~cap = round, hdu!60, ultra~thick, path~fading = west
] (0,0) --++
- (2\linewidth *
- \fp_eval:n
- {
- (\insertframenumber - 1)/
- (\inserttotalframenumber - 1)
- }/3,0
- );
+ (\insertpagenumber\linewidth/\insertdocumentendpage * 2/3,0);
}
\vfill
\end{frame}
Modified: trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-exam.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-exam.code.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-exam.code.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -20,6 +20,113 @@
%% The Current Maintainer of this work is Mingyu Xia. *
%% -----------------------------------------------------------------------
\__hdu_provide_module:n {exam}
+\keys_define:nn { hduthesis / exam }
+ {
+ watermark .tl_set:N = \l__hdu_exam_watermark_tl,
+ }
+\NewDocumentCommand \hdutexset {m} { \keys_set:nn { hduthesis / exam } {#1} }
+\DeclareHookRule { shipout / background }
+ { hduthesis / exam } { before } { pgfrcs }
+\AddToHook { shipout / background } [ hduthesis / exam ]
+ {
+ \tl_if_empty:NF \l__hdu_exam_watermark_tl
+ {
+ \tikz [ remember~picture, overlay ]
+ \node [ opacity = .2 ] at (current~page)
+ {
+ \includegraphics [ width = \linewidth ]
+ { \l__hdu_exam_watermark_tl }
+ };
+ }
+ }
+\RequirePackage
+ {
+ geometry, mathtools, array, bm, esint, keytheorems,
+ siunitx, fixdif, derivative, physics2, tasks, anyfontsize
+ }
+\RequirePackage[inline]{enumitem}
+\RequirePackage{fontawesome5, fancyqr, circuitikz}
+\hook_gput_code:nnn { cmd/faIcon/before } { . }
+ {
+ \group_begin:
+ \fontsize { \fp_eval:n { .9 * \f at size } } { 0 } \selectfont
+ }
+\hook_gput_code:nnn { cmd/faIcon/after } { . } { \group_end: }
+\geometry{margin = 1in}
+\RequirePackage[svgnames]{xcolor}
+\newkeytheorem{note}
+ [ style = remark, numbered = false,
+ name = \color{DarkRed}\sffamily \faIcon{info-circle}~Tip. ]
+\newkeytheorem{problem}
+ [ style = definition,
+ name = \color{DarkGreen}\sffamily \faIcon{pen-square}~Problem ]
+\newkeytheorem{solution}
+ [ style = definition, numbered = false,
+ name = \color{MidnightBlue}\sffamily \faIcon{check-square}~Solution ]
+\usephysicsmodule{ab, op.legacy}
+\settasks { label = \sffamily\Alph*., item-indent = 2.5em, label-offset = .5pt }
+\newcommand \true {\addtocounter{task}{1}\faIcon{check-circle}}
+\def \@result#1 {\underline{~#1~}}
+\def \s at result {\textsf{【\qquad 】}}
+\DeclareRobustCommand \result {\@ifstar\s at result\@result}
+\keys_define:nn { textfig }
+ {
+ ratio .tl_set:N = \l__hdu_textfig_ratio_tl,
+ ratio .initial:n = 7 \c_colon_str 2,
+ position .tl_set:N = \l__hdu_textfig_position_tl,
+ position .initial:n = c,
+ unknown .code:n = \tl_if_novalue:nF {#1}
+ { \tl_set_eq:NN \l__hdu_textfig_position_tl \l_keys_key_tl }
+ }
+\NewDocumentEnvironment{textfig}{ O{} }
+ {
+ \group_begin:
+ \keys_set:nn { textfig } {#1}
+ \seq_set_split:Nee \l__hdu_textfig_ratio_seq { \c_colon_str }
+ { \l__hdu_textfig_ratio_tl }
+ \noindent
+ \minipage [ \l__hdu_textfig_position_tl ]
+ {
+ \fp_eval:n
+ {
+ .96*\seq_item:Nn \l__hdu_textfig_ratio_seq {1}/
+ (
+ \seq_item:Nn \l__hdu_textfig_ratio_seq {1} +
+ \seq_item:Nn \l__hdu_textfig_ratio_seq {2}
+ )
+ }\dimexpr \linewidth
+ }
+ }
+ {
+ \endminipage
+ \vspace{4.5pt plus 1.5pt minus 1.5pt} \par
+ \group_end:
+ }
+\NewDocumentCommand \textfigsplit {}
+ {
+ \endminipage
+ \hspace{.02\linewidth}
+ \minipage [ \l__hdu_textfig_position_tl ]
+ {
+ \fp_eval:n
+ {
+ .96*\seq_item:Nn \l__hdu_textfig_ratio_seq {2}/
+ (
+ \seq_item:Nn \l__hdu_textfig_ratio_seq {1} +
+ \seq_item:Nn \l__hdu_textfig_ratio_seq {2}
+ )
+ }\dimexpr \linewidth
+ }
+ }
+
+\makeatother \ExplSyntaxOff
+\usetikzlibrary{ fadings, patterns, arrows, decorations.markings }
+\tikzset
+ {
+ > = stealth',
+ every picture/.append style =
+ { line join = round, line cap = round, thick }
+ }
%% -----------------------------------------------------------------------
%% This work consists of the files hduthesis.dtx, *
%% hdu-graphics.dtx, *
Modified: trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-l3doc.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-l3doc.code.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-l3doc.code.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -26,10 +26,6 @@
\RenewDocumentCommand \cls {m}
{ \href{https://ctan.org/pkg/#1}{\textsf{#1}} }
\NewDocumentCommand \mailto {m} { \texttt{<\href{mailto:#1}{#1}>} }
-\def \@ulem#1
- { \CJKsout*[thickness = 2.5ex, format = \color{blue!15}]{#1} }
-\def \s at ulem#1 { \CJKunderwave*{#1} }
-\DeclareRobustCommand \ulem { \@ifstar \s at ulem \@ulem }
\def \@key #1
{ \textcolor{red}{\textbf{\texttt{#1}}} ~ \normalfont \texttt{=} ~ }
\def \s at key #1{\textcolor{red}{\textbf{\texttt{#1}}}}
@@ -56,9 +52,9 @@
\usetikzlibrary{calc}
\ExplSyntaxOn
\RequirePackage [ pass ] { geometry }
-\RequirePackage { enumitem, dirtree, tabularx, tasks,
- xeCJKfntef, pdfpages, setspace, subcaption }
-\graphicspath { {./example/} }
+\RequirePackage { enumitem, dirtree, tabularx,
+ tasks, pdfpages, subcaption }
+\graphicspath { {} }
\RequirePackage[fontset = fandol]{ctex} \linespread{1.4}
\dim_set:Nn \parindent {0pt}
\hook_gput_code:nnn { env/function/before } { . }
@@ -112,9 +108,9 @@
\thispagestyle{empty}
}
\hook_gput_code:nnn { cmd/tableofcontents/before } { . }
- { \clearpage \spacing{1.15} }
-\hook_gput_code:nnn { cmd/tableofcontents/after } { . }
- { \endtitlepage \endspacing \restoregeometry }
+ { \clearpage }
+\hook_gput_code:nnn { cmd/tableofcontents/after } { . }
+ { \endtitlepage \restoregeometry }
\date{
Released ~ \hduthesis at date \quad \texttt{v\hduthesis at version}
\footnote{
Modified: trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-typeset.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-typeset.code.tex 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/tex/latex/hduthesis/hdu-typeset.code.tex 2025-03-21 21:22:26 UTC (rev 74717)
@@ -21,51 +21,53 @@
%% -----------------------------------------------------------------------
\__hdu_provide_module:n {typeset}
\RequirePackage { circuitikz, pgfplots, listings, hologo,
- lipsum, zhlipsum, booktabs, multicol }
+ lipsum, zhlipsum, booktabs, multicol }
\pgfplotsset { compat = newest }
-\hologoFontSetup { general = \sffamily }
\graphicspath
{
- {./figure/}{./figures/}{./image/}{./images/}
- {./graphics/}{./graphic/}{./pictures/}{./picture/}
+ {./figure/} {./figures/} {./image/} {./images/}
+ {./graphics/} {./graphic/} {./pictures/} {./picture/}
}
\linespread{1.39}
-\dim_set:Nn \parindent { 2\ccwd }
+\AtBeginDocument
+ {
+ \dim_set:Nn \abovedisplayskip {3pt}
+ \dim_set:Nn \belowdisplayskip {3pt}
+ \dim_set:Nn \parindent { 2\ccwd }
+ }
+\RequirePackage { mathtools, amssymb, cancel, fixdif,
+ derivative, siunitx, physics2, bm }
+\usephysicsmodule { ab, braket, op.legacy, qtext.legacy }
\cs_new_protected:Nn \__hdu_font_semilarge:
{ \@setfontsize \__hdu_font_semilarge:{14}{16.5} }
\cs_new_protected:Nn \__hdu_font_semiLarge:
{ \@setfontsize \__hdu_font_semiLarge:{16.5}{17.5} }
-\setmainfont{texgyretermes}
- [
- Extension = .otf, UprightFont = *-regular,
- BoldFont = *-bold, ItalicFont = *-italic,
- BoldItalicFont = *-bolditalic
- ]
-\setsansfont{texgyreheros}
- [
- Extension = .otf, BoldItalicFont = *-bolditalic,
- UprightFont = *-regular, BoldFont = *-bold,
- ItalicFont = *-italic, Scale = .9
- ]
-\RequirePackage { mathtools, amssymb, cancel, fixdif,
- derivative, siunitx, physics2 }
-\usephysicsmodule { ab, braket, op.legacy, bm-um.legacy }
-\RequirePackage
- [ warnings-off = { mathtools-colon, mathtools-overbracket }
- ] {unicode-math}
-\AtBeginDocument
+\sys_if_engine_xetex:T
{
- \dim_set:Nn \abovedisplayskip {3pt}
- \dim_set:Nn \belowdisplayskip {3pt}
+ \RequirePackage
+ [ warnings-off = { mathtools-colon, mathtools-overbracket }
+ ] {unicode-math}
+ \setmainfont{texgyretermes}
+ [
+ Extension = .otf, UprightFont = *-regular,
+ BoldFont = *-bold, ItalicFont = *-italic,
+ BoldItalicFont = *-bolditalic
+ ]
+ \setsansfont{texgyreheros}
+ [
+ Extension = .otf, BoldItalicFont = *-bolditalic,
+ UprightFont = *-regular, BoldFont = *-bold,
+ ItalicFont = *-italic, Scale = .9
+ ]
+ \tl_if_empty:NF \g__hdu_math_font
+ { \setmathfont { \g__hdu_math_font } }
+ \tl_if_empty:NF \g__hdu_main_CJK_font
+ { \exp_last_unbraced:No \setCJKmainfont \g__hdu_main_CJK_font }
+ \tl_if_empty:NF \g__hdu_sans_CJK_font
+ { \exp_last_unbraced:No \setCJKsansfont \g__hdu_sans_CJK_font }
+ \tl_if_empty:NF \g__hdu_mono_CJK_font
+ { \exp_last_unbraced:No \setCJKmonofont \g__hdu_mono_CJK_font }
}
-\tl_if_empty:NF \g__hdu_math_font
- { \setmathfont { \g__hdu_math_font } }
-\tl_if_empty:NF \g__hdu_main_CJK_font
- { \exp_last_unbraced:No \setCJKmainfont \g__hdu_main_CJK_font }
-\tl_if_empty:NF \g__hdu_sans_CJK_font
- { \exp_last_unbraced:No \setCJKsansfont \g__hdu_sans_CJK_font }
-\tl_if_empty:NF \g__hdu_mono_CJK_font
- { \exp_last_unbraced:No \setCJKmonofont \g__hdu_mono_CJK_font }
%% -----------------------------------------------------------------------
%% This work consists of the files hduthesis.dtx, *
%% hdu-graphics.dtx, *
Modified: trunk/Master/texmf-dist/tex/latex/hduthesis/hduthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hduthesis/hduthesis.cls 2025-03-21 01:28:02 UTC (rev 74716)
+++ trunk/Master/texmf-dist/tex/latex/hduthesis/hduthesis.cls 2025-03-21 21:22:26 UTC (rev 74717)
@@ -19,8 +19,8 @@
%% *
%% The Current Maintainer of this work is Mingyu Xia. *
%% -----------------------------------------------------------------------
-\def \hduthesis at date {2025-03-07}
-\def \hduthesis at version {1.0.0}
+\def \hduthesis at date {2025-03-21}
+\def \hduthesis at version {1.1.0}
\def \hduthesis at maintainerid {myhsia}
\ProvidesExplClass {hduthesis} {\hduthesis at date} {\hduthesis at version}
{LaTeX Template Bundle for Hangzhou Dianzi University}
@@ -104,11 +104,11 @@
\bool_lazy_all:nT
{
{ !\str_if_empty_p:N \g__hdu_mode_tl }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { thesis } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { beamer } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { thesis } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { beamer } }
{ !\str_if_eq_p:ee { \g__hdu_mode_tl } { stationery } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { exam } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { l3doc } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { exam } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { l3doc } }
}
{ \__hdu_msg_warning:nx { unknown mode } { \g__hdu_mode_tl } }
\str_if_eq:eeT { \g__hdu_mode_tl } { beamer }
@@ -115,7 +115,7 @@
{
\PassOptionsToClass { aspectratio = 2013 } { beamer }
\exp_args:NNV
- \LoadClass [ \g__hdu_base_options_clist ] { beamer }
+ \LoadClass [ \g__hdu_base_options_clist ] { beamer }
\usetheme{hdu}
\endinput
}
@@ -123,7 +123,7 @@
{
\PassOptionsToClass { 12pt } { letter }
\exp_args:NNV
- \LoadClass [ \g__hdu_base_options_clist ] { letter }
+ \LoadClass [ \g__hdu_base_options_clist ] { letter }
\__hdu_load_module:n { stationery }
\endinput
}
@@ -130,7 +130,7 @@
\str_if_eq:eeT { \g__hdu_mode_tl } { exam }
{
\exp_args:NNV
- \LoadClass [ \g__hdu_base_options_clist ] { article }
+ \LoadClass [ \g__hdu_base_options_clist ] { article }
\__hdu_load_module:n { exam }
\endinput
}
@@ -139,23 +139,23 @@
\PassOptionsToClass { 11pt, letterpaper, kernel } { l3doc }
\RequirePackage{minted}
\exp_args:NNV
- \LoadClass [ \g__hdu_base_options_clist ] { l3doc }
+ \LoadClass [ \g__hdu_base_options_clist ] { l3doc }
\__hdu_load_module:n { l3doc }
\endinput
}
\bool_lazy_any:nT
{
- { \str_if_eq_p:ee { \g__hdu_mode_tl } { thesis } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { beamer } }
+ { \str_if_eq_p:ee { \g__hdu_mode_tl } { thesis } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { beamer } }
{ !\str_if_eq_p:ee { \g__hdu_mode_tl } { stationery } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { exam } }
- { !\str_if_eq_p:ee { \g__hdu_mode_tl } { l3doc } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { exam } }
+ { !\str_if_eq_p:ee { \g__hdu_mode_tl } { l3doc } }
}
{
\PassOptionsToClass { a4paper, zihao = -4 } { ctexrep }
\PassOptionsToPackage { quiet, no-math } { xeCJK }
\exp_args:NNV
- \LoadClass [ \g__hdu_base_options_clist ] { ctexrep }
+ \LoadClass [ \g__hdu_base_options_clist ] { ctexrep }
\bool_if:NTF \g__hdu_agreement_bool
{
\RequirePackage{hyperref}
More information about the tex-live-commits
mailing list.