Skip to content

Instantly share code, notes, and snippets.

@daniel-fahey
Last active February 9, 2024 14:56
Show Gist options
  • Save daniel-fahey/ee14ccca5dd4a9330fd3562633b89cda to your computer and use it in GitHub Desktop.
Save daniel-fahey/ee14ccca5dd4a9330fd3562633b89cda to your computer and use it in GitHub Desktop.
Barebones demo on a basic LaTeX document

Get a TeX Live bundle, e.g. on Nix:

nix-shell -p texlive.combined.scheme-basic

Or with Homebrew for macOS:

brew install --cask mactex

Then run this to compile the LaTeX file into a PDF:

pdflatex zz-01-appendix.tex

Behold as your humble text file metamorphoses into a splendid PDF, a transformation as marvelous as turning lead into gold!

NB

For LaTeX, certain characters have special meanings and need to be escaped:

  • Percent sign: %, escape as \%
  • Dollar sign: $, escape as \$
  • Curly braces: {}, escape as \{ \}
  • Underscore: _, escape as \_
  • Hash/pound sign: #, escape as \#
  • Ampersand: &, escape as \&
  • Backslash: \, escape as \\
  • Less than and greater than signs: < >, escape as \textless \textgreater
  • Caret: ^, escape as \^
  • Tilde: ~, escape as \textasciitilde or \~{}

For detailed documentation, refer to LaTeX/Special Characters on Wikibooks: LaTeX/Special Characters.

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\title{Appendix 1}
\author{Wallace \& Gromit's Cracking Enterprises Ltd.} % Use \& to include an ampersand in text
\date{\today}
\begin{document}
\maketitle
\section*{Schedule 1: Services}
\subsection*{1. Description of Services}
Wallace \& Gromit's Cracking Enterprises Ltd. shall provide a range of innovative and bespoke mechanical solutions,
tailored to the unique needs of our clients. This includes the design, construction, and maintenance of custom machinery,
inventions for household efficiency, and humane pest control services. We also offer cheese appreciation workshops and
culinary experimentation sessions, enhancing domestic life through inventive means.
\subsection*{2. Service Level Agreement}
Wallace \& Gromit's Cracking Enterprises Ltd. commits to responding to any inquiries or mechanical malfunctions within two working days.
In the event of a cheese-related emergency or urgent invention malfunction, our dedicated team will strive to provide immediate assistance.
Modifications to existing inventions or the creation of new, tailor-made mechanical solutions will be undertaken with enthusiasm and completed
within a mutually agreed timeframe, ensuring satisfaction and a touch of adventure in every project.
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment