def autonum(*args)
      title = args[0]
      text = args[1]
      
      options = args[2]
      
      output_dir = options[:output_dir]
      
      @autonum_sections = @autonum_sections || {}
      @autonum_sections[title] = @autonum_sections[title] ? @autonum_sections[title] += 1 : 1
    
      title = "#{title}-#{@autonum_sections[title]}"
      
      {:title => title, :text => text}
    end
def autonum(*args)
      title = args[0]
      text = args[1]
      
      options = args[2]
      
      output_dir = options[:output_dir]
      
      @autonum_sections = @autonum_sections || {}
      @autonum_sections[title] = @autonum_sections[title] ? @autonum_sections[title] += 1 : 1
    
      title = "#{title}-#{@autonum_sections[title]}"
      
      {:title => title, :text => text}
    end
DSL methods