I'm looking for a way to include source code in my thesis' appendix.
Any chance to add source code by pointing to a directory and adding the java file recursively going through the packages?
I do and did already use minted
and listings
. Maybe I have missed a feature of these packages. But since the java source code might change, I would like to avoid copy&paste which increase the chance to miss something. Favourable it's done automatically.
\lstinputlisting
to include a single source file, however, this won't recursively search through a directory for you. On the other hand, I doubt that you'd want to include hundreds of files this way but even if you did it wouldn't take you long to throw together the tex code for this using a reasonable editor and a regular expression. Of course, it wouldn't automatically update....*\string\.java
.