AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.03k stars 11.31k forks source link

Modular latex source #39

Closed tobanw closed 8 years ago

tobanw commented 8 years ago

A useful way to structure latex documents is to use the \input{} or \include{} commands to make a modular document. This would be a nice way to separate chapters in the latex source.

AllenDowney commented 8 years ago

This is a recurring suggestion, but I have never understood why.

I do a HUGE amount of searching and search/replace in order to check consistency, find the first definition of something, find all uses of a vocab word, find labels for cross-references, and on and on. All of those things would be a royal pain if I split it up.

And I don't see any advantage in splitting it up. Is there one?

On Sat, Feb 27, 2016 at 2:56 PM, Toban Wiebe notifications@github.com wrote:

A useful way to structure latex documents is to use the \input{} or \include{} commands to make a modular document https://en.wikibooks.org/wiki/LaTeX/Modular_Documents. This would be a nice way to separate chapters in the latex source.

— Reply to this email directly or view it on GitHub https://github.com/AllenDowney/ThinkStats2/issues/39.

tobanw commented 8 years ago

It just makes the source code more organized. I don't have a strong reason to favor it, so feel free to close this issue if you don't want to change your workflow.

However, your search/replace problem has solutions. For example, in Atom you can do Ctrl+Shift+f to search across all project files. Vim can run commands across buffers. I'm not sure about other editors, but would be surprised if you couldn't get it for any reasonable programming-friendly editor.

AllenDowney commented 8 years ago

Ok, thanks anyway for the suggestion.