fix references, formulas and table alignment, captions