From 5b9f70a22c222e7813beb0d08c6c58f12e4ee2cb Mon Sep 17 00:00:00 2001
From: Matěj Cepl <mcepl@cepl.eu>
Date: Sun, 12 May 2024 21:26:41 +0200
Subject: Add front page solution with tikz relative position.

See https://tex.stackexchange.com/q/717756/74010
---
 Hannah-More-Prace-drobna.tex | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

(limited to 'Hannah-More-Prace-drobna.tex')

diff --git a/Hannah-More-Prace-drobna.tex b/Hannah-More-Prace-drobna.tex
index 7dc1ae0..fedf422 100644
--- a/Hannah-More-Prace-drobna.tex
+++ b/Hannah-More-Prace-drobna.tex
@@ -10,7 +10,7 @@
 \tikz\node[opacity=0.66] {\includegraphics[width=\paperwidth,height=\paperheight]{background.png}};
 }
 
-\title{Just Like A Woman}
+\title{We Can Be Heroes}
 \author{Matěj Cepl}
 \date{June 9th}
 
@@ -25,24 +25,23 @@
   \setbeamercolor{author}{fg=white}
   \setbeamercolor{date}{fg=white}
 
-% \setbeamertemplate{author}{default}[1][]{%
-%     \usebeamerfont{author}\insertauthor
-% }
-% 
-% \setbeamertemplate{date}{default}[1][]{%
-%       \usebeamerfont{date}\insertdate
-% }
+% trick taken from https://topanswers.xyz/tex?q=1989
+\tikzset{
+    use page relative coordinates/.style={
+        shift={(current page.south west)},
+        x={(current page.south east)},
+        y={(current page.north west)}
+    },
+}
 
 \setbeamertemplate{title page}{
-  \vskip0.25\paperheight\par
-    \begin{center}
-    \usebeamertemplate{title}
-    \end{center}
-    \vskip1em\par
-    \begin{flushleft}
-    \usebeamertemplate{author}\hfill\usebeamertemplate{date}
-    \end{flushleft}
+  \begin{tikzpicture}[remember picture,overlay,use page relative coordinates]
+    \node[text width=3cm] at (0.43,0.38) {\centering\usebeamercolor[fg]{title}\usebeamerfont{title}\inserttitle\par};
+    \node[text width=3cm] at (0.15,0.15) {\usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate\par};
+    \node[text width=3cm] at (0.7,0.15) {\usebeamercolor[fg]{author}\usebeamerfont{date}\insertauthor\par};
+  \end{tikzpicture}
 }
+
 \begin{frame}[plain]
     \titlepage
 \end{frame}
-- 
cgit 

