LaTeX forum ⇒ Theses, Books, Title pagesProblem in table of content

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Problem in table of content

Postby feryee » Mon Jul 17, 2017 5:49 pm

I am writing my thesis now, and i faced with strange issue. In my thesis style file, i had to update both the top margin of chapter title and font size from 14 to 16. Specifically in my style file i did:

  1. \newcommand\ackname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{ACKNOWLEDGMENT}}
  2. \newcommand\ozetname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{\"OZ}}
  3. \newcommand{\listsymbolname}{\vskip-0.2cm \hskip -0.65cm\fontsize{16.5}{1} \textbf{LIST OF SYMBOLS}}
  4. %\renewcommand\indexname{\vskip-0.5cm \hskip -0.65cm\fontsize{16}{1} \textbf{INDEX}}
  5. \renewcommand\partname{\vskip-0.5cm \hskip -0.65cm \fontsize{16}{1} \textbf{PART}}
  6. \renewcommand\appendixname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{APPENDIX}}
  7. \renewcommand\abstractname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{ABSTRACT}}


Now, the chapter title and top margin looks fine. However when it comes to TOC(check the image below), it appears in the same updated font size and introduces indention as the top margin setting. Same story happens when i change font size of some sections. is there anyway to avoid the change happens in my TOC only. Do i need to redefine
them again before \tableofconetent in the main document rather Style file.
My document class is report. Thank you.




  1. Here is MWE:
  2.  
  3. \documentclass{report}
  4. \usepackage{emu_tez}
  5. \begin{document}
  6. \begin{abstract}
  7. ABCD hjndjfjdkfkjdsfjdsjfkjdshfjdsh
  8. \end{abstract}
  9.  
  10. \begin{ozet}
  11. Just a example
  12. \end{ozet}
  13. \tableofcontents
  14. \chapter{One}
  15. \section{First section}
  16. \chapter{Two}
  17. \section{Another section}
  18. \end{document}


