def indices_to_text(h, k, l):
    """ 
	Returns a Matplotlib-compatible string representation of Miller indices,
	in LaTeX/Mathjax format.

	.. versionadded:: 2.0.2

	Parameters
	----------
	h, k, l : int
		Miller indices
	
	Returns
	-------
	s : string
		Matplotlib-compatible representation
	
	Examples
	--------
	>>> indices_to_text(1,0,0)
	'(100)'
	>>> indices_to_text(2,-1,1)
	'(2$\\bar{1}$1)'
	"""
    t = '('
    for index in (h, k, l):
        if index < 0:
            t = t + '$\\bar{' + f'{abs(index)}' + '}$'
        else:
            t = t + f'{index}'
    return t + ')'
