home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / print / gnuplt35 / docs / toc_entr.sty < prev   
Text File  |  1993-05-11  |  2KB  |  70 lines

  1. %
  2. % $Id: toc_entry.sty 3.38.2.6 1992/11/14 02:25:48 woo Exp $
  3. %
  4. %
  5. %
  6. % TOC_ENTRY.STY of 13 Dec 90
  7. % written by Stefan Timphus
  8. %
  9. % Will produce the right space for sectionnumbers in the tableofcontents
  10. % Necessary for entries where the number for each kind of section
  11. % is greater 10 (e.g. "12.14.18 Sectionname")
  12. % When using the original definition the first letter of the sectionname
  13. % overwrites the last number of the sectionnumber
  14. %
  15. % call adjustments with command \adjustSTYLENAME
  16. %
  17.  
  18. \typeout{`toc_entry.sty' 1.0 of 13 Dec 90}
  19.  
  20. %
  21. % HERE ARE THE ORIGINAL DEFINITIONS
  22. %
  23.  
  24. % article.sty
  25. %
  26. %\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  27. %\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  28. %\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  29. %\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  30.  
  31. % report.sty and book.sty
  32. %
  33. %\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  34. %\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  35. %\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  36. %\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  37. %\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  38.  
  39. %
  40. % MODIFICATIONS
  41. %
  42.  
  43. \newlength{\twonum}
  44.         \settowidth{\twonum}{99.99.}
  45. \newlength{\threenum}
  46.         \settowidth{\threenum}{99.99.99.}
  47. \newlength{\fournum}
  48.         \settowidth{\fournum}{99.99.99.99.}
  49. \newlength{\fivenum}
  50.         \settowidth{\fivenum}{99.99.99.99.99.}
  51. \newlength{\sixnum}
  52.         \settowidth{\sixnum}{99.99.99.99.99.99.}
  53.  
  54. \newcommand{\adjustarticle}
  55. {\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
  56. \def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
  57. \def\l@paragraph{\@dottedtocline{4}{7.8em}{\fournum}}
  58. \def\l@subparagraph{\@dottedtocline{5}{10.4em}{\fivenum}}}
  59.  
  60. \newcommand{\adjustreport}
  61. {\def\l@section{\@dottedtocline{1}{1.5em}{\twonum}}
  62. \def\l@subsection{\@dottedtocline{2}{4.0em}{\threenum}}
  63. \def\l@subsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
  64. \def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
  65. \def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
  66.  
  67. \newcommand{\adjustbook}{\adjustreport}
  68.  
  69. % end of TOC_ENTRY.STY
  70.