#NEWLINE# def translate_indexterm( self , indexterm ) : #NEWLINE# #INDENT# indexstr = re . sub ( '["!|@]' , '"\\1' , indexterm . to_latex ( self ) ) #NEWLINE# return ( '\\index{%s}\\textit{%s}' % ( indexstr , indexstr ) )