[l2h] use of html5 attributes

Shigeharu TAKENO shige at iee.niit.ac.jp
Tue Dec 1 12:09:33 CET 2020


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
 shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+


More information about the latex2html mailing list.