Generalize filenames and set up dynamic appendices.