Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. %!TEX TS-program = xelatex
  2. %!TEX encoding = UTF-8 Unicode
  3.  
  4. \documentclass{harvard-thesis}
  5. \renewcommand{\contentsname}{CONTENTS}
  6. \renewcommand{\listfigurename}{FIGURES}
  7. \renewcommand{\listtablename}{TABLES}
  8. \renewcommand{\appendixname}{Appendix}
  9. \renewcommand{\appendixtocname}{Appendix}
  10.  
  11. \usepackage{apptools, etoolbox}
  12.  
  13. \renewcommand{\cftchappresnum}{Chapter }
  14. \setlength{\cftchapnumwidth}{2em}% Just for this example
  15.  
  16. \let\oldappendix\appendix
  17. \renewcommand{\appendix}{%
  18. \oldappendix
  19. \addtocontents{toc} % Update \cftchappresnum within the .toc
  20. {\protect\renewcommand{\protect\cftchappresnum}{Appendix }}
  21. }
  22.  
  23. \usepackage{geometry}
  24. \usepackage{tocloft,calc}
  25.  
  26. \AtBeginDocument{\addtolength\cftchapnumwidth{\widthof{\bfseries Chapter :}}}
  27.  
  28. \begin{document}
  29. \addtocontents{lof}{\vskip 12pt}
  30. \addtocontents{lot}{\vskip 12pt}
  31.  
  32. \input{frontmatter/coverpage}
  33. \maketitle
  34. \copyrightpage
  35. \abstractpage
  36. \dedicationpage
  37. \tableofcontents %Double check!
  38. \listoffigures
  39. \addcontentsline{toc}{chapter}{Figures}
  40. \listoftables
  41. \addcontentsline{toc}{chapter}{Tables}
  42. \newpage
  43. \addcontentsline{toc}{chapter}{Acknowledgments}
  44.  
  45. \acknowledgments
  46. \newgeometry{top=1in,bottom=1in,right=1in,left=1.5in}
  47. \titleformat{\chapter}[display]
  48. {\filcenter\normalfont}
  49. {\fontsize{12pt}{45pt}\selectfont\MakeUppercase{\chaptername{}\space
  50. \if@chapnumwords\formatchapnum{chapter}
  51. \else\thechapter\fi}}
  52. {-1em}
  53. {\begingroup\triplespacing\fontsize{12pt}{36pt}\selectfont\MakeUppercase}
  54. [\endgroup]
  55.  
  56. \titlespacing*{\chapter}{0pt}{0pt}{\baselineskip}
  57. \renewcommand{\cftchappresnum}{Chapter }
  58. \include{chapters/chapter1test}
  59.  
  60. \renewcommand\chaptername{Appendix}
  61. \renewcommand\thechapter{\Alph{chapter}}
  62. \renewcommand\thesection{\Alph{chapter}.\Roman{section}}
  63. \setcounter{chapter}{0}
  64.  
  65. \appendix
  66.  
  67. \include{appendices/appendixA}
  68.  
  69. \singlespacing
  70.  
  71. \clearpage
  72. \bibliography{references}
  73. \addcontentsline{toc}{chapter}{Bibliography}
  74. \bibliographystyle{achemso}
  75. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement