Compare commits

...

14 Commits

Author SHA1 Message Date
nuluh
92a7143d90 fix(latex): update frontmatter section command to correctly add TOC entries as chapters 2025-05-11 11:38:53 +07:00
nuluh
5e08d4f8c6 fix(latex): remove custom table of contents command since it doesnt give any effects when directly \renewcommand without through packages 2025-05-11 11:21:50 +07:00
nuluh
907f725fa7 fix(latex): remove redundant command for chapter dot separation in TOC 2025-05-11 11:13:20 +07:00
nuluh
676b2b1a87 fix(latex): remove accidental prefix 'chapter' string in TOC and fix the section numbering to keep using chapter's counter in arabic instead of inherited in roman 2025-05-11 11:12:50 +07:00
nuluh
e0fbc23257 fix(latex): ensure TOC and references respect custom numbering by redefining \thechapter to preserve the roman in TOC 2025-05-11 11:09:24 +07:00
nuluh
39f966e71b chore(latex): clarify comment for TOC title styling in thesis class 2025-05-11 10:56:32 +07:00
nuluh
740680d1c7 fix(latex): fix \contentsname to keep the title centered by adding dummy second \hfill in the \cftaftertoctitle when using \fancypagestyle or other fancyhdr effects 2025-05-11 10:45:42 +07:00
nuluh
2db5170366 fix(latex): correct chapter dot leaders and page font in table of contents to be all normalfont for all level instead of bfseries 2025-05-11 10:41:40 +07:00
nuluh
f83b890055 fix(latex): add tocbibind package to include toc itself in the toc and give dot leaders to it. 2025-05-11 10:23:30 +07:00
nuluh
7820dd580a feat(latex): add endorsement page with committee approval details and department head information 2025-05-11 08:37:19 +07:00
nuluh
6c0fb67b86 refactor(latex): refactor metadata commands for thesis information and load from external file to implement reusability 2025-05-11 01:08:49 +07:00
nuluh
792ed64027 fix(latex): adjust section number width in table of contents for best desired looks 2025-05-11 00:48:57 +07:00
nuluh
c57a916a1a fixlatex): fix chapter formatting and spacing in thesis class to be aligned at before chapter number and restyle \chapter to be centered and use hardcoded prefix "BAB" following with roman numbering 2025-05-10 18:50:41 +07:00
nuluh
ca668ffc5f feat(latex): add endorsement and originality statements to the document 2025-05-10 17:39:36 +07:00
4 changed files with 111 additions and 31 deletions

View File

@@ -0,0 +1,64 @@
% frontmatter/endorsement.tex
\setmainfont{Times New Roman}
\begin{center}
\textbf{\Large LEMBAR PENGESAHAN TUGAS AKHIR} \\[0.5em]
\textit{APPROVAL SHEET}
\end{center}
\vspace{1em}
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{llp{10cm}}
\textbf{Judul} & : & \thesistitle \\
\textit{Title} & & \\
\textbf{Mahasiswa} & : & \studentname \\
\textit{Student} & & \\
\textbf{Nomor Mahasiswa} & : &\studentid \\
\textit{Student ID.} & & \\
\textbf{Dosen Pembimbing} & : & 1. \firstadvisor \\
\textit{Advisors} & & 2. \secondadvisor
\end{tabular}
\vspace{1em}
\textbf{Telah disetujui oleh Tim Penguji:} \\
\textit{Approved by the Committee on Oral Examination}
\vspace{1em}
\begin{tabular}{lp{5cm}}
\textbf{\firstadvisor} &:
% \vspace{2cm} % signature space
% \\[1em] % pull up next row
\\
\textit{Ketua Tim Penguji} &
\noindent\makebox[5cm]{\hrulefill}\\[-0.5em]
\textit{\small Chair} & \small Yogyakarta, \dotfill 2020
\\
\textbf{\secondadvisor} &:
% \vspace{2cm} % signature space
% \\[1em] % pull up next row
\\
\textit{Ketua Tim Penguji} &
\noindent\makebox[5cm]{\hrulefill}\\[-0.5em]
\textit{\small Chair} & \small Yogyakarta, \dotfill 2020 \\
\end{tabular}
\vspace{1em}
\noindent
\textbf{Diterima dan disetujui sebagai persyaratan untuk memperoleh gelar Sarjana Teknik} \\
\textit{Accepted in partial fulfillment of the requirements for the degree of Bachelor of Engineering}
\vspace{2em}
\begin{center}
\textbf{Ketua Program Studi} \\
\textit{Head of Department}
\end{center}
\vspace{3em}
\begin{center}
\textbf{\headdepartement} \\
NIK. \headdepartementid
\end{center}