here is the style file:

  1. %emu_tez style
  2. \typeout{Thesis style for IGSR, Eastern University, Version 1.0}
  3. %
  4. % Definitions for title and approval pages
  5. %
  6. \def\degree#1{\gdef\@degree{#1}}
  7. %\def\program#1{\gdef\@program{#1}}
  8. \def\Dept#1{\gdef\@Dept{#1}}
  9. \def\subyear#1{\gdef\@subyear{#1}}
  10. \def\InstituteDirector#1{\gdef\@InstituteDirector{#1}}
  11. \def\DeptChair#1{\gdef\@DeptChair{#1}}
  12. \def\cosuperi#1{\gdef\@cosuperi{#1}}
  13. \def\cosuperii#1{\gdef\@cosuperii{#1}}
  14. \def\examineri#1{\gdef\@examineri{#1}}
  15. \def\examinerii#1{\gdef\@examinerii{#1}}
  16. \def\supervisor#1{\gdef\@supervisor{#1}}
  17. \def\examineriii#1{\gdef\@examineriii{#1}}
  18. \def\examineriv#1{\gdef\@examineriv{#1}}
  19. \def\examinerv#1{\gdef\@examinerv{#1}}
  20. \def\dateofapproval#1{\gdef\@dateofapproval{#1}}
  21. %
  22. \global\let\@degree\empty
  23. %\global\let\@program\empty
  24. \global\let\@Dept\empty
  25. \global\let\@InstituteDirector\empty
  26. \global\let\@DeptChair\empty
  27. \global\let\@cosuperi\empty
  28. \global\let\@cosuperii\empty
  29. \global\let\@examineri\empty
  30. \global\let\@examinerii\empty
  31. \global\let\@supervisor\empty
  32. \global\let\@examineriii\empty
  33. \global\let\@examineriv\empty
  34. \global\let\@examinerv\empty
  35. \global\let\@examinervi\empty
  36. \global\let\@dateofapproval\empty
  37. \def\nyear{\number\year}
  38. \def\nmonth{\number\month}
  39. \global\let\@subyear\nyear
  40. \global\let\@submonth\nmonth
  41. %
  42. % Other definitions
  43. %
  44. \xdef\@singlespaced{1}
  45. \xdef\@onehalfspaced{1.5}
  46. %
  47. \newlength{\insd}
  48. \newlength{\dc}
  49. \newlength{\dpt}
  50. \newlength{\spv}
  51. \newlength{\ei}
  52. \newlength{\csi}
  53. \newlength{\csii}
  54. \newlength{\eii}
  55. \newlength{\eiii}
  56. \newlength{\eiv}
  57. \newlength{\ev}
  58. \let\@app\empty
  59. \newcounter{thsfootcnt}
  60. %
  61. % Title page
  62. %
  63. \newcommand\uptitle{
  64. \ifx\@degree\empty \@@warning{No \string\degree\space given} \fi
  65. \null
  66. \vspace*{-45pt}
  67. \let\baselinestretch\@singlespaced{\fontsize{18.3}{1}{\textbf{\@title}} \\% %title font size
  68. \vskip 160pt %distance between title and author
  69. \fontsize{16.4}{1}{\textbf{\@author}} \\ %Author font size
  70. \vskip 110pt
  71. \large{Submitted to the\\Institute of Graduate Studies and Research\\ %%\large with the document class of 12pt corresponds to fontsize 14.4
  72. in partial fulfillment of the requirements for the degree of} \\[120pt]}}
  73. %\vskip 200pt
  74. \newcommand\downtitle{
  75. \vskip 120pt
  76. %\vskip 2\baselineskip
  77. \let\baselinestretch\@singlespaced{
  78. \vskip 00pt
  79. \large{Eastern Mediterranean University} \\ \large{}}\\[1pt] \large{}
  80. \null}
  81. %
  82. \newcommand\relaxtitlestuff{
  83. \setcounter{footnote}{0}%
  84. \global\let\thanks\relax
  85. \global\let\maketitle\relax
  86. \global\let\@thanks\@empty
  87. \global\let\@author\@empty
  88. \global\let\@date\@empty
  89. \global\let\author\relax
  90. \global\let\date\relax
  91. \global\let\and\relax}
  92. %
  93. \newcommand\makemstitle{\begin{titlepage}
  94. \let\baselinestretch\@singlespaced{
  95. \begin{center}
  96. \uptitle
  97. \vskip 56pt
  98. \large{Master of Science \\ in \\ \@Dept}
  99. \downtitle
  100. \end{center}}
  101. \end{titlepage}
  102. \relaxtitlestuff}
  103. %
  104.  
  105. \newcommand\makephdtitle{\begin{titlepage}
  106. \begin{center}
  107. \uptitle
  108. \large{Doctor of Philosophy} \\% \vspace{-0.5cm}
  109. \large{in}\\ %\vspace{-0.5cm}
  110. \large{\@Dept}
  111. \downtitle
  112. \end{center}
  113. \end{titlepage}
  114. \relaxtitlestuff}
  115. %
  116. % Approval page
  117. %
  118. \newcommand\makeapprovalpage{%
  119. \addtocounter{page}{-1}
  120. \settowidth{\insd}{\@InstituteDirector}
  121. \settowidth{\dc}{\@DeptChair}
  122. \settowidth{\dpt}{\@Dept}
  123. \settowidth{\ei}{\@examineri}
  124. \settowidth{\csi}{\@cosuperi}
  125. \settowidth{\csii}{\@cosuperii}
  126. \settowidth{\eii}{\@examinerii}
  127. \settowidth{\spv}{\@supervisor}
  128. \settowidth{\eiii}{\@examineriii}
  129. \settowidth{\eiv}{\@examineriv}
  130. \settowidth{\ev}{\@examinerv}
  131. \ifdim\ei>\spv \spv\ei \fi
  132. \ifdim\csii>\spv \spv\ei \fi
  133. \ifdim\eii>\spv \spv\eii \fi
  134. \ifdim\csi>\spv \spv\ei \fi
  135. \ifdim\eiii>\spv \spv\eiii \fi
  136. \ifdim\eiv>\spv \spv\eiv \fi
  137. \ifdim\ev>\spv \spv\ev \fi
  138. \vspace*{-1.6cm}
  139. \hspace{-0.5cm}Approval of the Institute of Graduate Studies and Research
  140. \vspace*{1cm}
  141. \begin{tabbing}
  142. \hspace*{3.0cm} \= \hspace*{\spv}\hspace*{1em} \= \kill
  143. \ifx\@InstituteDirector\empty \ifx\@cosuperi\empty \ifx\@cosuperi\empty
  144. \@@warning{No \string\InstituteDirector\space given} \fi \fi
  145. \else \hspace*{8.cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{8.5cm}\@InstituteDirector \> \\[-16pt]
  146. \>\hspace*{7.5cm} Director \\\\ \> \fi
  147. \hspace{-3.1cm}\vspace*{6cm}I certify that this thesis satisfies the requirements as a
  148. thesis for the degree of Doctor\\[-12pt]
  149. of Philosophy in \@Dept.\\[1cm]
  150. \vspace*{-0.5cm}
  151. \ifx\@supervisor\empty \ifx\@cosuperi\empty \ifx\@cosuperi\empty
  152. \@@warning{No \string\supervisor\space given} \fi \fi
  153. \else \hspace*{7.9cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{8.3cm}\@DeptChair\> \\[-16pt]
  154. \>\hspace*{4.8cm} Chair, Department of Electrical and\>\\[-16pt] %\hspace value can be change to change the position of expression"Electrical Engineering"
  155. \>\hspace*{5.8cm} Electronic Engineering\\[1cm]\> \fi
  156. \hspace{-3.1cm}We certify that we have read this thesis and that in our opinion it is fully adequate,\\[-12pt]
  157. in scope and quality as a thesis of the degree of Doctor of Philosophy in Electrical \\[-12pt]
  158. and Electronic Engineering.\\[1cm]
  159.  
  160. \ifx\@supervisor\empty \else \hspace*{8.1cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{9cm}\@supervisor \> \\[-16pt]
  161. \>\hspace*{7cm} Supervisor \> \\[-1.9cm]
  162.  
  163. \hspace*{-0.0cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{0.90cm}\@cosuperi \>
  164. \\[-16pt]
  165. \>\hspace*{-1.5cm} Cosupervisor \\ \>\\\\\fi
  166. \hspace*{10cm}Examining Committee\\*[-24pt]
  167. \makebox[14cm]\hrulefill\\
  168.  
  169. \ifx\@examineri\empty \else 1. \@examineri \> \hspace*{5cm}\makebox[60mm]\hrulefill \\ \fi
  170. \ifx\@examinerii\empty \else 2. \@examinerii \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
  171. \ifx\@examineriii\empty \else 3. \@examineriii \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
  172. 4. \@supervisor \> \hspace*{5cm}\makebox[60mm]\hrulefill \\
  173. \ifx\@examineriv\empty \else 5. \@examineriv \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
  174. \end{tabbing}
  175. \vfill
  176. %\vspace*{2cm}
  177. %\global\let\@title\@empty
  178. %\global\let\title\relax
  179. \global\let\@dateofapproval\@empty
  180. \global\let\dateofapproval\relax
  181. \global\let\@supervisor\@empty
  182. \global\let\supervisor\relax
  183. \global\let\@cosuperi\@empty
  184. \global\let\cosuperi\relax
  185. \global\let\@cosuperii\@empty
  186. \global\let\cosuperii\relax
  187. \global\let\@examineri\@empty
  188. \global\let\examineri\relax
  189. \global\let\@examinerii\@empty
  190. \global\let\examinerii\relax
  191. \global\let\@examineriii\@empty
  192. \global\let\examinerii\relax
  193. \global\let\@examinervi\@empty
  194. \global\let\examinervi\relax
  195. \global\let\@examinerv\@empty
  196. \global\let\examinerv\relax
  197. }
  198. %
  199. % Abstract, Acknowledgements, Oz, etc.
  200. %
  201.  
  202. \newenvironment{preface}{\chapter*{\prefacename}}
  203. {\par\vfil\null}
  204. %
  205. \newenvironment{foreword}{\chapter*{\forewordname}}
  206. {\par\vfil\null}
  207.  
  208. %************************* ABSTRACT TITLE ***********************
  209.  
  210. \renewenvironment{abstract}{\chapter*{\abstractname }
  211. \begin{center}
  212. %{\LARGE\abstractname}}
  213. {\textbf{}}\end{center}}
  214. {\par\vfil\null}
  215.  
  216. \newenvironment{acknowledgements}{\chapter*{\ackname}}
  217. {\par\vfil\null}
  218. %
  219. \newenvironment{ozet}{\chapter*{\ozetname }
  220. \vspace{-0.cm}
  221. \begin{center}{\large \textbf{}}\end{center}}
  222. {\par\vfil\null}
  223. %
  224. \newenvironment{symbols}{%
  225. \clearpage
  226. \chapter*{\listsymbolname}
  227. \beginsymlist}
  228. {\closesymlist}
  229. %
  230. \newcommand{\beginsymlist}{%
  231. \begin{tabbing}
  232. \hspace*{\symtabi}\=\hspace*{\symtabii}\=\kill}
  233. %
  234. \newcommand{\closesymlist}{\end{tabbing}}
  235. %
  236. \newcommand{\sym}[2]{\>#1 \>#2 \\}
  237. \newlength{\symtabi}
  238. \newlength{\symtabii}
  239. \setlength{\symtabi}{1em}
  240. \setlength{\symtabii}{10em}
  241. %
  242. \newcommand\prefacename{\vskip-0.2cm \hskip -0.65cm\fontsize{16}{1} \textbf{ PREFACE}}
  243. \newcommand\forewordname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{ APPENDICES}}
  244. \newcommand\ackname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{ACKNOWLEDGMENT}}
  245. \newcommand\ozetname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{\"OZ}}
  246. \newcommand{\listsymbolname}{\vskip-0.2cm \hskip -0.65cm\fontsize{16.5}{1} \textbf{LIST OF SYMBOLS}}
  247. %\renewcommand\indexname{\vskip-0.5cm \hskip -0.65cm\fontsize{16}{1} \textbf{INDEX}}
  248. \renewcommand\partname{\vskip-0.5cm \hskip -0.65cm \fontsize{16}{1} \textbf{PART}}
  249. \renewcommand\appendixname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{APPENDIX}}
  250. \renewcommand\abstractname{\vskip-0.2cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{ABSTRACT}}
  251. %
  252. % Sectional Units
  253. %
  254. \renewcommand\chapter{\clearpage
  255. \global\@topnum\z@
  256. \@afterindenttrue
  257. \secdef\@chapter\@schapter}
  258. %
  259. \renewcommand\@makechapterhead[1]{\begin{center}
  260. {\fontsize{16}{1}
  261. \ifnum \c@secnumdepth >\m@ne
  262. \ifx\@app\empty
  263. \vspace*{-0.8cm} \bfseries Chapter \hspace{0.5ex}\arabic{chapter} \\[0.95cm] %this line is used to set the chapter head margin in the first \vspace(i did \vspace{-1.98} corresponds to 3.5 cm top margin) and and the end of line\\[cm] is used to set the indent between chapter head and title that should be 24 pt which is aproximately 0.65cm after indent \\
  264. %\large\bfseries \hspace{1ex}
  265. \else
  266. \vspace*{-0.5cm}\large\bfseries \appendixname\ \thechapter.\hspace{1ex}
  267. \fi
  268. \fi
  269. \interlinepenalty\@M
  270. \large \bfseries #1\par\nobreak
  271. \vskip\baselineskip
  272. }\end{center}}
  273. %
  274. \renewcommand\@makeschapterhead[1]{\begin{center}
  275. { \normalfont
  276. \interlinepenalty\@M
  277. \vspace*{-1.5cm}\large \bfseries #1\par\nobreak %fo
  278. \vskip\baselineskip
  279. }\end{center}}
  280. %
  281. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  282. \refstepcounter{chapter}%
  283. \typeout{\@chapapp\space\thechapter}%
  284. \ifx\@app\empty
  285. \addcontentsline{toc}{chapter}%
  286. {\protect\numberline{\chaptocapp}#1}%
  287. \else
  288. \addtocontents{toc}{%
  289. \noindent
  290. \appendixname\ \thechapter\hspace{1.6ex}#1
  291. \nobreak\leaders
  292. \hbox{$\m@th \mkern \@dotsep mu\mkern
  293. \@dotsep mu$}
  294. \hfill \nobreak
  295. \hb@xt@\@pnumwidth{\hss \thepage}\par}
  296. \fi
  297. \else
  298. \addcontentsline{toc}{chapter}{#1}%
  299. \fi
  300. \chaptermark{#1}%
  301. \@makechapterhead{#2}%
  302. \@afterheading
  303. }
  304. %
  305. \renewcommand\@schapter[1]{\addcontentsline{toc}{chapter}{#1}%
  306. \@makeschapterhead{#1} \@afterheading}
  307. %
  308. \def\chaptocapp{\thechapter}
  309. %
  310. \renewcommand\section{\@startsection {section}{1}{\z@}%
  311. {7pt} %{-3.5ex \@plus -1ex \@minus -.2ex}
  312. {7pt} %{2.3ex \@plus.2ex}%
  313. {\fontsize{14}{1}\raggedright\bfseries\textbf\large}}
  314. \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
  315. {7pt}%{-3.25ex\@plus -1ex \@minus -.2ex}%
  316. {7pt}%{1.5ex \@plus .2ex}%
  317. {\raggedright\bfseries\textbf\normalsize}}
  318. \renewcommand\subsubsection[1]{\@startsection{subsubsection}{3}{\z@}%
  319. {7pt}%{-3.25ex\@plus -1ex \@minus -.2ex}%
  320. {-0.5em}%
  321. %{-3.25ex\@plus -1ex \@minus -.2ex}%
  322. %{-1em}%
  323. {\normalsize}[#1]{\underbar{#1.}}}
  324. \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%]
  325. {3.25ex \@plus1ex \@minus.2ex}%
  326. {-1em}%
  327. {\normalfont\normalsize\itshape}}
  328. %
  329. % There should be a period after the section number.
  330. \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  331. \let\@svsec\@empty\else
  332. \refstepcounter{#1}
  333. \ifnum#2=3
  334. \edef\@svsec{\underbar{\csname the#1\endcsname\hskip 0.5em}}
  335. \else
  336. \edef\@svsec{\csname the#1\endcsname\hskip 0.5em}\fi
  337. \fi
  338. \@tempskipa #5\relax
  339. \ifdim \@tempskipa>\z@
  340. \begingroup #6\relax
  341. \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
  342. \endgroup
  343. \csname #1mark\endcsname{#7}
  344. \addcontentsline{toc}{#1}
  345. {\ifnum #2>\c@secnumdepth
  346. \else \protect\numberline{\csname the#1\endcsname}
  347. \fi
  348. #7}
  349. \else
  350. \def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90
  351. \@svsec #8\ifnum #2>\c@secnumdepth.\fi
  352. \csname #1mark\endcsname{#7}
  353. \addcontentsline{toc}{#1}
  354. {\ifnum #2>\c@secnumdepth
  355. \else \protect\numberline{\csname the#1\endcsname}
  356. \fi
  357. #7}}
  358. \fi
  359. \@xsect{#5}}
  360. %
  361. % First paragraf of a section should be indented
  362. %\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
  363. % \par \@tempskipa #4\relax
  364. % \@afterindenttrue
  365. % \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \fi
  366. % \if@nobreak \everypar{}\else
  367. % \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
  368. % {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
  369. %
  370. \addtocounter{secnumdepth}{1}
  371. \addtocounter{tocdepth}{1}
  372. %
  373. % Figures and Tables
  374. %
  375. \renewcommand\listfigurename{\vskip 0.85cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{LIST OF FIGURES}}
  376. \renewcommand\listtablename{\vskip 0.85cm \hskip -0.65cm \fontsize{16.5}{1} \textbf{LIST OF TABLES}}
  377. \renewcommand\figurename{Figure}
  378. \renewcommand\tablename{Table}
  379. %
  380. \renewcommand\listoffigures{% \ev is used for temporary storage of \parskip
  381. \setlength{\baselineskip}{\baselineskip} % This is where the linespacing is changed in the list of tables. Aykut Hocanin
  382. \setlength{\ev}{\parskip}
  383. \parskip0pt
  384. \chapter*{\listfigurename
  385. \@mkboth{\listfigurename}%
  386. {\listfigurename}}%
  387. \@starttoc{lof}%
  388. \parskip\ev}
  389.  
  390. \renewcommand\listoftables{% \ev is used for temporary storage of \parskip
  391. \setlength{\baselineskip}{\baselineskip}
  392. \setlength{\ev}{\parskip}
  393. \parskip0pt
  394. \chapter*{\listtablename
  395. \@mkboth{%\vspace{-2cm}
  396. \MakeUppercase\listtablename}{\listtablename}}%
  397. \@starttoc{lot}%
  398. \parskip\ev}
  399. %
  400. % The expressions 'FIGURE' and 'TABLE' also appear in the LOF and LOT.
  401. \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
  402. ext@#1\endcsname}{#1}{\protect\numberline{
  403. \csname #1name\endcsname \space
  404.  
  405. % \csname the#1\endcsname .}{\ignorespaces #2}\protect\vspace{\baselineskip}}\begingroup
  406. \csname the#1\endcsname }{\ignorespaces #2}\protect\vspace{0.3\baselineskip}}\begingroup
  407.  
  408. \@parboxrestore
  409. \normalsize
  410. \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  411. \endgroup}
  412. %
  413. % A period should appear after the caption number.
  414. \long\def\@makecaption#1#2{%
  415. \vskip\abovecaptionskip
  416. \sbox\@tempboxa{#1. #2}%
  417. \ifdim \wd\@tempboxa >\hsize
  418. \centering{#1. #2}\par
  419. \else
  420. \global \@minipagefalse
  421. \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  422. \fi
  423. \vskip\belowcaptionskip}
  424. %
  425.  
  426. % The lines of LOF and LOT must not be dotted.
  427. \renewcommand\l@figure{\@dottedtocline{1}{0em}{6em}}
  428. \renewcommand\l@table{\@dottedtocline{1}{0em}{5.8em}}
  429. \def\@undottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
  430. \vskip \z@ plus.2\p@
  431. {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
  432. \parindent #2\relax\@afterindenttrue
  433. \interlinepenalty\@M
  434. \leavevmode
  435. \@tempdima #3\relax \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
  436. #4\nobreak\leaders\hbox{}\hfill \nobreak
  437. \hbox to\@pnumwidth{\hfil\reset@font\rm #5}
  438. % \\*[-2cm]
  439. \par}\fi}
  440.  
  441.  
  442. %
  443. % Table of Contents
  444. %
  445.  
  446.  
  447. %\renewcommand\contentsname{TABLE OF CONTENTS}
  448. %\renewcommand\tableofcontents{% \ev is used for temporary strage of \parskip
  449. %\setlength{\ev}{\parskip}
  450. %\parskip0pt
  451. % A line as 'TABLE OF CONTENTS' must not appear in the
  452. % Table of Contents. Hence we reproduce the \chapter* here except that
  453. % no entry is put into the toc file
  454. % \clearpage \global\@topnum\z@
  455. % \@afterindenttrue
  456. % \@makeschapterhead{\contentsname} \@afterheading
  457. %\@starttoc{toc}%
  458. %\parskip\ev}
  459. %
  460.  
  461. \renewcommand\contentsname{\vspace{-0.45cm}\fontsize{16.5}{1}\textbf{TABLE OF CONTENTS}\vspace{-1.2cm}}
  462. \renewcommand\tableofcontents{% \ev is used for temporary storage of \parskip
  463. \setlength{\ev}{\parskip}
  464. \parskip0pt
  465. % A line as 'TABLE OF CONTENTS' must not appear in the
  466. % Table of Contents. Hence we reproduce the \chapter* here except that
  467. % no entry is put into the toc file
  468. \clearpage\global\@topnum\z@
  469. \@afterindenttrue
  470. \begin{center}
  471. { \normalfont
  472. \interlinepenalty\@M
  473. \vspace*{-0.2cm}\large \bfseries \contentsname\par\nobreak
  474. \vskip\baselineskip \vskip\baselineskip % *********** bir vskip fazladan koyduk
  475. }\end{center}
  476. \@afterheading
  477. \@starttoc{toc}%
  478. \parskip\ev}
  479.  
  480.  
  481. % EMU IGER style TOC does not have bold lines
  482. \renewcommand\l@chapter[2]{%
  483. \ifnum \c@tocdepth >\m@ne
  484. \addpenalty{-\@highpenalty}%
  485. %EMU IGER style TOC does not have extra space between chapterlines
  486. \vskip 0.5em \@plus\p@
  487. \setlength\@tempdima{1.5em}%
  488. \begingroup
  489. \parindent \z@ \rightskip \@pnumwidth
  490. \parfillskip -\@pnumwidth
  491. \leavevmode % That is what we have to comment out: \bfseries
  492. \advance\leftskip\@tempdima
  493. \hskip -\leftskip
  494. #1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
  495. mu$}\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  496. \penalty\@highpenalty
  497. \endgroup
  498. \fi}
  499. %
  500. % The spacing of the TOC lines has been redefined.
  501. \renewcommand*\l@section{\@dottedtocline{1}{5em}{2.em}}
  502. \renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{2.9em}}
  503. \renewcommand*\l@subsubsection{\@dottedtocline{3}{7em}{3.8em}}
  504. \renewcommand*\l@paragraph{\@dottedtocline{4}{11.1em}{4.7em}}
  505. \renewcommand*\l@subparagraph{\@dottedtocline{5}{16.1em}{5.7em}}
  506. %
  507. % Appendix
  508. %
  509. \renewcommand\appendix{\par
  510. \setcounter{chapter}{0}%
  511. \setcounter{section}{0}%
  512. \renewcommand\@chapapp{\appendixname}
  513. \renewcommand\thechapter{\@Alph\c@chapter}%
  514. \let\@app1
  515. }
  516. %
  517. % References
  518. %
  519. %\def\@biblabel#1{#1.} % This removes the square brackets AH
  520. %
  521. \newenvironment{harvardbibliography}{\chapter*{\bibname}%
  522. \begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt
  523. \item indent-2em \item sep\parskip \parsep0pt}}
  524. {\def\@noitemerr
  525. {\@latex@warning{Empty `harvardbibliography' environment}}
  526. \end{list}}
  527. %
  528. \newenvironment{bibnotcited}[1]{\chapter*{\bibncname}%
  529. \list{\@biblabel{\@arabic\c@enumiv}}%
  530. {\settowidth\labelwidth{\@biblabel{#1}}%
  531. \leftmargin\labelwidth
  532. \advance\leftmargin\labelsep
  533. \@openbib@code
  534. \usecounter{enumiv}%
  535. \let\p@enumiv\@empty
  536. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  537. \sloppy
  538. \clubpenalty4000
  539. \@clubpenalty \clubpenalty
  540. \widowpenalty4000%
  541. \sfcode`\.\@m}
  542. {\def\@noitemerr
  543. {\@latex@warning{Empty `bibnotcited' environment}}%
  544. \endlist}
  545. %
  546. \newenvironment{harvardbibnotcited}{\chapter*{\bibncname}%
  547. \begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt
  548. \itemindent-2em \itemsep\parskip \parsep0pt}}
  549. {\def\@noitemerr
  550. {\@latex@warning{Empty `harvardbibnotcited' environment}}%
  551. \end{list}}
  552. \renewcommand{\bibname}{\vskip -0.1cm \hskip -0.65cm \fontsize{16.5}{1}\textbf{ REFERENCES}}
  553. %\newcommand{\bibncname}{\vskip-1.3cm \hskip -0.65cm REFERENCES NOT CITED}
  554. %
  555. % Footnotes are numbered consecutively throughout the
  556. % whole thesis and single line-spacing is invoked
  557. %
  558. \def\footnote#1{%
  559. \@ifnextchar[{\@xfootnote}{%
  560. \setcounter{footnote}{\value{thsfootcnt}}%
  561. \addtocounter{thsfootcnt}{1}%
  562. \stepcounter{\@mpfn}%
  563. \begingroup\let\protect\noexpand
  564. \xdef\@thefnmark{\thempfn}\endgroup
  565. \let\baselinestretch\@singlespaced
  566. \@footnotemark\@footnotetext{#1}
  567. \let\baselinestretch\@onehalfspaced}
  568. }
  569. %
  570. % Single line spacing is required in in quotations
  571. %
  572. \renewenvironment{quotation}{%
  573. \par
  574. \list{}{%
  575. \let\baselinestretch\@singlespaced
  576. \listparindent 1.5em%
  577. \itemindent \listparindent
  578. \rightmargin \leftmargin
  579. \parsep \z@ \@plus\p@}%
  580. \item\relax}
  581. {\par
  582. \let\baselinestretch\@onehalfspaced
  583. \endlist}
  584. \renewenvironment{quote}{%
  585. \par
  586. \let\baselinestretch\@singlespaced
  587. \list{}{%
  588. \baselineskip0.67\baselineskip
  589. \listparindent 1.5em%
  590. \itemindent\listparindent
  591. \rightmargin\leftmargin}%
  592. \item\relax}
  593. {\par
  594. \let\baselinestretch\@onehalfspaced
  595. \endlist}
  596. %
  597. % Spacing for displayed formulas (redefine the \normalsize command
  598. % Note: In earlier implementations of LaTeX \@normalsize may need
  599. % to be redefined instead of \normalsize
  600. %
  601. \renewcommand{\normalsize}{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
  602. \abovedisplayskip 20pt %\p@ plus3\p@ minus7\p@
  603. \belowdisplayskip \abovedisplayskip
  604. \abovedisplayshortskip \abovedisplayskip %\z@ plus3\p@
  605. \belowdisplayshortskip \abovedisplayskip %6.5\p@ plus3.5\p@ minus3\p@
  606. \let\@listi\@listI}
  607. %
  608. % Page style
  609. %
  610. \oddsidemargin 1.6cm
  611. \evensidemargin 2cm
  612. \topmargin -1.3cm
  613. %\headheight20pt
  614. \textwidth 146mm
  615. \textheight 249mm
  616. %\pagestyle{myheadings}
  617. %
  618. % Invoke double spacing
  619. \renewcommand{\baselinestretch}{2}
  620. \setlength{\parskip}{\baselineskip}
  621. %
  622. % This is end of emu_tez.sty
Attachments
weired.png
weired.png (13.43 KiB) Viewed 210 times
Last edited by feryee on Mon Jul 17, 2017 6:42 pm, edited 1 time in total.

feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Postby feryee » Mon Jul 17, 2017 5:52 pm

Let me add i tried to change it by using \printtoctitle but i didn't work it out. Your help would be appreciated.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8342
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Jul 18, 2017 5:56 pm

Hi,

it is the fault of the template. There is a line with manual spacing by \vspace:

\renewcommand\contentsname{\vspace{-0.45cm}\fontsize{16.5}{1}\textbf{TABLE OF CONTENTS}}

You can adjust it in your tex document itself, such as:

  1. \usepackage{emu_tez}
  2. \renewcommand\contentsname{\vspace{-0.8cm}\fontsize{16.5}{1}\textbf{TABLE OF CONTENTS}}


You just need to find the right value. There are some chosen values in the sty file in the makechapterhead macros, for example.

Stefan
Site admin

feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Postby feryee » Tue Jul 18, 2017 7:12 pm

Thank you very much but if i do your mentioned adjustment then my chapter title will return to previous setting(14pt and 1.5 cm). I need to make chapter title 16 pt and 2.5 cm from top. I did that manually with those line which effects the table of content. what if change

  1. \renewcommand\contentsname{\vspace{-0.45cm}\fontsize{16.5}{1}\textbf{TABLE OF CONTENTS}}


to its previous setting and to update chapter title font to 16pt and margin to 2.5 cm from top i try to change the following line in the style file:

  1. \renewcommand\@makeschapterhead[1]{\begin{center}
  2. { \normalfont
  3. \interlinepenalty\@M
  4. \vspace*{-1.5cm}\large \bfseries #1\par\nobreak
  5. \vskip\baselineskip
  6. }\end{center}}


is my approach right?


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests