Define a new math font from a new font family besides the default cmex
, for instance, mdbch
and euex
. Refer to arevmath.sty
.
\documentclass{article}
%define a new command for \rm font of int
\DeclareSymbolFont{rmlargesymbols}{OMX}{mdbch}{m}{n}
% or \DeclareSymbolFont{rmlargesymbols}{U}{euex}{m}{n}
\DeclareMathSymbol{\rmintop}{\mathop}{rmlargesymbols}{82}
\newcommand{\rmint}{\rmintop\nolimits}
\begin{document}
$\rmint_a^b$
\[\rmint_a^b \]
\end{document}
EDIT 2
Seems like I found a better alternative for the math font to fit the main font (something I didn't know was available).
I followed this procedure from another question in this forum (works if you're on a Mac or Linux I guess). This made available a Garamond
math font via the \usepackage[urw-garamond]{mathdesign}
. This way, even if the Garamond employed is not exactly the same as AGPPro, the math fits in beautifully.
\documentclass{book}
\usepackage[urw-garamond]{mathdesign}
\usepackage[francais]{babel}
\usepackage[no-math]{fontspec}
\usepackage{mathrsfs,amsmath}
\setmainfont[Ligatures=TeX]{Garamond Premier Pro}
\begin{document}
Imho, MnSymbol integral symbols look like simple hooks.
\[
\mathscr J = \int_0^\pi{\ddot q(t)}\,\mathrm dt
\]
\[
\iint_0^{\sqrt \pi}{5}\,\mathrm dt
\]
\textsc{Petites Capitales}
\textit{\textsc{Petites Capitales Italiques}}
Quad
ffi ffl fft
\end{document}
NOTE Be careful to load the URW-Garamond before the fontspec
package and the \setmainfont
command if you wish to keep AGPPro's features (Swashes, Small Italic Caps and stuff).
Another alternative consists in loading the mathpazo package : \usepackage{mathpazo}
, it uses a font similar to the one used by MnSymbol
but with different integral symbols. In fact it uses the Palatino font. What's more, one can define whatever main font desired without interference (when compiled with XeLaTeX).
\documentclass{book}
\usepackage[francais]{babel}
\usepackage[no-math]{fontspec}
\usepackage{mathrsfs,amsmath}
\usepackage{mathpazo}
\setmainfont[Ligatures=TeX]{Garamond Premier Pro}
\begin{document}
Imho, MnSymbol integral symbols look like simple hooks.
\[
\mathscr J = \int_0^\pi{\ddot q(t)}\,\mathrm dt
\]
\[
\iint_0^{\sqrt \pi}{5}\,\mathrm dt
\]
\textsc{Petites Capitales}
\textit{\textsc{Petites Capitales Italiques}}
Quad
\end{document}
EDIT
This is just an alternative because the mathpazo
loads the Palatino font math operators, which are not exactly the same as the MnSymbol ones...
Best Answer
The German one can be produced with the
wasysym
package. More precisely, if loaded without arguments, then the package provides a\varint
command for the upright integral. If loaded with theintegrals
option, it overrides the normal\int
command.The integrals from
mathabx
(it redefines\int
) are beckwards slanted when used in inline style and upright when in display style.(Generally if you look for a symbol, detexify and the comprehensive symbol list are of invaluable help.)