0

My 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}

Original image

enter image description here

I want to add a dot to the number 0. So I added \pmzerodot.

enter image description here

I want to justify to the right number 14. So I added \phantom{1}.

enter image description here

Finally \phantom{1} and/or \pmzerodot gives an error. Can this problem be solved?

  • @DavidCarlisle, sorry for writing fast. I tried to detail the my question now. – Özgür Jun 1 at 14:55
  • I get no error from the posted code – David Carlisle Jun 1 at 14:57
  • This was the worst for me. Now, I need to check the packets, updates ... – Özgür Jun 1 at 15:00
  • I suspect your version is out of date. It works for me. For reference, tabstackengine 2018/03/05 (V2.10) which loads stackengine 2017/02/13 v4.01. – Steven B. Segletes Jun 1 at 22:56
  • @StevenB.Segletes, only \pmzerodot added Illegal parameter number in definition error writing. I uploaded it, March 5, 2018 V2.10 tabstackengine.sty. It gave the following error. File listofitems.sty not found. I have included the following files. listofitems.sty, listofitems.tex, listofitemsold.tex. It writes the following error. And instead of \pmzerodot 0 when I add the number writes. l.67 {\input listofitemsold.tex \relax\endinput – Özgür Jun 2 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.