diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-19 21:07:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-19 21:07:48 +0000 |
commit | 44d25eecfc3c4d82091121ddaf7c7f8e08150cd2 (patch) | |
tree | 89ec92fceee56e07b8bd2146d1af72f0ab0cf4ae /Master/texmf-dist/doc | |
parent | 17b51d21a50c06223a80b428679b12a819d36c58 (diff) |
notebeamer (19apr24)
git-svn-id: svn://tug.org/texlive/trunk@71002 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
14 files changed, 135 insertions, 314 deletions
diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnote3sdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/figures/beamerdemo.pdf Binary files differindex 4df7320730f..d4b36152651 100644 --- a/Master/texmf-dist/doc/latex/notebeamer/images/newnote3sdemo.pdf +++ b/Master/texmf-dist/doc/latex/notebeamer/figures/beamerdemo.pdf diff --git a/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf Binary files differnew file mode 100644 index 00000000000..158ef35fe8f --- /dev/null +++ b/Master/texmf-dist/doc/latex/notebeamer/figures/paperdemo.pdf diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf Binary files differdeleted file mode 100644 index cb9ba414c87..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/HDU.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg b/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg Binary files differdeleted file mode 100644 index 3d473bf869f..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/Inuyasa.jpg +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf Binary files differdeleted file mode 100644 index 581fbd1b1d8..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/newnote4sdemo.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf Binary files differdeleted file mode 100644 index 5c0c4ab0771..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/newnotedemo.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf Binary files differdeleted file mode 100644 index fd79019286c..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage1.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf b/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf Binary files differdeleted file mode 100644 index bd9ddb1eb22..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/images/titlepage2.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf b/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf Binary files differdeleted file mode 100644 index ffb18577265..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-demo.pdf +++ /dev/null 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 Binary files differdeleted file mode 100644 index 5d7eac9fb8d..00000000000 --- a/Master/texmf-dist/doc/latex/notebeamer/notebeamer-doc.pdf +++ /dev/null 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 Binary files differnew file mode 100644 index 00000000000..804e18b1589 --- /dev/null +++ b/Master/texmf-dist/doc/latex/notebeamer/notebeamer.pdf 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 |