1. A method for determining document structure, comprising using computerized storage, processing and programming embodied on a non-transitory computerized storage medium for: identifying potential section markers of an input document; identifying similar types of said potential section markers; distinguishing between references and section markers and weeding out references, thereby identifying real section markers among said potential section markers; said computerized programming automatically identifying legitimate and illegitimate numbering sequences, lettering sequences, or combined numbering and lettering sequences of said real section markers without operator intervention; said computerized programming automatically identifying structural inclusion relations among said real section markers which are identified to adhere to said legitimate numbering sequences, lettering sequences, or combined numbering and lettering sequences without operator intervention; and said computerized programming automatically generating a structured table of contents from said real, legitimately-sequenced section markers without operator intervention.