I work in law, and very often for dossiers/pleadings/filings, have to compile a large amount of emails into a pdf to be printed for a file. (You may question the wisdom of this practice, but I don't make the system) I'm also the relatively rare lawyer who likes to use TeX to typeset my submissions.
Given that printing emails directly from various sources results in inconsistent, ugly, and difficult layouts that don't fit well into a consistent, nice appendix to pleadnigs, say, is there a programmatic way to process the HTML file of an e-mail into a TeX template to consistently output the position of senders, date, subject line, etc? My ideal is to have something like a traditional file of correspondence, but for e-mails.
includegraphicsorincludepdfcommand to create the bundle annex. – Cicada Jun 11 '21 at 04:01.emlor.msg), you would in theory be able to parse it manually using corresponding libraries for more advanced programming languages to have greater flexibility on the exported data. But this is out of scope for this site. – epR8GaYuh Jun 11 '21 at 05:58datatoolto enter the data in your LaTeX document. I'm not sure this will work very well (especially for complex HTML e-mails and/or for long exchanges where the previous messages are copied in each new message) but you could try. – Marijn Jun 12 '21 at 15:56