diff --git a/latex/frontmatter/maketitle.tex b/latex/frontmatter/maketitle.tex index c018c1d..ee238c5 100644 --- a/latex/frontmatter/maketitle.tex +++ b/latex/frontmatter/maketitle.tex @@ -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}% \ No newline at end of file diff --git a/latex/frontmatter/maketitle_secondary.tex b/latex/frontmatter/maketitle_secondary.tex index cdba036..f03beb1 100644 --- a/latex/frontmatter/maketitle_secondary.tex +++ b/latex/frontmatter/maketitle_secondary.tex @@ -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}%