我的MWE
\documentclass[10pt]{article}
\usepackage{tabstackengine,xcolor}
\usepackage{amssymb}
\makeatletter
\newcommand*{\pmzerodot}{%
\nfss@text{%
\sbox0{$\vcenter{}$}% math axis
\sbox2{0}%
\sbox4{0\/}%
\ooalign{%
0\cr
\hidewidth
\kern\dimexpr\wd4-\wd2\relax % compensate for slanted fonts
\raise\dimexpr(\ht2-\dp2)/2-\ht0\relax\hbox{%
\if b\expandafter\@car\f@series\@nil\relax
\mathversion{bold}%
\fi
$\cdot\m@th$%
}%
\hidewidth
\cr
\vphantom{0}% correct depth of final symbol
}%
}%
}
\makeatother
\TABstackMath
\newcommand\redbox[1]{\textcolor{red}{\fbox{\textcolor{black}{#1}}}}
\DeclareMathSymbol{\shortminus}{\mathbin}{AMSa}{"39}
\begin{document}
\begin{equation}
\TABbinary
\fboxsep=2pt
\fboxrule=1pt
\tabbedCenterstack{\\\shortminus}
\tabbedCenterstack{41\\55}
\tabbedCenterstack{~\cdot~\\~\cdot~}
\redbox{\tabbedCenterstack{U_1\\U_1}}
\tabbedCenterstack{~-~\\~+~}
\tabbedCenterstack{\phantom{1}14\\1\pmzerodot3} % <- Problem line
\tabbedCenterstack{~\cdot~\\~\cdot~}
\redbox{\tabbedCenterstack{U_2\\U_2}}
\tabbedCenterstack{~=~\\~=~}
\redbox{\tabbedCenterstack{273\\561}}
\end{equation}
\end{document}
原始图像
我想在数字 0 后面加一个点。因此我添加了\pmzerodot
。
我想调整到正确的数字 14。因此我添加了\phantom{1}
。
最后\phantom{1}
and/or\pmzerodot
给出错误。这个问题能解决吗?