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

How to slash numbers how it done at the picture?

enter image description here

It's the part of equation:


I suppose that need to use TikZ, but don't sure that it is a good way for solve this problem.

share|improve this question
up vote 11 down vote accepted

tikz is not necessary, just use a vertical rule with some spacing:

Sample output




    ( 0\mkern-5mu\smash{\vrule height 0.8em depth 1.5em}\mkern5mu00)\\

share|improve this answer
Thanks! It is better solution. – iVi Jul 9 '14 at 18:18
there's a simpler way to enter this package list. (yes, i know this is what is in the original example.) amssymb loads amsfonts, so amsfonts isn't needed. and mathtools loads amsmath, so another simplification is possible. (although it's sometimes a useful reminder to explicitly show that amsmath is being used.) – barbara beeton Jul 9 '14 at 19:38
@barbarabeeton Perfectly correct - I have just removed amsfonts as you suggest, as you say the mathtools+amsmath redunancy can be a useful reminder. – Andrew Swann Jul 10 '14 at 7: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.