如何在左/右括號上加上一個圓圈?

如何在左/右括號上加上一個圓圈?

我需要使用一個新的符號來表示我自己定義的操作。如何建立一對新的分隔符,就像在左/右括號上添加一個小圓圈一樣?困難在於它有四種大小:\big\Big\bigg\Bigg

\documentclass{article}
\begin{document}
\[\bigl\newlparentheses\sin(x+\pi)\bigr\newrparentheses
\cdot\Bigl\newlparentheses\frac ab\Bigr\newrparentheses\]
\end{document}

在此輸入影像描述

答案1

您可以定義新的括號。

對於經典\left\right

\def\oright#1{\right#1\mskip-10mu\circ}
\def\oleft#1{\circ\mskip-10mu\left#1}

對於大\bigl\bigr

\def\obigr#1{\bigr#1\mskip-8mu\circ}
\def\obigl#1{\circ\mskip-8mu\bigl#1}

對於特大號\Bigl\Bigr

\def\oBigr#1{\Bigr#1\mskip-8mu\circ}
\def\oBigl#1{\circ\mskip-8mu\Bigl#1}

像這樣使用它:

\[\oleft(\sin(x+\pi)\oright)\]
\[\obigl(\sin(x+\pi)\obigr)\]
\[\oBigl(\sin(x+\pi)\oBigr)\]

結果將如下所示:

一個支架

相關內容