Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. usepackage{titlesec}
  2. usepackage{listings}
  3. usepackage{setspace}
  4. usepackage{changepage}
  5. usepackage{indentfirst}
  6.  
  7. usepackage{titlesec}
  8. usepackage{listings}
  9. usepackage{setspace}
  10. usepackage{changepage}
  11. usepackage{indentfirst}
  12.  
  13. defdegreeprogram#1{gdef@degreeprogram{#1}}
  14. defdegree#1{gdef@degree{#1}}
  15.  
  16. %% Conform headers to school styling for headers -- turabian
  17. titleformat{chapter}[display]
  18. {normalfontfontsize{12pt}{16pt}mdseriessinglespacecentering}
  19. {MakeUppercase{chaptertitlename thechapter}}{12pt}{MakeUppercase}
  20.  
  21. %First level; centered, boldface or italic type, headline-style capitalization
  22. titleformat{section}[block]
  23. {normalfontfontsize{12pt}{16pt}selectfontbfseriessinglespacecentering}
  24. {thesection}{1em}{}
  25.  
  26. %Second level; centered, regular type, headline-style capitalization
  27. titleformat{subsection}[block]
  28. {normalfontfontsize{12pt}{16pt}selectfontmdseriessinglespacecentering}
  29. {thesubsection}{1em}{}
  30.  
  31. %Third level: flush left, boldface or italic type, headline-style capitalization
  32. titleformat{subsubsection}[block]
  33. {normalfontfontsize{12pt}{16pt}selectfontbfseriesbfsinglespace}
  34. {thesubsection}{1em}{}
  35.  
  36. %Fourth level: flush left, roman type, sentence-style capitalization
  37. titleformat{subsubsection}[block]
  38. {normalfontfontsize{12pt}{16pt}selectfontmdseriesbfsinglespace}
  39. {thesubsection}{1em}{}
  40.  
  41. %Fifth level: run in at beginning of paragraph (no blank line after, boldface or
  42. % italic type, sentence-style capitalization, terminal period
  43. titleformat{subsubsection}[block]
  44. {normalfontfontsize{12pt}{16pt}selectfontmdseriesbfsinglespace}
  45. {thesubsection}{1em}{}
  46.  
  47.  
  48. % fixup TOC indentation and add . . . separator on Chapter lines
  49. renewcommand*l@chapter{@dottedtocline{0}{1em}{1.5em}}
  50. renewcommand*l@section{@dottedtocline{1}{4em}{2em}}
  51. renewcommand*l@subsection{@dottedtocline{2}{7em}{3em}}
  52. renewcommand*l@subsubsection{@dottedtocline{3}{10em}{4em}}
  53.  
  54.  
  55.  
  56. % Fixup chapter lines in TOC for all caps
  57. def@chapter[#1]#2{ifnum c@secnumdepth >m@ne
  58. if@mainmatter
  59. refstepcounter{chapter}%
  60. typeout{@chapappspacethechapter.}%
  61. addcontentsline{toc}{chapter}%
  62. {protectnumberline{thechapter .}MakeUppercase{#1}}%
  63. else
  64. addcontentsline{toc}{chapter}{MakeUppercase{#1}}%
  65. fi
  66. else
  67. addcontentsline{toc}{chapter}{MakeUppercase{#1}}%
  68. fi
  69. chaptermark{#1}%
  70. addtocontents{lof}{protectaddvspace{10p@}}%
  71. addtocontents{lot}{protectaddvspace{10p@}}%
  72. if@twocolumn
  73. @topnewpage[@makechapterhead{#2}]%
  74. else
  75. @makechapterhead{#2}%
  76. @afterheading
  77. fi}
  78.  
  79. @starttoc{lof}
  80.  
  81. renewcommand{listoffigures}{%
  82. pagebreakcenteringMakeUppercase{listfigurename}par%
  83. addcontentsline{toc}{chapter}{MakeUppercase{listfigurename}}%
  84. mdseries{Figurehfill{Page}}par%
  85. @starttoc{lof}%
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement