阶段 3 · 数学排版 21 / 48 ≈ 11 分钟读完

LaTeX 积分写法:上下限位置、多重积分与围道积分

把积分当成一个被排版的对象来拆:用哪个记号、上下限落在哪里、微分怎么对齐、求值竖线怎么挂上去,以及从行内换到行间时到底哪一项会变。

    积分号从来不会自己把上下限叠起来

    头一次都会在这里卡住:\int_a^b f(x)\,\mathrm{d}x 把 a 和 b 放在积分号的两侧,行内如此,独占一行也如此,而且这恰恰是正确的排版。TeX 把算子分成两种声明:大算子——\sum、\prod、\bigcup——被声明为把极限写在正上方与正下方,而这只在 display 样式下真的发生;积分一族是反过来的声明,所以两种样式里上下限都留在侧面。格式文件里就是这么白纸黑字定义的,理由在字形本身:积分号本来就大幅伸出数学轴的上下,再往上堆上下限占不到便宜,只会把行高顶开。

    想改可以在每一次出现处下命令:\int\limits_a^b 让上下限叠起来,\int\nolimits_a^b 让它们贴侧(后者本来就是默认值)。\limits 是一个后贴在算子上的开关,只挪位置——不改尺寸,也不影响同一行的下一个算子。要不要叠属于版式约定而非对错:多数数学出版物把积分上下限留在侧面,把堆叠留给求和号。能明显说 \int\limits 用对了的只有两处——一个必须当成整块来读的多行条件,以及一套本来就把所有东西都叠起来的丛书或期刊。

    在 aligned 块里会撞上一个连带后果:一个 display 尺寸的堆叠上下限会把整行撑高,于是四行推导里只要写了一处 \int\limits,其余每一行都跟着一起动。先确认这一行是不是真的更好读了,还是你只不过为一点旧习惯付了行距。

    \int_a^b f(x)\,\mathrm{d}x
    \int_a^b f(x)\,\mathrm{d}x
    \int\limits_a^b f(x)\,\mathrm{d}x \qquad \int\nolimits_a^b f(x)\,\mathrm{d}x
    \int\limits_a^b f(x)\,\mathrm{d}x \qquad \int\nolimits_a^b f(x)\,\mathrm{d}x
    Where the limits of an integral land: side-set in text style, still side-set in display style, stacked only with \limits Row 1 and 2 are the same source. Only the style changed. inline — $ … $ inside a sentence ∫ a b f(x) dx the band is the line height the paragraph allows; limits sit at the side, hugging the glyph \int_a^b f(x)\,dx display — \[ … \] gets its own line ∫ a b f(x) dx taller glyph, still side-set: \int is a variable-symbol operator, so TeX never stacks it on its own — unlike \sum \[ \int_a^b f(x)\,dx \] \int\limits_a^b — stacked, and usually a mistake in a display ∫ a b f(x)\,dx pushes the whole line taller and puts a gap between the operator and its integrand. Legitimate use: a two-line condition under \iint. Decide by content, not by taste Leave them at the side when the bounds are short: a, b, 0, 1, ∞ \int_0^{\infty} e^{-x}dx the formula is inline and must not open the paragraph it is an ordinary integral, not a sum Stack them only when the lower bound is a condition that readers must parse as a block \idotsint\limits_{\substack{0<t<T \\ x\in\Omega}} you are imitating a paper that does it — journal style guides differ, and both are accepted, so stay consistent inside a document \limits binds to the operator, not to the line
    同一份源码:行文样式、行间样式,以及补上 \limits 之后的样子——唯一的区别就是上下限落在哪里。

    上下限:单记号规则,以及无穷这一种情形

    上下限就是普通的下标和上标,所以单记号规则照样适用。\int_a^b、\int_0^1、\int_{-\infty}^{\infty} 都没问题,因为界限要么只有一个记号,要么已经括起来了。会出事的是复合界限。\int_{n+1}^{2n} 是对的;\int_n+1^{2n} 一声不响地编译过去,印出来是一个下标 n、一个正常高度的 +1,还有一个挂错了对象的上标。它能逃过校对,恰恰因为什么都没少——只是内容排在了错误的高度上。

    无穷做界限不需要特殊照顾:\int_{0}^{\infty}、\int_{-\infty}^{\infty}、\int_{a}^{+\infty} 统统只是符号。需要留心的是别用记号去掩盖记号所声称的东西。\int_{0}^{\infty} 是一个反常积分,本质上是 \int_{0}^{R} 随 R 增大时的极限;如果取极限这个动作正是论证的要点,就把极限明写出来,别藏进一个界限里。下界是奇点时同理:\int_{\varepsilon}^{1} 再在后面跟一个 \lim_{\varepsilon \to 0^{+}},说的是一件 \int_{0}^{1} 没说的事。

    上界坐在积分号尾巴的顶端,下界坐在底端,两个都不在竖直居中的位置;这种不对称来自字形而不是 bug,也正是 \int\limits 配一条很长的下界时,看惯了 \sum 的读者会觉得歪的原因。

    \int_{-\infty}^{\infty} e^{-x^{2}}\,\mathrm{d}x = \sqrt{\pi} \qquad \int_{0}^{\infty} \frac{\mathrm{d}x}{1+x^{2}} = \frac{\pi}{2}
    \int_{-\infty}^{\infty} e^{-x^{2}}\,\mathrm{d}x = \sqrt{\pi} \qquad \int_{0}^{\infty} \frac{\mathrm{d}x}{1+x^{2}} = \frac{\pi}{2}
    \int_{0}^{\infty} \frac{x^{s-1}}{e^{x}-1}\,\mathrm{d}x = \Gamma(s)\,\zeta(s)
    \int_{0}^{\infty} \frac{x^{s-1}}{e^{x}-1}\,\mathrm{d}x = \Gamma(s)\,\zeta(s)

    重积分与迭代积分

    用专门的记号:\iint、\iiint、\iiiint 是 amsmath 里重数分别为二、三、四的积分,闭曲面形式 \oiint 与 \oiiint 则来自额外宏包(esint、wasysym)。别用 \int\!\!\int 自己手搭:字距只是凑出来的,两个积分号跟数学轴之间没有共同关系,而且你挂上去的界限会落在离它最近的那个积分号上,而不是落在这一对上。

    重积分与迭代积分是两个不同的对象,看上去也该不一样。\iint_{D} f\,\mathrm{d}x\,\mathrm{d}y 说的是:在区域 D 上积分。\int_{0}^{1}\int_{0}^{x} f(y)\,\mathrm{d}y\,\mathrm{d}x 说的是:次序有意义,这里是两次一维积分。交换积分次序时,界限和微分要同时对调——这是多元微积分一章里最常见的代数疏漏。把微分按你重写界限的相反顺序从后往前排,读者就能替你核对。

    面积元用 \mathrm{d}A(曲面则用 \mathrm{d}\sigma、\mathrm{d}S),在坐标次序不是重点时能让被积函数保持简短。而内层积分的界限本身是个公式时——\int_{g_1(x)}^{g_2(x)}——花括号是强制的,且 g 上的下标处在本就已是 scriptstyle 的界限里面,所以这些名字请保持单个字母。

    \iint_{D} f\,\mathrm{d}x\,\mathrm{d}y \qquad \iiint_{V} \rho\,\mathrm{d}V
    \iint_{D} f\,\mathrm{d}x\,\mathrm{d}y \qquad \iiint_{V} \rho\,\mathrm{d}V
    \int_{0}^{1} \int_{0}^{x} f(y)\,\mathrm{d}y\,\mathrm{d}x = \int_{0}^{1} (1-y) f(y)\,\mathrm{d}y
    \int_{0}^{1} \int_{0}^{x} f(y)\,\mathrm{d}y\,\mathrm{d}x = \int_{0}^{1} (1-y) f(y)\,\mathrm{d}y

    围道、曲面与闭合路径上的积分

    积分号上那个圈是带含义的:\oint 是沿闭曲线积分,\oiint 是沿闭曲面,\oiiint 是沿闭区域。路径不闭合就老老实实写 \int_{\gamma}——把环形记号用在一段开弧上是记号错误,不是字体口味。反过来,当闭合本身就是要害时,\oint 一眼比 \int_{C} 说得清楚,这就是复变分析里到处是它的原因。

    方向一般编码在正文或路径名里,而不是塞进字形(\oint_{\partial \Omega},另处声明一次 \partial\Omega 取正向)。确实要把方向放进符号时,宏包给了 \ointctrclockwise 与 \ointclockwise(esint),或者用带 \vec 标注的路径箭头;多数作者用一句 \text{…} 说明更省事。

    区域上的平均值——通量平均、PDE 估计里的均值——用 esint 包的 \fint 或 \dashint,这是那种一改就少写一大截的改进;手搭的 \frac{1}{\lvert B_r \rvert}\int 没错,只是会把注意力从被积函数挪到前面的系数上。

    一个实用性提醒:\iiiint、\oiint、\dashint 在 LaTeX 之外支持并不普遍。二重与三重形式还有 \oint,在 KaTeX、MathJax、pdfLaTeX 里都能渲染;四重积分和带横线的积分号是 LaTeX 加宏包专属,换到网页渲染器上就退化成文字。

    \oint_{\partial \Omega} P\,\mathrm{d}x + Q\,\mathrm{d}y = \iint_{\Omega} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) \mathrm{d}x\,\mathrm{d}y
    \oint_{\partial \Omega} P\,\mathrm{d}x + Q\,\mathrm{d}y = \iint_{\Omega} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) \mathrm{d}x\,\mathrm{d}y
    \operatorname{p.v.} \int_{-\infty}^{\infty} \frac{e^{ix}}{x}\,\mathrm{d}x = i\pi
    \operatorname{p.v.} \int_{-\infty}^{\infty} \frac{e^{ix}}{x}\,\mathrm{d}x = i\pi

    求值竖线,以及它需要的隐形搭档

    微积分基本定理那套简写——一条竖线,上下界挂在它的脚和头——没有专门的字形,所以它是由一对自动缩放的定界符搭出来的,其中一侧被静音:\left. F(x) \right\rvert_{a}^{b}。\left. 是一条真命令,不是缩写:\left 与 \right 必须在同一个数学列表里成对出现,而那个句点就是零宽定界符的名字。省掉它 TeX 不会替你猜——它要么报缺 \right.,要么不声不响地把尺寸算错了对象。

    两种手动替代写法,在紧凑的 display 里都更好:方括号本身就是记号的一部分时用 \Bigl[ F(x) \Bigr]_{a}^{b};想要自己定的尺寸、而不是让盒子量出来时用 \bigl. \dots \bigr\rvert。在 aligned 推导里,手动阶梯是唯一能跨行保持一致的选项,因为 \left 对每一行单独测量,竖线就不会对齐。

    这套写法出现不止几次,就在导言区做成命令:\newcommand{\eval}[2]{\left.#1\right\vert_{#2}}。给两个参数通常比给一个对,因为 x = 0 这样的取值点要按下标来排,而每次手写正是「一半的地方把 = 写丢了」的来源。

    \left. \frac{x^{2}}{2} \right|_{0}^{1} = \frac{1}{2} \qquad \Bigl[ F(x) \Bigr]_{a}^{b}
    \left. \frac{x^{2}}{2} \right|_{0}^{1} = \frac{1}{2} \qquad \Bigl[ F(x) \Bigr]_{a}^{b}
    同样的手法能在任何地方造出单侧定界符:用 \left. 或 \right. 当搭档,绝不能只留一半。
    Anatomy of a typeset integral: sign, side slots for bounds, integrand, thin space and the roman differential, plus the evaluation bar built with \left. Every slot of one integral, and the space that separates the integrand from d ∬ f(x, y)   d x dy 2π 0 upper slot: superscript position, scriptstyle, no braces needed for one token lower slot: subscript position — this is where the domain D goes the thin space before d is \,, not a typed blank \iint_{D} f(x,y)\,\mathrm{d}x\,\mathrm{d}y The evaluation bar, which is one trick, not one glyph [ F(x) ] 0 1 | x=0 both forms need a real delimiter on the quiet side: \left. F(x) \right|_{x=0}^{x=1} \left. is an invisible mate — you cannot open a \left group with nothing on the other side Differentials: three ways, only two are right Roman d, spaced \int f(x)\,\mathrm{d}x ISO 80000-2 asks for an upright d, and the \, keeps the d from gluing to the integrand. Define it once for the whole document: \newcommand{\dd}{\mathop{}\!\mathrm{d}} Italic dx reads as a product \int f(x) dx d times x — and it is the spacing TeX gives a binary minus in 2-x that makes it look wrong. × avoid in published maths Repeated integrals: pick the glyph \iint \iiint \oint \oiint \int\!\!\int is a hand-made fake: the signs collide and the bounds land on the wrong one.
    一个积分的各条槽位——积分号、贴侧上下限、细空格、正体微分——以及让求值竖线成为可能的那个隐形 \left.。

    微分:正体还是斜体,前面留多宽

    \int f(x) dx 错了两遍。d 是斜体,于是读者把它解析成一个乘了 x 的变量;而你敲下的那个空格并不存在,于是 d 和 x 被粘在一起。标准做法是一个细空格加一个直立体字母:\int f(x)\,\mathrm{d}x。ISO 80000-2 要求直立的 d,多数分析教材保留斜体那一个,两种立场都说得通——说不过去的是同一篇文档里混着用,那读起来像是没改过的复制粘贴。

    走正体这条路,光秃秃的 \mathrm{d} 有个小毛病:它是一个 ordinary 原子,所以前面的关系号或负号拿不到算子该有的间距,而 \mathrm{d} 会贴住前面那个东西。放进导言区的稳妥定义是 \newcommand{\dd}{\mathop{}\!\mathrm{d}}:它先让这个 d 表现得像个前缀算子,再把这个分类新添的空隙抹掉。于是 \int_{0}^{1} x^{2} \dd x 到哪里都对,包括跟在 - 后面。

    那个细空格不是装饰:它告诉读者 \mathrm{d}x 是正在施加的算子、而不是被积函数的一部分,也正是它阻止 f(x)\,\mathrm{d}x\,\mathrm{d}y 被排成一个长单词。每个微分前都放一个 \,,堆叠的微分之间也放;测度符号该连着就连着:\mathrm{d}\mu(x)、\mathrm{d}^{2}x、\mathrm{d}\mathbf{A}。

    \int \frac{\mathrm{d}x}{1+x^{2}} = \arctan x + C
    \int \frac{\mathrm{d}x}{1+x^{2}} = \arctan x + C
    \documentclass[11pt,a4paper]{article}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath,amssymb}
    \usepackage{esint}          % \fint, \dashint, \ointctrclockwise …
    
    \title{Integrals: glyphs, bounds and differentials}
    \author{A. Student}
    \date{\today}
    
    % A roman d that behaves like an operator: correct spacing after a relation
    \newcommand{\dd}{\mathop{}\!\mathrm{d}}
    % Evaluation bar: \eval{F(x)}{0}{1}
    \newcommand{\eval}[3]{\left.#1\right|_{#2}^{#3}}
    
    \begin{document}
    \maketitle
    
    \section{Definite integrals}
    The bounds belong to the operator, so braces matter: for a bound longer
    than one token write \verb|\int_{n+1}^{2n}|, never \verb|\int_n+1^{2n}|.
    \[
      \int_{0}^{1} x^{2} \dd x = \frac{1}{3},
      \qquad
      \eval{\frac{x^{2}}{2}}{0}{1} = \frac{1}{2}.
    \]
    
    \section{Several integrals}
    \[
      \iint_{D} f \dd A = \int_{a}^{b}\!\!\int_{g_1(x)}^{g_2(x)} f(x,y) \dd y \dd x,
      \qquad
      \iiint_{V} \rho \dd V = \int_{0}^{2\pi}\!\int_{0}^{1}\!\int_{0}^{r} F \dd z \dd r \dd\theta
    \]
    Average values use \verb|\fint| from the \texttt{esint} package:
    \( \fint_{B_r} u \dd x \).
    
    \section{Contour integrals}
    \[
      \oint_{\gamma} \frac{f(z)}{z-a}\,\dd z = 2\pi i\,f(a),
      \qquad
      \oiint_{\partial K} \mathbf{E}\cdot \dd\mathbf{A} = \iiint_{K} \frac{\rho}{\varepsilon_0} \dd V
    \]
    
    \section{Improper integrals}
    Write the limit that is actually being taken; \verb|\int_0^\infty| is
    shorthand, and where the shorthand hides a real argument it belongs in
    the text:
    \[
      \int_{0}^{\infty} \frac{\dd x}{\sqrt{x}(1+x)}
      = \lim_{R \to \infty} \int_{1/R}^{R} \frac{\dd x}{\sqrt{x}(1+x)}
      = \pi.
    \]
    
    \end{document}

    长界限、堆叠条件与版面

    当一个界限确实是一句复合陈述——一段指标区间、带两个条件的区域——诚实的形状是算子下方的一叠块:\iint\limits_{\substack{0 \le t \le T \\ x \in \Omega}}。\substack 来自 amsmath,把每一行按 scriptstyle 排、居中对齐,也是唯一能让两行界限的对齐保持正常的构造。另一个选择 \begin{subarray}{l} 在同一个槽位里给出左对齐的行,条件共享同一前缀时正是你要的。

    这一行所有东西现在都变高了,所以要环顾左右:在 aligned 内部,一个堆叠界限会带走整行的高度;而比算子本身还宽的界限会让整个 display 看起来东倒西歪。正文里更好的答案通常是把界限缩短、给集合起个名字:\int_{\Omega_T},并在前面某处一次性定义 \Omega_T = (0,T) \times \Omega——审稿人要的也是这个。

    最后别忘了:积分是句子里的一个算子,而句子决定间距。从句中的 \int_{0}^{1} f = 1 不需要在它周围额外留空;微分后面接一个 \text{for} 或 \text{if} 从句想要 \quad;而以 \,\mathrm{d}x 结尾、后面还跟逗号的独立公式,那个逗号应当放在数学环境外面——写成 … \,\mathrm{d}x,——因为逗号属于行文,不属于被积函数。

    \iiint\limits_{\substack{0 \le \theta \le 2\pi \\ r \le R}} f(r, \theta)\,\mathrm{d}V
    \iiint\limits_{\substack{0 \le \theta \le 2\pi \\ r \le R}} f(r, \theta)\,\mathrm{d}V
    \int_{a}^{b} f\,\mathrm{d}x = \int_{a}^{c} f\,\mathrm{d}x + \int_{c}^{b} f\,\mathrm{d}x
    \int_{a}^{b} f\,\mathrm{d}x = \int_{a}^{c} f\,\mathrm{d}x + \int_{c}^{b} f\,\mathrm{d}x
    \documentclass[11pt,a4paper]{article}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath,amssymb,booktabs}
    
    % There is no reliable global switch: \limits is a per-occurrence postfix.
    % To stack every integral in a file, define a macro and use it instead of \int.
    \newcommand{\sdint}{\int\limits}       % stacked definite integral
    \newcommand{\ddint}{\iint\limits}
    
    \title{Four ways to bound an integral}
    \author{A. Student}
    \date{\today}
    
    \begin{document}
    \maketitle
    
    \begin{table}[htbp]
    \centering
    \begin{tabular}{@{}lll@{}}
    \toprule
    source & in a sentence & on its own line \\
    \midrule
    \verb|\int_a^b f\,\mathrm{d}x|
      & $\int_a^b f\,\mathrm{d}x$
      & $\displaystyle \int_a^b f(x)\,\mathrm{d}x$ \\[12pt]
    \verb|\int\limits_a^b f\,\mathrm{d}x|
      & $\int\limits_a^b f\,\mathrm{d}x$
      & $\displaystyle \int\limits_a^b f(x)\,\mathrm{d}x$ \\[12pt]
    \verb|\sum_{k=1}^{n} k|
      & $\sum_{k=1}^{n} k$
      & $\displaystyle \sum_{k=1}^{n} k$ \\[12pt]
    \verb|\sdint| (own macro)
      & $\sdint_0^1 f\,\mathrm{d}x$
      & $\displaystyle \sdint_0^1 f(x)\,\mathrm{d}x$ \\
    \bottomrule
    \end{tabular}
    \caption{An integral keeps its bounds at the side in both styles; a large
    operator such as \(\sum\) stacks only on its own line. \texttt{\textbackslash
    limits} moves the bounds and pays the leading, and there is no global way to
    ask for it that does not also affect sums, unions and limits.}
    \end{table}
    
    \[
      \ddint_{D} f \,\mathrm{d}A = \int_{a}^{b}\!\int_{g_1(x)}^{g_2(x)}
      f(x,y)\,\mathrm{d}y\,\mathrm{d}x
    \]
    
    \end{document}

    本课速查

    每节抽一行关键代码:点小节名跳到对应位置,代码一键复制。

    小节 关键代码
    \int_a^b f(x)\,\mathrm{d}x
    \int_{-\infty}^{\infty} e^{-x^{2}}\,\mathrm{d}x = \sqrt{\pi} \qquad \int_{0}^{\infty} \frac{\mathrm{d}x}{1+x^{2}} = \frac{\pi}{2}
    \iint_{D} f\,\mathrm{d}x\,\mathrm{d}y \qquad \iiint_{V} \rho\,\mathrm{d}V
    \oint_{\partial \Omega} P\,\mathrm{d}x + Q\,\mathrm{d}y = \iint_{\Omega} \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) \mathrm{d}x\,\mathrm{d}y
    \left. \frac{x^{2}}{2} \right|_{0}^{1} = \frac{1}{2} \qquad \Bigl[ F(x) \Bigr]_{a}^{b}
    \documentclass[11pt,a4paper]{article}

    常见错误

    • 复合界限没括起来:\int_n+1^{2n} 能编译通过,+1 却印在正常高度上。只要界限长于一个记号就必须加花括号。
    • 用 \int\!\!\int 顶替 \iint:字距是自己凑的,而且界限会挂到其中一个积分号上,而不是挂到这一对上。
    • 开路径上写了 \oint,或者闭合才是重点时却写 \int_C。那个圈编码的是拓扑,不是口味。
    • dx 用斜体又不留细空:TeX 会把你敲的空格丢掉,于是 d 和 x 被排成两个变量相乘。写 \,\mathrm{d}x,或者在导言区一次性定义 \dd。
    • 在 \left. F \right|_{a}^{b} 里忘了那个隐形搭档。世上没有单独的 \left,也没有单独的 \right;缺掉的那一半就是你拿到的那条报错。
    • 在 aligned 的某一行里用 \int\limits 把上下限叠起来,然后逐行补 \\[6pt],去追被顶开的参差行距。
    • 交换积分次序时重写了界限,却让 \mathrm{d}x\,\mathrm{d}y 停在老顺序上——微分要从里往外、对着界限来读。

    关于本课的常见问题

    怎么把积分的上下限放到积分号的正上方和正下方?
    写 \int\limits_a^b f(x)\,\mathrm{d}x。默认情况下 TeX 让积分上下限在行文与行间两种样式里都停在侧面,因为积分属于变元符号类的算子,而不是 \sum 那种大算子。下界是一整块多行条件、或者你的版式约定把所有东西都叠起来时,才用堆叠形式;其余情况让它贴侧就好。
    \int、\iint、\iiint 和 \oint 有什么区别?
    它们分别是一个、两个、三个、四个积分号合并成的单一字形,共享同一组上下限位置;区别在于 \oint(以及 \oiint、\oiiint)多加了一个圈,含义是「沿闭曲线」——或者闭曲面、闭区域。请用这些多重记号,别自己手搭 \int\!\!\int。
    dx 里的 d 该用正体还是斜体?
    直立的 \mathrm{d} 是 ISO 80000-2 的建议,也是应用数学与物理的惯例;斜体 d 在不少纯分析著作里仍是标准写法。两种都对,但一篇文档只能挑一种,而且无论哪种,前面那个细空格都省不掉。
    积分算完那条带上下限的竖线怎么排?
    由一对定界符搭出来,其中一侧静音:\left. F(x) \right|_{a}^{b}。手动定尺寸的替代写法是 \Bigl[ F(x) \Bigr]_{a}^{b} 与 \bigl. \dots \bigr|,它们也正是在 aligned 推导里能跨行保持一致的那两种形式。
    为什么我的积分上下限在下标里看不见了?
    它们不是消失,是缩小:任何东西一旦落到上标或下标里就按 scriptstyle 排,于是两个记号的界限会变得非常小。如果这个界限必须读得清,就重构表达式,别把积分塞进指标里。
    \iiiint 能放心用吗?
    在带 amsmath 的 LaTeX 里可以。在网页渲染器上不行——KaTeX 和某些 MathJax 配置根本没定义四重积分,命令会退化成字面文字。esint 包里那些带横线的平均积分号也要照同样的谨慎对待。

    实时演示:直接编辑 LaTeX,立刻看渲染结果

    预览随输入实时更新——不妨故意写坏一次,看看报错长什么样。

    KaTeX 错误
    试一个例子

    继续读

    同一个东西的三个入口:记法本身、讲它的那一课、以及真正用它写东西的一篇文章。