View File

@@ -18,6 +18,8 @@
\begin{document}
\maketitle
\theendorsementpage{toc}
\originalitystatement{toc}
\tableofcontents
\clearpage

11
latex/metadata.tex Normal file
View File

@@ -0,0 +1,11 @@
\newcommand{\studentname}{Rifqi Damar Panuluh}
\newcommand{\studentid}{20210110224}
\newcommand{\thesistitle}{Prediksi Lokasi Kerusakan dengan Machine Learning}
\newcommand{\firstadvisor}{Ir. Muhammad Ibnu Syamsi, Ph.D.}
\newcommand{\secondadvisor}{}
\newcommand{\headdepartement}{Puji Harsanto, S.T. M.T., Ph.D.}
\newcommand{\headdepartementid}{19740607201404123064}
\newcommand{\faculty}{Fakultas Teknik}
\newcommand{\program}{Teknik Sipil}
\newcommand{\university}{Universitas Muhammadiyah Yogyakarta}
\newcommand{\yearofsubmission}{2025}

View File

@@ -13,6 +13,7 @@
\RequirePackage{hyperref}
\RequirePackage{etoolbox}
\RequirePackage{tocloft}
\RequirePackage{tocbibind}
% Page layout
\geometry{margin=1in}
@@ -27,13 +28,7 @@
\setmonofont{Courier New}
% Metadata commands
\newcommand{\studentname}{}
\newcommand{\studentid}{}
\newcommand{\thesistitle}{}
\newcommand{\faculty}{}
\newcommand{\program}{}
\newcommand{\university}{}
\newcommand{\yearofsubmission}{}
\input{metadata} % Load metadata from external file
\newcommand{\setthesisinfo}[7]{%
\renewcommand{\thesistitle}{#1}%
@@ -53,48 +48,56 @@
\fancyfoot[C]{\thepage}
% Chapter formatting
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter.}{1em}{}
\titlespacing*{\chapter}{0pt}{-10pt}{20pt}
\titleformat{\chapter}[display]
{\bfseries\Large\centering}
{BAB~\Roman{chapter}} % << display format
{1ex}
{\MakeUppercase}
% Ensure chapter reference in TOC matches
\renewcommand{\cftchappresnum}{BAB~}
\renewcommand{\cftchapaftersnum}{\quad}
% \titlespacing*{\chapter}{0pt}{-10pt}{20pt}
% Redefine \maketitle
\renewcommand{\maketitle}{\input{frontmatter/maketitle}}
% Chapter & Section format
\renewcommand{\cftchapfont}{\bfseries\MakeUppercase}
\renewcommand{\cftsecfont}{}
\renewcommand{\cftsubsecfont}{\itshape}
% \renewcommand{\cftsecfont}{}
% \renewcommand{\cftsubsecfont}{\itshape}
% \renewcommand{\thesection}{\textup{\Roman{chapter}}.\arabic{section}}
% Dot leaders, spacing, indentation
\setlength{\cftbeforechapskip}{1em}
\setlength{\cftbeforechapskip}{0em}
\setlength{\cftchapindent}{0pt}
\setlength{\cftsecindent}{1.5em}
\setlength{\cftsecindent}{0em}
\setlength{\cftsubsecindent}{3em}
\setlength{\cftchapnumwidth}{3em}
\setlength{\cftsecnumwidth}{3.5em}
\setlength{\cftsubsecnumwidth}{4.5em}
\setlength{\cftchapnumwidth}{4em}
\setlength{\cftsecnumwidth}{2.5em}
\setlength{\cftsubsecnumwidth}{2.5em}
\renewcommand \cftchapdotsep{4.5} % https://tex.stackexchange.com/a/273764
\renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}}
\renewcommand{\cftchappagefont}{\normalfont}
% Title styling
\renewcommand{\contentsname}{\hfill\bfseries\normalsize DAFTAR ISI\hfill}
% Ensure TOC and References Respect Custom Numbering
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand\thesection{\arabic{chapter}.\arabic{section}}
% Table of Contents (TOC) Title styling
\renewcommand{\contentsname}{DAFTAR ISI}
\renewcommand{\cfttoctitlefont}{\bfseries\MakeUppercase}
\renewcommand{\cftaftertoctitle}{\hfill\hfill} % https://tex.stackexchange.com/a/255699/394075
% \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}}%
\ifstrequal{#1}{toc}{\addcontentsline{toc}{chapter}{#2}}{\chapter*{#2}}%
\input{frontmatter/#3}
\end{titlepage}
\clearpage