[Tex/LaTex] Side-by-side source and output when documenting a style file

dtxpackage-writing

When documenting a style file, it would be nice to be able to easily put side by side different examples of code, side-by-side with the output they produce.

What recommendations to people have to do this efficiently, and ├Žsthetically?

Best Answer

There's showexpl which has the LTXexample environment for exactly this purpose. It's based on listings