With the preamble code below I received this error:
! Emergency stop.
<*> preamble.tex
*** (job aborted, no legal \end found)
Code: Select all
\documentclass [a4paper, 12pt]{book}
\usepackage[english] {babel}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage[section]{placeins}
\usepackage{subcaption}
\usepackage[colorlinks]{hyperref}
\pagestyle {empty}
\usepackage[labelformat=empty]{caption}
\usepackage {wrapfig}
\usepackage{microtype}
\usepackage{parskip}
\usepackage{geometry}
%\titleformat*{\section}{\fontsize{12}{14}\selectfont}
\graphicspath{ {D:/a_surf/BB/bgpage/} }\pagecolor{yellow!30}
\parindent=15pt
\raggedbottom
Code: Select all
\documentclass [openany]{book}
\setcounter{secnumdepth}{7}
\setcounter{tocdepth}{13}
\input{preamble}
\begin{document}
\begin{titlepage}
\centering
\vspace*{\fill}
{\Huge Paipo - Bellyboarding in Australasia\\}
{\large Riding prone on wood and fibreglass boards in Australia and New Zealand.\\}
\vspace*{\fill}
{\Large Bob Green\\[1in]}
\vfill
{\itshape Updated 21 March 2024. }
\vfill
{\itshape Feel free to cite this work. }
\end{titlepage}
\tableofcontents
\include{Chapter1}
\include{Chapter2}
\include{Chapter3}
\include{Chapter4}
\include{Chapter5}
\include{Chapter6}
\include{Chapter7}
\include{Chapter8}
\include{Chapter9}
\include{Chapter10}
\include{Chapter11}
\include{Chapter12}
\include{Chapter13}
\include{Chapter14}
\end{document}