fix scale, add scale tests for latex and latex_inline