Incorrect spacing in new 2018 latex template

46 views
Skip to first unread message

Jay J

unread,
Jan 25, 2019, 6:34:39 AM1/25/19
to utmthesi...@googlegroups.com
Hi,
Is there a way to fix the spacing between the title and first paragraph. Currently there is no space, while the guideline requires it to be 1cm.
Here is a screenshot of the output:

image.png

Would you kindly please help.

Thank you.

Regards,
--
Juliet Nyokabi


Muhammad Nadzir Marsono

unread,
Jan 25, 2019, 6:36:38 AM1/25/19
to utmthesi...@googlegroups.com
Hi Juliet
Does this happen only to this section only or to all sections? Can you provide us with a minimum working example so that we can verify?

--
To post to this group, email to utmthesi...@googlegroups.com
To unsubscribe, email to utmthesis-disc...@googlegroups.com
For more, visit http://groups.google.com/group/utmthesis-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "LaTeX for UTM Thesis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utmthesis-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jay J

unread,
Jan 25, 2019, 9:37:34 AM1/25/19
to utmthesi...@googlegroups.com
Hi Nadzir,
Yes this happens throughout the entire thesis.
Here is a minimal working example of my document. Thank you.




\documentclass{utmthesis}
\usepackage{graphicx}
\usepackage{array}
\usepackage{url}		
\urlstyle{same} 			%%to make url doi font style uniform with the text
\usepackage{enumerate}
\usepackage[pages=some]{background}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{subcaption}
\usepackage[cmex10]{amsmath}
\usepackage{amsfonts}
\usepackage{natbib}
\usepackage{xpatch}
\usepackage[labelfont=bf]{caption}	%%for bold caption labels for figures and tables

%\usepackage[section]{algorithm}
%\usepackage{algorithmicx}
\usepackage{algpseudocode}

\renewcommand{\thealgorithm}{\arabic{chapter}.\arabic{algorithm}} 

\xpatchcmd{\algorithmic}{\setcounter}{\algorithmicfont\setcounter}{}{}
\providecommand{\algorithmicfont}{}
\providecommand{\setalgorithmicfont}[1]{\renewcommand{\algorithmicfont}{#1}}
\renewcommand{\algorithmiccomment}[1]{{\tiny\hfill$\triangleright$ #1}}

\usepackage{amssymb}
\usepackage{amsthm}

\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{conjecture}[theorem]{Conjecture} 
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}{Definition}[chapter]
%\newtheorem{example}[section]{Example}
\newtheorem{example}[theorem]{Example}

%\usepackage{example}
%\numberwithin{example}{chapter}

\usepackage[utf8]{inputenc}			%%for adding punctuation in the word naive
\usepackage{dirtytalk}
\usepackage{bibentry}				%%to add a list of publications-Option 2
\usepackage{listings}				%%to add programming source code as it is
	\lstset{
  		basicstyle=\ttfamily,
  		columns=fullflexible,
  		frame=single,
  		breaklines=true,
  		postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
		}

\usepackage{pifont}  %%package for checkmark and xmark symbols
	\newcommand{\cmark}{\ding{51}}%
	\newcommand{\xmark}{\ding{55}}%	
	
\DeclareUnicodeCharacter{2212}{-}	%%to allow for hyphen character in the Malay Abstract Section
\DeclareUnicodeCharacter{2032}{+}

\usepackage[nobottomtitles*]{titlesec}	%%prevent heading titles from appearing at the bottom of the page and it will place your heading in the next page.
\usepackage{seqsplit} 	%%To split a long number over multiple lines without hyphenation

\begin{document}
....
....
\chapter{Introduction}
	\label{chap1}
.......................

\section{Overview}
%
%
\section{Significance of the Study}
This study provides an overview of ...

..................
\bibliographystyle{utmthesis-authordate}
\bibliography{reference_thesis,reference}

%%appendices
\end{document}
--
Gaithuru Juliet Nyokabi
MSc. Computer Science (Information Security)

Muhammad Nadzir Marsono

unread,
Jan 25, 2019, 10:04:58 AM1/25/19
to utmthesi...@googlegroups.com
I will try tomorrow. I guess one or more packages overwrite the title vskip, probably titlesec. 

I will confirm later.

Jay J

unread,
Jan 25, 2019, 11:01:52 AM1/25/19
to utmthesi...@googlegroups.com
Dear Nadzir,

Thank you. I appreciate it.

Regards,
Juliet

Muhammad Nadzir Marsono

unread,
Jan 25, 2019, 6:32:18 PM1/25/19
to utmthesi...@googlegroups.com
Titlesec has been defined and used in utmthesis,cls. Redeclaring the package overwrite the seeting. Commenting it shows the desired output. BTW, the code is not really MWE.

%\usepackage[nobottomtitles*]{titlesec}
image.png

Jay J

unread,
Jan 29, 2019, 8:37:41 AM1/29/19
to utmthesi...@googlegroups.com
Okay....I see.
I will comment titlesec. That solves it.

Thank you.

Sin Yee Yap

unread,
Dec 2, 2019, 10:55:31 PM12/2/19
to LaTeX for UTM Thesis
Hi, I also encounter the same problem but I did not add the titlesec package, so I am not sure what actually causing the spacing between section and paragraph is not working.

YS Yap

unread,
Dec 2, 2019, 11:01:08 PM12/2/19
to LaTeX for UTM Thesis
Hi, can you share your minimal working example?

Thanks.

Y.S. Yap

unread,
Dec 4, 2019, 10:37:08 AM12/4/19
to utmthesi...@googlegroups.com
Hi Sin Yee

I added the lines into my template but unfortunately, I could not replicate your problem..

\usepackage{comment}
\usepackage{array}
\newcolumntype{L}{>{\centering\arraybackslash}m{3cm}}

See the first line. I've compiled it today with these codes inside.  
Maybe you can try to comment out these packages in your file (along with the related text) and see if the problem persists?

image.png

Regards

Yap

~~~
A lie can travel half way around the world while the truth is putting on its shoes.
Mark Twain
~~~


--
To post to this group, email to utmthesi...@googlegroups.com
To unsubscribe, email to utmthesis-disc...@googlegroups.com
For more, visit http://groups.google.com/group/utmthesis-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "LaTeX for UTM Thesis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utmthesis-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages