diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-05-12 21:26:41 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-05-12 21:26:41 +0200 |
commit | 5b9f70a22c222e7813beb0d08c6c58f12e4ee2cb (patch) | |
tree | db92a0bfdd007315118831c8e82a2e6cdd884332 /Hannah-More-Prace-drobna.tex | |
parent | 81bc38c8527ecd9fae3c51a5373c913d7097ac29 (diff) | |
download | June-9_Hannah-More-5b9f70a22c222e7813beb0d08c6c58f12e4ee2cb.tar.gz |
Add front page solution with tikz relative position.
See https://tex.stackexchange.com/q/717756/74010
Diffstat (limited to 'Hannah-More-Prace-drobna.tex')
-rw-r--r-- | Hannah-More-Prace-drobna.tex | 31 |
1 files changed, 15 insertions, 16 deletions
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} |