Advertisement
Guest User

main_document.tex

a guest
Mar 25th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 7.91 KB | None | 0 0
  1. \documentclass[11pt,%
  2.                letter,%
  3.                oneside,%
  4.                openright,%
  5.                titlepage,%
  6.                fleqn,%
  7.                headinclude,%
  8.                footinclude,%
  9.                BCOR=5mm,%
  10.                numbers=noenddot,%
  11.                cleardoublepage=empty,%
  12.                tablecaptionabove]{scrreprt}
  13.              
  14. \usepackage{cmap}
  15. \usepackage[english]{babel}
  16. \addto\captionsenglish{%
  17.   \renewcommand{\contentsname}{Table of Contents}%
  18. }
  19. %\usepackage[applemac]{inputenc}
  20. \usepackage[utf8]{inputenc}
  21. \usepackage[T1]{fontenc}
  22. \usepackage{amsmath,amssymb,amsthm}
  23. \usepackage{amssymb}% http://ctan.org/pkg/amssymb
  24. \usepackage{pifont}% http://ctan.org/pkg/pifont
  25. \usepackage{varioref}
  26. \usepackage{chngpage}
  27. \usepackage{calc}
  28. \usepackage{listings}
  29. \usepackage{graphicx}
  30. \usepackage{multirow}
  31. \usepackage{multicol}
  32. \usepackage{makeidx}
  33.  
  34.  
  35.  
  36. % \usepackage{subfigure}  
  37. % \usepackage{subfig}  
  38. % \usepackage{fixltx2e}
  39. % \usepackage{lgrind}
  40. \usepackage{array}
  41. \usepackage{subcaption}
  42. \usepackage{caption}
  43. \usepackage[hidelinks]{hyperref}
  44.  
  45. % \pagestyle{plain}
  46. \usepackage{soul,colortbl}                
  47. \usepackage{float}
  48. \newcolumntype{Y}{>{\centering\arraybackslash}X} %
  49. \renewcommand{\arraystretch}{1} % f
  50. \definecolor{Gray}{gray}{0.9}
  51.  
  52. \usepackage{arydshln}  % For dashed line in tables
  53. \usepackage{booktabs}
  54. \usepackage[singlespacing=true]{scrlayer-scrpage}
  55. % ============================================================
  56.  
  57.  
  58.  
  59. \RequirePackage{silence}
  60. \WarningFilter{remreset}{The remreset package}
  61. % \WarningFilter{titlesec}{The titlesec package}
  62. \usepackage{relsize}
  63. \usepackage{lipsum}
  64. \usepackage[beramono,eulermath,pdfspacing,listings,dottedtoc]{classicthesis}
  65. \usepackage{boldline}
  66. \renewcommand{\cftdot}{}
  67.  
  68. \usepackage{arsclassica}
  69. % \RequirePackage[letterpaper, top=1in, bottom=1.5in,
  70. %   left=1.5in, right=1.5in,showframe=false]{geometry}
  71. \usepackage[letterpaper, margin=1in]{geometry}
  72. \usepackage[doublespacing]{setspace}
  73. \usepackage{algorithm}
  74. \usepackage{algpseudocode}
  75. \usepackage{wasysym}
  76. \usepackage{bbm}
  77. \usepackage{tcolorbox}
  78. \usepackage{tabularx}
  79. %\usepackage[backend=bibtex]{biblatex}
  80. \usepackage{cite}
  81. \usepackage{chngcntr}
  82. \counterwithin{figure}{chapter}
  83. \counterwithin{table}{chapter}
  84. \counterwithin{equation}{chapter}
  85. \counterwithin{algorithm}{chapter}
  86.  
  87. \input{arsclassica-settings}
  88.  
  89. \usepackage{tocloft}    
  90.  
  91. % ==================================================================
  92. % ==================================================================
  93. % Override the hyperlink settings:
  94. \hypersetup{%
  95.     colorlinks=false,  
  96.     linktocpage=false,
  97.     citecolor=webgreen%
  98.     }
  99. % ----------------------------------------------------------------------
  100. % Override page number font
  101. \renewcommand{\pnumfont}{\normalfont}
  102. % ----------------------------------------------------------------------
  103.  
  104. \makeatletter
  105. % -- for chapters --
  106. \newcommand\myformatchapter[1]{%
  107.     \vbox to \ht\strutbox{
  108.    \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }
  109.    \advance\hsize-\wd0 \advance\hsize-10pt\raggedright
  110.    \spacedallcaps{#1}\vss}}
  111.    \titleformat{\chapter}[block]
  112.       {\normalfont\Large}
  113.       {\textcolor{halfgray}{\chapterNumber\thechapter} % color of Chapter number
  114.        \hspace{10pt}\vline\ }{10pt}
  115.    {\formatchapter}  
  116.    
  117.    
  118.    
  119. % ----------------------------------------------------------------------
  120. \makeatletter
  121. \renewcommand\formatchapter[1]{%
  122.   \begin{minipage}[b]{0.15\linewidth}
  123.    \chapterNumber
  124.  \end{minipage}%
  125.   \begin{minipage}[b]{0.6\linewidth}
  126.    \raggedright\normalsize\spacedallcaps{#1}
  127.  \end{minipage}
  128. }
  129. \makeatother
  130. % ------------------------------------------------------------------------
  131.  
  132. \renewcommand{\cftchapfont}{\normalfont\normalsize}  
  133. \renewcommand{\cftchappresnum}{\normalfont\normalsize}
  134.  
  135.  
  136. % -- for sections --
  137. \titleformat{\section}
  138. {\normalfont}{\thesection}{1em}{}                
  139. \renewcommand{\cftsecfont}{}                      
  140.  
  141. % -- for subsections --
  142. \titleformat{\subsection}
  143. {\normalfont\itshape}{\thesubsection}{1em}{}    
  144. \renewcommand{\cftsubsecfont}{\itshape}        
  145. \makeatother
  146.  
  147.  
  148.  
  149.  
  150. % ==================================================================
  151. % ==================================================================
  152.  
  153.  
  154. % -- dotted lines in toc --
  155. \renewcommand{\cftchapleader}{\leaders\hbox to1em{\hss.\hss}\hskip 2.9mm plus1fill}
  156. \renewcommand\cftsecleader{\leaders\hbox to1em{\hss.\hss}\hskip 2.9mm plus1fill}
  157. \renewcommand\cftsubsecleader{\leaders\hbox to1em{\hss.\hss}\hskip 2.9mm plus1fill}
  158. \renewcommand\cftfigleader{\leaders\hbox to1em{\hss.\hss}\hskip 2.9mm plus1fill}
  159. \renewcommand\cfttableader{\leaders\hbox to1em{\hss.\hss}\hskip 2.9mm plus1fill}
  160.  
  161.  
  162. \usepackage{etoolbox}
  163.  
  164. % Fix to put section numbers on sections
  165. \makeatletter
  166. \patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}
  167. \patchcmd{\ttlh@hang}{\noindent}{}{}{}
  168. \makeatother
  169.  
  170. % custom arg min/max commands
  171. \newcommand{\argmin}{\operatornamewithlimits{argmin}}
  172. \newcommand{\argmax}{\operatornamewithlimits{argmax}}
  173. \algdef{SE}[DOWHILE]{Do}{doWhile}{\algorithmicdo}[1]{\algorithmicwhile\ #1}%
  174.  
  175. % declaration of parallel for block
  176. \algblock{ParFor}{EndParFor}
  177. % customization of the parallel for block
  178. \algnewcommand\algorithmicparfor{\textbf{for}}
  179. \algnewcommand\algorithmicpardo{\textbf{do in parallel}}
  180. \algnewcommand\algorithmicendparfor{\textbf{end\ for}}
  181. \algrenewtext{ParFor}[1]{\algorithmicparfor\ #1\ \algorithmicpardo}
  182. \algrenewtext{EndParFor}{\algorithmicendparfor}
  183.  
  184. \renewcommand{\algorithmicrequire}{\textbf{Input:}}
  185. \renewcommand{\algorithmicensure}{\textbf{Output:}}
  186.  
  187. % thick line for table
  188. \makeatletter
  189.  \def\hlinewd#1{%
  190.     \noalign{\ifnum0=`}\fi\hrule \@height #1 \futurelet
  191.     \reserved@a\@xhline
  192. }
  193. \makeatother
  194.  
  195.  
  196. \clearscrheadfoot
  197. \cfoot{\pagemark}
  198.  
  199.  
  200.  
  201. %******************************************************************
  202. %******************************************************************
  203. %**********************                ****************************
  204. %********************** BEGIN DOCUMENT ****************************
  205. %**********************                ****************************
  206. %******************************************************************
  207. %******************************************************************
  208. \begin{document}
  209. \pagenumbering{roman}
  210. \pagestyle{plain}
  211.  
  212. %******************************************************************
  213. % Frontmatter
  214. %******************************************************************
  215. \input{FrontMatter/Titlepage}
  216. \setcounter{page}{1}
  217. \input{FrontMatter/AbstractPage}
  218. \input{FrontMatter/Titleback}
  219. \input{FrontMatter/ApprovedForm}
  220.  
  221. \pagestyle{scrheadings}
  222. \input{FrontMatter/Dedication}
  223. \input{FrontMatter/Acknowledgements}
  224. \clearpage
  225.  
  226. \clearpage
  227.  
  228. \clearscrheadfoot
  229. \cfoot[\pagemark]{\pagemark}
  230. \input{FrontMatter/Contents}
  231. \cleardoublepage
  232. %******************************************************************
  233. % Mainmatter
  234. %******************************************************************
  235. \pagenumbering{arabic}
  236. \input{Dissertation/src/Chapters/chapter_1}
  237. \input{Dissertation/src/Chapters/chapter_3}
  238. \input{Dissertation/src/Chapters/chapter_4}
  239. \input{Dissertation/src/Chapters/chapter_5}
  240. \input{Dissertation/src/Chapters/chapter_10}
  241. % *****************************************************************
  242. % Backmatter
  243. %******************************************************************
  244. \clearpage
  245. %----------------------------------------------------------------------------------------
  246. %   BIBLIOGRAPHY
  247. %----------------------------------------------------------------------------------------
  248. \phantomsection
  249. \addcontentsline{toc}{chapter}{\tocEntry{References}}
  250. \renewcommand{\refname}{{References}} % For modifying the bibliography heading
  251. % \singlespacing
  252. % \section{References}
  253. \small
  254. \bibliographystyle{unsrt}
  255. \bibliography{bibfile} % The file containing the bibliography
  256.  
  257. \end{document}
  258.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement