\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PrimeTeX/packages/Links}[2025-08-17]

% Use Hyperref to automatically create links in the document
\hypersetup{
	final,
	colorlinks			= true,
	pdfpagemode			= UseOutlines,
	pdfdisplaydoctitle	= true,
	bookmarksnumbered	= true,
	bookmarksopen		= true,
	bookmarksopenlevel	= 2,
}

\ifthenelse{\boolean{isElectronic}}{
	\hypersetup{
		allcolors		= link,
	}
}{
	\hypersetup{
		allcolors		= text,
		pdfduplex		= DuplexFlipLongEdge,
		pdfpagelayout	= TwoPageRight,
	}
}

\RenewDocumentCommand{\chapterautorefname}{}{Chapter}
\RenewDocumentCommand{\sectionautorefname}{}{Section}
\RenewDocumentCommand{\subsectionautorefname}{}{Subsection}
\RenewDocumentCommand{\subsubsectionautorefname}{}{Sub-subsection}
\RenewDocumentCommand{\paragraphautorefname}{}{Paragraph}