I did this because it doesn't generate latex very well with nbconvert. Also, the layout is strange - the chapter title is not clear.
Mostly replaced align with aligned.