$\LaTeX$LaTeXSnippets
I use the following basic structure for my $\LaTeX$ documents:
main.tex
1\documentclass[oneside,reqno]{amsart}
2
3\usepackage{./style} % Custom style file (style.sty)
4\usepackage[
5 backend=biber,
6 style=alphabetic,
7 sorting=ynt
8]{biblatex}
9\usepackage{hyperref}
10
11\addbibresource{references.bib} % BibTeX bibliography file
12
13\title{Title of the Document}
14\author{Bikram Halder}
15
16\begin{document}
17\maketitle
18\tableofcontents
19
20\section{Introduction}
21% Your content goes here.
22
23\newpage
24\nocite{} % Include entries not cited in the document
25\printbibliography
26\end{document}And here is my custom style file that I use to set up packages, formatting, and macros:
style.sty
1\usepackage[a4paper, total={6.3in, 9.4in}]{geometry}
2\usepackage[utf8]{inputenc}
3\usepackage[english]{babel}
4\usepackage{amsmath, amsthm, amssymb, amsfonts}
5\usepackage{mathrsfs}
6\usepackage{bbm}
7\usepackage{tikz}
8\usepackage{thmtools}
9\usepackage{graphicx}
10\usepackage{setspace}
11\usepackage{float}
12\usepackage{hyperref}
13\usepackage{csquotes}
14\usepackage{framed}
15\usepackage[dvipsnames]{xcolor}
16\usepackage{tcolorbox}
17\usepackage{mathtools}
18\usepackage{booktabs}
19\usepackage{physics}
20\usepackage{enumitem}
21
22% Page formatting
23\hypersetup{colorlinks = true, linkcolor = blue, urlcolor = cyan, citecolor = blue}
24\setstretch{1.2}
25\setlength\parindent{0pt}
26\allowdisplaybreaks
27
28% Macros
29\newcommand{\Q}{\ensuremath{\mathbb{Q}}} % Rational numbers
30\newcommand{\N}{\ensuremath{\mathbb{N}}} % Natural numbers
31\newcommand{\Z}{\ensuremath{\mathbb{Z}}} % Integers
32\newcommand{\R}{\ensuremath{\mathbb{R}}} % Real numbers
33\newcommand{\C}{\ensuremath{\mathbb{C}}} % Complex numbers
34\renewcommand{\Pr}{\ensuremath{\mathbb{P}}} % renewed Probability symbol to the standard one
35\newcommand{\E}{\ensuremath{\mathbb{E}}} % Expectation
36\newcommand{\Var}{\ensuremath{\mathrm{Var}}} % Variance
37\newcommand{\Cov}{\ensuremath{\mathrm{Cov}}} % Covariance
38\newcommand{\indep}{\ensuremath{\perp\!\!\!\perp}} % Independence symbol
39\newcommand{\iid}{\ensuremath{\overset{\text{iid}}{\sim}}} % i.i.d. symbol
40
41% Colors (form https://latexcolor.com)
42\definecolor{blue(ncs)}{rgb}{0.0, 0.53, 0.74}
43\definecolor{bluegray}{rgb}{0.4, 0.6, 0.8}
44\definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}
45\definecolor{brightmaroon}{rgb}{0.76, 0.13, 0.28}
46\definecolor{cerulean}{rgb}{0.0, 0.48, 0.65}
47
48% Theorem styles
49\declaretheoremstyle[name=Theorem, headfont={\sffamily\color{darkblue}}, bodyfont={\itshape}]{thmsty}
50\declaretheorem[style=thmsty,numberwithin=section]{theorem}
51
52\declaretheoremstyle[name=Proposition,]{prosty}
53\declaretheorem[style=prosty,numberlike=theorem]{proposition}
54
55\declaretheoremstyle[name=Definition, headfont={\sffamily\color{cerulean}}]{defsty}
56\declaretheorem[style=defsty,numberlike=theorem]{definition}
57
58\declaretheoremstyle[name=Lemma, bodyfont={\itshape}, headfont={\sffamily\color{darkblue}}]{prcpsty}
59\declaretheorem[style=prcpsty,numberlike=theorem]{lemma}
60
61\declaretheoremstyle[name=Remark, headfont={\sffamily\color{brightmaroon}}]{rmksty}
62\declaretheorem[style=rmksty,numberlike=theorem]{remark}
63
64\declaretheoremstyle[name=Example, headfont={\sffamily\color{bluegray}}]{egsty}
65\declaretheorem[style=egsty,numberlike=theorem]{example}For examples of various bibliography entries in BibTeX format, refer to the wonderful resource at The quick BibTeX guide: BibTeX Entry Types .