Debian Codegraph @

texmf-dist/doc/latex/elegantnote/elegantnote-en.tex

raw
1 \documentclass[en,hazy,blue,screen,14pt]{elegantnote}
2
3 \title{ElegantNote: An Elegant \LaTeX{} Template for Notes}
4
5 \author{Author}
6 \institute{Elegant\LaTeX{} Program}
7
8 \version{2.60}
9 \date{Feb. 2, 2026}
10
11 \begin{document}
12 \maketitle
13 % logo
14 \centerline{\includegraphics[width=0.2\textwidth]{logo-blue}}
15
16 \section{ElegantNote Instructions}
17 \thispagestyle{empty}
18 \textcolor{red}{\bfseries Caution: This template will no longer be maintained since January 1st, 2023. However, due to its user base, maintenance has resumed and the template has been re-released as of 2026.}
19
20 The brand new ElegantNote is redesigned on the basis of \LaTeX{} article, a more elegant note template! You can use either \hologo{pdfLaTeX} or \hologo{XeLaTeX} to compile. It is recommended that \hologo{pdfLaTeX} be used for notes in English while \hologo{XeLaTeX} be used for notes in Chinese.
21
22
23 The new template has the following features:
24 \begin{itemize}
25 \item two modes: good for eye mode (geye) and hazy mode;
26 \item different devices: Pad (default), Screen(beamer size), Kindle, PC (double-page) and normal (A4);
27 \item 5 color themes: \textcolor{eblue}{blue} (default), \textcolor{egreen}{green}, \textcolor{ecyan}{cyan}, \textcolor{sakura}{sakura} and \textcolor{black}{black};
28 \item languages support: Chinese (default), English;
29 \item support \hologo{pdfLaTeX} and \hologo{XeLaTeX};
30 \item prettier captions, list environments, and unified fonts;
31 \item custmized global font size: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt and 20pt;
32 \item support for math font options for \lstinline{newtx} and \lstinline{mtpro2};
33 \item with the option of \lstinline{bibstyle} (default: apalike) for changing style of bibliography;
34 \item change the citation style with \lstinline{cite} option: \lstinline{authoryear}, \lstinline{numbers} and \lstinline{super}.
35 \end{itemize}
36
37 \subsection{Optional Modes}
38
39 This template provides optional modes: good for eye mode (geye) and hazy mode, while the paper color is green for the former and light blue for the latter. you can use the following code to activate the desired mode:
40 \begin{lstlisting}[frame=none]
41 \documentclass[geye]{elegantnote} % or
42 \documentclass[mode=geye]{elegantnote}
43 \documentclass[hazy]{elegantnote} % or
44 \documentclass[mode=hazy]{elegantnote}
45 \end{lstlisting}
46
47 \begin{remark}
48 If you are expected to customize background, use:
49 \begin{lstlisting}
50 \definecolor{geyecolor}{RGB}{199,237,204}
51 \pagecolor{geyecolor}
52 \end{lstlisting}
53 \end{remark}
54
55
56 \subsection{Device Options}
57
58 To make the notes more comfortable to read, we designed four output options (of different sizes) that correspond to different reading devices: Pad (default), Kindle, PC and A4paper.
59
60 \textcolor{red}{New}: For the convenience of notes presentation, version 2.20 offers a new option for device, i.e. \lstinline{device=screen}, which is similar to the size of MS Powerpoint with ratio aspect of 4:3 (2019/12/06).
61
62 The options of output for different devices are
63 \begin{lstlisting}[frame=none]
64 \documentclass[device=pad]{elegantnote} % ipad screen size
65 \documentclass[device=kindle]{elegantnote} % kindle screen size
66 \documentclass[device=pc]{elegantnote} % double pages for pc
67 \documentclass[device=normal]{elegantnote} % a4 normal page
68 \documentclass[device=screen]{elegantnote} % 4:3 PPT size
69 \end{lstlisting}
70
71 \begin{note}
72 You can also select the device by using a direct assignment method, such as:
73 \end{note}
74
75 \begin{lstlisting}[frame=none]
76 \documentclass[pad]{elegantnote}
77 \documentclass[kindle]{elegantnote}
78 \documentclass[pc]{elegantnote}
79 \documentclass[normal]{elegantnote}
80 \documentclass[screen]{elegantnote}
81 \end{lstlisting}
82
83 \begin{note}
84 To get a normal A4paper size PDF, please select \lstinline{device=normal}.
85 \end{note}
86
87 \subsection{Math Fonts}
88
89 This template defines a new option (\lstinline{math}), with three options:
90
91 \begin{enumerate}
92 \item \lstinline{math=cm} (default), use \LaTeX{} default math font (recommended).
93 \item \lstinline{math=newtx}, use \lstinline{newtxmath} math font (may bring about bugs).
94 \item \lstinline{math=mtpro2}, use \lstinline{mtpro2} package to set math font.
95 \end{enumerate}
96
97
98 \subsection[Color Themes]{Color Themes\footnote{Test for chapter footnote.}}
99
100 This template contains 5 color themes, \textcolor{egreen}{green}, \textcolor{ecyan}{cyan}, \textcolor{eblue}{blue}(default), \textcolor{sakura}{sakura} and \textcolor{black}{black}. If you don't need color, you can choose black theme. The color theme is enabled in the same way as before:
101 \begin{lstlisting}[frame=none]
102 \documentclass[green]{elegantnote}
103 \documentclass[color=green]{elegantnote}
104 ....
105 \documentclass[black]{elegantnote}
106 \documentclass[color=black]{elegantnote}
107 \end{lstlisting}
108
109
110 \subsection{Languages}
111
112 This template contains two sets of language environments, changing the language environment will change the title of table/figure (figure, table), article structure words (such as the table of contents, references, etc.), and the environment Introductory words (such as Theorem, Lemma, etc.). The different language modes are enabled as follows:
113 \begin{lstlisting}[frame=none]
114 \documentclass[cn]{elegantnote}
115 \documentclass[lang=cn]{elegantnote}
116 \documentclass[en]{elegantnote}
117 \documentclass[lang=en]{elegantnote}
118 \end{lstlisting}
119
120 \begin{note}
121 Chinese characters are allowed in Chinese mode only. To type in Chinese characters in English mode, please include \lstinline{ctex}\footnote{Please use \lstinline{scheme=plain} to retain headlines in English.} or \lstinline{xeCJK} package.
122 \end{note}
123
124
125 \subsection{Theorem Class Environments}
126
127 This template used the \lstinline{amsthm} to create theorems, there are 4 types of theorem environments
128 \begin{itemize}
129 \item \textbf{Theorem-Class}: theorem, lemma, proposition, corollary;
130 \item \textbf{Definition-Class}: definition, conjecture, example;
131 \item \textbf{Remark-Class}: remark, note, case;
132 \item \textbf{Proof-Class}: proof.
133 \end{itemize}
134
135 \begin{remark}
136 With the option \lstinline{lang=cn} , the introductory words of the theorem class environments will be changed to Chinese.
137 \end{remark}
138
139
140 \section{Writing Sample}
141
142 We will define the integral of a measurable function in three steps. First, we define the integral of a nonnegative simple function. Let $E$ be the measurable set in $\mathcal{R}^N$.
143
144 % source: https://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html
145
146 \begin{definition}[Left Coset]
147 Let $H$ be a subgroup of a group~$G$. A \emph{left coset} of $H$ in $G$ is a subset of $G$ that is of the form $xH$, where $x \in G$ and $xH = \{ xh : h \in H \}$. Similarly a \emph{right coset} of $H$ in $G$ is a subset of $G$ that is of the form $Hx$, where $Hx = \{ hx : h \in H \}$
148 \end{definition}
149
150 Note that a subgroup~$H$ of a group $G$ is itself a left coset of $H$ in $G$.
151
152 \begin{lemma}[Size Of Left Coset]
153 Let $H$ be a finite subgroup of a group $G$. Then each left
154 coset of $H$ in $G$ has the same number of elements as $H$.
155 \end{lemma}
156
157 \begin{theorem}[Lagrange's Theorem]
158 Let $G$ be a finite group, and let $H$ be a subgroup
159 of $G$. Then the order of $H$ divides the order of $G$.
160 \end{theorem}
161
162 \begin{proof}
163 Let $z$ be some element of $xH \cap yH$. Then $z = xa$ for some $a \in H$, and $z = yb$ for some $b \in H$. If $h$ is any element of $H$ then $ah \in H$ and $a^{-1}h \in H$, since $H$ is a subgroup of $G$. But $zh = x(ah)$ and $xh = z(a^{-1}h)$ for all $h \in H$. Therefore $zH \subset xH$ and $xH \subset zH$, and thus $xH = zH$. Similarly $yH = zH$, and thus $xH = yH$, as required.
164 \end{proof}
165
166 \begin{figure}[!htbp]
167 \centering
168 \includegraphics[width=0.6\textwidth]{scatter.pdf}
169 \caption{Matplotlib: Scatter Plot Example\label{fig:mpg}}
170 \end{figure}
171
172 Regression analysis is a powerful statistical method that allows you to examine the relationship between two or more variables of interest. While there are many types of regression analysis, at their core they all examine the influence of one or more independent variables on a dependent variable. The process of performing a regression allows you to confidently determine which factors matter most, which factors can be ignored, and how these factors influence each other.
173
174 Let's continue using our application training example. In this case, we'd want to measure the historical levels of satisfaction with the events from the past three years or so, as well as any information possible in regards to the independent variables.
175
176 \begin{table}[htbp]
177 \small
178 \centering
179 \caption{Auto MPG and Price \label{tab:reg}}
180 \begin{tabular}{lcc}
181 \toprule
182 & (1) & (2) \\
183 \midrule
184 mpg & -238.90*** & -49.51 \\
185 & (53.08) & (86.16) \\
186 weight & & 1.75*** \\
187 & & (0.641) \\
188 constant & 11,253*** & 1,946 \\
189 & (1,171) & (3,597) \\
190 obs & 74 & 74 \\
191 $R^2$ & 0.220 & 0.293 \\
192 \bottomrule
193 \multicolumn{3}{l}{\scriptsize Standard errors in parentheses} \\
194 \multicolumn{3}{l}{\scriptsize *** $p<0.01$, ** $p<0.05$, * $p<0.1$} \\
195 \end{tabular}%
196 \end{table}%
197
198
199 \begin{itemize}[noitemsep]
200 \item Routing and resource discovery;
201 \begin{itemize}
202 \item Language Models
203 \item Vector Space Models
204 \end{itemize}
205 \item Resilient and scalable computer networks;
206 \item Distributed storage and search.
207 \end{itemize}
208
209
210 \section{Acknowledgement}
211
212 Thank \href{https://github.com/sikouhjw}{sikouhjw} and \href{https://github.com/syvshc}{syvshc} for their quick response to Github issues and continuously support work for Elegant\LaTeX{}. Thank China\TeX{} and \href{http://www.latexstudio.net/}{LaTeX Studio} for their promotion.
213
214
215 \section{FAQ}
216
217 \begin{enumerate}[label=\arabic*).]
218 \item \textit{How to remove the information of version?}\\
219 Please comment \lstinline|\version{x.xx}|.
220 \item \textit{How to remove the information of date?}\\
221 Please type in \lstinline|\date{}|.
222 \item \textit{How to add several authors?}\\
223 Use \lstinline{\and} in \lstinline{\author} and use \lstinline{\\} to start a new line.
224 \begin{lstlisting}
225 \author{author 1\\ org. 1 \and author 2 \\ org. 2 }
226 \end{lstlisting}
227 \end{enumerate}
228
229
230 %\printbibliography[heading=bibintoc, title=\ebibname]
231
232 \end{document}