| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
\usepackage[colorlinks=true]{hyperref} |
| 4 |
|
| 5 |
\author{Guanyuming He\\ \url{https://github.com/guanyuming-he/onepgnote}} |
| 6 |
\date{\today} |
| 7 |
\title{Manual for onepgnote} |
| 8 |
|
| 9 |
\begin{document} |
| 10 |
\pagestyle{empty} |
| 11 |
\maketitle |
| 12 |
\tableofcontents |
| 13 |
|
| 14 |
\clearpage |
| 15 |
\section{Motivation} |
| 16 |
The package was written when I was a student at Imperial College London, |
| 17 |
preparing for an exam that allows each person to bring a one-page note. |
| 18 |
|
| 19 |
As a \TeX nitian, I naturally wanted to typeset it using \LaTeX. At first, I |
| 20 |
thought of using some existing package to do that. I found \texttt{cheatsheet} |
| 21 |
on CTAN, but felt that I still could have saved a lot of space to put more |
| 22 |
things on the paper. Moreover, I have a few cool ideas that \texttt{cheatsheet} |
| 23 |
didn't provide. Thus, I made this package. |
| 24 |
|
| 25 |
\section{Basic Ideas} |
| 26 |
The package is designed to be simple yet powerful, thanks to the following |
| 27 |
powerful ideas. |
| 28 |
\begin{enumerate} |
| 29 |
\item One major space eater is the glues between sections. Yet they serve an |
| 30 |
important task: make the sectioning obvious. The first goal is to |
| 31 |
eliminate the space while keeping the sectionings very conspicuous. To |
| 32 |
accomplish that, I use \texttt{tcolorbox} with bright frames and |
| 33 |
\verb|\fbox|es. |
| 34 |
|
| 35 |
This feature overrides the \verb|\section| and \verb|\subsection| |
| 36 |
commands. |
| 37 |
\item A lot of ideas are put on a one-note page. Yet for spaces issues, one |
| 38 |
would want to write all related in a paragraph. Thus, I created macros |
| 39 |
for inline enumeration: each \verb|\item| is marked with an \verb|\tcbox| |
| 40 |
that is as small as about two letters, which contains the \verb|\item| |
| 41 |
number. |
| 42 |
|
| 43 |
This overrides the \verb|enumerate| environment. |
| 44 |
\item A lot of different ideas from all over the course are put in the note. |
| 45 |
As such, one would sometimes want to refer to another place in a note. |
| 46 |
Unfortunately, printed paper doesn't allow one to click on hyperlinks. |
| 47 |
|
| 48 |
Therefore, I made all \verb|\label|s and \verb|\ref|s visible, and each |
| 49 |
pair has a unique number to identify it. |
| 50 |
\item My major is math-heavy. I reduced the spaces before and after |
| 51 |
displayed math a lot. |
| 52 |
\item I use conspicuous inline \verb|\tcbox|es to also mark other important |
| 53 |
things. For example, if one wants to note something, then one puts a |
| 54 |
\verb|\notebox|, which produces a yellow inline box containing |
| 55 |
\texttt{NOTE}, followed by a space. |
| 56 |
\item It may seem a good idea to also load the \texttt{geometry} package to |
| 57 |
control the margins, etc. However, I believe it violates the modular |
| 58 |
principle. My package should not do things that it's not supposed to do. |
| 59 |
|
| 60 |
Therefore, I avoided all such geometry manipulations in my package, so |
| 61 |
that a user can load such packages individually to configure what she |
| 62 |
wants. |
| 63 |
\end{enumerate} |
| 64 |
|
| 65 |
These few ideas don't take a lot lines of code to implement, but together, they |
| 66 |
enable the making of very space-efficient and reading-efficient one-page notes. |
| 67 |
|
| 68 |
\section{Usage} |
| 69 |
The class is \verb!article!-based. You use it like a normal article except: |
| 70 |
\begin{enumerate} |
| 71 |
\item I only override three sectioning commands: \verb|\section|, |
| 72 |
\verb|\subsection|, and \verb|\subsubsection|. Do not use the others. |
| 73 |
\item I only override listing environment \verb|enumerate|. Do not use the |
| 74 |
others. But I may override more in the future. |
| 75 |
\item Because of the tight space, you need to think of where you will allow |
| 76 |
additional breaks in inline math by \verb|\allowbreak|. I don't like to |
| 77 |
idea of using a global option to allow all breaks, so I leave the |
| 78 |
freedom to you. |
| 79 |
\end{enumerate} |
| 80 |
|
| 81 |
Please see the example mentioned in the next section to have a direct impression |
| 82 |
on the effect. Also see its source code to notice that you indeed write the note |
| 83 |
like using \verb|article|. |
| 84 |
|
| 85 |
\section{Example (Template)} |
| 86 |
Inside the package installation directory, you will notice an |
| 87 |
\texttt{example.tex} that contains an example one-page note. |
| 88 |
|
| 89 |
In fact, that was the note that I used for the exam I mentioned at the beginning |
| 90 |
in the Motivation. I hope that demonstrates the simplicity and the power of my |
| 91 |
package. |
| 92 |
|
| 93 |
\section{Future directions} |
| 94 |
As of version 1.0.0. All the features I want have been implemented and most of |
| 95 |
them are configurable via class options. |
| 96 |
|
| 97 |
One thing I could do in the future is to override more sectioning control |
| 98 |
sequences and listing environments. |
| 99 |
|
| 100 |
I could also add more styles of boxed, or add control sequences that allow the |
| 101 |
user to easily create them, in the future. |
| 102 |
|
| 103 |
\end{document} |