Skip to content

Instantly share code, notes, and snippets.

@russelldavies
Created January 13, 2026 17:19
Show Gist options
  • Select an option

  • Save russelldavies/15c66e4aa4d7ef7d3299f7428228b324 to your computer and use it in GitHub Desktop.

Select an option

Save russelldavies/15c66e4aa4d7ef7d3299f7428228b324 to your computer and use it in GitHub Desktop.
LaTeX article template
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kpfonts} % KP Serif font
%\usepackage{lmodern} % Latin Modern
%\usepackage{antiqua} % Antiqua serif font
%\usepackage{pandora} % Pandora serif font
%\usepackage[default]{comfortaa} % Confortaa sans-serif font
%\usepackage{libertine}
%\renewcommand*\oldstylenums[1]{{\fontfamily{fxlj}\selectfont #1}}
%%% Page Dimensions
\usepackage{geometry} % to change the page dimensions
%\geometry{a4paper} % or letterpaper (US) or a5paper or....
%\geometry{hmargin=2cm,vmargin=2cm} % change the margins to 2cm all round
%\geometry{landscape} % set up the page for landscape
%\usepackage[parfill]{parskip} % Begin paragraphs with an empty line rather than an indent
%%% Math Packages
%\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
%%% Formatting Packages
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
\usepackage{float}
\usepackage{datetime} % International date format
\renewcommand{\dateseparator}{-}
\newcommand{\todayiso}{\the\year \dateseparator \twodigit\month \dateseparator \twodigit\day}
\usepackage{xcolor}
\usepackage{graphicx}
%%% Metadata
\usepackage{titling} % Allow \thetitle, \theauthor, \thedate use anywhere
\title{Title}
\author{Russell Davies}
%\date{}
\usepackage[colorlinks=false, pdfusetitle]{hyperref}
%\hypersetup{
% %pdftitle={My title}, % title
% %pdfauthor={Author}, % author
% pdfsubject={Subject}, % subject of the document
% pdfcreator={Creator}, % creator of the document
% pdfproducer={Producer}, % producer of the document
% pdfkeywords={keyword1} {key2} {key3}, % list of keywords
%}
%%% End Preamble %%%
\begin{document}
\maketitle
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment