             for label in graphic.labels
               figures[label] = figure
 
+  title2section = (title) ->
+    title[...title.indexOf ' ']  ## section number
   formatLabel = (label) ->
     "``#{label.replace /^fig:/, ''}''"
 

        if start?
          now = new Date
          body = tex[start...match.index]
          body = body.replace /\\label{([^{}]*)}/g, (match, p1) ->
            labels[p1] = title[...title.indexOf ' ']
            ''
          console.log "Importing '#{title}'"
          messages.push

        revision.updators = [revision.creator]
        delete revision.creator
        await Meteor.call 'messageImport', group, null, message, [revision], defer error, message._id
        links[title2section message.title] = "coauthor:#{message._id}"

        attach = _.uniq attach  ## upload \ref'd figures only once each
        await
