How to get a slanted \sum symbol with a suitable size in XeLaTex

math-operators

I want to use a slanted \sum symbol denoting a different meaning from summation. I searched it in the TSE but didn't find a satisfactory answer: @summer gave one with a too large size and @wipet gave one in PDFLaTex only. Then how do I get a slanted \sum symbol with a suitable size in XeLaTex?

enter image description here

Best Answer

You can use TikZ as suggested in https://tex.stackexchange.com/a/326144/4427

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}

\makeatletter
\DeclareRobustCommand{\slantedsum}{\DOTSB\slantedsum@\slimits@}
\newcommand{\slantedsum@}[1]{\mathop{\mathpalette\slantedsum@@\relax}}
\newcommand{\slantedsum@@}[2]{%
  \vcenter{\hbox{%
    \tikz \node[inner sep=0pt,xslant=0.25] {$\m@th#1\sum$};%
  }}%
}
\makeatother

\begin{document}

\[
\sum\slantedsum
\]
\begin{center}
$\sum\slantedsum$ \\
\setlength{\fboxsep}{0pt}%
\fbox{$\displaystyle\sum$}%
\fbox{$\displaystyle\slantedsum$}
\end{center}

\end{document}

enter image description here

Related Question