writing ripple.tex