shige 12/01 2020 ---------------- Christian Mensing wrote: | I'm wondering if there is a way to apply attributes introduced | with html5. | I would like to set the "download" attribute for an anchor: | e.g. | | <a id="tex2html1" | href="some_document.pdf" download >download course 1</a> | | I would like to use | \htmladdnormallink[download]{download course 1}{some_document.pdf} | or | \htmladdnormallink[download=name-for-client.pdf]{download course | 1}{document_name.pdf} | | I was playing around with\HTML code command, but did not succeed.
I think current latex2html does not support DOWNLOAD attribute of A tag. For example, l2h translates \HTMLcode[href=some_document.pdf download]{A}{download course 1} to <A HREF="some_document.pdf" HREF="download">download course 1</A> Instead of \htmladdnormallink or \HTMLcode commands, you can use rawhtml environment to write raw HTML code in latex file under the html package: \begin{rawhtml} <a id="tex2html1" href="some_document.pdf" download >download course 1</a> \end{rawhtml} Please try. +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 +========================================================+ _______________________________________________ latex2html mailing list latex2html@tug.org https://tug.org/mailman/listinfo/latex2html