TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 5 down vote accepted

Build a math atom:

share|improve this answer

Another possibility:

share|improve this answer
+1 Thanks for adding more extra keystrokes. – kiss my armpit May 19 '14 at 7:21
@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 posting your answer, you agree to the privacy policy and terms of service.

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