% This file is public domain. See the "Examples" chapter
% in the bib2gls user manual for a more detailed description
% of this file.

\documentclass[a4paper]{report}

\usepackage{siunitx}
\usepackage[record,% use bib2gls
 nostyles,% don't load default styles
 stylemods={mcols},% load glossary-mcols.sty and patch
 style=mcolindexgroup]{glossaries-extra}

\GlsXtrLoadResources[
  src={baseunits},
  % make @unit act like @symbol:
  entry-type-aliases={unit=symbol},
  field-aliases={
   unitname=name,
   unitsymbol=symbol,
   measurement=description
  },
  symbol-sort-fallback=name,
  selection={all},
  group={baseunits}
]

\GlsXtrLoadResources[
  src={derivedunits},
  % make @measurement act like @symbol:
  entry-type-aliases={measurement=symbol},
  field-aliases={
   unitname=name,
   unitsymbol=symbol,
   measurement=description
  },
  symbol-sort-fallback=name,
  selection={all},
  group={derivedunits}
]

\glsxtrsetgrouptitle{baseunits}{Base Units}
\glsxtrsetgrouptitle{derivedunits}{Derived Units}

\begin{document}

\printunsrtglossaries

\end{document}
