我尝试排版条形上/下积分符号
\overline\int,\underline\int
但是这条线看起来太长了,有什么解决办法吗?
答案1
这应该可以(不是脚本样式)
\documentclass{article}
\makeatletter
\newcommand\tint{\mathop{\mathpalette\tb@int{t}}\!\int}
\newcommand\bint{\mathop{\mathpalette\tb@int{b}}\!\int}
\newcommand\tb@int[2]{%
\sbox\z@{$\m@th#1\int$}%
\if#2t%
\rlap{\hbox to\wd\z@{%
\hfil
\vrule width .35em height \dimexpr\ht\z@+1.4pt\relax depth -\dimexpr\ht\z@+1pt\relax
\kern.05em % a small correction on the top
}}
\else
\rlap{\hbox to\wd\z@{%
\vrule width .35em height -\dimexpr\dp\z@+1pt\relax depth \dimexpr\dp\z@+1.4pt\relax
\hfil
}}
\fi
}
\makeatother
\begin{document}
\[
\tint_a^b f(t)\,dt=\bint_a^b f(t)\,dt
\textstyle
\tint_a^b f(t)\,dt=\bint_a^b f(t)\,dt
\]
\end{document}
答案2
答案3
\documentclass[a4paper]{paper}
\usepackage{STIX}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\[ \upint\limits_{a}^{b} f(x) \ \text{d}x \ \ \ \lowint\limits_{a}^{b} f(x) \ \text{d}x \]
\end{document}
答案4
要输入上达布积分和下达布积分,可以使用
\[\overline{\int_{a}^{b}}f dx = \underline{\int_{a}^{b}} f dx\]