jeremyhansen / rooksguide-cplusplus

The Rook's Guide to C++
44 stars 12 forks source link

Simplify cpp.tex #10

Closed LeviSchuck closed 10 years ago

LeviSchuck commented 10 years ago

The TeX file seems to have a lot of contents that are very specific and relatively constant.

For example,

Ideally, at least in my opinion, the main TeX file should be like

\documentclass[...]{...}
\title{..}
% Other base stuff that goes on the front page
% Include settings tex here
% Include new commands tex here

% Finally start the content!
\begin{document}

% Include some content preludes here

\include{chapter1.tex}
...
\include{chapter20.tex}
% include settings for back matter
\include{backmatter.tex}

To me, this makes it easier to comprehend and to edit. This is not to say to force things like \LevelA to be separate from the chapter tex's. This way, it also means that records on specific parts are easier to track over time.

Let the preprocessor do the work for us here, we don't write all of our classes in main.cpp for a reason :smile:

jeremyhansen commented 10 years ago

Go ahead and fork the repository and fix up the cpp.tex file how you think it should be. I'm not opposed to splitting out some of the front matter into separate files -- that's just the way things were when Ted created the initial framework.