Improve math_prelim.tex, examples.tex, cont_based_dyn.tex and dyn_log.tex