\usepackage{imakeidx}
\makeindex

\usepackage{needspace}

\usepackage[english]{babel}
%\usepackage[
%	backend=biber,
%	urldate=long,
%	date=long,
%]{biblatex}
%\addbibresource{non-decimal-units.bib}

\usepackage{enumitem}
\usepackage[
	hidelinks,
]{hyperref}

\usepackage{tcolorbox}
\tcbuselibrary{documentation}
\tcbuselibrary{minted}
\tcbuselibrary{breakable}

\definecolor{DarkDefinition}{rgb}{0.392,0.392,0.942}

\tcbset{
	listing engine=minted,
	color definition=DarkDefinition,
	floatplacement=h,
	index colorize=true,
	doc head={
		interior style={
			fill,
			color=blue!10,
		},
		boxsep=2pt,
		after skip=0pt,
		nobeforeafter,
	},
	doc raster={
		raster after skip=0pt,
	},
	before doc body={
		\begin{tcolorbox}[
			colback=blue!5,
			colframe=blue!5,
			arc=0pt,
			outer arc=0pt,
			before skip=0pt,
			nobeforeafter,
		]
	},
	after doc body={\end{tcolorbox}},
}

\newcommand\nduDocBrack[1]{\brackets{\texttt{#1}}}

\AtBeginEnvironment{tcb@manual@entry}{%
	\needspace{4\baselineskip}%
}

\newtcbinputlisting{\unitlisting}[2]{%
	listing file = {../latex/non-decimal-units.#1.tex},
	title = Listing of units loaded with the \docAuxKey{#1} option,
	listing only,
	breakable,
	minted options={fontsize=\small},
	docexample,
}

\setlist[description]{
	leftmargin=5em,
	rightmargin=\leftmargin,
	itemindent=\labelwidth,
	align=right,
	font=\docAuxKey,
	noitemsep,
}

\usepackage{csquotes}

\usepackage{fnpct}

\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\usepackage{cleveref}

\RequirePackage[autolanguage]{numprint}

\RequirePackage{fontspec}
\newfontfamily\mufifont{Palemonas MUFI}

\RequirePackage[
	MUFI,
	fonts={
		MUFI=\mufifont,
	},
]{unicode-alphabets}

\usepackage[
	british,
	danish,
]{non-decimal-units}
