Creating an HBK File

An HBK file for a Mathcad E-book serves the same function as a traditional book binding: it specifies the order for the individual files in the book as the reader browses through it. The HBK file is a simple text file that provides:

To create an HBK file:

  1. Use any text editor or word processing application.
  2. Enter the following four keywords at the beginning of the HBK file:

.version 14
.title Title of your E-book
.pathfolder with name of folder that the Mathcad files are in
.pathfolder\subfolder if you have subfolders
.pathfolder\subfolder if you have subfolders
TOC toc.xmcd : Table of Contents
file file.xmcd : Title of file
;use a semicolon for comments

All of this including the TOC keyword is required at the beginning of your HBK file. Note that TOC must be capitalized.

In the HBK file lines that begin with a semicolon [;] are ignored and can be used to provide comments. Also, you should use tabs to separate text entries into columns.

In the second column of these lines, follow .title with the title of the book and follow TOC with the names of Mathcad files. See the figure below.

A sample HBK file

  1. Enter a line with three columns for each file in the book. Use tabs to separate columns. In the first column, type the logical name of the file (the filename without the extension). In the second column, type the filename. In the third column, type a colon [:], a space, and the title of the file that will appear in the title bar of the E-book window. See the figure above.
  2. Save the HBK file as a text-only file with an .HBK extension and a name that is the same as the name of the folder containing the Mathcad worksheets. For example, if a folder called ALGEBRA contains all the worksheets and subfolders for the E-book "Explorations in Algebra," save the HBK file as ALGEBRA.HBK.
  3. The HBK file must be saved as Unicode file. To do so, open it in Notepad and Save As choosing Save As Type: Text Documents (*.txt) and Encoding: Unicode. Be sure to keep the HBK file extension.
  4. Look for a subfolder called HANDBOOK located within your Mathcad folder. If you do not have a subfolder called HANDBOOK, create one.
  5. Place the HBK file and the folder containing your worksheets in the HANDBOOK folder.

At this point, Mathcad has all the information it needs to create a functional E-book. All that remains is to check the HBK file for errors. You may also create an index for your E-book to help users find specific topics.

Notes:

Skip is used to omit a file from the browse sequence