Creating an HTML Template File

HTML Template files tell Mathcad how to read and where to insert HTML content exported from a Mathcad worksheet. These instructions are specified in certain comment lines and within the <HEAD> tags. Template files can include any valid HTML markup, such as:

An HTML Template file is saved with a .mlt extension. In addition to whatever HTML markup you wish to appear in the final document, the template must include four sets of comment tags:

These comments allow Mathcad to create the <meta> tags necessary to read exported .htm files back into Mathcad, write out any styles, and so on.

Save your template file with an .mlt extension.

Templates should be tested using a Web browser; Mathcad does not attempt to render or understand any of the template HTML markup, with the exception of the comment tags described above. You can test your templates by opening the .mlt file in a Web browser, or you can save a Mathcad document as HTML using the template, and open the resulting .htm file.

To use your .mlt file, set your HTML Output Preferences.

Notes: