This repository contains all the LaTeX source code for the lecture notes I took during my time at university. The aim is to provide a comprehensive template that you can use for your own notes or documents, especially if you're new to LaTeX.
The core of this template is built around the preamble.tex
file located in the LaTeXTemplate
folder. This folder also includes other essential files used to compile the documents:
These files contain shortcuts for mathematical symbols, custom macros, and LaTeX environments that help present information in organized boxes.
A lot of this template has been influenced by other people such as Senior Mars and Gilles Castel († 2022).
If you're new to LaTeX, this step-by-step guide will help you get started using this template for your own documents.
- LaTeX Distribution: Install a LaTeX distribution on your computer.
- Text Editor: Use any text editor or a LaTeX-specific editor.
-
Download or Clone the Repository
- Clone via Git:
git clone https://github.com/yourusername/yourrepository.git
- Download ZIP:
- Click on the green "Code" button at the top right of the repository page.
- Select "Download ZIP" and extract it to your desired location.
- Clone via Git:
-
Set Up Your Project Directory
- Create a new folder for your LaTeX project.
- Copy the
LaTeXTemplate
folder from the repository into your project directory.
-
Create Your Main LaTeX Document
- In your project directory, create a new file named
main.tex
. - This will be the main file where you write your content.
- In your project directory, create a new file named
-
Structure Your
main.tex
File-
Open
main.tex
in your text editor. -
Include the template files using the
\input{}
command. -
Your
main.tex
should look like this:% main.tex \input{LaTeXTemplate/preamble.tex} \begin{document} % Your content goes here \end{document}
-
-
Customize Your Document
- Add a title, author, and date to your document:
\title{My Lecture Notes} \author{Your Name} \date{\today}
- Include these before
\begin{document}
.
- Add a title, author, and date to your document:
-
Start Writing Content
- Begin your document with
\maketitle
and\tableofcontents
if desired:\begin{document} \maketitle \tableofcontents % Your content starts here \end{document}
- Write your notes between
\begin{document}
and\end{document}
.
- Begin your document with
-
Use Custom Commands and Environments
- Take advantage of the predefined macros and environments from the template.
- Examples:
- Math Shortcut:
Let $f(x) = x^2$. Then the derivative is $f'(x) = 2x$.
- Definition Environment:
\begin{definition} A \emph{metric space} is a set $M$ together with a function $d: M \times M \to \mathbb{R}$ satisfying certain properties. \end{definition}
- Theorem and Proof Environment:
\begin{theorem} If $f$ is continuous on $[a, b]$, then $f$ is integrable on $[a, b]$. \end{theorem} \begin{proof} The proof follows from the definition of continuity and the properties of the Riemann integral. \end{proof}
- Math Shortcut:
-
Compile Your Document
- Open a terminal or command prompt.
- Navigate to your project directory.
- Run the LaTeX compiler:
pdflatex main.tex
- This will generate a
main.pdf
file in your project directory.
Here's an example of what your main.tex
file might look like:
% main.tex
\input{LaTeXTemplate/preamble.tex}
\title{My Lecture Notes}
\author{Your Name}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
Welcome to my lecture notes. This document covers various topics discussed in class.
\section{Mathematical Concepts}
Let $f(x) = x^2$. Then the derivative is $f'(x) = 2x$.
\begin{definition}
A \emph{vector space} over a field $\mathbb{F}$ is a set $V$ together with two operations that satisfy eight axioms.
\end{definition}
\begin{theorem}
Every finite-dimensional vector space has a basis.
\end{theorem}
\begin{proof}
The proof involves constructing a basis by extending a linearly independent set.
\end{proof}
This is the end of your document.
\end{document}