Compare commits
4 Commits
latex/54-d
...
56-bug-end
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d09adefd4 | ||
|
|
05926e3857 | ||
|
|
d13dfdc34e | ||
|
|
6b866b9ed5 |
0
latex/frontmatter/endorsement.tex
Normal file
0
latex/frontmatter/endorsement.tex
Normal file
BIN
latex/frontmatter/img/logo.png
Normal file
BIN
latex/frontmatter/img/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 253 KiB |
31
latex/frontmatter/maketitle.tex
Normal file
31
latex/frontmatter/maketitle.tex
Normal file
@@ -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}%
|
||||
|
||||
|
||||
0
latex/frontmatter/originality.tex
Normal file
0
latex/frontmatter/originality.tex
Normal file
@@ -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}
|
||||
5
latex/preamble/macros.tex
Normal file
5
latex/preamble/macros.tex
Normal file
@@ -0,0 +1,5 @@
|
||||
\newcommand{\eg}{\textit{e.g.},\ }
|
||||
\newcommand{\ie}{\textit{i.e.},\ }
|
||||
\newcommand{\etal}{\textit{et al.}}
|
||||
|
||||
\let\oldtableofcontents\tableofcontents % backup
|
||||
3
latex/preamble/packages.tex
Normal file
3
latex/preamble/packages.tex
Normal file
@@ -0,0 +1,3 @@
|
||||
\usepackage{amsmath, amssymb, siunitx}
|
||||
\usepackage{caption}
|
||||
\usepackage{subcaption}
|
||||
108
latex/thesis.cls
Normal file
108
latex/thesis.cls
Normal file
@@ -0,0 +1,108 @@
|
||||
\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
|
||||
}
|
||||
|
||||
% Frontmatter Macro (Toggle TOC Inclusion)
|
||||
\newcommand{\frontmattersection}[3]{%
|
||||
\begin{titlepage}
|
||||
\centering
|
||||
\ifstrequal{#1}{toc}{\section*{#2}\addcontentsline{toc}{section}{#2}}{\section*{#2}}%
|
||||
\input{frontmatter/#3}
|
||||
\end{titlepage}
|
||||
\clearpage
|
||||
}
|
||||
|
||||
% Wrapper Command for Each Page
|
||||
\newcommand{\theendorsementpage}[1]{\frontmattersection{#1}{Pengesahan}{endorsement}}
|
||||
\newcommand{\originalitystatement}[1]{\frontmattersection{#1}{Pernyataan Keaslian}{originality}}
|
||||
|
||||
|
||||
\endinput
|
||||
Reference in New Issue
Block a user