fix docstrings for latex