JDMCreator / LaTeXTableEditor

readme
MIT License
137 stars 14 forks source link

Programmatic conversion from html code #79

Closed estedeahora closed 11 months ago

estedeahora commented 1 year ago

Hi,

First of all I want to thank you for the excellent work on latex-tables!

I am interested in being able to use latex-tables in an automated way for a set of HTML files containing tables.

The use case is as follows. From word files (docx) with research articles I use Pandoc to generate Markdown files. The idea is to use these Markdown files to get multiple formats (html, tex->pdf, xml-jats, epub, etc).

The problem is that the tables are not converted correctly. So we are thinking of a parallel process to deal with them. The idea is to convert the tables to html files (from word). Then we can use these files with htmlcode for tables, to generate the latex code to achieve a similar output in pdf. This code would be "automatically inserted" a posteriori in the markdown depending on the output format that will be used (if the output is html the html code would be copied, if the output is pdfthe latex code would be copied).

The situation is that we would like to be able to do the conversion from html to latex automatically. Is it possible to use latex-tables through some api or similar?

Edit: extension of the information. For my use case importing a file containing only the html code of a table gives a good enough result in latex-tables. I think the general options (e.g. Latex environment, title, etc) could be given by code in the api call.

JDMCreator commented 11 months ago

Hi, as this is a static website, an API is not possible.