Símbolo integral quadrado

Símbolo integral quadrado

Como posso escrever uma versão quadrada do sinal integral? Estou procurando algo que tenha a mesma altura de um sinal de integral regular e se pareça com isto:

insira a descrição da imagem aqui

Observe que este símbolo não foi encontrado pelo Detexify e não parece estar nolista abrangente de símbolos.

Responder1

Você sempre pode construir seu próprio símbolo. (Se você quiser que tais integrais também apareçam como subscritos, você precisa adicionar o código correspondente às últimas opções de \mathchoice.)

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\DeclareMathOperator*{\SquareInt}{\mathchoice{\tikz[baseline=0.55em]{%
\draw[line width=0.08em] (-0.2em,0em) 
|- (0,-0.2em) -- (0,1.9em) -| (0.2em,1.7em);}}{\tikz[baseline=0.35em]{%
\draw[line width=0.06em] (-0.2em,0em) 
|- (0,-0.2em) -- (0,1.2em) -| (0.2em,1em);}}{}{}}
\begin{document}
\[ \SquareInt\limits_a^bf(x)\,\mathrm{d}x\quad\text{vs.}\quad 
\int\limits_a^bf(x)\,\mathrm{d}x\]
$\SquareInt\limits_a^bf(x)\,\mathrm{d}x\quad\text{vs.}\quad 
\int\limits_a^bf(x)\,\mathrm{d}x$
\end{document}

insira a descrição da imagem aqui

Responder2

Você pode criar seu próprio usando \rules. Esta solução mede a altura e a profundidade da integral para garantir o tamanho exato.

insira a descrição da imagem aqui

Aqui está o código:

\documentclass{article}

\usepackage{calc} % needed to add lengths 
\usepackage{amsmath} % needed for \DeclareMathOperator

\newlength{\hght}
\newlength{\dpth}

\DeclareMathOperator{\sqrint}{\mathchoice%
{\settoheight{\hght}{$\displaystyle{\int}$}\settodepth{\dpth}{$\displaystyle{\int}$}% measures \int
    \rule[-\dpth]{.2ex}{.5ex}% lower vert
    \rule[-\dpth]{.12em}{.2ex}% lower hor
    \rule[-\dpth]{.2ex}{\hght+\dpth}% main vert
    \rule[\hght-.2ex]{.12em}{.2ex}% upper hor
    \rule[\hght-.5ex]{.2ex}{.5ex}}% upper vert
{\settoheight{\hght}{$\int$}\settodepth{\dpth}{$\int$}%
    \rule[-\dpth]{.15ex}{.4ex}%
    \rule[-\dpth]{.1em}{.15ex}%
    \rule[-\dpth]{.15ex}{\hght+\dpth}%
    \rule[\hght-.15ex]{.1em}{.15ex}%
    \rule[\hght-.4ex]{.15ex}{.4ex}}%
{\settoheight{\hght}{$\scriptstyle{\int}$}\settodepth{\dpth}{$\scriptstyle{\int}$}%
    \rule[-\dpth]{.1ex}{.3ex}%
    \rule[-\dpth]{.08em}{.1ex}%
    \rule[-\dpth]{.1ex}{\hght+\dpth}%
    \rule[\hght-.1ex]{.08em}{.1ex}%
    \rule[\hght-.3ex]{.1ex}{.3ex}}%
{}}

\begin{document}

Inline square integral: $\int_0^1\sqrint_0^1$, subscripted: $A_{\int_0^1\sqrint_0^1}$, or a displayed version:
\[
\int_0^1\sqrint_0^1
\]

\end{document}

Observe que não adicionei o código para uma versão do scriptscript. Você pode ajustar os comprimentos e espessuras conforme desejar.

informação relacionada