From d13dfdc34ef604ef5464ddd5c78bb98e712788a4 Mon Sep 17 00:00:00 2001 From: nuluh Date: Sat, 10 May 2025 17:17:51 +0700 Subject: [PATCH] feat(latex): add frontmatter macros for frontmatters pages (endorsement, originality, approval, acknowledgement etc.) --- latex/frontmatter/approval.tex | 0 latex/frontmatter/endorsement.tex | 0 latex/thesis.cls | 13 +++++++++++++ 3 files changed, 13 insertions(+) create mode 100644 latex/frontmatter/approval.tex create mode 100644 latex/frontmatter/endorsement.tex diff --git a/latex/frontmatter/approval.tex b/latex/frontmatter/approval.tex new file mode 100644 index 0000000..e69de29 diff --git a/latex/frontmatter/endorsement.tex b/latex/frontmatter/endorsement.tex new file mode 100644 index 0000000..e69de29 diff --git a/latex/thesis.cls b/latex/thesis.cls index 7f2137e..1cf4d07 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -90,6 +90,19 @@ \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{\endorsementpage}[1]{\frontmattersection{#1}{Pengesahan}{endorsement}} +\newcommand{\originalitystatement}[1]{\frontmattersection{#1}{Pernyataan Keaslian}{originality}} \endinput \ No newline at end of file