Skip to content

Instantly share code, notes, and snippets.

@Trivoz
Created March 28, 2023 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trivoz/3f2b4c6cc91795bc818d9f6250e959d1 to your computer and use it in GitHub Desktop.
Save Trivoz/3f2b4c6cc91795bc818d9f6250e959d1 to your computer and use it in GitHub Desktop.
Template
\documentclass[a4paper,14pt,oneside,openany]{memoir}
\usepackage[left=30mm, right=15mm, top=20mm, bottom=20mm]{geometry}
\pagestyle{plain}
\parindent=1.25cm
\usepackage{indentfirst}
\usepackage[english]{babel}
\setsecnumdepth{subsection}
\renewcommand*{\chapterheadstart}{}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapnumfont}{\normalfont\bfseries}
\renewcommand*{\afterchapternum}{\hspace{1em}}
\renewcommand*{\printchaptertitle}{\normalfont\bfseries\centering\MakeUppercase}
\setbeforesecskip{20pt}
\setaftersecskip{20pt}
\setsecheadstyle{\raggedright\normalfont\bfseries}
\setbeforesubsecskip{20pt}
\setaftersubsecskip{20pt}
\setsubsecheadstyle{\raggedright\normalfont\bfseries}
\setrmarg{2.55em plus1fil}
\renewcommand{\aftertoctitle}{\afterchaptertitle \vspace{-\cftbeforechapterskip}}
\renewcommand*{\cftchapternumwidth}{1.5em}
\renewcommand*{\cftchapterfont}{\normalfont\MakeUppercase}
\renewcommand*{\cftchapterpagefont}{\normalfont}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}
\renewcommand*{\cftdotsep}{1}
\renewcommand*{\cftchapterleader}{\cftdotfill{\cftchapterdotsep}}
\maxtocdepth{subsection}
\tolerance 1414
\hbadness 1414
\emergencystretch 1.5em
\hfuzz 0.3pt
\vfuzz \hfuzz
\usepackage{graphicx, caption, subcaption}
\graphicspath{{images/}}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linktoc=all,
linktocpage=false,
linkcolor=black,
citecolor=black
}
\usepackage{longtable,ltcaption}
\usepackage{booktabs}
\usepackage{amsmath}
\title{Notes}
\author{Joshua Rose}
\begin{document}
\pagenumbering{roman}
\maketitle
\newpage
\setcounter{page}{0}
\OnehalfSpacing*
\tableofcontents*
\newpage
\section{Section I}
\newpage
\section{Section II}
\newpage
\section{Section III}
\newpage
\section{Section IV}
\newpage
\section{Section V}
\newpage
\section{Section VI}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment