更改声明运算符中限制的位置

更改声明运算符中限制的位置

concrete在我的一个文档中使用了耳机。在这样做时,我需要将表面积分映射到封闭表面上。不幸的是,我发现该esint包会更改数学运算符的字体。因此,我有了“绘制”自己的运算符的想法\oiint。但是,我在将该运算符极限的签名位置与已经存在的积分运算符进行匹配时遇到了问题(见下图)。

在此处输入图片描述

谁能告诉我如何消除这种位移?

当然,理想情况下,我想知道如何根据加载的包更改文档中定义的运算符的内容。例如,\oiint如果加载了包,则运算符按照一种算法工作concrete,否则从包中获取实现esint

\documentclass[12pt]{article}

\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}
    
\usepackage{concrete}
\usepackage{mathtools}
\usepackage{esvect}
\usepackage{tikz}


\def\oiint{\operatornamewithlimits{%
        \mathchoice{\vcenter{\hbox{\begin{tikzpicture}%
                        \node (center) at (0,0) {$\displaystyle %
                        \kern0.25pt%
                        \int%
                        \kern-4.2pt%
                        \int$};%
                        \draw[line width=0.025cm] circle [radius = 0.2 cm];%
                        \end{tikzpicture}}}}%
        {\vcenter{\hbox{\begin{tikzpicture}%
                        \node (center) at (0,0) {$\kern0.3pt%
                            \int%
                            \kern-4.75pt%
                            \int$};%
                        \draw[line width=0.02cm] ellipse (0.175 cm and 0.1 cm);%
                        \end{tikzpicture}}}}%
        {\text{A}}%
        {\text{A}}}}


\begin{document}

$$\oiint\limits_{\Gamma}{\vv{A} \,d \vv{S}}%
\quad %
\iint\limits_{\Gamma}{\vv{A} \,d \vv{S}}$$

$$\oiint\limits_{\partial V}{\vv{F} \, d\vv{S}} = \iiint\limits_{V}{\mathrm{div}{\vv{F}} \, dV}$$

\end{document}

答案1

添加[inner sep=0pt]到第一个tikzpicture

\documentclass[12pt]{article}

\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}
    
\usepackage{concrete}
\usepackage{mathtools}
\usepackage{esvect}
\usepackage{tikz}


\def\oiint{\operatornamewithlimits{%
        \mathchoice{\vcenter{\hbox{\begin{tikzpicture}[inner sep=0pt]%
                        \node (center) at (0,0) {$\displaystyle %
                        \kern0.25pt%
                        \int%
                        \kern-4.2pt%
                        \int$};%
                        \draw[line width=0.025cm] circle [radius = 0.2 cm];%
                        \end{tikzpicture}}}}%
        {\vcenter{\hbox{\begin{tikzpicture}%
                        \node (center) at (0,0) {$\kern0.3pt%
                            \int%
                            \kern-4.75pt%
                            \int$};%
                        \draw[line width=0.02cm] ellipse (0.175 cm and 0.1 cm);%
                        \end{tikzpicture}}}}%
        {\text{A}}%
        {\text{A}}}}


\begin{document}

$$\oiint\limits_{\Gamma}{\vv{A} \,d \vv{S}}%
\quad %
\iint\limits_{\Gamma}{\vv{A} \,d \vv{S}}$$

$$\oiint\limits_{\partial V}{\vv{F} \, d\vv{S}} = \iiint\limits_{V}{\mathrm{div}{\vv{F}} \, dV}$$

\end{document}

在此处输入图片描述

相关内容