[Tex/LaTex] Import font, straight integral symbol

fontsintegralmath-fontsmath-operatorssymbols

I tried a lot (2 days) and try to find a way to extend a answer

Using XITS with pdflatex

but I am unable to understand the method here. How do I extend above answer
to include vertical closed integrals like '\oint'

I have been using straight vertical integral symbols so far and now I need closed integral. How do I do that

enter image description here

Best Answer

Based on the linked answer you gave yourself, I suppose this is what you’re looking for.

\documentclass{article}
\usepackage{amsmath}

\DeclareFontEncoding{LS2}{}{\noaccents@}
\DeclareFontSubstitution{LS2}{stix}{m}{n}

\DeclareSymbolFont{integrals}{LS2}{stixcal}{m}{n}
\DeclareMathSymbol{\ointupop}{\mathop}{integrals}{"B2}

\makeatletter
\renewcommand*{\oint}{\DOTSI\ointupop\ilimits@}
\makeatother


\begin{document}
\[
  \oint
\]
\end{document}

You can find the definitions of the character code point (e.g., B2 for \oint) in tex/latex/stix/stix.sty in your LaTeX distribution.