Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to slash numbers how it done at the picture?

enter image description here

It's the part of equation:

 \usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools}
 ...
 \[
      \begin{Bmatrix}
           (000)\\
           (100)
      \end{Bmatrix}
 \]

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

1 Answer 1

up vote 11 down vote accepted

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

Sample output

\documentclass{article}

\usepackage{amsmath,amssymb,amsthm,mathtools}

\begin{document}

\begin{equation*}
  \begin{Bmatrix}
    ( 0\mkern-5mu\smash{\vrule height 0.8em depth 1.5em}\mkern5mu00)\\
    (100)
  \end{Bmatrix}
\end{equation*}

\end{document}
share|improve this answer
    
Thanks! It is better solution. –  iVi Jul 9 at 18:18
1  
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 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 at 7:06

Your Answer

 
discard

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.