Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created April 25, 2026 13:35
Show Gist options
  • Select an option

  • Save hubgit/de2eb3343aac41ce13cc69c125bb82ea to your computer and use it in GitHub Desktop.

Select an option

Save hubgit/de2eb3343aac41ce13cc69c125bb82ea to your computer and use it in GitHub Desktop.
Preamble for LuaLaTeX
%!TEX program = lualatex
% Compile twice to settle the table of contents and cross-references.
\documentclass[11pt]{article}
\usepackage{fontspec} % Select OpenType/TrueType system fonts
\usepackage{microtype} % Improve spacing, protrusion, and overall typography
\usepackage[british]{babel} % Language-specific hyphenation and document strings
\usepackage{csquotes} % Context-sensitive quotation marks
\usepackage{mathtools} % Extensions and fixes for amsmath
\usepackage{amssymb} % Additional mathematical symbols
\usepackage{unicode-math} % Use OpenType Unicode math fonts
\usepackage{siunitx} % Consistent numbers, units, and scientific notation
\usepackage{booktabs} % Professional-quality table rules
\usepackage{tabularx} % Tables with automatically stretching columns
\usepackage{array} % Extended table column definitions
\usepackage{graphicx} % Include and scale images
\usepackage{xcolor} % Define and use colours
\usepackage[backend=biber,style=numeric]{biblatex} % Modern bibliography management
\addbibresource{references.bib}
\usepackage{hyperref} % Clickable links, references, and PDF metadata
\usepackage{cleveref} % Smart cross-references with object names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment