Add equation formatting