feat(latex): update title page layout and improve logo positioning

This commit is contained in:
2025-11-03 20:41:20 +07:00
parent 58f89b1302
commit f2e1668718
2 changed files with 53 additions and 18 deletions

View File

@@ -1,15 +1,35 @@
\begin{titlepage}
\newgeometry{margin=3cm}%
\noindent
\begin{minipage}[t][0.49\textheight][t]{\textwidth}
\centering
\vspace*{1cm}
{\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{Tugas Akhir}}\par}
\vspace{1.5cm}
{\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{\thetitle}}\par}
\vspace{1.5cm}
\vfill
\end{minipage}
\begin{tikzpicture}[remember picture, overlay]
% This respects your geometry margins
\coordinate (center) at (current page text area.center);
% The logo at center of page (ANCHOR POINT) shift up by 1cm
\node at ($(center) + (0cm,1cm)$)
{\includegraphics[width=5cm]{frontmatter/img/logo.png}};
% --- Option A: diagonal across the whole paper ---
% \draw[red, line width=1pt] (current page.north west) -- (current page.south east);
% \draw[red, line width=1pt] (current page.north east) -- (current page.south west);
% % horizontal and vertical
% \draw[blue, line width=1pt] (current page.north) -- (current page.south);
% \draw[blue, line width=1pt] (current page.west) -- (current page.east);
% % horizontal line with 1cm up offset
% \draw[green, line width=1pt] ($(current page.west) + (0cm,1cm)$) -- ($(current page.east) + (0cm,1cm)$);
\includegraphics[width=5cm]{frontmatter/img/logo.png}
\vspace{1.5cm}
\end{tikzpicture}%
\begin{minipage}[b][0.49\textheight][b]{\textwidth}
\centering
\vfill
\textbf{Disusun oleh:} \\
{\fontsize{14pt}{16pt}\selectfont \textbf{\theauthor}} \\
@@ -23,6 +43,5 @@
\textbf{\MakeUppercase\theuniversity} \\
\textbf{\theyearofsubmission}
}
\end{titlepage}%
\end{minipage}
\end{titlepage}%

View File

@@ -1,30 +1,46 @@
\begin{titlepage}
\newgeometry{margin=3cm, left=4cm}
\noindent
\begin{minipage}[t][0.49\textheight][t]{\textwidth}
\centering
{\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{Tugas Akhir}}\par}
\vspace{1.5cm}
{\fontsize{14pt}{16pt}\selectfont \textbf{\MakeUppercase{\thetitle}}\par}
\vspace{1cm}
{\normalsize\selectfont Diajukan guna melengkapi persyaratan untuk memenuhi gelar Sarjana Teknik di Program Studi Teknik Sipil, Fakultas Teknik, Universitas Muhammadiyah Yogyakarta\par}
\vspace{1.5cm}
\includegraphics[width=5cm]{frontmatter/img/logo.png}
\vspace{1.5cm}
\vfill
\end{minipage}
\begin{tikzpicture}[remember picture, overlay]
% This respects your geometry margins
\coordinate (center) at (current page text area.center);
% The logo at center of page (ANCHOR POINT) shift up by 1cm
\node at ($(center) + (0cm,1cm)$)
{\includegraphics[width=5cm]{frontmatter/img/logo.png}};
% --- Option A: diagonal across the whole paper ---
% \draw[red, line width=1pt] (current page.north west) -- (current page.south east);
% \draw[red, line width=1pt] (current page.north east) -- (current page.south west);
% % horizontal and vertical
% \draw[blue, line width=1pt] (current page.north) -- (current page.south);
% \draw[blue, line width=1pt] (current page.west) -- (current page.east);
% % horizontal line with 1cm up offset
% \draw[green, line width=1pt] ($(current page.west) + (0cm,1cm)$) -- ($(current page.east) + (0cm,1cm)$);
\end{tikzpicture}%
\begin{minipage}[b][0.49\textheight][b]{\textwidth}
\centering
\vfill
\textbf{Disusun oleh:} \\
{\fontsize{14pt}{16pt}\selectfont \textbf{\theauthor}} \\
{\fontsize{14pt}{16pt}\selectfont \textbf{\theauthorid}} \\
\vfill
{\fontsize{12pt}{14pt}\selectfont
\textbf{\MakeUppercase\theprogram} \\
\textbf{\MakeUppercase\thefaculty} \\
\textbf{\MakeUppercase\theuniversity} \\
\textbf{\theyearofsubmission}
}
\end{minipage}
\end{titlepage}%