HTML Templates |
HTML templates are used when you save a document as HTML. A template file specifies the HTML, Javascript, and other Web-browser-readable regions that can be used to wrap a Mathcad worksheet. Template files are selected through the HTML Options tab on the Preferences dialog, or through the second dialog from Save As Web Page on the File menu.
You can extend the collection of templates by creating your own. For example, you may want to create a template for a Web site that contains navigation buttons in the header and footer, images or dates in certain places, or you may want to apply an external CSS style sheet in the head of every Web file.
To create a new template:
Open a new file or the existing sample template file in any text or HTML editor.
Include the following sets of comment regions in the document <HEAD> tags:
<!--
#BeginEditable "Title" -->
<title>sample title goes here</title>
<!-- #EndEditable -->
<!-- #BeginEditable "WorksheetHeaders" -->
META tag information written here
<!-- #EndEditable -->
<!-- #BeginEditable "WorksheetStyles" -->
Cascading styles written here
<!-- #EndEditable -->
Be sure to fill in a title between the title tags. This title is only overwritten when you specify a new title in the Save As Web Page dialog box. If you do not specify a new title, the template title tags are used.
Position the following comments in the document <BODY> tags wherever you want the Mathcad worksheet to appear in the template:
<!--
#BeginEditable "WorksheetContent" -->
HTML content from Mathcad worksheet will be overwritten here
<!-- #EndEditable -->
Add any additional HTML markup you want to appear on every page exported using the template.
Save the file with your chosen template name and an .MLT extension.
Your template is browsable from the HTML Options tab in the Preferences dialog, when you choose Relative positioning.