encode chapter2.tex