• 微分符号 $\newcommand{\dif}{\mathop{}\!\mathrm{d}}\newcommand{\abs}[1]{\left| #1\right|}\dif$: \\newcommand{\\dif}{\\mathop{}\\!\\mathrm{d}}

  • 足够高的绝对值

    $$ \newcommand{\abs}[1]{\left| #1\right|}\abs{\frac{1}{x-1}}\\ \texttt{如果不用这个而直接用竖线符号,就会变成 }\\ |\frac{1}{x-1}| $$

    • \\newcommand{\\abs}[1]{\\left| #1\\right|}
  • 如果你只需要单侧的竖线:

    $$ \newcommand{\eval}[1]{\left.#1\right|} \eval{\frac{1}{x-1}}_{x=x_0} $$

    • \\newcommand{\\eval}[1]{\\left.#1\\right|}