I think I may be able to tweak the code to deal with the case where a word ends exactly at the end of a line. However, I've realized that including a space at the end of a line may cause page numbers to extend beyond the right-hand margin. I think we do have to consider how to deal with discrepancies in indexing. There may be conflicts which make them unavoidable. It would also be nice if we had a software tool that could check indexing. Any ideas about how it might work? John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities