Debian Codegraph @

texmf-dist/doc/latex/beautynote/beautynote.tex

raw
1 \documentclass[twoside,openany,12pt]{beautynote}
2 % Input Some Information of the doc
3 \doctitle{Introduction to Beautynote Template}
4 \docsubtitle{A subtitle}
5 \dockeywords{beautynote,introduction}
6 \date{\today\vfill\includegraphics[width=0.15\textwidth]{titlepage.png}\\[.1em] \textsc{\large Beautynote}}
7 % Hyperref always required second to last.
8 \RequirePackage{hyperref}
9 \makeatletter
10 \hypersetup{%
11 % hidelinks,
12 pdfstartview=Fit,%
13 pdfmenubar=true,%
14 pdftoolbar=true,%
15 bookmarksopen=false,%
16 colorlinks=true,
17 linkcolor=black,
18 citecolor=purple,
19 pdftitle={\@docsubtitle},%
20 pdfauthor={\@author},%
21 pdfsubject={\@doctitle},%
22 pdflang={\languagename},%
23 pdfkeywords={\@dockeywords},%
24 pdfproducer={pdfTeX}}
25 \makeatother
26
27 % Cleveref as the last one.
28 \RequirePackage{cleveref}
29 %%%%%%%%%%%%%%%%%
30 \author{Ethan Lu}
31 \footext{}
32 \copyrightpage%
33 {Faculty of Pure Mathematics}% Your Faculty
34 {XX University}% Your University
35 {Press of XX University}% Your Publisher
36 {01A75, 00B50}% AMS
37 {Guang Zhou}% Your City
38 % If you do not want to fill one of the fields, please leave it like this: {}
39 \usepackage{microtype}
40 \usepackage{appendix}
41 \usepackage{mathrsfs}
42 \usepackage{bropd}
43 \usepackage{bm}
44 \usepackage{tabularray,booktabs}
45 \usepackage{listings}
46 \lstset{
47 basicstyle=\small\ttfamily,
48 keywordstyle=\color{NavyBlue},
49 commentstyle=\color{gray!50!black!50},
50 stringstyle=\rmfamily\slshape\color{red},
51 backgroundcolor=\color{gray!5},
52 frame=leftline,
53 framerule=0.5pt,rulecolor=\color{gray!80},
54 numbers=left,
55 numberstyle=\footnotesize,
56 firstnumber=1,
57 stepnumber=1,
58 numbersep=7pt,
59 aboveskip=.25em,
60 showspaces=false,
61 showstringspaces=false,
62 keepspaces=true,
63 showtabs=false,
64 tabsize=2,
65 captionpos=b,
66 flexiblecolumns=true,
67 breaklines=true,
68 breakatwhitespace=false,
69 breakautoindent=true,
70 breakindent=1em,
71 title=\lstname,
72 escapeinside=``,
73 xleftmargin=1em, xrightmargin=1em,
74 aboveskip=1ex, belowskip=1ex,
75 framextopmargin=1pt, framexbottommargin=1pt,
76 abovecaptionskip=-2pt,belowcaptionskip=3pt,
77 extendedchars=false, columns=flexible, mathescape=true,
78 texcl=true,
79 fontadjust
80 }%
81 \begin{document}
82 % Titlepage
83 \maketitle\clearpage
84 %%%%%%%%%%%%%%%% Copyright-Page %%%%%%%%%%%%%%%%%%%%%%%
85 \copyrights
86 \pagestyle{\auxsettings}
87 \makeatletter
88 \thispagestyle{copyright}
89 \ifdefempty{\@faculty}{}{\noindent{\large\textsc{\@faculty}} \\}
90 \ifdefempty{\@university}{}{{\large\textsc{\@university}} \\[1em]}
91 \ifdefempty{\@publisher}{}{\textit{Published by:} \@publisher \\}
92 \ifthenelse{\boolean{copyright}}{\textit{Copyright by:} \textsc{\docauthor }\\}{}
93 \ifdefempty{\@ams}{}{\textit{AMS Classification (2020):} \@ams.\\}
94 \vfill
95 \ifdefempty{\@city}{}{\noindent\@city, on \today\\}
96 \copyright\,\the\year\, \textsc{The Authors}
97 \doclicenseThis
98 \cleardoublepage
99 \makeatother
100 %%%%%%%%%%%%%%%% Copyright-Page %%%%%%%%%%%%%%%%%%%%%%%
101 % Toc
102 \tableofcontents
103 % Main Contents
104 \pagestyle{\defaultsettings}
105 \chapter{A short introduction to beautynote template}
106 \section{Introduction}
107
108 Beautynote is a specially designed to meet the publication of books and the production of latex templates, with elegant chapter styles and unique page styles.
109
110 Here are all the things you can change :
111 \begin{table}[!htbp]
112 \centering % 使用 \centering 替代 center 环境
113 \caption{Information-needed}
114 \begin{tabular}{c|c}
115 \toprule
116 \lstinline|\docauthor| & The author of this note\\ \midrule
117 \lstinline|\doctitle| & The title of this note\\ \midrule
118 \lstinline|\docsubtitle| & The subtitle of this note\\ \midrule
119 \lstinline|\docdate| & The date of this note\\ \midrule
120 \lstinline|\dockeywords| & The keywords of this note\\ \midrule % 假设这是正确的宏命令
121 \lstinline|\copyrightpage| & Some useful information of the copyright of this note, just like page 2\\
122 \bottomrule
123 \end{tabular}
124 \label{tb:Information-needed}
125 \end{table}
126 \textbf{Notation:} If you want to change the picture in title page, you can find it on the 220th line in the file \lstinline{beautynote.cls}.
127 \section{Environments}
128 We can use some important theorem environments:
129 \begin{theorem}[Theorem]\label{thm:example-1}
130 Example of theorem environment.
131 \end{theorem}
132 \begin{proof}
133
134 \end{proof}
135
136 \begin{lemma}[Lemma]\label{thm:example-2}
137 Example of theorem environment.
138 \end{lemma}
139 \begin{solution}
140
141 \end{solution}
142
143 \begin{definition}[Definition]\label{thm:example-3}
144 Example of theorem environment.
145 \end{definition}
146 \begin{proposition}[Proposition]\label{thm:example-4}
147 Example of theorem environment.
148 \end{proposition}
149 \begin{problem}[Problem]\label{thm:example-5}
150 Example of theorem environment.
151 \end{problem}
152 \begin{remark}[Remark]
153 Example of theorem environment.
154 \end{remark}
155
156 % Bibliography
157 \clearpage
158 \pagestyle{\auxsettings}
159 % \printbibliography[heading=bibintoc]
160 \end{document}