\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{PrimeTeX/Manual}[2025-07-09]

\RequirePackage{ifthen}

\newboolean{isDarkMode}
\setboolean{isDarkMode}{false}

\DeclareOption{darkmode}{
	\setboolean{isDarkMode}{true}
}

\DeclareOption{showoverfull}{
	\overfullrule = 1in
}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}

\ProcessOptions\relax

\LoadClass{book}

\ifthenelse{\boolean{isDarkMode}}{
	\RequirePackage[darkmode]{PrimeTeX/Color}
}{
	\RequirePackage{PrimeTeX/Color}
}

\RequirePackage{PrimeTeX/CrossRef}

\RequirePackage{PrimeTeX/DocProperties}

\RequirePackage{PrimeTeX/Fonts}

\RequirePackage{PrimeTeX/Glossary}

\RequirePackage{PrimeTeX/Graphics}

\RequirePackage{PrimeTeX/Hyphenation}

\RequirePackage{PrimeTeX/Index}

\RequirePackage{PrimeTeX/Layout}

\RequirePackage{PrimeTeX/Links}

\RequirePackage{PrimeTeX/MarginNotes}

\RequirePackage{PrimeTeX/Tables}

\RequirePackage{PrimeTeX/TitlePage}

\RequirePackage{PrimeTeX/Titles}