I'm have a defined a couple of math delimiters via \DeclarePairedDelimiter
, however, they seem to create some problems with respect to the spacing with some fonts. For example the following codes yields an overlap between the P and the left bracket.
Is there a way to fix the definition of \DeclarePairedDelimiter
such that I can use it right away in all my documents?
% !TeX TS-program = lualatex
\documentclass{article}
\usepackage{mathtools,unicode-math,xparse}
\unimathsetup{math-style=ISO,bold-style=ISO,sans-style=italic}
\setmathfont{XITS Math}
\DeclarePairedDelimiter\parens{\lparen}{\rparen}
\newcommand{\powerset}[1]{\mathcal{P}\parens*{#1}}
\newcommand{\powersetlr}[1]{\mathcal{P}\left(#1\right)}
\begin{document}
\begin{align}
\powerset{XX}\\
\powersetlr{XX}
\end{align}
\end{document}
XITS Math
font family. I suggest you switch to the Stix Two Math font (available online here). No such kerning problems with the Stix Two text and math fonts...