Basic index functionality for LaTeX