The LaTeX package `showexpl' provides a way to typeset LaTeX source code and the related result in the same document.