As the title states, Unicode characters do not appear in math-mode. From my understanding, the package "unicode-math" should make them appear.
My question is, why don't they appear and how I can get it working.
A minimal working example is this:
\documentclass[a4paper,12pt,DIV=15, ngerman, parskip=half]{scrartcl} % parskip=half or parskip=full
\usepackage{csquotes}
\usepackage[ngerman]{babel}
%% The AMS-Packages
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{ifluatex}
\ifluatex%
% Lua(La)TeX
\usepackage{fontspec}
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math}
\else
%default: pdf(La)TeX
\usepackage{lmodern} % load vector font
\usepackage[T1]{fontenc} % font encoding
\usepackage[utf8]{inputenc} % input encoding
\fi
\usepackage[stretch=10,shrink=10]{microtype}
\begin{document}
Latex: \(\hbar\) vs. Unicode: \(ħ\) (Unicode normal: ħ)
Latex: \(\mu\) vs. Unicode: \(µ\) (Unicode normal: µ)
\end{document}
Which leads to the following output:
As one can see, the Symbols simply do not appear, when used in Mathmode. I am using Texlive 2021 and luatex and I can not find any relevant warnings, nor errors.