add docstring to Latex_inline
attempt to reduce duplicate code