1

I'm trying to convert a LaTeX document (with lots of \input) into HTML:

latexml --includestyles document.tex

The warning I got:

Warning:missing_file:scrartcl Can't find binding for class scrartcl (using OmniBus)
  • tex4ht supports scrartcl. try make4ht -u document.tex html5 – michal.h21 Feb 08 '18 at 09:56
  • @michal.h21 Error encountered: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline –  Feb 08 '18 at 09:59
  • it is caused by a bug in TikZ. see https://tex.stackexchange.com/a/386775/2891 for some discussion about possible workarounds – michal.h21 Feb 08 '18 at 10:26
  • @michal.h21 Wow. Is there a way (free/paid) I can convert .pdf perfectly into .docx instead? I tried Acrobat DC, works even with complex tcolorbox. I thought Word would take in HTML better than it takes in PDF. –  Feb 08 '18 at 10:32
  • I don't know. You would lose all structural information (sections, footnotes, lists) in PDF to DOCX conversion. tex4ht can convert to ODT format which Word supports, but I am not sure how it will handle the tcolorboxes. – michal.h21 Feb 08 '18 at 10:56

1 Answers1

3

I never used latexml, but it seems that it needs a »binding« for every used documentclass and package. See e.g. here: https://github.com/kpj/LaTeXML_Bindings_WIP/blob/master/bindings/mathtools.sty.ltxml

And your error message probably hints to a missing binding file for scrartcl. Missing bindings for KOMA-script (scrartcl is a part of it) are discussed here: https://github.com/brucemiller/LaTeXML/issues/915

So you are out of luck, as it seems.

Keks Dose
  • 30,892