summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-04-19 21:07:48 +0000
committerKarl Berry <karl@freefriends.org>2024-04-19 21:07:48 +0000
commit44d25eecfc3c4d82091121ddaf7c7f8e08150cd2 (patch)
tree89ec92fceee56e07b8bd2146d1af72f0ab0cf4ae
parent17b51d21a50c06223a80b428679b12a819d36c58 (diff)
notebeamer (19apr24)
git-svn-id: svn://tug.org/texlive/trunk@71002 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/figures/beamerdemo.pdf (renamed from Master/texmf-dist/doc/latex/notebeamer/images/newnote3sdemo.pdf)bin311010 -> 274146 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdfbin0 -> 2670286 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdfbin84691 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpgbin39979 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdfbin1075706 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdfbin8075486 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdfbin286314 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdfbin12057 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdfbin2963011 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.tex29
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.pdfbin3033387 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.tex285
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer.pdfbin0 -> 1357620 bytes
-rw-r--r--Master/texmf-dist/doc/latex/notebeamer/notebeamer.tex135
-rw-r--r--Master/texmf-dist/tex/latex/notebeamer/notebeamer.cls314
-rw-r--r--Master/texmf-dist/tex/latex/notebeamer/notebeamer.sty160
16 files changed, 295 insertions, 628 deletions
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnote3sdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/figures/beamerdemo.pdf
index 4df7320730f..d4b36152651 100644
--- a/Master/texmf-dist/doc/latex/notebeamer/images/newnote3sdemo.pdf
+++ b/Master/texmf-dist/doc/latex/notebeamer/figures/beamerdemo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf
new file mode 100644
index 00000000000..158ef35fe8f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf
deleted file mode 100644
index cb9ba414c87..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg b/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg
deleted file mode 100644
index 3d473bf869f..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf
deleted file mode 100644
index 581fbd1b1d8..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf
deleted file mode 100644
index 5c0c4ab0771..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf
deleted file mode 100644
index fd79019286c..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf
deleted file mode 100644
index bd9ddb1eb22..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf b/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf
deleted file mode 100644
index ffb18577265..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.tex b/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.tex
deleted file mode 100644
index 4944572ba35..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.tex
+++ /dev/null
@@ -1,29 +0,0 @@
-\documentclass[darker,libertinus,colorful]{notebeamer}
-\begin{document}
- % Assign the author & mail address
- \author{Axia} \mail{xiamyphys@gmail.com}
- % Assign the titlepage, sitcker and logo file
- \flyleaf{titlepage1.pdf} \sticker{Inuyasa.jpg}
- % Assign the logo link and info
- \logo[https://sci.hdu.edu.cn]{HDU.pdf}[Hangzhou·Zhejiang]
- % Create a cover page with color H6, title and subtitle
- \notebook[H6]{Quantum Transport}[Dirac Fermion Discussion Group]
- % Assign the chapter title and the file will be inserted after
- \chapter[PHYSICAL REVIEW B VOLUME 50, NUMBER 8]{newnotedemo.pdf}
- % Insert the page 3--4 of the file with the format 1 image per page
- \newnote{3}{4}
- % Change the titlepage in the subsequent notebooks
- \flyleaf{titlepage2.pdf}
- % Create a cover page with color H5, title
- \notebook[H5]{AQM \& SPD}
- \chapter[Introduction \& Fundamental Concepts]{newnote3sdemo.pdf}
- % Insert the page 1--2, 4--6 of the file with the format 3 images per page
- \newnotesss{1}{2} \newnotesss{3}{6}
- \chapter*[SPD Basic: Transport]{newnote4sdemo.pdf}
- % Insert the page 1--2, 4--6, 7--10 of the file with the format 4 images per page
- \newnotessss{1}{2} \newnotessss{4}{6} \newnotessss{7}{10}
- % Create an empty note paper with no page number
- \emptynote*[2]
- % Create an empty note paper with logo and info but no page number
- \emptyhdunote*[2]
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.pdf b/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.pdf
deleted file mode 100644
index 5d7eac9fb8d..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.tex b/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.tex
deleted file mode 100644
index 8df6c4bb8a8..00000000000
--- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.tex
+++ /dev/null
@@ -1,285 +0,0 @@
-%% ******************************************************
-%% * 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. *
-%% ******************************************************
-\documentclass[11pt]{article}
-\usepackage{geometry}
-\usepackage{pdfpages}
-\usepackage[level]{datetime}
-\usepackage{unicode-math}
-\usepackage{authblk}
-\setmainfont{Libertinus Serif}
-\setsansfont{Libertinus Sans}
-\setmonofont{NotoSansMono}[
- Scale=MatchLowercase,
- Extension=.ttf,
- UprightFont=*-Light,
- BoldFont=*-Medium
-]
-\makeatletter
-\usepackage{listings,dirtree}
-\lstdefinestyle{TeX}{
- language = [LaTeX]TeX,
- texcsstyle = *\color{H7},
- numbers = none,
- basicstyle = {\small\color{H6}\tt},
- mathescape = false,
- breaklines = true,
- columns = fixed,
- keywordstyle = \color{H3},
- commentstyle = \color{darkgray},
- tabsize = 2,
- keywords = {mail,flyleaf,sticker,logo,notebook,chapter,newnote,newnotesss,newnotessss,emptynote,emptyhdunote}
-}
-\usepackage{hyperref,xcolor,verbatim}
-\definecolor{pkgcolor}{Hsb}{103,.8,.5}
-\definecolor{moducolor}{Hsb}{290,.8,.5}
-\definecolor{cmdcolor}{Hsb}{188,.8,.5}
-\definecolor{filecolor}{Hsb}{207,.6,.7}
-\definecolor{H1}{Hsb}{349,.8,.8}% 海棠紅 (Hangzhou MTR L 1 )
-\definecolor{H2}{Hsb}{23, .8,.8}% 丹桂橙 (Hangzhou Metro 2 )
-\definecolor{H3}{Hsb}{48, .8,.8}% 柠檬黄 (Hangzhou Metro 3 )
-\definecolor{H4}{Hsb}{103,.8,.8}% 香樟绿 (Hangzhou Metro 4 )
-\definecolor{H5}{Hsb}{188,.8,.8}% 青藍色 (Hangzhou MTR L 5 )
-\definecolor{H6}{Hsb}{207,.8,.8}% 海洋蓝 (Hangzhou Metro 6 )
-\definecolor{H7}{Hsb}{290,.8,.8}% 浪漫紫 (Hangzhou Metro 7 )
-\hypersetup{colorlinks,urlcolor=H1,linkcolor=H2,filecolor=filecolor,pdfstartview=FitH,pdfview=FitH,pdfcreator=XeTeX output}
-
-\renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.1em}}
-\def\@pkg#1{\texorpdfstring{\href{https://www.ctan.org/pkg/#1}{\textcolor{pkgcolor}{\textsf{#1}}}}{“#1”}}
-\def\s@pkg#1{\texorpdfstring{\textcolor{pkgcolor}{\textsf{#1}}}{“#1”}}
-\DeclareRobustCommand\pkg{\@ifstar\s@pkg\@pkg}
-\def\mode#1{\texorpdfstring{\textcolor{moducolor}{\textsf{#1}}}{“#1”}}
-\def\cmd#1{\texorpdfstring{\textcolor{cmdcolor}{\textsf{#1}}}{“#1”}}
-\def\datechange#1#2{%
- \noindent{\makebox[\textwidth][r]{\color{H7}\rule{1.15\textwidth}{.4pt}}}
- \noindent\makebox[0pt][r]{\makebox[-3em][r]{\small\textbf{\textcolor{H7}{#1}}}\;\;}{\sffamily Update: \ignorespaces#2}}
-\makeatother
-
-\title{The \pkg{NoteBeamer} Template}
-\author[1]{Xia Ming Yu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}}
-\yyyymmdddate
-\date{\today}
-\affil[1]{\href{mailto:xiamyphys@gmail.com}{\texttt{xiamyphys@gmail.com}}}
-\date{\today\quad Version 2.3a}
-\begin{document}
-\maketitle
-
-\begin{abstract}
-This is the document for \pkg{NoteBeamer} template, which provides a method to input Beamers on note papers and make notebook quickly.
-
-GitHub issues: \url{https://github.com/xiamyphys/NoteBeamer/issues}
-
-\end{abstract}
-
-\tableofcontents
-
-\section{Introduction}
-
-\subsection{The purpose of this template}
-This template provides an easy way to input Beamers on note papers and make notebook quickly. It's optimized for Goodnotes' default paper size and there won't have difference between papers.
-
-If you meet bugs when using this template, or you have better suggestions or ideas, or you want to participate in the development of the template or other templates by me, feel free to contact me on GitHub \href{https://github.com/xiamyphys/NoteBeamer/issues}{issues} or via email \href{mailto:xiamyphys@gmail.com}{xiamyphys@gmail.com}.
-
-Also, you can join my \textsf\LaTeX{} Template Discussion \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group: 760570712} to communicate with me and get the insider preview edition of the template.
-
-\subsection{Packages required}
-This template is based on the template \pkg{standalone}. And it requires \pkg{tikz} package to plot some graphics, \pkg{kvoptions} and \pkg{etoolbox} packages to provide global options, \pkg{graphics} package to provide the \mode{draft} mode, \pkg{hyperref} package provides link jump function, \pkg{ctex} package to support the \textbf{Chinese, Simplified} language and \pkg{fontawesome5} package to provide a set of beautiful icons.
-
-I strongly suggest that you should use cmd to implement the commands to update all the packages to the latest version or switch to portable version instead.
-\begin{verbatim}
- tlmgr update --self
- tlmgr update --all
-\end{verbatim}
-
-Remember to choose the proper mirror source in your region. To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my TEX distribution?}
-
-\subsection{Loading \pkg{NoteBeamer} and its modes}
-Update your \sffamily\TeX distribution or just save the file \verb|notebeamer.cls| to your project's root directory, then create a \verb|.tex| file, just input the command \verb|\documentclass{notebeamer}| on the first line.
-
-The template provides three modes: \mode{draft}, \mode{color} and \mode{font}. Just add the options of the modes separately by commas in the square bracket of the command in your \verb|.tex| file, such as
-
-\begin{verbatim}
- \documentclass[draft,darker,libertinus]{notebeamer}
-\end{verbatim}
-
-\section{Modes of \pkg{NoteBeamer}}
-
-
-\subsection{The \mode{draft} mode}
-Like most of the templates, this template also provide all modes provided by \pkg{graphics} package such as \mode{draft}, \sffamily\TeX{} will only read for size info of pages you input, and a box of the correct size is printed with the filename in.
-
-This can accelerate the speed of compile, and you can preview the effect quickly when you input a file with too many pages and (or) its size is too large. After you make sure that there's no formatting errors, you can cancel this mode just to wait until compiled.
-
-The files corresponding to the commands \cmd{sticker}, \cmd{logo} and \cmd{flyleaf} can be stored in a folder named \verb|figure(s)|, \verb|image(s)|, \verb|graphic(s)| or \verb|picture(s)|, and you needn't to write these directories again in these commands because this template has already set these directories as indexes. Just as shown in the file tree in the example in \nameref{dirtree}.
-
-\subsection{The \mode{saturation} mode}
-This mode has three options, \mode{lighter} \mode{light}, \mode{normal}, \mode{dark} and \mode{darker}, which can make the color of the covers you create in this template get lighter or darker, and the default option is \mode{normal}.
-
-\subsection{The \mode{color} mode}
-This mode has two options, \mode{main} and \mode{colorful}, which can make the color of the note line remains or keep the same hues as the cover, and the default option is \mode{main}.
-
-\subsection{The \mode{font} mode}
-This mode has two options, \mode{times} and \mode{libertinus}, which can deside which font the notebook will use: The default \emph{New Times Roman} font or the \emph{Libertinus} font. You can use Libertinus fonts if you've installed it on your computer, and the default option is \mode{times}.
-
-\section{Commands of \pkg{NoteBeamer}}
-
-\subsection{The \cmd{author}, \cmd{mail}, \cmd{flyleaf}, \cmd{sticker} and \cmd{logo} commands}
-\begin{verbatim}
- \author{Your Name} \mail{Your Mail Address}
- \flyleaf{titlepage.pdf} \sticker{sticker.png}
- \logo[link]{logofile.pdf}[info]
-\end{verbatim}
-\begin{itemize}
- \item \cmd{author}, \cmd{mail} and \cmd{flyleaf} command.
-
- There will be an author's name or (and) mail on the cover page after you use the command \cmd{author} or (and) \cmd{mail}, also a hyperlink will be added to the email address. A title page will automatically be added after the cover page after you use the command \cmd{flyleaf}.
-
- \item \cmd{sticker} and \cmd{logo} command.
-
- There will be a sticker on the southeast of the note paper after you add, and there will be a logo on the northwest corner of the cover page and HDU note paper; otherwise it won't.
-
- The first and third variable of the command \cmd{logo} can assign the link and info of the logo, which are optional.
-\end{itemize}
-
-\paragraph{The commands above are all repeatable, which can reassign the values that these commands assigned before.}
-
-\subsection{The \cmd{notebook} command}
-
-\begin{verbatim}
- \notebook[color]{title}[subtitle]
-\end{verbatim}
-
-This command can create a cover. There are 7 colors for the cover, these colors' Hues are from Hangzhou MTR line 1 -- 7, they are \textcolor{H1}{H1. \textsf{\href{https://en.wikipedia.org/wiki/Malus_spectabilis}{Haitang} Red}}, \textcolor{H2}{H2. \textsf{Dangui orange}}, \textcolor{H3}{H3. \textsf{Lemon yellow}}, \textcolor{H4}{H4. \textsf{Camphor green}}, \textcolor{H5}{H5. \textsf{Cyan}}, \textcolor{H6}{H6.\textsf{ Ocean Blue}} and \textcolor{H7}{H7. \textsf{Romantic purple}}.
-
-Here, the second value \verb|title| is mandatory, and it can add the title above the center of the cover page while the third value \verb|subtitle| is optional, and it can add the subtitle vertically to the lower left of the center. The first variable is from \textcolor{H1}{H1} to \textcolor{H7}{H7} and the default value is \textcolor{H5}{H5}.
-
-If a star (*) is added after this command, there will be an empty note after the cover page (or the title page if you assigned in the command \cmd{flyleaf}) automatically.
-
-\subsection{The \cmd{chapter} command}
-\begin{verbatim}
- \chapter[chaptertitle]{filename} \chapter*[chaptertitle]{filename}
-\end{verbatim}
-
-This command has 2 variables: \verb|chaptertitle| and \verb|filename|, will assign the following chapter title and the file (such as PDF made from \textsf\LaTeX{}) will be inputted. Here, the value \verb|chaptertitle| is optional.
-
-If a star (*) is added after this command, the counter \verb|chap| won't take effect.
-
-\subsection{The \cmd{emptynote} \& \cmd{emptyhdunote} commands}
-\begin{verbatim}
- \emptynote \emptynote* \emptyhdunote \emptyhdunote*
- \emptynote[1] \emptynote*[2] \emptyhdunote[3] \emptyhdunote*[4]
-\end{verbatim}
-
-Command \cmd{emptynote} will create an empty note paper with the chapter title before and page number following the previous page, and command \cmd{emptyhdunote} will create an empty note paper with logo (may include link) and info were assigned by the command \cmd{logo} but without chapter title on the top of the note paper.
-
-If a star (*) is added after this command, then the note paper created won't include the chapter title and page number. Also, the counter \verb|page| won't take effect.
-
-There's one optional variable of these command, it decides the number of note papers you will create, and the default value is 1, certainly.
-
-\subsection{The \cmd{newnote (sss) (ssss)} commands}
-\begin{verbatim}
- \newnote{start page}{end page} % insert 1 image per page
- \newnotesss{start page}{end page} % insert 3 images per page
- \newnotessss{start page}{end page} % insert 4 images per page
-\end{verbatim}
-
-These commands will create note papers that were inserted images on the left side, the two variables is the start page number and the end page number of the file that was already assigned by the second variable of the command \cmd{chapter}.
-
-\section{Version History}
-
-In the Advanced Quantum Mechanics class on 19 October 2023, my \emph{obsessive-compulsive disorder} forced me to copy all the content projected by the teacher onto the whiteboard on my iPad, and I found that I only got a few pages full of notes without any knowledge understood in my brain after a class is over. Then, an idea suddenly occurred me: Why not create an automated program to quickly insert the Beamers given by the teacher before class with the format of several images per page? So I can just annotate on it and pay more attention to listen to the teacher. After the class ended that day, I went back to my dormitory and started writing programs in \textsf\LaTeX{}.
-
-\textsf{\bfseries Version 1.0} was finished developing on 22 October 2023 and released on \href{https://www.latexstudio.net/index/details/index/mid/3720.html}{LaTeX Studio} (Xiaoshan, Hangzhou) and \href{https://www.xiaohongshu.com/user/profile/61e7ad870000000010005642}{Xiaohongshu}, where won the favor of many people and even some people who have already retired from \textsf\LaTeX{} want to re-enter.
-
-On 24 October 2023, a member in the CMC competition WeChat group praised for my template, and proposed his idea: the template could be magically changed to insert a slightly smaller page of notes on the left side and take notes on the right side, because he found that he can only write in the corners when annotating some notes. It's a good idea, then I'm setting about developing the next version of the template.
-
-While considering the suggestions from friends, I am also thinking about how to simplify the previous code. Because in version 1.0, if one want to insert a Beamer with 78 images and make 3 images per page, then he should write the command \cmd{newnotesss} for 26 times, it's so inelegant... However, no matter how I write the loop, it can't meet my expectations or report errors. Then, I asked stackexchange for help, and finally a LaTeX programmer \href{https://tex.stackexchange.com/users/51799/wipet}{wipet} wrote the loop module for me. Here, I want to express my gratitude to him.
-
-\textsf{\bfseries Version 2.0a} was finished developing on 1 November 2023. This version not only simplified the commands to insert Beamers from to dozens of commands to only 1 command, but redesigned some details and functions. Firstly, this version supports to insert only one page of notes on the left side. What's more, this version supports to insert your school's logo on the cover page and empty note paper. Also, this version supports insert empty note papers without page number and chapter title with just add a star (*) after the command. Finally, this version can add a subtitle on the cover page, and redesign the colors (chosen from Hangzhou MTR) of the cover pages.
-
-\textsf{\bfseries Version 2.1a} was finished developing on 9 November 2023. This version has fixed some bugs, and now supports inserting non-consecutive page numbers of the same file, and you can insert a certain number of empty note papers with only one command. Also, this version has redesigned the top and bottom margins and the height between note lines in response to the suggestion from \href{https://qm.qq.com/q/OnHzbNvVAG}{QQ Group} member. What's more, this version supports the `Libertinus' font, which can make users have a better visual effect.
-
-\textsf{\bfseries Version 2.2b} was finished developing on 11 November 2023. This version has fixed some bugs, and partial commands in this version has changed to use \sffamily\LaTeX{2e} original commands.
-
-\textsf{\bfseries Version 2.3a} was finished developing on 15 November 2023. This version added the option to make the note lines colorful, and removed the packages that already available in the kernel.
-
-\newpage
-\datechange{2023/11/01}{Version 2.0a}
-\begin{itemize}
- \item Simplify the command of inserting 3 \& 4 images per page.
- \item Redesign the cover page \& note paper title.
- \item Add commands to create empty note paper with(out) chapter title \& page number.
- \item Add commands to create empty note paper with logo and info on the top.
-\end{itemize}
-
-\datechange{2023/11/09}{Version 2.1a}
-\begin{itemize}
- \item Fixed the bug of page number errors when inserting the title page.
- \item Fixed the bug of picture string position when inserting the first page number of courseware when the page number is not 1.
- \item Supports inserting non-consecutive page numbers of the same file.
- \item Supports inserting a certain number of empty note papers \& HDU empty note papers with only one command.
- \item Support the `Libertinus' font.
- \item Increased the top and bottom margins of the page by 18.8\% than before.
- \item Other detailed adjustments.
-\end{itemize}
-
-\datechange{2023/11/11}{Version 2.2b}
-\begin{itemize}
- \item Fixed the image position error when inserting 3 and 4 images per note page.
- \item Partially using \sffamily\LaTeX{2e} original commands.
-\end{itemize}
-
-\datechange{\today}{Version 2.3a}
-\begin{itemize}
- \item Added the option to make the note lines colorful.
- \item Added another options in the mode \mode{saturation}.
- \item Removed the packages that already available in the kernel.
-\end{itemize}
-
-\newpage
-\appendix
-\section{Document Example}
-\lstinputlisting[style=TeX]{notebeamer-demo.tex}
-
-\vspace{0.5em}\hrule\vspace{0.5em}
-
-\label{dirtree}
-\begin{minipage}{0.48\textwidth}
- \dirtree{%
- .1 notebeamer/.
- .2 doc/.
- .3 images/.
- .3 notebeamer-demo.tex.
- .3 notebeamer-demo.pdf.
- .3 notebeamer-doc.tex.
- .3 notebeamer-doc.pdf.
- .2 tex/.
- .3 notebeamer.cls.
- .2 License.
- .2 README.md.
- }
-\end{minipage}
-\hfill
-\begin{minipage}{0.48\textwidth}
- \dirtree{%
- .1 doc/.
- .2 images/.
- .3 HDU.pdf.
- .3 Inuyasa.jpg.
- .3 titlepage1.pdf.
- .3 titlepage2.pdf.
- .3 newnotedemo.pdf.
- .3 newnote3sdemo.pdf.
- .3 newnote4sdemo.pdf.
- .2 notebeamer-demo.tex.
- .2 notebeamer-demo.pdf.
- }
-\end{minipage}
-
-
-\includepdf[pages=-,nup=4x4]{notebeamer-demo.pdf}
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer.pdf b/Master/texmf-dist/doc/latex/notebeamer/notebeamer.pdf
new file mode 100644
index 00000000000..804e18b1589
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/notebeamer/notebeamer.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer.tex b/Master/texmf-dist/doc/latex/notebeamer/notebeamer.tex
new file mode 100644
index 00000000000..79f518807f2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/notebeamer/notebeamer.tex
@@ -0,0 +1,135 @@
+\documentclass[11pt,svgnames]{article}
+\usepackage[notelinecolor=MidnightBlue,notemargin=.75in]{notebeamer}
+\usepackage{geometry,titlesec,authblk,hyperref,hologo,pgfpages,lipsum}
+\titleformat*{\section}{\bfseries\large}
+\titleformat*{\subsection}{\bfseries\normalsize}
+\hologoFontSetup{general=\sffamily}
+\usepackage{datetime}\yyyymmdddate
+\usepackage[libertine,mono=false]{newtx}
+\usepackage{listings}
+\lstset{language=[LaTeX]TeX,basicstyle=\ttfamily,breaklines=true,columns=flexible}
+\hypersetup{colorlinks,urlcolor=MidnightBlue}
+\def\pkg#1{\textcolor{DarkGreen}{\textsf{#1}}}
+\def\mode#1{\textcolor{Indigo}{\textsf{#1}}}
+\def\cmd#1{\textcolor{MidnightBlue}{\texttt{\string#1}}}
+
+\title{\bfseries The \pkg{notebeamer} Package}
+\author{Mingyu Hsia, \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com}}
+\affil{Hangzhou Dianzi University}
+\date{\today\quad Version 3.0a\thanks{\url{https://github.com/xiamyphys/notebeamer}}}
+
+\begin{document}
+\maketitle
+
+\begin{abstract}
+
+This is the document for the \pkg{notebeamer} package, which provides an easy way to input slides on notepages quickly for making annotations.
+
+Welcome to feedback bugs or ideas via email \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com} or \href{https://github.com/xiamyphys/fadingimage}{GitHub}.
+
+\end{abstract}
+
+\section{Installing \pkg{notebeamer} and loading it}
+
+Simply download \verb|notebeamer.cls| file from \href{https://github.com/xiamyphys/notebeamer}{GitHub} or \href{https://ctan.org/pkg/fadingimage}{CTAN} and save it under your working directory. However, I strongly suggest to use terminal to install and update all packages to the latest version
+
+\begin{verbatim}
+ sudo tlmgr update --self --all
+\end{verbatim}
+
+To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \hologo{TeX} distribution?}
+
+\section{Key values of this package}
+
+\begin{verbatim}
+ \usepackage[notelinecolor=<color>,notemargin=<margin>]{notebeamer}
+\end{verbatim}
+
+This package has two keys: \cmd{notelinecolor} and \cmd{notemargin}.
+
+The \cmd{notelinecolor} key can set the color notelines, the \cmd{notemargin} key can set the margin of notepages.
+
+If you have not set the keys, the default values of the four keys will be applied
+
+\begin{verbatim}
+ notelinecolor=MidnightBlue, notemargin=.75in
+\end{verbatim}
+
+Please set the geometry for the whole document \textbf{after} you set the notemargin, that is
+
+\begin{verbatim}
+ \usepackage[notemargin=<margin>]{notebeamer} \geometry{<keyval list>}
+\end{verbatim}
+
+otherwise the notemargin configuration won't work.
+
+\section{The margin of notepages}
+
+The relation of the margin of notepages and the margin configuration of package \pkg{geometry} satisfies the following expression
+
+\begin{verbatim}
+ topmargin = bottommargin = (\paperwidth-\textwidth)/3
+ leftmargin = rightmargin = (2\paperheight-2\textheight)/5
+\end{verbatim}
+
+\section{Commands of \pkg{notebeamer}}
+
+\subsection{The \cmd{notechap} command}
+
+\begin{verbatim}
+ \notechap [<notetitle>] {<filename>}
+\end{verbatim}
+
+This command can assign the following notetitle and the PDF file you want to input.
+
+\subsection{The \cmd{notelinenum} and \cmd{notecolumnratio} commands}
+
+\begin{verbatim}
+ \notelinenum{<number>} \notecolumnratio{<number>}
+\end{verbatim}
+
+The two commands can assign the number of notelines and the ratio of columns on following notepages respectively. The default value of the number of notelines is \verb|27| and that of the ratio of columns is \verb|0.5|.
+
+\subsection{The \cmd{hidenotelinetrue} and \cmd{hidenotelinefalse} commands}
+
+Notepages after the \cmd{hidenotelinetrue} command the notelines will be hidden while notepages after command \cmd{hidenotelinefalse} the notelines will be restored.
+
+\subsection{The \cmd{newnotepage}}
+
+\begin{verbatim}
+ \newnotepage[<number>] \newnotepage*[<number>]
+\end{verbatim}
+
+The \cmd{newnotepage} command can create empty notepage(s). If a star (*) is added after the command, the created empty notepage(s) won't have column rule.
+
+\subsection{The \cmd{includebeamer} command}
+
+\begin{verbatim}
+ \includebeamer[<number of slides per page>]{<start page>}{<end page>}
+\end{verbatim}
+
+This commands will create notepages that were inserted images on the left sidnumber of slides per page and the last two variables can set the start page and end page of the PDF file you want to insert that assigned by the command \cmd{notechap}.
+
+\appendix
+\section{The \pkg{litesolution} class}
+
+This class provides a lite design for typesetting solutions of exams, textbooks or other exercises. The \pkg{notebeamer} package is contained in the \pkg{litesolution} class now.
+
+\clearpage
+\pgfpagesuselayout{4 on 1}[letterpaper]
+
+\notelinenum{27}\pagecolor{yellow!2}
+
+\notechap[Chapter 1. Introduction \& Fundamental Concepts]{figures/beamerdemo.pdf}
+\notecolumnratio{.57}
+\hidenotelinefalse \includebeamer[3]{2}{4}
+\notecolumnratio{.43}
+\hidenotelinetrue \includebeamer[4]{3}{6}
+
+\notechap[Phys. Rev. B. Volume 50, Number 8]{figures/paperdemo.pdf}
+\notecolumnratio{.72}
+\hidenotelinefalse \includebeamer[1]{2}{2}
+
+\notecolumnratio{.5} \newnotepage
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/notebeamer/notebeamer.cls b/Master/texmf-dist/tex/latex/notebeamer/notebeamer.cls
deleted file mode 100644
index fef627cad07..00000000000
--- a/Master/texmf-dist/tex/latex/notebeamer/notebeamer.cls
+++ /dev/null
@@ -1,314 +0,0 @@
-%% ************************************************************************************************************
-%% ****************************************************** *
-%% * 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. * * * ** * * * * *
-%% ****************************************************** ***** ** * * *** * * *
-%% start of file `notebeamer.cls'. *
-%% Copyright 2023 LiteLaTeX (xiamyphys@gmail.com) *
-%% available at https://github.com/xiamyphys/NoteBeamer *
-%% Thanks `wipet' (https://petr.olsak.net/) provides Beamers automatically inserts module *
-%% !Mode:: "TeX:UTF-8" *
-%% ************************************************************************************************************
-
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{notebeamer}[2023/11/15 v2.3a NoteBeamer document class]
-
-%% Global opinions
-\RequirePackage{kvoptions}
-\RequirePackage{etoolbox}
-\SetupKeyvalOptions{family=NB, prefix=NB@, setkeys=\kvsetkeys}
-\def\ekv#1{\kvsetkeys{NB}{#1}}
-
-\DeclareStringOption[normal]{saturation}
-\DeclareVoidOption{lighter}{\ekv{saturation=lighter}}
-\DeclareVoidOption{light}{\ekv{saturation=light}}
-\DeclareVoidOption{normal}{\ekv{saturation=normal}}
-\DeclareVoidOption{dark}{\ekv{saturation=dark}}
-\DeclareVoidOption{darker}{\ekv{saturation=darker}}
-
-\DeclareStringOption[main]{color}
-\DeclareVoidOption{main}{\ekv{color=main}}
-\DeclareVoidOption{colorful}{\ekv{color=colorful}}
-
-\DeclareStringOption[times]{font}
-\DeclareVoidOption{times}{\ekv{font=times}}
-\DeclareVoidOption{libertinus}{\ekv{font=libertinus}}
-
-\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{standalone}}
-\ProcessKeyvalOptions*\relax
-\PassOptionsToPackage{quiet}{fontspec}
-\LoadClass[tikz]{standalone}
-
-%% Packages
-\RequirePackage[colorlinks,linkcolor=black,urlcolor=black]{hyperref}
-\RequirePackage{ctex}
-\RequirePackage{fontawesome5}
-
-%% Global definitions
-\def\notewidth{6.32}
-\def\noteheight{8.18}
-\def\author#1{\gdef\@author{#1}}
-\def\mail#1{\gdef\@mail{\href{mailto:#1}{\nolinkurl{#1}}}}
-\NewDocumentCommand\chapter{s o m}{
- \IfBooleanTF{#1}{}{\refstepcounter{chap}}
- \gdef\@chapter{#2}
- \gdef\@courseware{#3}
- \setcounter{note}{0}
-}
-\def\flyleaf#1{\gdef\@flyleaf{#1}}
-\def\sticker#1{\gdef\@sticker{#1}}
-\NewDocumentCommand\logo{O{https://www.hdu.edu.cn} m O{Hangzhou·Zhejiang}}{\gdef\@edu{#1}\gdef\@logo{#2}\gdef\@address{#3}}
-
-%% Fonts
-\ifdefstring{\NB@font}{libertinus}{
-\setmainfont{Libertinus Serif}
-\setsansfont{Libertinus Sans}
-\setmonofont{NotoSansMono}[
- Scale=MatchLowercase,
- Extension=.ttf,
- UprightFont=*-Light,
- BoldFont=*-Medium
-]
-}{\relax}
-
-%% notepages
-\RequirePackage{graphics}
-\graphicspath{{./beamer/}{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}% Paths
-\definecolor{pagecolor}{HTML}{F7F6E9}
-\definecolor{main}{HTML}{223A70}
-\newcounter{chap}
-\newcounter{note}
-\def\chaptername{\faIcon{seedling} Chapter}
-
-%%%% 1 note per page
-\def\newnote#1#2{
- \refstepcounter{note}
- \addtocounter{note}{-1}
- \foreach \n in {#1,...,#2}{
- \begin{tikzpicture}
- \fill [pagecolor!50] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \ifcsname @sticker\endcsname\node [anchor=south east,opacity=0.24,inner sep=0pt] at (0.985*\notewidth in,0.012*\noteheight in) {\includegraphics[height=1.07158 in]{\@sticker}};\fi
-
- %%%%%% imput file
- \node [yshift=(\thenote+1)*33*0.028*\noteheight in,inner sep=0pt] at (0.4*\notewidth in,0.038*\noteheight in-12.5*0.028*\noteheight in) {\ifcsname @chapter\endcsname\includegraphics[height=5.61148 in,page=\n]{\@courseware}\fi};
-
- %%%%%% draw lines & dots: right
- \foreach \a in {9,...,33}
- \foreach \b in {24,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {9,...,32}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.75*\notewidth in+0.25*0.028*\notewidth in,0.038*\noteheight in) --++ (0.2*\notewidth in-0.25*0.028*\notewidth in,0);% 横线
-
- %%%%%% draw lines & dots: bottom
- \foreach \a in {0,...,8,8}
- \foreach \b in {1,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {1,...,8,8}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 横线
-
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 底部粗线
-
- \draw [line cap=round,main!80,thick,yshift=33*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=south west,at start] {\small\color{main}\bfseries\sffamily\chaptername~\ifcsname @chapter\endcsname\thechap. \@chapter\fi} node [anchor=south east] {\small\color{main}\bfseries\sffamily Page \thepage\quad};% 顶部粗线
-
- \draw [line cap=round,thick,opacity=0.4,main!50!gray] (0.75*\notewidth in,0.038*\noteheight in+8.25*0.028*\noteheight in) -- (0.75*\notewidth in,0.038*\noteheight in+32.75*0.028*\noteheight in);% 分栏线
- \end{tikzpicture}
- }
-}
-
-%%%% 3 beamers per page
-\def\threebeamers#1#2#3{
- \refstepcounter{note}
- \begin{tikzpicture}
- \fill [pagecolor!50] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \ifcsname @sticker\endcsname\node [anchor=south east,opacity=0.24,inner sep=0pt] at (0.985*\notewidth in,0.012*\noteheight in) {\includegraphics[height=1.07158 in]{\@sticker}};\fi
-
- %%%%%% imput file
- \foreach \n in {#1,#2,#3}
- \node [yshift=(27.5-(\n-#1)*11)*0.028*\noteheight in,inner sep=0pt] at (0.3125*\notewidth in,0.038*\noteheight in) {\ifcsname @chapter\endcsname\includegraphics[height=2.40492 in,page=\n]{\@courseware}\fi};
-
- %%%%%% draw lines & dots
- \foreach \a in {0,...,33}
- \foreach \b in {18,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {1,...,32}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.575*\notewidth in+0.25*0.028*\notewidth in,0.038*\noteheight in) --++ (0.375*\notewidth in-0.25*0.028*\notewidth in,0);% 横线
-
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 底部粗线
-
- \draw [line cap=round,main!80,thick,yshift=33*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=south west,at start] {\small\color{main}\bfseries\sffamily\chaptername~\ifcsname @chapter\endcsname\thechap. \@chapter\fi} node [anchor=south east] {\small\color{main}\bfseries\sffamily Page \thepage\quad};% 顶部粗线
-
- \draw [line cap=round,thick,opacity=0.4,main!50!gray] (0.575*\notewidth in,0.038*\noteheight in+0.25*0.028*\noteheight in) -- (0.575*\notewidth in,0.038*\noteheight in+32.75*0.028*\noteheight in);% 分栏线
- \end{tikzpicture}
-}
-
-%%%%%% Simplify loop 3
-\newcount\tmpnum
-\def\newnotesss#1#2{%
-\addtocounter{note}{-1}
- \def\maxnum{#2}\tmpnum=#1
- \loop
- \unless\ifnum\tmpnum>#2 \threebeamers{\valnum0}{\valnum1}{\valnum2}
- \advance\tmpnum by3
- \repeat
-}
-\def\valnum#1{%
- \ifnum\maxnum>\numexpr\tmpnum+#1\relax
- \the\numexpr\tmpnum+#1\relax \else \maxnum\fi
-}
-
-%%%% 4 slides per page
-\def\fourbeamers#1#2#3#4{
- \refstepcounter{note}
- \begin{tikzpicture}
- \fill [pagecolor!50] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \ifcsname @sticker\endcsname\node [anchor=south east,opacity=0.24,inner sep=0pt] at (0.985*\notewidth in,0.012*\noteheight in) {\includegraphics[height=1.07158 in]{\@sticker}};\fi
- %%%%%% imput file
- \foreach \n in {#1,#2,#3,#4}
- \node [yshift=(28.875-(\n-#1)*8.25)*0.028*\noteheight in,inner sep=0pt] at (0.3125*\notewidth in,0.038*\noteheight in) {\ifcsname @chapter\endcsname\includegraphics[height=1.77506 in,page=\n]{\@courseware}\fi};
-
- \foreach \a in {0,...,33}
- \foreach \b in {18,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {1,...,32}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.575*\notewidth in+0.25*0.028*\notewidth in,0.038*\noteheight in) --++ (0.375*\notewidth in-0.25*0.028*\notewidth in,0);% 横线
-
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 底部粗线
-
- \draw [line cap=round,main!80,thick,yshift=33*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=south west,at start] {\small\color{main}\bfseries\sffamily\chaptername~\ifcsname @chapter\endcsname\thechap. \@chapter\fi} node [anchor=south east] {\small\color{main}\bfseries\sffamily Page \thepage\quad};% 顶部粗线
-
- \draw [line cap=round,thick,opacity=0.4,main!50!gray] (0.575*\notewidth in,0.038*\noteheight in+0.25*0.028*\noteheight in) -- (0.575*\notewidth in,0.038*\noteheight in+32.75*0.028*\noteheight in);% 分栏线
- \end{tikzpicture}
-}
-
-%%%%%% Simplify loop 4
-\newcount\tmpnum
-\def\newnotessss#1#2{%
-\addtocounter{note}{-1}
- \def\maxnum{#2}\tmpnum=#1
- \loop
- \unless\ifnum\tmpnum>#2 \fourbeamers{\valnum0}{\valnum1}{\valnum2}{\valnum3}
- \advance\tmpnum by4
- \repeat
-}
-\def\valnum#1{%
- \ifnum\maxnum>\numexpr\tmpnum+#1\relax
- \the\numexpr\tmpnum+#1\relax \else \maxnum\fi
-}
-
-%%%% emptynote (*without chapter title & page number)
-\NewDocumentCommand\clearnote{s}{
-\begin{tikzpicture}
- \fill [pagecolor!50] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \ifcsname @sticker\endcsname\node [anchor=south east,opacity=0.24,inner sep=0pt] at (0.985*\notewidth in,0.012*\noteheight in) {\includegraphics[height=1.07158 in]{\@sticker}};\fi
- \foreach \a in {0,...,33}
- \foreach \b in {1,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {1,...,32}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 横线
-
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 底部粗线
-
- \IfBooleanTF{#1}
- {
- \draw [line cap=round,main!80,thick,yshift=33*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=south west,at start] {\small\color{main}\bfseries\sffamily\chaptername} node [anchor=south east] {\small\color{main}\bfseries\sffamily Page\addtocounter{page}{-1}\quad\quad};% 顶部粗线
- }
- {
- \draw [line cap=round,main!80,thick,yshift=33*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=south west,at start] {\small\color{main}\bfseries\sffamily\chaptername~\ifcsname @chapter\endcsname\thechap. \@chapter\fi} node [anchor=south east] {\small\color{main}\bfseries\sffamily Page \thepage\quad};% 顶部粗线
- }
-
- \draw [line cap=round,thick,opacity=0.4,main!50!gray] (0.5*\notewidth in,0.038*\noteheight in+0.25*0.028*\noteheight in) -- (0.5*\notewidth in,0.038*\noteheight in+32.75*0.028*\noteheight in);% 分栏线
-\end{tikzpicture}
-}
-
-\NewDocumentCommand\emptynote{s O{1}}
-{\IfBooleanTF{#1}{
- \Repeat{#2}{\clearnote*}
- }{
- \Repeat{#2}{\clearnote}
- }
-}
-
-%%%% emptynote with school title (*without chapter title & page number)
-\NewDocumentCommand\clearhdunote{s}{
-\begin{tikzpicture}
- \fill [pagecolor!50] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \ifcsname @sticker\endcsname\node [anchor=south east,opacity=0.24,inner sep=0pt] at (0.985*\notewidth in,0.012*\noteheight in) {\includegraphics[height=1.07158 in]{\@sticker}};\fi
- \foreach \a in {0,...,32}
- \foreach \b in {1,...,29}
- \fill [fill=main!50!gray,xshift=\b*0.03*\notewidth in,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) circle (0.006);% 点
- \foreach \a in {1,...,31}
- \draw [line cap=round,opacity=0.5,main!80!gray!80,yshift=\a*\noteheight*0.028 in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0);% 横线
-
- \IfBooleanTF{#1}
- {
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=north east,darkgray] {\small\color{main}\bfseries\sffamily Page\addtocounter{page}{-1}\quad\quad};% 底部粗线
- }{
- \draw [line cap=round,main!80,thick] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0) node [anchor=north east,darkgray] {\small\color{main}\bfseries\sffamily Page \thepage\quad};% 底部粗线
- }
-
- \draw [line cap=round,main!80,thick,yshift=32*0.028*\noteheight in] (0.05*\notewidth in,0.038*\noteheight in) --++ (0.9*\notewidth in,0)\ifcsname @logo\endcsname node [anchor=west,at start,yshift=0.033*\noteheight in,inner sep=0pt] {\href{\@edu}{\includegraphics[height=0.45808 in]{\@logo}}} node [anchor=east,yshift=0.033*\noteheight in] {\bfseries\heiti\color{main}\faIcon{map-pin} \@address\quad\quad}\fi;% 顶部粗线
-
- \draw [line cap=round,thick,opacity=0.4,main!50!gray] (0.5*\notewidth in,0.038*\noteheight in+0.25*0.028*\noteheight in) -- (0.5*\notewidth in,0.038*\noteheight in+31.75*0.028*\noteheight in);% 分栏线
-\end{tikzpicture}
-}
-
-\NewDocumentCommand\emptyhdunote{s O{1}}
-{\IfBooleanTF{#1}{
- \Repeat{#2}{\clearhdunote*}
- }{
- \Repeat{#2}{\clearhdunote}
- }
-}
-
-%% covers
-\ifdefstring{\NB@saturation}{lighter}{\def\@saturation{.18}}{\relax}
-\ifdefstring{\NB@saturation}{light}{\def\@saturation{.15}}{\relax}
-\ifdefstring{\NB@saturation}{normal}{\def\@saturation{.12}}{\relax}
-\ifdefstring{\NB@saturation}{dark}{\def\@saturation{.09}}{\relax}
-\ifdefstring{\NB@saturation}{darker}{\def\@saturation{.06}}{\relax}
-
-\definecolor{H1}{Hsb}{349,\@saturation,.9}% 海棠紅 (Hangzhou MTR L 1 )
-\definecolor{H1*}{HTML}{702230}
-\definecolor{H2}{Hsb}{23, \@saturation,.9}% 丹桂橙 (Hangzhou Metro 2 )
-\definecolor{H2*}{HTML}{703F22}
-\definecolor{H3}{Hsb}{48, \@saturation,.9}% 柠檬黄 (Hangzhou Metro 3 )
-\definecolor{H3*}{HTML}{706022}
-\definecolor{H4}{Hsb}{103,\@saturation,.9}% 香樟绿 (Hangzhou Metro 4 )
-\definecolor{H4*}{HTML}{387022}
-\definecolor{H5}{Hsb}{188,\@saturation,.9}% 青藍色 (Hangzhou MTR L 5 )
-\definecolor{H5*}{HTML}{226570}
-\definecolor{H6}{Hsb}{207,\@saturation,.9}% 海洋蓝 (Hangzhou Metro 6 )
-\definecolor{H6*}{HTML}{224C70}
-\definecolor{H7}{Hsb}{290,\@saturation,.9}% 浪漫紫 (Hangzhou Metro 7 )
-\definecolor{H7*}{HTML}{632270}
-
-\NewDocumentCommand\notebook{s O{H5} m O{}}{
- \setcounter{chap}{0}
- \setcounter{page}{0}
- \begin{tikzpicture}
- \fill [#2] (0,0) rectangle (\notewidth in,\noteheight in);% 边界
- \fill [white,opacity=0.17] (0.2*\notewidth in,0.6*\noteheight in) rectangle (\notewidth in,0);
- \fill [white,opacity=0.17] (0.3*\notewidth in,0.7*\noteheight in) rectangle (\notewidth in,0);
- \node at (0.65*\notewidth in,0.65*\noteheight in) {\LARGE\bfseries\sffamily #3};
- \node [rotate=90,opacity=0.4] at (0.25*\notewidth in,0.3*\noteheight in) {\sffamily\Large\bfseries\MakeUppercase{#4}};
- \draw [thick,line cap=round] (0.65*\notewidth in,0.05*\noteheight in) --++ (0.25*\notewidth in,0) node [anchor=south west] {\large\faIcon{feather-alt}} \ifcsname @mail\endcsname node [midway,anchor=south] {\bfseries\texttt{\@mail}}\fi node [midway,anchor=south,yshift=2em] {\bfseries\sffamily\large\ifcsname @author\endcsname\@author\fi};
- \ifcsname @logo\endcsname\node [anchor=north west] at (0.025*\notewidth in,0.991*\noteheight in) {\href{\@edu}{\includegraphics[width=2.212 in]{\@logo}}};\fi
- \end{tikzpicture}
- \ifdefstring{\NB@color}{colorful}{\colorlet{main}{main}}{\relax}
- \ifdefstring{\NB@color}{colorful}{\colorlet{main}{#2*}}{\relax}
- \ifcsname @flyleaf\endcsname
- \addtocounter{page}{-1}
- \begin{tikzpicture}
- \node [inner sep=0pt] at (0.5*\notewidth in,0.5*\noteheight in) {\includegraphics[width=\notewidth in]{\@flyleaf}};
- \end{tikzpicture}
- \fi
- \IfBooleanTF{#1}{\emptynote*}{}
-}
-
-%% LaTeX 3 \Repeat supports
-\ExplSyntaxOn
-\cs_new_eq:NN \Repeat \prg_replicate:nn
-\ExplSyntaxOff \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/notebeamer/notebeamer.sty b/Master/texmf-dist/tex/latex/notebeamer/notebeamer.sty
new file mode 100644
index 00000000000..84e06bf49a5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/notebeamer/notebeamer.sty
@@ -0,0 +1,160 @@
+%% ***********************************************************
+%% Copyright 2024 by Mingyu Hsia <xiamyphys@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 Maintainer of this work is Mingyu Hsia. *
+%% *
+%% This work consists of the files notebeamer.sty, *
+%% and README.md. *
+%% available at https://github.com/xiamyphys/notebeamer *
+%% Thanks `wipet' (https://petr.olsak.net/) provides *
+%% Beamers automatically inserts module *
+%% ***********************************************************
+% !Mode:: "TeX:UTF-8"
+\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\ProvidesPackage{notebeamer}[2024/04/19 v3.0a notebeamer package]
+\RequirePackage{xkeyval}
+
+\DeclareOptionX{notelinecolor}{\gdef\@notelinecolor{#1}}
+\ExecuteOptionsX{notelinecolor=darkgray}
+\DeclareOptionX{notemargin}{\gdef\@notemargin{#1}}
+\ExecuteOptionsX{notemargin=.75in}
+
+\DeclareOptionX*{\PackageWarning{notebeamer}{`\CurrentOption' ignored}}
+\ProcessOptionsX\relax
+
+\RequirePackage{geometry,calc,tikz}
+\newgeometry{margin=\@notemargin}
+\tikzset{every picture/.append style={%
+ line join=round,line cap=round,thick}}
+\usetikzlibrary{calc}
+
+\newcounter{note}
+\NewDocumentCommand\notechap{o m}{
+ \gdef\@notechap{#1}
+ \gdef\@beamer{#2}
+ \setcounter{note}{0}}
+
+\newlength\hnotemargin\newlength\vnotemargin
+\setlength\hnotemargin{(\paperwidth-\textwidth)/3}
+\setlength\vnotemargin{(2\paperheight-2\textheight)/5}
+\newlength\notewidth\newlength\noteheight
+\setlength\notewidth{\paperwidth-2\hnotemargin}
+\setlength\noteheight{\paperheight-2\vnotemargin}
+\newlength\notelinespace
+
+\def\notelinenum#1{%
+ \gdef\@notelinenum{#1}
+ \setlength\notelinespace{\noteheight/#1}}
+\ifcsname @notelinenum\endcsname
+\else
+ \gdef\@notelinenum{27}
+ \setlength\notelinespace{\noteheight/27}
+\fi
+\def\notecolumnratio#1{\gdef\@notecolumnratio{#1}}
+\ifcsname @notecolumnratio\endcsname
+\else
+ \gdef\@notecolumnratio{.5}
+\fi
+
+\newif\ifhidenoteline
+
+\def\@onepaper#1{
+ \refstepcounter{note}\addtocounter{note}{-1}
+ \clearpage\thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ %%%%%% notepage lines
+ \draw [\@notelinecolor,opacity=.8,very thick] ($(current page.north west)+(\hnotemargin,-\vnotemargin)$) --++ (\notewidth,0) node [above right,at start,yshift=1ex] {\large\bfseries\sffamily\ifcsname @notechap\endcsname\@notechap\fi} node [above left,yshift=1ex] {\large\bfseries\sffamily Page \thepage\quad}; % 顶部粗线
+ \draw [\@notelinecolor,opacity=.8,thick] ($(current page.south west)+(\hnotemargin,\vnotemargin)$) --++ (\notewidth,0); % 底部粗线
+ \ifhidenoteline\else
+ \foreach \a in {2,...,\@notelinenum}
+ \draw [\@notelinecolor,opacity=.4,thick] ($(current page.south west)+(\hnotemargin,{\vnotemargin+(\a-1)*\notelinespace})$) --++ (\notewidth,0); % 横线
+ \fi
+ %%%%%% imput file
+ \node [below,yshift=\thenote*\noteheight-1ex,inner sep=0pt] at ($(current page.north west)+(\hnotemargin+.5*\@notecolumnratio*\notewidth,-\vnotemargin)$) {\ifcsname @notechap\endcsname\includegraphics[width=\dimeval{\@notecolumnratio\notewidth},page=#1]{\@beamer}\fi};
+ \end{tikzpicture}
+}
+
+\def\@threebeamer#1#2#3{
+ \refstepcounter{note}\addtocounter{note}{-1}
+ \clearpage\thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ %%%%%% notepage lines
+ \draw [\@notelinecolor,opacity=.8,very thick] ($(current page.north west)+(\hnotemargin,-\vnotemargin)$) --++ (\notewidth,0) node [above right,at start,yshift=1ex] {\large\bfseries\sffamily\ifcsname @notechap\endcsname\@notechap\fi} node [above left,yshift=1ex] {\large\bfseries\sffamily Page \thepage\quad}; % 顶部粗线
+ \draw [\@notelinecolor,opacity=.8,thick] ($(current page.south west)+(\hnotemargin,\vnotemargin)$) --++ (\notewidth,0); % 底部粗线
+ \ifhidenoteline\else
+ \foreach \a in {2,...,\@notelinenum}
+ \draw [\@notelinecolor,opacity=.4,thick] ($(current page.south west)+(\hnotemargin+\@notecolumnratio*\notewidth+1ex,{\vnotemargin+(\a-1)*\notelinespace})$) --++ ({(1-\@notecolumnratio)*\notewidth-1ex},0); % 横线
+ \fi
+ \draw [\@notelinecolor!80,opacity=.5,very thick] ($(current page.south west)+(\hnotemargin+\@notecolumnratio*\notewidth,\vnotemargin+1ex)$) --++ (0,\noteheight-2ex); % 分栏线
+ %%%%%% imput file
+ \foreach \n in {#1,#2,#3}
+ \node [yshift=(2*#1-2*\n-1)*\noteheight/6+\thenote*\noteheight,inner sep=0pt] at ($(current page.north west)+(\hnotemargin+.5*\@notecolumnratio*\notewidth,-\vnotemargin)$) {\ifcsname @notechap\endcsname\includegraphics[height=\dimeval{\noteheight/3-2ex},page=\n]{\@beamer}\fi};
+ \end{tikzpicture}
+}
+
+\def\@fourbeamer#1#2#3#4{
+ \refstepcounter{note}\addtocounter{note}{-1}
+ \clearpage\thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \draw [\@notelinecolor,opacity=.8,very thick] ($(current page.north west)+(\hnotemargin,-\vnotemargin)$) --++ (\notewidth,0) node [above right,at start,yshift=1ex] {\large\bfseries\sffamily\ifcsname @notechap\endcsname\@notechap\fi} node [above left,yshift=1ex] {\large\bfseries\sffamily Page \thepage\quad}; % 顶部粗线
+ \draw [\@notelinecolor,opacity=.8,thick] ($(current page.south west)+(\hnotemargin,\vnotemargin)$) --++ (\notewidth,0); % 底部粗线
+ \ifhidenoteline\else
+ \foreach \a in {2,...,\@notelinenum}
+ \draw [opacity=.5,\@notelinecolor,opacity=.4,thick] ($(current page.south west)+(\hnotemargin+\@notecolumnratio*\notewidth+1ex,{\vnotemargin+(\a-1)*\notelinespace})$) --++ ({(1-\@notecolumnratio)*\notewidth-1ex},0); % 横线
+ \fi
+ \draw [\@notelinecolor,opacity=.5,very thick] ($(current page.south west)+(\hnotemargin+\@notecolumnratio*\notewidth,\vnotemargin+1ex)$) --++ (0,\noteheight-2ex); % 分栏线
+ %%%%%% imput file
+ \foreach \n in {#1,#2,#3,#4}
+ \node [yshift=(2*#1-2*\n-1)*\noteheight/8+\thenote*\noteheight,inner sep=0pt] at ($(current page.north west)+(\hnotemargin+.5*\@notecolumnratio*\notewidth,-\vnotemargin)$) {\ifcsname @notechap\endcsname\includegraphics[height=\dimeval{\noteheight/4-2ex},page=\n]{\@beamer}\fi};
+ \end{tikzpicture}
+}
+
+\ExplSyntaxOn\cs_new_eq:NN \Repeat \prg_replicate:nn\ExplSyntaxOff
+\NewDocumentCommand\newnotepage{s O{1}}{\Repeat{#2}{
+ \refstepcounter{note}
+ \clearpage\thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \draw [\@notelinecolor,opacity=.8,very thick] ($(current page.north west)+(\hnotemargin,-\vnotemargin)$) --++ (\notewidth,0) node [above right,at start,yshift=1ex] {\large\bfseries\sffamily\ifcsname @notechap\endcsname\@notechap\fi} node [above left,yshift=1ex] {\large\bfseries\sffamily Page \thepage\quad}; % 顶部粗线
+ \draw [\@notelinecolor,opacity=.8,thick] ($(current page.south west)+(\hnotemargin,\vnotemargin)$) --++ (\notewidth,0); % 底部粗线
+ \ifhidenoteline\else
+ \foreach \a in {2,...,\@notelinenum}
+ \draw [\@notelinecolor,opacity=.4,thick] ($(current page.south west)+(\hnotemargin,{\vnotemargin+(\a-1)*\notelinespace})$) --++ (\notewidth,0); % 横线
+ \fi
+ \IfBooleanF{#1}{% 分栏线
+ \draw [\@notelinecolor,opacity=.5,very thick] ($(current page.south west)+(\hnotemargin+\@notecolumnratio*\notewidth,\vnotemargin+1ex)$) --++ (0,\noteheight-2ex);}
+\end{tikzpicture}}
+}
+
+\newcount\tmpnum
+\def\valnum#1{%
+ \ifnum\maxnum>\numexpr\tmpnum+#1\relax
+ \the\numexpr\tmpnum+#1\relax \else \maxnum\fi}
+\NewDocumentCommand\includebeamer{ o m m }{%
+ \ifnum #1=1
+ \def\maxnum{#3}\tmpnum=#2
+ \loop
+ \unless\ifnum\tmpnum>#3 \@onepaper{\valnum0}
+ \advance\tmpnum by1
+ \repeat\fi
+ \ifnum #1=3
+ \def\maxnum{#3}\tmpnum=#2
+ \loop
+ \unless\ifnum\tmpnum>#3 \@threebeamer{\valnum0}{\valnum1}{\valnum2}
+ \advance\tmpnum by3
+ \repeat\fi
+ \ifnum #1=4
+ \def\maxnum{#3}\tmpnum=#2
+ \loop
+ \unless\ifnum\tmpnum>#3 \@fourbeamer{\valnum0}{\valnum1}{\valnum2}{\valnum3}
+ \advance\tmpnum by4
+ \repeat\fi} \ No newline at end of file