texlive[73248] Master/texmf-dist: hduthesis (31dec24)

commits+karl at tug.org commits+karl at tug.org
Tue Dec 31 22:58:12 CET 2024


Revision: 73248
          https://tug.org/svn/texlive?view=revision&revision=73248
Author:   karl
Date:     2024-12-31 22:58:12 +0100 (Tue, 31 Dec 2024)
Log Message:
-----------
hduthesis (31dec24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/hduthesis/cha/contents.tex
    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/example/hduthesis-beamer.pdf
    trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.tex
    trunk/Master/texmf-dist/tex/xelatex/hduthesis/beamerthemehdu.sty

Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/cha/contents.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/cha/contents.tex	2024-12-31 21:57:56 UTC (rev 73247)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/cha/contents.tex	2024-12-31 21:58:12 UTC (rev 73248)
@@ -342,4 +342,14 @@
 \end{framed}
 
 \includepdf[pages = -, nup = 1x2, angle = -90, frame, linktodoc, scale = 0.96, delta = 0in .25in]
-  {/Users/myhsia/Documents/GitHub/hduthesis/example/hduthesis-stationery}
\ No newline at end of file
+  {/Users/myhsia/Documents/GitHub/hduthesis/example/hduthesis-stationery}
+
+\subsection{Beamer 主题}
+
+本模板中存在独立的 Beamer 主题 \cls{hdu},用于生成杭州电子科技大学风格的 Beamer 幻灯片. 由于本主题为杭州电子科技大学专属,所以该主题暂不开放更改主题色杭电蓝和Logo.
+
+\begin{center}
+  \frame{\includegraphics[width = .9\linewidth, page = 1]{/Users/myhsia/Documents/GitHub/hduthesis/example/hduthesis-beamer.pdf}}
+  \par
+  \frame{\includegraphics[width = .9\linewidth, page = 2]{/Users/myhsia/Documents/GitHub/hduthesis/example/hduthesis-beamer.pdf}}
+\end{center}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.pdf	2024-12-31 21:57:56 UTC (rev 73247)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.pdf	2024-12-31 21:58:12 UTC (rev 73248)

Property changes on: trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.tex	2024-12-31 21:58:12 UTC (rev 73248)
@@ -0,0 +1,41 @@
+\documentclass [ svgnames,aspectratio = 2013, handout ] {beamer}
+
+\usetheme{hdu}
+
+\infoset
+  {
+    title      = Research and Application of Micromagnetic Simulation Based on Landau-Lifshitz-Gilbert Equation,
+    subtitle   = hdu Undergraduate Thesis Proposal,
+    author     = SAN Chi Nan (C668668E0),
+    date       = {\today{} / Building 6, Room 321},
+    supervisor = Prof. YIP Tsz Ching,
+    % reference  = reference.bib,
+  }
+
+\begin{document}
+
+\maketitle
+
+\section{Research Methods}
+
+\begin{frame}{Landau-Lifshitz-Gilbert Equation}
+  \pause
+  Landau-Lifshitz-Gilbert (LLG) equation describes the microkinetics of magnetization in ferromagnetic materials. It combines the Landau-Lifshitz (LL) equation and the Gilbert damping term $\alpha$, which is used to simulate and understand the micro-magnetic dynamics phenomena such as the motion of magnetic domain walls and magnetization reversal.
+  \pause
+  \begin{equation}
+    \odv{\mathbf m}{t} = -\gamma \mathbf m \times \mathbf H_\text{eff} -
+    \boxed{\alpha \mathbf m \times \odv{\mathbf m}{t}}
+  \end{equation}
+  \pause
+  To process the term $\alpha \mathbf m \times \odv{\mathbf m}/{t}$,
+  we left multiply the LLG equation by $\mathbf m$ and use the identity
+  $\mathbf m \cdot \odv{\mathbf m}/{t} = 0$ to generate LL equation.
+  \pause
+  \begin{equation}
+    \odv{\mathbf m}{t} = -\frac{\gamma}{1 + \alpha^2} \mathbf m \times \mathbf H - \frac{\gamma\alpha}{1 + \alpha^2} \mathbf m \times \mathbf m \times \mathbf H
+  \end{equation}
+  \pause
+  \alert{The LLG equation is more convenient for numerical calculation, while the LL equation can introduce the dissipation term more physically.}
+\end{frame}
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/xelatex/hduthesis/example/hduthesis-beamer.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-12-31 21:57:56 UTC (rev 73247)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex	2024-12-31 21:58:12 UTC (rev 73248)
@@ -28,6 +28,7 @@
 
 \input{cha/contents.tex}
 
+\clearpage
 \input{cha/source.tex}
 
 \end{document}

Added: trunk/Master/texmf-dist/tex/xelatex/hduthesis/beamerthemehdu.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/beamerthemehdu.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/beamerthemehdu.sty	2024-12-31 21:58:12 UTC (rev 73248)
@@ -0,0 +1,188 @@
+%% *****************************************************************************
+%%            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,     *
+%%                                   beamerthemehdu.sty,                       *
+%%                               and README.md.                                *
+%%   available at https://github.com/myhsia/hduthesis                          *
+%% *****************************************************************************
+\mode<presentation>
+
+% info keyval
+\RequirePackage{keyval,tikz,graphicx}
+\usetikzlibrary{arrows,fadings,decorations.pathreplacing}
+\tikzset{%
+    every picture/.append style = {%
+        line join = round, line cap = round, thick
+    }
+}
+\graphicspath
+  {
+    {./figure/}{./figures/}{./image/}{./images/}
+    {./graphics/}{./graphic/}{./pictures/}{./picture/}
+  }
+
+\ExplSyntaxOn
+
+\keys_define:nn { infoset }
+  {
+    title     .tl_set:N = \@title,
+    subtitle  .tl_set:N = \l__infoset_subtitle_tl,
+    author    .tl_set:N = \@author,
+    date      .tl_set:N = \@date,
+    supervisor.tl_set:N = \l__infoset_supervisor_tl,
+    reference .tl_set:N = \l__infoset_reference_tl,
+  }
+\NewDocumentCommand \infoset { m }
+  {
+    \keys_set:nn { infoset } { #1 }
+    \title { \large \@title }
+    \tl_set:Nn \insertshorttitle { \textsc { \l__infoset_subtitle_tl } }
+    \author [ \@author ]
+      {
+        \@author
+        \tl_if_empty:NF \l__infoset_supervisor_tl
+          { 
+            \texorpdfstring
+              { \\[2ex] \small Supervised~by~\l__infoset_supervisor_tl }{}
+          }
+      }
+    \date { \@date }
+    \tl_if_empty:NF \l__infoset_reference_tl
+      {
+        \RequirePackage
+          [ backend = biber, bibstyle = numeric, citestyle = numeric-comp,
+            autocite = superscript, sorting = none
+          ] { biblatex }
+        \addbibresource { \l__infoset_reference_tl }
+        \newcommand* \mkbibbracketsuperscript[1]
+          { \mkbibsuperscript { \mkbibbrackets{#1} } }
+        \DeclareCiteCommand \supercite [\mkbibbracketsuperscript]
+          {
+            \usebibmacro{cite:init}
+            \let\multicitedelim=\supercitedelim
+            \let\multicitesubentrydelim=\supercitesubentrydelim
+            \let\multiciterangedelim=\superciterangedelim
+            \let\multicitesubentryrangedelim=\supercitesubentryrangedelim
+            \iffieldundef{prenote}{}
+            {\BibliographyWarning{Ignoring prenote argument}}%
+            \iffieldundef{postnote}{}
+            {\BibliographyWarning{Ignoring postnote argument}}
+          }
+          {\usebibmacro{citeindex}\usebibmacro{cite:comp}}{}
+          {\usebibmacro{cite:dump}}
+      }
+  }
+
+\usebackgroundtemplate
+  {
+    \tikz [ remember~picture, overlay ]
+      \node [ inner~sep = 0pt, outer~sep = auto, opacity = .1, xshift = -2em ]
+       at (current~page.east)
+       { \includegraphics [ height = .75\paperheight ] { hdulogo.pdf } };
+  }
+\titlegraphic
+  {
+    \tikz [ remember~picture, overlay ]
+      \node [ below~right, yshift = -1em ] at (current~page.north~west) 
+        { \includegraphics [ width = \textwidth/3 ]{ hdubadge.pdf } };
+  }
+\ExplSyntaxOff
+
+% theme & colors
+\useoutertheme{infolines}
+\useinnertheme[shadow=false]{rounded}
+\definecolor{hdu}{HTML}{214395}
+\definecolor{hduRed}{HTML}{BF6236}
+\usecolortheme[named=hdu]{structure}
+
+\setbeamercolor*{palette primary}{use=structure,fg=black,bg=structure.fg!40!white}
+\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=structure.fg!60!white}
+\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!90!white}
+
+\setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg}
+\setbeamercolor{block title alerted}{use=alerted text,fg=alerted text.fg,bg=alerted text.fg!20!bg}
+\setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg}
+\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg}
+\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!50!bg}
+\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg}
+
+\setbeamertemplate{navigation symbols}{}
+\setbeamertemplate{page number in head/foot}{}
+\addtobeamertemplate{headline}{}{
+  \tikz[remember picture, overlay]{
+    \filldraw [hduRed, ultra thick, line cap = butt] (0,0) --++ (\paperwidth*\fpeval{\insertpagenumber-1}/\fpeval{\insertdocumentendpage-1},0);
+    \draw [white, very thick, yshift = -.6pt] (0,0) --++ (\paperwidth,0);
+  }
+}
+
+\AtBeginSection[]{
+  \begin{frame}
+    \ifcsname @headlogo\endcsname
+      \tikz [remember picture, overlay] \node [below right,yshift=-1em] at (current page.north west) {\includegraphics[width=\textwidth/3]{\@headlogo}};
+    \fi
+    \vfill
+    \usebeamerfont{title}\insertsectionhead\par%
+    \tikz{
+        \draw [hdu!20, ultra thick] (0,0) --++ (2*\linewidth/3,0);
+        \filldraw [hdu!60, ultra thick, path fading=west] (0,0) --++ (2*\linewidth*\fpeval{\insertframenumber-1}/\fpeval{\inserttotalframenumber-1}/3,0);
+    }
+  \vfill
+  \end{frame}
+}
+
+\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.75}}{\pgfsetfillopacity{1}}
+\addtobeamertemplate{block alerted begin}{\pgfsetfillopacity{0.75}}{\pgfsetfillopacity{1}}
+\addtobeamertemplate{block example begin}{\pgfsetfillopacity{0.75}}{\pgfsetfillopacity{1}}
+
+\setbeamercolor{title}{parent=author in head/foot}
+\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]
+\usesubitemizeitemtemplate{%
+    \tiny\raise1.5pt\hbox{\color{beamerstructure}$\blacktriangleright$}%
+}
+\usesubsubitemizeitemtemplate{%
+    \tiny\raise1.5pt\hbox{\color{beamerstructure}$\bigstar$}%
+}
+% \setbeamersize{text margin left = 1em, text margin right=1em}
+
+% math settings
+\numberwithin{equation}{section}
+\RequirePackage[mono=false]{libertine}
+\RequirePackage{keytheorems,amssymb,mathtools,physics2,fixdif,derivative,cancel,siunitx,nicematrix}
+\renewcommand\qedsymbol{$\color{gray}\blacksquare$}
+\usephysicsmodule{ab,ab.braket,diagmat,doubleprod,xmat,ab.legacy,op.legacy}
+\RequirePackage[e]{esvect}
+\let\vec\vv
+\def\i{\mathrm i}\def\e{\mathrm e}\def\T{\mathsf T}
+\let\leq\leqslant\let\geq\geqslant
+
+% Figure settings
+\RequirePackage[labelsep=period,figurename=FIG,font=footnotesize]{caption}
+\RequirePackage{subcaption,booktabs}
+\captionsetup{belowskip=0pt}
+\captionsetup[sub]{font=scriptsize}
+\RequirePackage{anyfontsize}
+\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
+\RequirePackage{ragged2e}
+\justifying
+\AtBeginEnvironment{columns}{\vspace*{-.5ex}}
+
+\mode<all>
+\endinput
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/tex/xelatex/hduthesis/beamerthemehdu.sty
___________________________________________________________________
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-12-31 21:57:56 UTC (rev 73247)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls	2024-12-31 21:58:12 UTC (rev 73248)
@@ -19,11 +19,12 @@
 %%                                   hduthesis-pg.config-module.code,          *
 %%                                   hduthesis-hdu.l3doc-module.code,          *
 %%                                   hduthesis-hdu.stationery-module.code,     *
+%%                                   beamerthemehdu.sty,                       *
 %%                               and README.md.                                *
 %%   available at https://github.com/myhsia/hduthesis                          *
 %% *****************************************************************************
-\def\hduthesis at date{2024/12/23}
-\def\hduthesis at version{0.5.0}
+\def\hduthesis at date{2024/12/31}
+\def\hduthesis at version{0.5.1}
 \def\hduthesis at maintainerid{myhsia}
 
 \RequirePackage{etoolbox}



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