答案1
提供一种完全可定制的支架厚度\brwd
、深度\brdp
和边距的替代方案。\brsb
\ubracket[<offset>]{<content>}
\documentclass{article}
\usepackage{stackengine}
\newcommand\ubracket[2][.5pt]{%
\sbox0{$#2$}\stackengine{-\brwd}{\stackengine{#1}{$#2$%
}{\rule{\brwd}{\brdp}\kern\dimexpr\wd0-2\brwd-2\brsb\relax
\rule{\brwd}{\brdp}}{U}{c}{F}{F}{S}}{%
\rule{\dimexpr\wd0-2\brsb}{\brwd}}{U}{c}{F}{F}{S}
}
\newlength\brwd% bracket thickness
\brwd=.8pt\relax
\newlength\brdp% bracket depth
\brdp=2.5pt\relax
\newlength\brsb% bracket sidebearing
\brsb=0.5pt\relax
\begin{document}
Inline construction ($\ubracket{10}
\ubracket{01}
\ubracket{01}
\ubracket{00}
\ubracket{01}
\ubracket{10}
\ubracket{01}
\ubracket{10}
\ubracket{11}
$)
\end{document}