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:
![]() |
Sorting the index |
In order to complete the index process, you must sort the contents of INDEX.TXT:
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, |.
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.
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.
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:
Place the following files in one folder:
NEWDICT.EXE (the indexing utility, located in the Mathcad folder)
INDEX.TXT
the HBK file (in this example, ALGEBRA.HBK)
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.
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.
Place the .DCT and .RFS files inside your E-book folder.
When you are satisfied with the results, you can open your E-book.
If you change the contents of the worksheets comprising the E-book, or if you change the HBK file, you must rerun the index and recheck your E-book.
Check both INDEX.TXT and the HBK file to make sure the file names are consistent before indexing your E-book.
Errors will occur if there are any blank lines in either the index or the HBK file. Many errors also occur because of discrepancies between file names in the index file and the HBK file or because file names are missing.
Fixing index errors may involve going back to your worksheets and modifying specific index entries. In this case, you must regenerate the index. Keep this in mind when you are creating index entries initially, or if you decide to change your index in any way.