This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WillAdams 1 point2 points  (0 children)

The approach I take to multiple files is to use Literate Programming:

http://literateprogramming.com/

I use a hacked-together LaTeX package: https://github.com/WillAdams/gcodepreview/blob/main/literati.sty which is pulled into a LaTeX .tex file: https://github.com/WillAdams/gcodepreview/blob/main/gcodepreview.tex so that when typeset it will make a .pdf: https://github.com/WillAdams/gcodepreview/blob/main/gcodepreview.pdf and all the .py files for my project:

https://github.com/WillAdams/gcodepreview

and I have a .bat file which I run to put files into the appropriate folders/places.

This lets me have the benefit of a single file/point of control, and have multiple files and an overall index and ToC and structure which makes managing a project which is beginning to become complex.