'Add LaTeX handling code for backlinks of footnote or citation
node `node`.  `type` is either \'footnote\' or \'citation\'.'

def process_backlinks(self, node, type):

    self.append('\\renewcommand{\\DEVsinglebackref}{}')
    self.append('\\renewcommand{\\DEVmultiplebackrefs}{}')
    if (len(node['backrefs']) > 1):
        refs = []
        for i in range(len(node['backrefs'])):
            refs.append(('\\DECmulti%sbacklink{%s}{%s}' % (type, node['backrefs'][i], (i + 1))))
        self.append(('\\renewcommand{\\DEVmultiplebackrefs}{(%s){    }}' % ',    '.join(refs)))
    elif (len(node['backrefs']) == 1):
        self.append(('\\renewcommand{\\DEVsinglebackref}{%s}' % node['backrefs'][0]))
