diff --git a/ep1.tex b/ep1.tex index 3e0b537..496570e 100644 --- a/ep1.tex +++ b/ep1.tex @@ -25,7 +25,7 @@ \begin{document} - +\maketitle \section{ blah } diff --git a/lxpresent.cls b/lxpresent.cls index 68365f9..7bdb809 100644 --- a/lxpresent.cls +++ b/lxpresent.cls @@ -45,22 +45,11 @@ \setbeamercolor{date in head/foot}{fg=lightgray,bg=spurple} \setbeamercolor{background canvas}{bg=spurple} -\newsavebox{\picbox} -\newcommand{\profpic}[2]{% - \savebox{\picbox}{% - \includegraphics[scale=#1]{#2}}% - \tikz\node [draw,% - line width=0pt, color=spurple,% - minimum width=\wd\picbox,minimum height=\ht\picbox,% - path picture={ \node at (path picture bounding box.center)% - {\usebox{\picbox}};}]% - {}; -} % definition of the footline template \defbeamertemplate*{footline}{mytheme}{% \leavevmode% - \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{title in head/foot}% + \hbox{\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{title in head/foot}% \makebox[2em][l]{{\usebeamerfont{title in head/foot}\textcolor{white}{\@ep}}}% {\usebeamercolor{title in head/foot}{\@eptitle}} \end{beamercolorbox}% @@ -73,68 +62,28 @@ \defbeamertemplate*{title page}{mytheme}[1][] {% - \profpic{0.04}{serene.png} - \begin{tikzpicture}[remember picture,overlay] -%% \filldraw[white] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; - \node[text=white,anchor=south west,font=\sffamily\large,text width=0.7\paperwidth] - at ([xshift=90pt,yshift=20pt]current page.west) - (title) - {\@title}; - \node[text=white,anchor=south west,font=\sffamily\large,text width=0.7\paperwidth] - at ([xshift=90pt,yshift=20pt]current page.west) - (title) - {\textbf{\inserttitle}}; + \begin{tikzpicture} - \node[text=white,font=\large\sffamily,anchor=south west] - at ([yshift=5pt]title.south west) - (eptitle) - {\hspace{0.2cm}\@ep\space - \@eptitle}; -%% \filldraw[spurple] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; + \node[overlay,anchor=south west,inner sep=0,scale=0.7,opacity=1] at (6cm,-7cm) {\includegraphics[width=\textwidth]{serene.png}}; + + \end{tikzpicture} + + \begin{tikzpicture}[remember picture,overlay] + \node[text=white,anchor=south west,font=\sffamily\huge,text width=0.8\paperwidth] + at ([xshift=20pt,yshift=30pt]current page.west) + (title) + {Mathematics of Programming Languages}; + + \node[text=white,font=\large\sffamily,anchor=south west] + at ([xshift=10,yshift=-80pt]title.south west) + (epnum) + {Episode \@ep:}; + \node[text=white,font=\large\sffamily,anchor=south west] + at ([yshift=-15pt]epnum.south west) + (eptitle) + {\textbf{\@eptitle}}; \end{tikzpicture}% } -%% \filldraw[spurple] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; -%% \node[text=spurple,anchor=south west,font=\sffamily\LARGE,text width=.55\paperwidth] -%% at ([xshift=10pt,yshift=-1cm]current page.west) -%% (title) -%% {\raggedright\inserttitle}; -%% \node[anchor=west] -%% at (title.east) -%% {\includegraphics[height=0.75cm]{gemalto}}; -%% \node[text=white,font=\large\sffamily,anchor=south west] -%% at ([xshift=30pt,yshift=0.5cm]current page.south west) -%% (date) -%% {\insertdate}; -%% \node[text=white,font=\large\sffamily,anchor=south west] -%% at ([yshift=5pt]date.north west) -%% (author) -%% {\insertauthor}; % remove navigation symbols \setbeamertemplate{navigation symbols}{} diff --git a/lxstyle.sty b/lxstyle.sty deleted file mode 100644 index 572758f..0000000 --- a/lxstyle.sty +++ /dev/null @@ -1,162 +0,0 @@ -%!TEX TS-program = xelatex -%!TEX encoding = UTF-8 Unicode -% LxStyle - Lxsameer's beamer style -% Copyright (C) 2022 Sameer Rahmani -% -% This program is free software; you can redistribute it and/or -% modify it under the terms of the GNU General Public License -% as published by the Free Software Foundation; either version 2 -% of the License, or (at your option) any later version. -% -% This program is distributed in the hope that it will be useful, -% but WITHOUT ANY WARRANTY; without even the implied warranty of -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -% GNU General Public License for more details. -% -% You should have received a copy of the GNU General Public License -% along with this program; if not, write to the Free Software -% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -\RequirePackage{tikz} -\RequirePackage{fontspec} -\RequirePackage[default,light,semibold]{sourcesanspro} -\setsansfont{Source Sans Pro} - - -\definecolor{spurple}{HTML}{5e246e} -\definecolor{spurple1}{HTML}{eeddaa} -\definecolor{linkcolor}{HTML}{eeeeec} - -\newcommand*{\setep}[1]{\def\@ep{#1}} -\newcommand*{\seteptitle}[1]{\def\@eptitle{#1}} - -% setup the link styles -%% \hypersetup{ -%% colorlinks=true, -%% urlcolor=linkcolor, -%% pdfauthor={lxsameer}, -%% pdftitle={Mathematics of Programming Languages}, -%% pdflang={English} -%% } - -%\begin{document} - -% setting some colors for the theme -\setbeamercolor{palette primary}{fg=spurple,bg=white} -\setbeamercolor{palette secondary}{fg=spurple,bg=white} -\setbeamercolor{structure}{fg=white,bg=spurple} -\setbeamercolor{title in head/foot}{fg=white,bg=spurple} -\setbeamercolor{date in head/foot}{fg=lightgray,bg=spurple} -\setbeamercolor{background canvas}{bg=spurple} - -\newsavebox{\picbox} -\newcommand{\profpic}[2]{% - \savebox{\picbox}{% - \includegraphics[scale=#1]{#2}}% - \tikz\node [draw,% - line width=0pt, color=spurple,% - minimum width=\wd\picbox,minimum height=\ht\picbox,% - path picture={ \node at (path picture bounding box.center)% - {\usebox{\picbox}};}]% - {}; -} - -% definition of the footline template -\defbeamertemplate*{footline}{mytheme}{% - \leavevmode% - \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{title in head/foot}% - \makebox[2em][l]{{\usebeamerfont{title in head/foot}\textcolor{white}{\@ep}}}% - {\usebeamercolor{title in head/foot}{\@eptitle}} - \end{beamercolorbox}% - \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm,right]{title in head/foot}% - \end{beamercolorbox}}% - \vskip0pt% -} - -% definition of the title page template -\defbeamertemplate*{title page}{mytheme}[1][] -{% - - \profpic{0.04}{serene.png} - \begin{tikzpicture}[remember picture,overlay] -%% \filldraw[white] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; - \node[text=white,anchor=south west,font=\sffamily\large,text width=0.7\paperwidth] - at ([xshift=90pt,yshift=20pt]current page.west) - (title) - {\@title}; - \node[text=white,anchor=south west,font=\sffamily\large,text width=0.7\paperwidth] - at ([xshift=90pt,yshift=20pt]current page.west) - (title) - {\textbf{\inserttitle}}; - - \node[text=white,font=\large\sffamily,anchor=south west] - at ([yshift=5pt]title.south west) - (eptitle) - {\hspace{0.2cm}\@ep\space - \@eptitle}; -%% \filldraw[spurple] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; - \end{tikzpicture}% -} -%% \filldraw[spurple] -%% (current page.north west) -- -%% ([yshift=-2cm]current page.north west) -- -%% ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]-- -%% ([xshift=-2cm,yshift=3cm]current page.south east)} -- -%% ([yshift=3cm]current page.south west) -- -%% (current page.south west) -- -%% (current page.south east) -- -%% (current page.north east) -- cycle -%% ; -%% \node[text=spurple,anchor=south west,font=\sffamily\LARGE,text width=.55\paperwidth] -%% at ([xshift=10pt,yshift=-1cm]current page.west) -%% (title) -%% {\raggedright\inserttitle}; -%% \node[anchor=west] -%% at (title.east) -%% {\includegraphics[height=0.75cm]{gemalto}}; -%% \node[text=white,font=\large\sffamily,anchor=south west] -%% at ([xshift=30pt,yshift=0.5cm]current page.south west) -%% (date) -%% {\insertdate}; -%% \node[text=white,font=\large\sffamily,anchor=south west] -%% at ([yshift=5pt]date.north west) -%% (author) -%% {\insertauthor}; - -% remove navigation symbols -\setbeamertemplate{navigation symbols}{} - -% definition of the symbols used in itemize -\newcommand\mysymbol{% - \begin{tikzpicture}[xscale=0.85] - \fill[spurple] - (-1ex,1ex) to[out=-60,in=240,looseness=1.2] - (1ex,1ex) to[out=240,in=120,looseness=1.2] - (1ex,-1ex) to[out=120,in=60,looseness=1.2] - (-1ex,-1ex) to[out=60,in=-60,looseness=1.2] - cycle; - \end{tikzpicture}% - } - -% definition of the itemize templates -\defbeamertemplate*{itemize item}{mysymbol}{\small\raise0.5pt\hbox{\mysymbol}} -\defbeamertemplate*{itemize subitem}{mysymbol}{\footnotesize\raise0.5pt\hbox{\mysymbol}} -\defbeamertemplate*{itemize subsubitem}{mysymbol}{\footnotesize\raise0.5pt\hbox{\mysymbol}} diff --git a/serene.png b/serene.png index 6055a57..0beb598 100644 Binary files a/serene.png and b/serene.png differ