Assuming that we cannot change the implementation of \blackbox that is


What should we pass to \blackbox such that $\blackbox{<something we need to pass>}$ produces the same result as $-y$? In other words, how can I cancel the effect of {} defined in \blackbox?



$-y$\\ % output that I want to achieve 
$\blackbox{-y}$ % how can I remove the effect of {} in \blackbox?

enter image description here

Real scenario

I want use \equ for representing $-3y=59$ but if I use \equ{}{-3y}{59} the output is not identical because of the prefix {} defined in \equ.



\newcommand\act[1]{\xrightarrow{\quad\mathclap{\times #1}\quad}}
\newcommand\equ[3]{{}#1 & {}#2 & {}=#3}

     \equ{3x}{+3y}{7} & \act{1} & \equ{3x}{+3y}{7}            \\[\jot]
     \equ{3x}{}{22}   & \act{3} & \equ{3x}{}{66}   & \ope{-}  \\\cmidrule{5-7}
         &&           &         & \equ{}{-3y}{59}             \\[\jot]
         &&           &         & \equ{}{y}{-59/3}            \\

enter image description here


Build a math atom:


Another possibility:

  • 1
    @MoneyOrientedProgrammer This answer does in fact more closely answer your question (as stated in the title) although Herbert's answer is better for the particular application. – David Carlisle May 19 '14 at 13:06

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.