4 ms·
When writing a large document, I prefer to use a file format that has a way to import the contents of other files. When writing a long document in LaTeX, I woul
by daveFNbuck 8y ago
When writing a large document, I prefer to use a file format that has a way to import the contents of other files. When writing a long document in LaTeX, I would have separate files for different sections, plus a main file that had the overall layout and imported each section in the right place.
This approach allows you to easily insert/remove/rearrange sections and doesn't require having a giant file open in your editor. It also makes viewing the compiled version easier, as you don't have to compile the entire document to see what the part you're working on looks like.
- NegativeLatency 8y agoOne of my favorite things about vim is being able to open very large files. (Larger than my available RAM)
- nickjj 8y agoBut then we're back to the same problem in the article where you have 150+ numbered / referenced files.
- daveFNbuck 8y agoThey're not numbered. Referencing doesn't have the problems the article complains about. Also, you can go between these extremes and have a handful of medium-sized files.
- nickjj 8y agoThe numbers are very important because the reference has to happen outside of the editing tool / structure. I need to be able to identify that lesson 'xyz' is lesson 50 so I can say to check out the code in folder 50 inside of a git repo.
- daveFNbuck 8y agoWhen you compile the document, the numbering is automatically added just like it would be if you had a single large document. The importing gives you the same final result as having a single file, but gives you the flexibility to put individual lessons in separate files for easier editing and reuse in other course plans. This also makes it easier to do things like print out individual lessons if you need a hard copy but don't want the entire document.