Fast input methods for LaTeX environments and math