[Tex/LaTex] Using XITS with pdflatex

fonts

I'd like to use the upper integral symbol \upint. Since by default this symbol is not defined, I'd like to use the XITS font in a LaTeX document. When using the STIX font one could simply

 \usepackage{stix}

but

 \usepackage{xits}

doesn't work. I tried using unicode-math but it doesn't work with pdflatex.

/edit: I found \upint in the mathop section of this document: http://mirrors.ctan.org/macros/unicodetex/latex/unicode-math/unimath-symbols.pdf
Does it mean that I can use the \upint unicode symbol without an explicit usepackage?

Best Answer

You can use the upint option for stix:

\documentclass{article}
\usepackage[upint]{stix}

\begin{document}

With the \texttt{upint} option, the integral is not
slanted
\[
\int f(x)\,dx
\]
There are \verb|\intup| and \verb|\intsl|, but the
package documentation recommends sticking to
\verb|\int|
\[
\intsl f(x)\,dx
\]

\end{document}

enter image description here

If you just want the symbols while keeping the fonts, you can do like this:

\documentclass{article}
\usepackage{amsmath}

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

\DeclareSymbolFont{integrals}{LS2}{stixcal}{m}{n}
\DeclareMathSymbol{\intop}  {\mathop}{integrals}{"AF}
\DeclareMathSymbol{\iintop} {\mathop}{integrals}{"B0}
\DeclareMathSymbol{\iiintop}{\mathop}{integrals}{"B1}

\makeatletter
\renewcommand*{\iint}{\DOTSI\iintop\ilimits@}
\renewcommand*{\iiint}{\DOTSI\iiintop\ilimits@}
\makeatother


\begin{document}

\[
\int f(x)\,dx + \int_a^b f(x)\,dx + \iint\limits_D f(x,y)\,dx\,dy
\]

\end{document}

enter image description here