diff options
Diffstat (limited to 'lib/sbin/ThornGuide.pl')
-rw-r--r-- | lib/sbin/ThornGuide.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sbin/ThornGuide.pl b/lib/sbin/ThornGuide.pl index b622d447..34bedb86 100644 --- a/lib/sbin/ThornGuide.pl +++ b/lib/sbin/ThornGuide.pl @@ -183,6 +183,7 @@ sub Read_New_Thorn_Doc open (DOC, "<$pathandfile") || print STDERR "\nCould not find documentation in $path"; + while (<DOC>) # loop through thorn doc. { if (/\\title\{(.*?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?.*?)\}/) { $title = $1; if ($title !~ /\w/) { close DOC; return 0;} } @@ -623,6 +624,7 @@ print OUT <<EOC; % Table of contents \\pagenumbering{roman} +\\setcounter{tocdepth}{1} \\tableofcontents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |