         input = Input.recognize arg
         if input instanceof Mapping
           mappings.push input
+        else if input instanceof Style
+          styles.push input
         else if input instanceof Drawing or input instanceof Drawings
-          filenames = input.writeSVG mappings
+          filenames = input.writeSVG mappings, styles
           input.writeTeX() if Symbol.texText
           for format in formats
             if typeof filenames == 'string'

    svg.setAttribute 'xmlns:xlink', XLINKNS
    svg.setAttribute 'version', '1.1'
    #svg.appendChild defs = doc.createElementNS SVGNS, 'defs'
    ## Look up all symbols in the drawing.
    missing = {}
    @symbols =

              row.pop()
          j--
    @data = data
  writeSVG: (mappings, styles, filename) ->
    ## Default filename is the input filename with extension replaced by .svg
    unless filename?
      filename = path.parse @filename
