-- translates all parsed input that needs to be externalized to standalone tex documents
externalize :: String -> String -> String -> String -> [Kind] -> IO ()
externalize path header document_commands suffix input =
   do
      let files = map (toTex document_commands header) input
      multiWrite (listOfFiles path suffix (length files)) files

-- takes a dispatch function that translates all parsed input to HTML tags
externalize :: String -> String -> String -> String -> [Kind] -> IO ()
externalize path header document_commands suffix input =
   do
      let files = map (toTex document_commands header) input
      multiWrite (listOfFiles path suffix (length files)) files

-- takes a dispatch function that translates all parsed input to HTML tags
externalize path header document_commands suffix input =
   do
      let files = map (toTex document_commands header) input
      multiWrite (listOfFiles path suffix (length files)) files

-- takes a dispatch function that translates all parsed input to HTML tags