The node you are looking for is at write_latex_dynamic_model.