I know La/TeX is the standard for this but I'm still irritated that it forces all diagrams to appear at the top of the page, which really gets in the way of explaining things clearly.
This books suffers a lot from this limitation, with figures sometimes appearing 5 pages before they are actually referenced in the text.