title: Preamble Example 1 tags: latex ```latex \documentclass{book} \usepackage{biblatex} \addbibresource{lir.bib} \usepackage{graphicx} \usepackage{pdfpages} \usepackage{enumitem} % so we can resume a list \usepackage{listings} \lstset{ basicstyle=\small\ttfamily, xleftmargin=24pt } \usepackage{amsmath} \usepackage{amssymb} %\hypersetup{ % colorlinks, % citecolor=black, % filecolor=black, % linkcolor=black, % urlcolor=black %} \usepackage{fontspec} \setmainfont{LiberationSerif}[ Extension = .otf, UprightFont = *-Regular, BoldFont = *-Bold, ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic ] \setmonofont{LiberationMono}[ Extension = .otf, UprightFont = *, BoldFont = *-Bold, ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic ] \title{What A Pile Of Bobbins} \author{John D. Allsup} \date{Zeroth Draft, \today} \newcommand{\commandment}[1]{\emph{#1}} \newcommand{\expletive}{\texttt{}} \newcommand{\BibleVerseNumber}[1]{\textsuperscript{#1}} \newcommand{\BibleRef}[1]{\hbox{#1}} \newcommand{\Attrib}[1]{\hbox{--- \textit{#1}}} \newcommand{\BibleAttrib}[1]{\hbox{--- #1}} \newcommand{\z}{\hfil\break} %\newcommand{\strong}[1]{\textbf{#1}} \newcommand{\etc}{\textit{etc.}} \newcommand{\etal}{\textit{et al.}} \newcommand{\eg}{\textit{e.g.}} \newcommand{\ie}{\textit{i.e.}} \newcommand{\ordinal}[1]{\textsuperscript{#1}} \newcommand{\nth}{\ordinal{th}} \newcommand{\nd}{\ordinal{nd}} \newcommand{\st}{\ordinal{st}} \newcommand{\daj}{Duty And Joy} \newcommand{\hhref}[1]{\href{#1}{#1}} \newcommand{\phd}{Ph{.}D{.}} \newcommand{\mphil}{M{.}Phil{.}} \usepackage{ntheorem} \newtheorem{defn}{Definition} %\usepackage{hyperref} %\hypersetup{colorlinks} \def\href#1#2{\texttt{#1}} \begin{document} ... \end{document} ```