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

\RequirePackage{PrimeTeX/packages/Color}

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

\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}
		
\RequirePackage{hypcap}