texlive[72953] Master/texmf-dist: hduthesis (24nov24)
commits+karl at tug.org
commits+karl at tug.org
Sun Nov 24 21:52:15 CET 2024
Revision: 72953
https://tug.org/svn/texlive?view=revision&revision=72953
Author: karl
Date: 2024-11-24 21:52:14 +0100 (Sun, 24 Nov 2024)
Log Message:
-----------
hduthesis (24nov24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/xelatex/hduthesis/README.md
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.pdf
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex
trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls
Added Paths:
-----------
trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf
trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.tex
trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-hdu.stationery-module.code.tex
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/README.md 2024-11-24 20:51:58 UTC (rev 72952)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/README.md 2024-11-24 20:52:14 UTC (rev 72953)
@@ -13,6 +13,8 @@
- `pg.config`: 硕士论文格式配置
+- `stationery.config`: 学校信纸生成
+
- `hdu.l3doc`: 模板 `l3doc` 用户手册配置
---
@@ -33,6 +35,8 @@
- `pg.config`: Configuration for postgraduate thesis' format
+- `stationery.config`: Creation of HDU's stationery
+
- `hdu.l3doc`: Configuration for class's `l3doc` manual
**Welcome to pull requests [here](https://github.com/xiamyphys/hduthesis).**
Added: trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf 2024-11-24 20:51:58 UTC (rev 72952)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf 2024-11-24 20:52:14 UTC (rev 72953)
Property changes on: trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.tex 2024-11-24 20:52:14 UTC (rev 72953)
@@ -0,0 +1,31 @@
+\documentclass[stationery]{hduthesis}
+
+\usepackage{lipsum}
+\RequirePackage [ mono = false ] {libertine}
+
+\DocInfo
+ {
+ title = Recommendation Letter for SAN Chi Nan,
+ author = YIP Tsz Ching,
+ affliction = {Physics Department, Hangzhou Dianzi University},
+ date = {25\textsuperscript{th} November, 2024},
+ tel = (852) 3141-5926,
+ mail = xiamyphys at gmail.com
+ }
+
+\begin{document}
+
+\maketitle
+
+To whom it may concern:
+
+\lipsum[1-2]
+
+\vspace{\baselineskip} \raggedleft
+
+Sincerely yours ,\\[2ex]
+\includegraphics[ height = 2em ]{hdutitle}\\[2ex]
+Professor of Department of Physics\\
+Room \meta{int}, Building \meta{int}, Hangzhou Dianzi University
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/xelatex/hduthesis/examples/hduthesis-stationery.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex 2024-11-24 20:51:58 UTC (rev 72952)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex 2024-11-24 20:52:14 UTC (rev 72953)
@@ -2,10 +2,11 @@
\DocInfo
{
- title = The \hologo{hduthesis} Class\\
- \hologo{LaTeX} Thesis Template for Hangzhou Dianzi University,
- author = Mingyu Xia \mailto{xiamyphys at hdu.edu.cn}
- \footnote{Physics Department, Graduate in 06/2025 (expected)},
+ title = The \hologo{hduthesis} Class\\
+ \hologo{LaTeX} Thesis Template for
+ Hangzhou Dianzi University,
+ author = Mingyu Xia \mailto{xiamyphys at hdu.edu.cn}
+ \footnote{Physics Department, Graduate in 06/2025},
CJKmain-font = {[AutoFakeSlant]{Songti SC}},
CJKsans-font = {[BoldFont = Hei, AutoFakeSlant]{Heiti SC}},
CJKmono-font = {[AutoFakeSlant]{LXGW WenKai Mono}}
@@ -192,17 +193,59 @@
\begin{center}
\fbox
- { \parbox[c][1.5em]{16em}{\centering\file{hduthesis-bc.config-module}} }
- \quad\fbox
- {
- \parbox[c][1.5em]{16em}{\centering\file{hduthesis-pg.config-module}}
- }\\[2ex]
- \quad\fbox
- { \parbox[c][1.5em]{14em}{\centering\file{hduthesis-typeset-module}} }
- \qquad\fbox
- { \parbox[c][1.5em]{16em}{\centering\file{hduthesis-layout-module}} }
+ { \parbox[c][1.5em]{34ex}{\centering\file{hduthesis-pg.config-module}} }
+ \fbox { \parbox[c][1.5em]{32ex}{\centering\file{hduthesis-typeset-module}} }
+ \fbox { \parbox[c][1.5em]{15ex}{\centering\file{hdulogo.pdf}} }\\[2ex]
+ \fbox { \parbox[c][1.5em]{33ex}{\centering\file{hduthesis-bc.config-module}} }
+ \qquad \fbox { \parbox[c][1.5em]{16ex}{\centering\file{hdubadge.pdf}} } \qquad
+ \fbox { \parbox[c][1.5em]{16ex}{\centering\file{hdumotto.pdf}} }\\[2ex]
+ \fbox { \parbox[c][1.5em]{30ex}{\centering\file{hduthesis-layout-module}} }~
+ \fbox { \parbox[c][1.5em]{16ex}{\centering\file{hdutitle.pdf}} }
+ \fbox
+ { \parbox[c][1.5em]{34ex}{\centering\file{hduthesis-stationery-module}} }~
\end{center}
\hrule
+\section{杭州电子科技大学信纸}
+
+加载全局选项 \pkg{stationery},并进行文档信息设置,即可生成信纸. 可用于推荐信撰写.
+此模块无需 \pkg{agreed} 选项.
+
+\begin{framed}
+ \begin{verbatim}
+ \documentclass [ stationery ] { hduthesis }
+ \end{verbatim}
+\end{framed}
+
+与学士 / 硕士学位论文文档信息设置类型,使用 \cs{DocInfo} 命令,对信件标题、发件人、机构、日期、电话和邮件信息进行设置. 此时 \cs{DocInfo} 命令接受键
+\keys{\cmdmac~title} \keys{\cmdmac~author} \keys{\cmdmac~affliction}
+\keys{\cmdmac~date} \keys{\cmdmac~tel} \keys{\cmdmac~mail}. 下页为生成信纸的样例.
+
+\begin{framed}
+ \begin{verbatim}
+ \DocInfo
+ {
+ title = Recommendation Letter for SAN Chi Nan,
+ author = YIP Tsz Ching,
+ affliction = {Physics Department, Hangzhou Dianzi University},
+ date = {25\textsuperscript{th} November, 2024},
+ tel = (852) 3141-5926,
+ mail = xiamyphys at gmail.com
+ }
+ \end{verbatim}
+\end{framed}
+
+\section{For Developers}
+
+本手册为 \cls{hduthesis} 加载选项 \pkg{l3doc} 后生成,基于 \cls{l3doc} 文档类.
+
+\begin{framed}
+ \begin{verbatim}
+ \documentclass [ l3doc ] { hduthesis }
+ \end{verbatim}
+\end{framed}
+
+\includepdf{/Users/xiamyphys/Desktop/LaTeXer/hduthesis/examples/hduthesis-stationery}
+
\end{document}
Added: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-hdu.stationery-module.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-hdu.stationery-module.code.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-hdu.stationery-module.code.tex 2024-11-24 20:52:14 UTC (rev 72953)
@@ -0,0 +1,89 @@
+\hduthesis_provide_module:n {hdu.stationery}
+
+\keys_define:nn { hdu.stationery / docinfo }
+ {
+ title .tl_set:N = \l__docinfo_title_tl,
+ author .tl_set:N = \l__docinfo_author_tl,
+ affliction .tl_set:N = \l__docinfo_affliction_tl,
+ date .tl_set:N = \l__docinfo_date_tl,
+ tel .tl_set:N = \l__docinfo_tel_tl,
+ mail .tl_set:N = \l__docinfo_mail_tl,
+ }
+
+\RequirePackage{ hyperref, geometry, tikz, twemojis, fancyhdr }
+\NewDocumentCommand \DocInfo { m }
+ {
+ \keys_set:nn { hdu.stationery / docinfo } {#1}
+ \hypersetup { hidelinks, pdfauthor = \l__docinfo_author_tl }
+ }
+\geometry
+ { hmargin = .8in, bottom = 1.05in, top = 2.1in,
+ headheight = 1.2in, headsep = .3in, footskip = .3in }
+\linespread{1.25}
+\RequirePackage [ skip = \baselineskip ] { parskip }
+\renewcommand* \familydefault { \sfdefault }
+\tikzset{ every~node/.append~style = { opacity = .8 } }
+\definecolor{hdu}{HTML}{214395}
+
+\renewcommand* \headrulewidth {1pt}
+\renewcommand* \footrulewidth {1pt}
+\hook_gput_code:nnn { cmd/headrule/before } { . } { \color{hdu!80} }
+\hook_gput_code:nnn { cmd/footrule/before } { . } { \color{hdu!80} }
+\lhead
+ {
+ {}~
+ \minipage{.64\linewidth}
+ \tikz [ baseline = -.6in ]
+ { \node { \includegraphics [ height = .75in ] { hdubadge } } }
+ \endminipage \hfill
+ \minipage{.32\linewidth}
+ \vbox
+ {
+ \raggedright \small
+ Date:~
+ \tl_if_empty:NTF \l__docinfo_date_tl
+ { \today \par }
+ { \l__docinfo_date_tl \par }
+ \tl_if_empty:NF \l__docinfo_author_tl
+ { Name:~ \l__docinfo_author_tl \par }
+ \tl_if_empty:NF \l__docinfo_tel_tl
+ { Phone:~ \l__docinfo_tel_tl \par }
+ \tl_if_empty:NF \l__docinfo_mail_tl
+ {
+ Email:~ \href { mailto:\l__docinfo_mail_tl }
+ { \ttfamily \l__docinfo_mail_tl }
+ }
+ }\medskip
+ \endminipage
+ }
+\cfoot
+ { \small \texttwemoji{1f4cd}~
+ 1158~No.2~Street,~ Qiantang~District,~
+ Hangzhou,~ Zhejiang~Province,~ 310018,~ China \qquad
+ \texttwemoji{1f310}~ www.hdu.edu.cn
+ }
+\pagestyle{fancy}
+
+\renewcommand* \maketitle
+ {
+ \l__docinfo_author_tl\\
+ \l__docinfo_affliction_tl\\
+ \textbf{\l__docinfo_title_tl} \par \vspace{.5\baselineskip}
+ }
+
+\AtBeginDocument { \color_select:n {black!80} }
+
+\newcommand \meta[1]
+ {
+ \ensuremath \langle
+ \ifmmode \expandafter \nfss at text \fi
+ {
+ \itshape\ttfamily \edef \meta at hyphen@restore
+ { \hyphenchar \the \font \the \hyphenchar \font }
+ \hyphenchar \font \m at ne \language
+ \l at nohyphenation #1\/\meta at hyphen@restore
+ }
+ \ensuremath \rangle
+ }
+
+\endinput
Property changes on: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-hdu.stationery-module.code.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls 2024-11-24 20:51:58 UTC (rev 72952)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls 2024-11-24 20:52:14 UTC (rev 72953)
@@ -1,28 +1,29 @@
-%% ***********************************************************************
-%% Copyright 2024 by M.Y. XIA <xiamyphys at gmail.com> *
-%% *
-%% This work may be distributed and/or modified under the conditions *
-%% of the LaTeX Project Public License *
-%% *
-%% http://www.latex-project.org/lppl.txt *
-%% *
-%% either version 1.3c of this license or any later version. *
-%% *
-%% This work has the LPPL maintenance status `maintained'. *
-%% *
-%% The Current Maintainers of this work is M.Y. XIA *
-%% *
-%% This work consists of the files hduthesis.cls, *
-%% hduthesis-typeset-module.code, *
-%% hduthesis-layout-module.code, *
-%% hduthesis-bc.config-module.code, *
-%% hduthesis-pg.config-module.code, *
-%% hduthesis-hdu.l3doc-module.code, *
-%% and README.md. *
-%% available at https://github.com/xiamyphys/hduthesis *
-%% ***********************************************************************
-\def\hduthesis at date{2024/11/23}
-\def\hduthesis at version{0.3.4}
+%% *****************************************************************************
+%% Copyright 2024 by M.Y. XIA <xiamyphys at gmail.com> *
+%% *
+%% This work may be distributed and/or modified under the conditions of the *
+%% LaTeX Project Public License *
+%% *
+%% http://www.latex-project.org/lppl.txt *
+%% *
+%% either version 1.3c of this license or any later version. *
+%% *
+%% This work has the LPPL maintenance status `maintained'. *
+%% *
+%% The Current Maintainers of this work is M.Y. XIA *
+%% *
+%% This work consists of the files hduthesis.cls, *
+%% hduthesis-typeset-module.code, *
+%% hduthesis-layout-module.code, *
+%% hduthesis-bc.config-module.code, *
+%% hduthesis-pg.config-module.code, *
+%% hduthesis-hdu.l3doc-module.code, *
+%% hduthesis-hdu.stationery-module.code, *
+%% and README.md. *
+%% available at https://github.com/xiamyphys/hduthesis *
+%% *****************************************************************************
+\def\hduthesis at date{2024/11/25}
+\def\hduthesis at version{0.4.0}
\RequirePackage{etoolbox}
\ProvidesExplClass{hduthesis} {\hduthesis at date} {\hduthesis at version}
@@ -73,6 +74,9 @@
l3doc .bool_set:N = \g__hduthesis_doc_bool,
l3doc .initial:n = false,
l3doc .default:n = true,
+ stationery .bool_set:N = \g__hduthesis_stationery_bool,
+ stationery .initial:n = false,
+ stationery .default:n = true,
math-font .tl_set:N = \g__hduthesis_math_font,
CJKmain-font .tl_set:N = \g__hduthesis_main_CJK_font,
CJKsans-font .tl_set:N = \g__hduthesis_sans_CJK_font,
@@ -100,6 +104,14 @@
\endinput
}
+\bool_if:NT \g__hduthesis_stationery_bool
+ {
+ \PassOptionsToClass{ 12pt } { letter }
+ \exp_args:NNV \LoadClass [ \g__hdu_base_class_options_clist ] { letter }
+ \hduthesis_load_module:n { hdu.stationery }
+ \endinput
+ }
+
\PassOptionsToClass { a4paper, zihao = -4 } { ctexrep }
\PassOptionsToPackage { quiet, no-math } { xeCJK }
\exp_args:NNV \LoadClass [ \g__hdu_base_class_options_clist ] { ctexrep }
More information about the tex-live-commits
mailing list.