53: #line 63 "latex_weaver.ipk" 54: def identifier_reference(self, hlevel=2, *args, **kwds): 55: ids = self.master.ids 56: keys = ids.keys() 57: keys.sort() 58: if hlevel >0: 59: self.head(hlevel,'Index of Identifiers') 60: self._writeline('\\begin{tabular}{ll}') 61: for k in keys: 62: refs = ids[k] 63: self._write(cvt_code(k)+'&') 64: old_df = '' 65: for sf,sc,df,dc in refs: 66: if old_df != '': self._write(', ') 67: if old_df != df: 68: self._writeline(cvt_code(df)+': '+str(dc)+'\\ref{'+sf+':'+str(sc)+'}') 69: old_df = df 70: else: 71: self._write(': '+str(dc)+'\\ref{'+sf+':'+str(sc)+'}') 72: self._write('\\\\\n') 73: self._writeline('\\end{tabular}\n') 74: