[Tex/LaTex] Two questions: Math mode and tree diagrams for probability in LaTeX

formattingmath-modetrees

I am trying to print a worksheet for the math class I'm teaching and I was wondering if anyone can specifically help me out in two areas.

a) How do I get the output BAL1L2 without the slant?

     $BAL_{1}L_{2}$ 

b) And is there is an easier code out there to create tree diagrams for probability?

Best Answer

You can use \(\mathrm{BAL_{1}L_{2}\) to remove the slant.

The best tree-diagram program out there is pgf-tkiz, but you could also hack out something with dirtree.

More on probability trees with pgf at this link: Example: Probability tree

Some dirtree stuff here: (Semi-)automatic directory-tree in LaTeX

Related Question