This is LaTeX code:
[latex]
(g_{i-1}, g_i)
[/latex]