diff --git a/latex/frontmatter/img/logo.png b/latex/frontmatter/img/logo.png new file mode 100644 index 0000000..19d31da Binary files /dev/null and b/latex/frontmatter/img/logo.png differ diff --git a/latex/frontmatter/maketitle.tex b/latex/frontmatter/maketitle.tex new file mode 100644 index 0000000..b5e198b --- /dev/null +++ b/latex/frontmatter/maketitle.tex @@ -0,0 +1,31 @@ +\begin{titlepage} + \centering + \vspace*{1cm} + + {\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{Tugas Akhir}}\par} + \vspace{1.5cm} + + {\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{\thesistitle}}\par} + \vspace{1.5cm} + + \includegraphics[width=5cm]{frontmatter/img/logo.png} + \vspace{1.5cm} + + + \textbf{Disusun oleh:} \\ + {\fontsize{14pt}{16pt}\selectfont \textbf{\studentname}} \\ + {\fontsize{14pt}{16pt}\selectfont \textbf{\studentid}} \\ + + + \vfill + + {\fontsize{12pt}{14pt}\selectfont + \textbf{\program} \\ + \textbf{\faculty} \\ + \textbf{\university} \\ + \textbf{\yearofsubmission} + } + + \end{titlepage}% + + \ No newline at end of file diff --git a/latex/frontmatter/title_page.tex b/latex/frontmatter/title_page.tex deleted file mode 100644 index e69de29..0000000 diff --git a/latex/main.tex b/latex/main.tex index e69de29..ae8158b 100644 --- a/latex/main.tex +++ b/latex/main.tex @@ -0,0 +1,35 @@ +\documentclass{thesis} + +% Title Information +\setthesisinfo + {Prediksi Lokasi Kerusakan dengan Machine Learning} + {Rifqi Damar Panuluh} + {20210110224} + {PROGRAM STUDI TEKNIK SIPIL} + {FAKULTAS TEKNIK} + {UNIVERSITAS MUHAMMADIYAH YOGYAKARTA} + {2025} + +% Input preamble +\input{preamble/packages} +% \input{preamble/fonts} +\input{preamble/macros} + +\begin{document} + +\maketitle +\tableofcontents +\clearpage + +% Include content +\include{content/abstract} +\include{content/introduction} +\include{chapters/01_introduction} +\include{content/chapter2} +\include{content/conclusion} + +% Bibliography +% \bibliographystyle{IEEEtran} +% \bibliography{references} + +\end{document} \ No newline at end of file diff --git a/latex/preamble/macros.tex b/latex/preamble/macros.tex new file mode 100644 index 0000000..af6135e --- /dev/null +++ b/latex/preamble/macros.tex @@ -0,0 +1,5 @@ +\newcommand{\eg}{\textit{e.g.},\ } +\newcommand{\ie}{\textit{i.e.},\ } +\newcommand{\etal}{\textit{et al.}} + +\let\oldtableofcontents\tableofcontents % backup \ No newline at end of file diff --git a/latex/preamble/packages.tex b/latex/preamble/packages.tex new file mode 100644 index 0000000..876d45d --- /dev/null +++ b/latex/preamble/packages.tex @@ -0,0 +1,3 @@ +\usepackage{amsmath, amssymb, siunitx} +\usepackage{caption} +\usepackage{subcaption} diff --git a/latex/thesis.cls b/latex/thesis.cls new file mode 100644 index 0000000..7f2137e --- /dev/null +++ b/latex/thesis.cls @@ -0,0 +1,95 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{thesis}[2025/05/10 Bachelor Thesis Class] + +\LoadClass[a4paper,12pt]{report} + +% Load common packages +\RequirePackage{fontspec} +\RequirePackage{titlesec} +\RequirePackage{fancyhdr} +\RequirePackage{geometry} +\RequirePackage{setspace} +\RequirePackage{graphicx} +\RequirePackage{hyperref} +\RequirePackage{etoolbox} +\RequirePackage{tocloft} + +% Page layout +\geometry{margin=1in} +\setlength{\parskip}{0.5em} +\setlength{\parindent}{0pt} +\onehalfspacing + +% Fonts +\defaultfontfeatures{Ligatures=TeX} +\setmainfont{Times New Roman} +\setsansfont{Arial} +\setmonofont{Courier New} + +% Metadata commands +\newcommand{\studentname}{} +\newcommand{\studentid}{} +\newcommand{\thesistitle}{} +\newcommand{\faculty}{} +\newcommand{\program}{} +\newcommand{\university}{} +\newcommand{\yearofsubmission}{} + +\newcommand{\setthesisinfo}[7]{% + \renewcommand{\thesistitle}{#1}% + \renewcommand{\studentname}{#2}% + \renewcommand{\studentid}{#3}% + \renewcommand{\program}{#4}% + \renewcommand{\faculty}{#5}% + \renewcommand{\university}{#6}% + \renewcommand{\yearofsubmission}{#7}% +} + +% Header and footer +\pagestyle{fancy} +\fancyhf{} +\fancyhead[R]{\nouppercase{\rightmark}} +\fancyhead[L]{\nouppercase{\leftmark}} +\fancyfoot[C]{\thepage} + +% Chapter formatting +\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter.}{1em}{} +\titlespacing*{\chapter}{0pt}{-10pt}{20pt} + +% Redefine \maketitle +\renewcommand{\maketitle}{\input{frontmatter/maketitle}} + +% Chapter & Section format +\renewcommand{\cftchapfont}{\bfseries\MakeUppercase} +\renewcommand{\cftsecfont}{} +\renewcommand{\cftsubsecfont}{\itshape} + +% Dot leaders, spacing, indentation +\setlength{\cftbeforechapskip}{1em} +\setlength{\cftchapindent}{0pt} +\setlength{\cftsecindent}{1.5em} +\setlength{\cftsubsecindent}{3em} +\setlength{\cftchapnumwidth}{3em} +\setlength{\cftsecnumwidth}{3.5em} +\setlength{\cftsubsecnumwidth}{4.5em} + +% Title styling +\renewcommand{\contentsname}{\hfill\bfseries\normalsize DAFTAR ISI\hfill} +\renewcommand{\cfttoctitlefont}{\bfseries\MakeUppercase} +% \renewcommand{\cftaftertoctitle}{\vskip 2em} + +\renewcommand{\tableofcontents}{ + \clearpage + \pagestyle{plain} % Roman page number, centered bottom + \pagenumbering{roman} + \setcounter{page}{viii} % Optional: sync with expected numbering + \addcontentsline{toc}{chapter}{DAFTAR ISI} + \oldtableofcontents + \clearpage + \pagenumbering{arabic} + \setcounter{page}{1} % Start chapter 1 at page 1 +} + + + +\endinput \ No newline at end of file