Is there a way to do quadruple integrals, arbitrary-length integrals, and integrals with an ellipsis as closed-manifold integrals in LaTeX? If someone could define some macros, that would be great. This question How to insert a triple line integral? goes over triple integrals and this link https://www.overleaf.com/learn/latex/Integrals%2C_sums_and_limits goes over the topic for "regular" (non-closed-manifold) integrals.
EDIT: This is a partial answer but 1) the manifold of integration is set in the preamble and 2) the ellipses are not centered on the integral symbols
\documentclass{article}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{txfonts}
\usepackage{tikz}
\usetikzlibrary{math}
\usetikzlibrary{shapes}
\makeatletter
\ams@newcommand{\iiiiint}{\DOTSI\protect\MultiIntegral{5}}
\renewcommand{\MultiIntegral}[1]{%
\edef\ints@c{\noexpand\intop
\ifnum#1=\z@\noexpand\intdots@\else\noexpand\intkern@\fi
\ifnum#1>\tw@\noexpand\intop\noexpand\intkern@\fi
\ifnum#1>\thr@@\noexpand\intop\noexpand\intkern@\fi
\ifnum#1>4 \noexpand\intop\noexpand\intkern@\fi % <---- added
\noexpand\intop
\noexpand\ilimits@
}%
\futurelet@let@token\ints@a
}
\makeatother
\newcommand*\oiiiint{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-9pt] {$\displaystyle\iiiint$};%
}
\newcommand*\oiiiintM{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-13pt] {$\displaystyle\iiiint\limits_M$};%
}
\newcommand*\oiiiiint{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-9pt] {$\displaystyle\iiiiint$};%
}
\newcommand*\oiiiiintM{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-13pt] {$\displaystyle\iiiiint\limits_M$};%
}
\newcommand*\oidotsint{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-9pt] {$\displaystyle\idotsint$};%
}
\newcommand*\oidotsintM{%
\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-12pt] {$\displaystyle\idotsint\limits_M$};%
}
\begin{document}
\noindent $\displaystyle \oint\limits_C \omega$ \ $\displaystyle \oiint\limits_S \eta$ \ $\displaystyle \oiiint\limits_M \theta$ \ \indexspace $\oiiiint _M \alpha$ \ \indexspace $\oiiiintM \alpha$ \ \indexspace $\oiiiiint _M \beta$ \ \indexspace $\oiiiiintM \beta$ \ \indexspace $\oidotsint _M \gamma$ \ \indexspace $\oidotsintM \gamma$ \ \indexspace Can this be done with $\ignorespaces $\backslash$oiiiint_M $\backslash$xi$, $\ignorespaces $\backslash$oint[n]_M $\backslash$phi$, and $\ignorespaces $\backslash$oidotsint_M $\backslash$lambda$?
\end{document}





tikz, but that's not my specialty. – barbara beeton Nov 18 '21 at 02:07