Generating an Index

Once you have created all the index entries in your worksheets, run HBK Mode to access the Handbook Utilities dialog. To create your index:

  1. Select the "Generate Index" option and click "OK."
  2. Browse to select your HBK file.
  3. Mathcad will create a file called INDEX.TXT in the same location as your HBK file.

Sorting the index

In order to complete the index process, you must sort the contents of INDEX.TXT:

  1. Open INDEX.TXT in Microsoft Word or another word processing application.

    We recommend that you use Word because you can convert the entire contents of the file to a table. To do so in Word, choose Select All from the Edit menu, then choose Convert > Text to Table from the Table menu. In the Convert Text to Table dialog box, specify 3 columns and separate text with a vertical bar, |.

  2. Sort the table by the first column (index entry), then the third column (file name), then the second column (region number). To do so in Word, choose Sort from the Table menu, and use the dialog box.

  3. Once you have sorted the table, convert the table back to text. To do so in Word, choose Select Table from the Table menu, then choose Convert > Table to Text. In the Convert Table to Text dialog box, specify a vertical bar, |, as the separator.

  4. Save your newly sorted index in Text Only format. To do so, choose Save As from the File menu and select Text Only (*.TXT) from the file format list.

Processing the Index

To process the index:

  1. Place the following files in one folder:

  2. Open the Command Prompt from Programs > Accessories in the Windows Start menu. Run NEWDICT.EXE by typing:

    newdict index.txt algebra.hbk

    If there is an error in the index file, NEWDICT.EXE stops its execution and issues a line number on which the error occurs. If an error occurs, check and fix errors, then re-run NEWDICT.EXE.

  3. If no errors occur, NEWDICT.EXE creates two files, OUT.DCT and OUT.RFS. Rename these files to correspond to the name of the HBK file and folder for your E-book. For example, if you have a folder called ALGEBRA and an HBK file called ALGEBRA.HBK, rename the files ALGEBRA.DCT and ALGEBRA.RFS.

  4. Place the .DCT and .RFS files inside your E-book folder.

When you are satisfied with the results, you can open your E-book.

Notes: