diff --git a/Chapter1/ch1presLct.tex b/Chapter1/ch1presLct.tex new file mode 100644 index 0000000..13a6deb --- /dev/null +++ b/Chapter1/ch1presLct.tex @@ -0,0 +1,19 @@ +\section{Εισαγωγικά} + +% \graphicspath{Figs/} + +\begin{frame}\frametitle{Λίγα Λόγια...}\framesubtitle{} +Το παρόν πρότυπο αφορά κυρίως παρουσιάσεις σε μαθήματα, διαλέξεις, σεμινάρια κά. +Η πρώτη σελίδα έχει διαμορφωθεί ώστε να περιλαμβάνει τον τίτλο του μαθήματος, άλλες πληροφορίες, τον διδάσκοντα. + +Η παρουσίαση διαμορφώθηκε στα Ελληνικά καθώς είναι πιο δύσκολη η διαχείρισή τους στο \LaTeX αλλά προφανώς μπορεί κάποιος να γράψει στα Αγγλικά. + +Έχουν προστεθεί κάποια slide με βασικές εντολές διαμόρφωσης στο beamer και για να φανεί η δομή της παρουσίασης. + +\end{frame} +\note{Σε αυτή τη περιοχή μπορούν να γραφτούν σημειώσεις για τον ομιλητή +\begin{itemize} + \item Χρησιμοποιούνται όλες οι εντολές του \LaTeX + \item Μπρούν οι σημειώσεις να φαίνονται μόνο στην οθόνη του ομιλητή μάζί με τη παρουσίαση. +\end{itemize} +} \ No newline at end of file diff --git a/Classes/beamerLct.cls b/Classes/beamerLct.cls new file mode 100644 index 0000000..3311f2a --- /dev/null +++ b/Classes/beamerLct.cls @@ -0,0 +1,914 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% Class ``beamerLct'' %% +%% %% +%% A beamer template for Lecture presentations %% +%% %% +%% Version: v1.0 %% +%% Authors: Demitris G. Anastasiou %% +%% License: MIT License (c) 2017 Demitris G. Anastasiou %% +%% GitHub Repo: https://github.com/demanasta/pres-templates/ %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% ************************** Class Identification ****************************** +\newcommand\fileversion{1.0} +\newcommand\filedate{2017/06/25} +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{Classes/beamerLct}[\filedate\space A beamer template for lecture presentations by D. G. Anastasiou (v\fileversion)] +\typeout{https://github.com/demanasta/pres-template/} + +% Copyright 2003--2007 by Till Tantau +% Copyright 2010 by Vedran Mileti\'c +% Copyright 2011 by Vedran Mileti\'c, Joseph Wright, +% Copyright 2017 Demitris G. Anastasiou for Lecture version +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/licenses/LICENSE for more details. + +\RequirePackage{beamerbasercs} +%\ProvidesClassRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamer.cls,v 332bfd3ce558 2013/12/02 16:41:31 joseph $ +%[\beamer@version\space A class for typesetting presentations] + + +\RequirePackage{beamerbasemodes} +% Setup modes and check for article option + +\beamer@transferifnecessary + +\RequirePackage{ifpdf} + +% +% +% Declarations used by beamer +% +% + +% Public +\newdimen\headheight % Total height of the headline (including depth) +\newdimen\headdp % Depth of the headline +\newdimen\footheight % Height of the footline +\newdimen\sidebarheight % Height of the sidebars + +% Private +\newdimen\beamer@tempdim +\newdimen\beamer@finalheight +\newdimen\beamer@animht +\newdimen\beamer@animdp +\newdimen\beamer@animwd +\newdimen\beamer@leftmargin +\newdimen\beamer@rightmargin +\newdimen\beamer@leftsidebar +\newdimen\beamer@rightsidebar +\newdimen\beamer@boxsize +\newdimen\beamer@vboxoffset +\newdimen\beamer@descdefault +\newdimen\beamer@descriptionwidth + +\newskip\beamer@lastskip + +\newbox\beamer@areabox +\newbox\beamer@animcurrent +\newbox\beamer@animshowbox +\newbox\beamer@sectionbox +\newbox\beamer@logobox +\newbox\beamer@linebox + +\newcount\beamer@sectioncount +\newcount\beamer@subsubsectionmax +\newcount\beamer@subsectionmax +\newcount\beamer@sectionmax +\newcount\beamer@totalheads +\newcount\beamer@headcounter +\newcount\beamer@partstartpage +\newcount\beamer@sectionstartpage +\newcount\beamer@subsectionstartpage +\newcount\beamer@animationtempa +\newcount\beamer@animationtempb +\newcount\beamer@xpos +\newcount\beamer@ypos +\newcount\beamer@showpartnumber +\newcount\beamer@currentsubsection +\newcount\beamer@coveringdepth +\newcount\beamer@sectionadjust +\newcount\beamer@tocsectionnumber + + +\newif\ifbeamer@sansmath +\newif\ifbeamer@altmode +\newif\ifbeamer@notes +\newif\ifbeamer@notesnormals +\newif\ifbeamer@compress +\newif\ifbeamer@centered +\newif\ifbeamer@draftmode +\newif\ifbeamer@suppressreplacements % decides whether fonts should be substituted +\newif\ifbeamer@frameswithnotesonly +\newif\ifbeamer@ignorenonframe +\newif\ifbeamer@autopdfinfo + +\RequirePackage{beamerbaseoptions} +% For option management + + + +% +% +% Document options +% +% + +\beamer@suppressreplacementsfalse +\beamer@altmodefalse +\beamer@notesfalse +\beamer@notesnormalstrue +\beamer@compressfalse +\beamer@draftmodefalse +\beamer@frameswithnotesonlyfalse +\beamer@ignorenonframefalse +\beamer@autopdfinfotrue + +\DeclareOptionBeamer{usepdftitle}[true]{\csname beamer@autopdfinfo#1\endcsname} +\DeclareOptionBeamer{envcountsect}{\beamer@countsecttrue} +\DeclareOptionBeamer{notheorems}{\beamer@blocksfalse} +\DeclareOptionBeamer{noamsthm}{\beamer@blocksfalse\beamer@amsfalse} + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} + +\DeclareOptionBeamer{t}{\beamer@centeredfalse} +\DeclareOptionBeamer{c}{\beamer@centeredtrue} + + +\DeclareOptionBeamer{leqno}{\input{leqno.clo}} +\DeclareOptionBeamer{fleqn}{\input{fleqn.clo}} + +\def\beamer@currentmode{beamer} +\DeclareOptionBeamer{handout}{\gdef\beamer@currentmode{handout}} +\DeclareOptionBeamer{trans}{\gdef\beamer@currentmode{trans}} + +\DeclareOptionBeamer{pdftex}{}% Used by hyperref +\DeclareOptionBeamer{nativepdf}{}% Used by hyperref +\DeclareOptionBeamer{pdfmark}{}% Used by hyperref +\DeclareOptionBeamer{dvips}{}% Used by hyperref +\DeclareOptionBeamer{dviwindo}{}% Used by hyperref +\DeclareOptionBeamer{dvipsone}{}% Used by hyperref +\DeclareOptionBeamer{vtex}{}% Used by hyperref +\DeclareOptionBeamer{ps2pdf}{}% Used by hyperref + +\DeclareOptionBeamer{ignorenonframetext}{\beamer@ignorenonframetrue} + +\DeclareOptionBeamer{noamssymb}{\beamer@amssymbfalse} + +\def\beamer@size{{size11.clo}} +\DeclareOptionBeamer{bigger}{\def\beamer@size{{size12.clo}}} +\DeclareOptionBeamer{smaller}{\def\beamer@size{{size10.clo}}} + +\DeclareOptionBeamer{8pt}{\def\beamer@size{{size8.clo}}} +\DeclareOptionBeamer{9pt}{\def\beamer@size{{size9.clo}}} +\DeclareOptionBeamer{10pt}{\def\beamer@size{{size10.clo}}} +\DeclareOptionBeamer{11pt}{\def\beamer@size{{size11.clo}}} +\DeclareOptionBeamer{12pt}{\def\beamer@size{{size12.clo}}} +\DeclareOptionBeamer{14pt}{\def\beamer@size{{size14.clo}}} +\DeclareOptionBeamer{17pt}{\def\beamer@size{{size17.clo}}} +\DeclareOptionBeamer{20pt}{\def\beamer@size{{size20.clo}}} + +\newif\ifsetDraft\setDraftfalse +\DeclareOptionBeamer{draft}{\setDrafttrue} +\pagenumbering{arabic} +\def\insertpagenumber{\thepage} + +\def\beamer@activecjk{} +\def\beamer@hypercjk{} + +\DeclareOptionBeamer{CJK}{\ExecuteOptionsBeamer{cjk}} +\DeclareOptionBeamer{cjk}{ + \def\beamer@hypercjk{\hypersetup{CJKbookmarks=true}} + + \def\beamer@activecjk{ + % Activate all >=128 characters. + \count@=127 + \@whilenum\count@<254 \do{% + \advance\count@ by 1 + \lccode`\~=\count@ + \catcode\count@=\active + \lowercase{\def~{\kern1ex}} + } + } +} + + + +% obsolete options +\DeclareOptionBeamer{notes}[show]{\csname beamer@notesaction@#1\endcsname} +\def\beamer@notesaction@hide{% + \ClassWarning{beamer}{This option is obsolete. Use beamer option + ``hide notes'' instead.}% + \beamer@notesfalse} +\def\beamer@notesaction@show{% + \ClassWarning{beamer}{This option is obsolete. Use beamer option + ``show notes'' instead.}% + \beamer@notestrue} +\def\beamer@notesaction@only{% + \ClassWarning{beamer}{This option is obsolete. Use beamer option + ``show only notes'' instead.}% + \beamer@notestrue + \beamer@notesnormalsfalse + \nofiles +} +\def\beamer@notesaction@onlyslideswithnotes{% + \beamer@notestrue% + \beamer@frameswithnotesonlytrue% + \nofiles +} +\DeclareOptionBeamer{inrow}{ + \ClassError{beamer}{``inrow'' no longer supported. Use ``compress'' instead.}{}} +\DeclareOptionBeamer{compressnotes}{% + \ClassWarning{beamer}{``compressnotes'' is obsolete. Use + \noexpand\setbeamertemplate{note page}[compressed] instead} + \AtBeginDocument{\beamertemplatenotecompress}} +\DeclareOptionBeamer{notesonly}{ + \ClassWarning{beamer}{``notesonly'' is obsolete. Use beamer option + ``show only notes'' instead.} + \beamer@notesaction@only} +\DeclareOptionBeamer{blue}{ + \ClassWarning{beamer}{``blue'' is obsolete. Use color theme structure instead} + \def\beamer@loadlater{\usecolortheme[rgb={0.2,0.2,0.7}]{structure}}} +\DeclareOptionBeamer{red}{ + \ClassWarning{beamer}{``red'' is obsolete. Use color theme structure instead} + \def\beamer@loadlater{\usecolortheme[rgb={0.7,0.2,0.2}]{structure}}} +\DeclareOptionBeamer{blackandwhite}{ + \ClassWarning{beamer}{``blackandwhite'' is obsolete. Use color theme structure instead} + \def\beamer@loadlater{\usecolortheme[rgb={0.2,0.2,0.2}]{structure}}} +\DeclareOptionBeamer{brown}{ + \ClassWarning{beamer}{``brown'' is obsolete. Use color theme structure instead} + \def\beamer@loadlater{\usecolortheme[rgb={0.66,0.4,0.166}]{structure}}} +\DeclareOptionBeamer{slidescentered}{ + \ClassWarning{beamer}{``slidescentered'' is obsolete. Use ``c'' instead} + \beamer@centeredtrue} +\DeclareOptionBeamer{slidestop}{ + \ClassWarning{beamer}{``slidestop'' is obsolete. Use ``t'' instead} + \beamer@centeredfalse} +\DeclareOptionBeamer{sans}{% + \ClassWarning{beamer}{``sans'' is obsolete. Just remove this option} + \def\familydefault{\sfdefault} + \def\mathfamilydefault{\sfdefault} + \beamer@sansmathtrue +} +\DeclareOptionBeamer{serif}{% + \ClassWarning{beamer}{``serif'' is obsolete. Use font theme ``serif'' instead} + \def\familydefault{\rmdefault} + \def\mathfamilydefault{\rmdefault} + \beamer@sansmathfalse +} +\DeclareOptionBeamer{mathsans}{ + \ClassWarning{beamer}{``mathsans'' is obsolete. Use font theme ``serif'' with option ``butsansserifmath''} + \def\mathfamilydefault{\sfdefault}\beamer@sansmathtrue} +\DeclareOptionBeamer{mathserif}{ + \ClassWarning{beamer}{``mathserif'' is obsolete. Use font theme ``serif'' with option ``onlymath''} + \def\mathfamilydefault{\rmdefault}\beamer@sansmathfalse} +\DeclareOptionBeamer{professionalfont}{ + \ClassWarning{beamer}{``professionalfont'' is obsolete. Use font theme ``professionalfonts'' instead} + \beamer@suppressreplacementstrue} + +% has to be done here for compatibility +\def\familydefault{\sfdefault} +\def\mathfamilydefault{\sfdefault} +\beamer@sansmathtrue + + + +\PassOptionsToPackage{bookmarks=true,% + bookmarksopen=true,% + pdfborder={0 0 0},% + pdfhighlight={/N},% + linkbordercolor={.5 .5 .5}}{hyperref} + +\DeclareOptionBeamer{pgf}{\PassOptionsToPackage{#1}{pgf}} +\DeclareOptionBeamer{hyperref}{\PassOptionsToPackage{#1}{hyperref}} +\DeclareOptionBeamer{color}{\PassOptionsToPackage{#1}{color}} +\DeclareOptionBeamer{xcolor}{\PassOptionsToPackage{#1}{xcolor}} + +\def\beamer@loaducs{} + +\DeclareOptionBeamer{ucs}{% + \ifpdf + \PassOptionsToPackage{pdftex,unicode}{hyperref} + \def\beamer@loaducs{ + \RequirePackage[hyperref]{ucs}% + \AtBeginDocument{\PreloadUnicodePage{0}}% + \AtBeginDocument{\PreloadUnicodePage{1}}% + } + \else + \def\beamer@loaducs{ + \RequirePackage{ucs}% + \AtBeginDocument{\PreloadUnicodePage{0}}% + \AtBeginDocument{\PreloadUnicodePage{1}}% + } + \fi +} +\DeclareOptionBeamer{utf8x}{\ExecuteOptionsBeamer{ucs}% + \g@addto@macro\beamer@loaducs{\RequirePackage[utf8x]{inputenc}}% +} +\DeclareOptionBeamer{utf8}{ + \ClassWarning{beamer}{This option works no longer loads ucs.} + \RequirePackage[utf8]{inputenc} + \PassOptionsToPackage{unicode}{hyperref} +} + +% +% Geometry: allows 16:10, 16:9, 14:9, 5:4 and 4:3 (default 4:3). +% Default value is set right after declaring width and height +% because it doesn't work otherwise. +% +\newlength\beamer@paperwidth% +\beamer@paperwidth 12.80cm% +\newlength\beamer@paperheight% +\beamer@paperheight 9.60cm% + +\DeclareOptionBeamer{aspectratio}[43]{% + \ifnum#1=1610% + \beamer@paperwidth 16.00cm% + \beamer@paperheight 10.00cm% + \else\ifnum#1=169% + \beamer@paperwidth 16.00cm% + \beamer@paperheight 9.00cm% + \else\ifnum#1=149% + \beamer@paperwidth 14.00cm% + \beamer@paperheight 9.00cm% + \else\ifnum#1=54% + \beamer@paperwidth 12.50cm% + \beamer@paperheight 10.00cm% + \else\ifnum#1=43% + \beamer@paperwidth 12.80cm% + \beamer@paperheight 9.60cm% + \else\ifnum#1=32% + \beamer@paperwidth 13.50cm% + \beamer@paperheight 9.00cm% + \else\ifnum#1=141% + \beamer@paperwidth 14.85cm% + \beamer@paperheight 10.50cm% + \fi\fi\fi\fi\fi\fi\fi% +} + +\RequirePackage[% + papersize={\beamer@paperwidth,\beamer@paperheight}, + hmargin=1cm,% + vmargin=0cm,% + head=0.5cm,% might be changed later + headsep=0pt,% + foot=0.5cm% might be changed later + ]{geometry} + +% +% Process Options +% + +\ExecuteOptionsBeamer{c} +\ProcessOptionsBeamer + +% Load corresponding size file +\expandafter\input\beamer@size + +% Filter class option list +\beamer@filterclassoptions + + +\RequirePackage{pgfcore} +% We need only the core stuff. + +\RequirePackage{xxcolor} +% For color management (comes with pgf). + +\RequirePackage{atbegshi} +% Normally loaded by hyperref but to be on the safe side ... + +\RequirePackage[implicit=falsem, draft=false]{hyperref} +% For hyperlinks + +\hypersetup{pdfcreator={LaTeX with Beamer class version \beamer@version}} + +% Coding stuff +\beamer@loaducs +\beamer@hypercjk + + +\RequirePackage{beamerbaserequires} +% Beamer packages required both by presentation and article modes + +% Defaults +\normalfont +\raggedright + +\AtBeginDocument +{ + \addtocontents{toc}{\protect\beamer@endinputifotherversion{\beamer@version pt}} + \addtocontents{nav}{\protect\beamer@endinputifotherversion{\beamer@version pt}} +} + +\usetheme{default} + + +% Compatibility stuff +\csname beamer@loadlater\endcsname + + +%%------------------------------------------------------------------------------ +%% Options added on BeamerPhD Class file +%%------------------------------------------------------------------------------ + +\RequirePackage{tikz} +%\usetikzlibrary{calc} +\RequirePackage{xifthen} +% ******************************* Time Stamp *********************************** +% Compute the timestamp based on an idea of +% Tim Piessens \texttt{}. + +\RequirePackage{datetime} + + +\newcommand{\timestamp}{compiled on \ifnum\day<10 0\fi\the\day.\,% +\ifnum\month<10 0\fi\the\month.\,% +\the\year\ at \xxivtime\,h} +% ******************************* Draft Mode *********************************** + +% Initializing Draft Text +\newcommand\SetDraftText[1]{} +% Initializing Draft Version +\newcommand\SetDraftVersion[1]{} +% Initializing Draft Content +\newcommand\SetDraftWMPosition[1]{} +% Initializing Draft Gray Scale +\newcommand\SetDraftGrayScale[1]{} + +% If Draft Mode is active +\ifsetDraft +% Disable figures in `draftmode' Change on `preample.tex` this option +\setkeys{Gin}{draft=false} + +% Creates a Watermark Draft at the specified location. +% The settings can be tweaked in the preamble + +% Draft text +\newcommand\drafttext{Draft} +\renewcommand\SetDraftText[1]{% + \renewcommand\drafttext{#1} +} + +% Draft Version +\newcommand\draftVersion{v1.0} +\renewcommand\SetDraftVersion[1]{% + \renewcommand\draftVersion{#1} +} + +% Draft Gray Scale +\newcommand\draftGrayScale{0.65} +\renewcommand\SetDraftGrayScale[1]{% + \renewcommand\draftGrayScale{#1} +} + +% Draft Content +\newcommand\DraftContent{% + \hspace*{\fill} + \Large + %\textcolor[gray]{\draftGrayScale}{% change gray color to red + \textcolor[rgb]{1,0,0}{% + {\drafttext}\space-\space{\draftVersion}\hspace{\stretch{1}}{\timestamp} + \hspace*{\fill} + } +} + +%\newcommand{\draftypos}{\topmargin - 4cm} +%\RequirePackage{background} +%\backgroundsetup{ +% placement=center, +% scale=4, +% contents={DRAFT}, +% opacity=1 +%} +%\setbeamertemplate{background}{\BgMaterial} + +%%% Adding watermark in draft mode with time stamp +%\RequirePackage{everypage} +%\RequirePackage[absolute]{textpos} +% Default values for draft watermark +%\newcommand\draftposition{bottom} +%\newcommand\draftnodeanchor{1in+\voffset-\topmargin} +%\newcommand\draftnodeanchor{1in+\voffset-\topmargin} +%\AddEverypageHook{% +% \begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor) +% \DraftContent +% \end{textblock*} +%} +% +%% Conditional evaluation to position the draft water mark (top / bottom) +%\renewcommand\SetDraftWMPosition[1]{% +% \renewcommand\draftposition{#1} +% \ifthenelse{\equal{\draftposition}{bottom}} +% {\renewcommand\draftnodeanchor{\paperheight-\voffset}} %Bottom +% {\ifthenelse{\equal{\draftposition}{top}} +% {\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}} %Top +% {\ClassWarning{PDThesisPSnPDF}{Unrecognised draft position +% using default value of top} +% \renewcommand\draftnodeanchor{1in+\voffset-\topmargin}}} %Top +% +% \AddEverypageHook{% +% \begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor) +% \DraftContent +% \end{textblock*} +% } +%} + +% If NOT Draft Mode +\else + +\renewcommand\SetDraftText[1]{\ClassWarning{beamerPhD}{DraftMode is + inactive, to use SetDraftText include `draftmode' in the document + class options.}} +% Draft Version +\renewcommand\SetDraftVersion[1]{\ClassWarning{beamerPhD}{DraftMode is + inactive, to use SetDraftVersion include `draftmode' in the document + class options.}} +% Draft Content +\renewcommand\SetDraftWMPosition[1]{\ClassWarning{beamerPhD}{DraftMode + is inactive, to use SetDraftWMPosition include `draftmode' in the document + class options.}} + +\renewcommand\SetDraftGrayScale[1]{\ClassWarning{beamerPhD}{DraftMode is + inactive, to use SetDraftWMPosition include `draftmode' in the document + class options.}} + +\fi + +% ***************************** Define info variables ************************** +% The name of your University +\newcommand{\@university}{} +\newcommand{\university}[1]{\renewcommand{\@university}{#1}} + +% The name of your Department +\newcommand{\@dept}{} +\newcommand{\dept}[1]{\renewcommand{\@dept}{#1}} + +% The name of your Laboratory +\newcommand{\@lab}{} +\newcommand{\lab}[1]{\renewcommand{\@lab}{#1}} +% +% The name of your Title in Greek +\newcommand{\@lcttitle}{} +\newcommand{\lcttitle}[1]{\renewcommand{\@lcttitle}{#1}} + +% The name of your Title in Greek +\newcommand{\@coursetitle}{} +\newcommand{\coursetitle}[1]{\renewcommand{\@coursetitle}{#1}} + +% The name of your Title in Greek +\newcommand{\@courseinfo}{} +\newcommand{\courseinfo}[1]{\renewcommand{\@courseinfo}{#1}} + +% The name of your degree title +\newcommand{\@degreetitle}{} +\newcommand{\degreetitle}[1]{\renewcommand{\@degreetitle}{#1}} + +% The name of the author +\newcommand{\@authorname}{} +\newcommand{\authorname}[1]{\renewcommand{\@authorname}{#1}} + +% The thesis of the author +\newcommand{\@authortitle}{} +\newcommand{\authortitle}[1]{\renewcommand{\@authortitle}{#1}} + +% The name of your supervisor +\newcommand{\@supervisor}{} +\newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}} + +% The city of your University +\newcommand{\@city}{} +\newcommand{\city}[1]{\renewcommand{\@city}{#1}} + +% The date +\newcommand{\@degreedate}{} +\newcommand{\degreedate}[1]{\renewcommand{\@degreedate}{#1}} + +% University Crest +\newcommand{\@crestleft}{} +\newcommand{\crestleft}[1]{\renewcommand{\@crestleft}{#1}} + +% Department Crest +\newcommand{\@crestright}{} +\newcommand{\crestright}[1]{\renewcommand{\@crestright}{#1}} + +% Thank u text +\newcommand{\@thankutext}{} +\newcommand{\thankutext}[1]{\renewcommand{\@thankutext}{#1}} + +% Homepage Url +\newcommand{\@urlhome}{} +\newcommand{\urlhome}[1]{\renewcommand{\@urlhome}{#1}} + +% Contact mail +\newcommand{\@contmail}{} +\newcommand{\contmail}[1]{\renewcommand{\@contmail}{#1}} + +% LinkedIn url +\newcommand{\@urlin}{} +\newcommand{\urlin}[1]{\renewcommand{\@urlin}{#1}} + +% GitHub Url +\newcommand{\@urlgh}{} +\newcommand{\urlgh}[1]{\renewcommand{\@urlgh}{#1}} + +% Google plus Url +\newcommand{\@urlgp}{} +\newcommand{\urlgp}[1]{\renewcommand{\@urlgp}{#1}} + +% TWitter Url +\newcommand{\@urltw}{} +\newcommand{\urltw}[1]{\renewcommand{\@urltw}{#1}} + +% ******************************** Title Page ********************************** +\definecolor{goldenyellow}{rgb}{1.0, 0.87, 0.0} +\definecolor{lava}{rgb}{0.81, 0.06, 0.13} +\definecolor{auburn}{rgb}{0.43, 0.21, 0.1} +\setbeamercolor{coursebox}{fg=auburn, bg=goldenyellow} + +\renewcommand{\maketitle}{ +\begin{frame}[plain] + \begin{minipage}[t]{0.10\textwidth} + \centering\raisebox{\dimexpr \topskip-\height}{\@crestleft} + \end{minipage}\hfill + \begin{minipage}[t]{0.79\textwidth} + \centering \vspace*{-0.4cm}{\large \textbf{\@university} \par} + \vspace*{0.1cm} {\small \@dept \par} + \vspace*{0.1cm} {\small \@lab \par} + \end{minipage} + \begin{minipage}[t]{0.10\textwidth} + \centering\raisebox{\dimexpr \topskip-\height}{\@crestright} + \end{minipage}\hfill + \vfill + + \hfill \begin{beamercolorbox}[wd=.5\paperwidth,leftskip=2cm,sep=1.5pt,center,rounded=false]{coursebox} + \@coursetitle \par + + \footnotesize{\@courseinfo} + \end{beamercolorbox} + + \centering + \vspace*{.3cm} + \Large\textbf{\textcolor{red!90!blue}{\@lcttitle}}\par\vfill + %\small{\@degreetitle}\par\vfill + \ifsetDraft + \DraftContent + \vspace*{-.5cm} + \fi + \vfill + +\begin{flushleft} + \normalsize\textbf{\@authorname}\par + \footnotesize{\@authortitle}\par +\end{flushleft} +\vspace*{-1cm} +\begin{flushright} + \scriptsize\href{\@urlhome}{\@urlhome \space \faHome}\vskip-.15cm + \color{red!90!blue}\rule{0.08\textwidth}{1pt}\par + \scriptsize\href{\@contmail}{\@contmail \space \faEnvelope}\par +\end{flushright}\vfill + + \centering + {\footnotesize\textbf{\@city, \@degreedate}}%\vfill +\end{frame} +} + +% ****************************** Thank U Page ********************************** +\newcommand{\makethanku}{ +\begin{frame}[plain,b]\frametitle{}\framesubtitle{} +\vfill + \begin{center} +% \color{blue!90}\rule{0.02\textwidth}{1pt}\par +% \color{blue!85}\rule{0.05\textwidth}{1pt}\par + \color{blue!80}\rule{0.02\textwidth}{1pt}\par + \color{blue!70}\rule{0.05\textwidth}{1pt}\par + \color{blue!60}\rule{0.1\textwidth}{1pt}\par + \color{blue!50}\rule{0.2\textwidth}{1pt}\par + \color{blue!40}\rule{0.3\textwidth}{1pt}\par + \color{blue!30}\rule{0.45\textwidth}{1pt}\par + \color{blue!20}\rule{0.6\textwidth}{1pt}\par + \vskip.2cm + \textcolor{red!85}{\Large\textbf{\@thankutext}} + \color{blue!20}\rule{0.7\textwidth}{1pt}\par + \color{blue!30}\rule{0.55\textwidth}{1pt}\par + \color{blue!40}\rule{0.4\textwidth}{1pt}\par + \color{blue!50}\rule{0.3\textwidth}{1pt}\par + \color{blue!60}\rule{0.2\textwidth}{1pt}\par + \color{blue!70}\rule{0.15\textwidth}{1pt}\par + \color{blue!80}\rule{0.1\textwidth}{1pt}\par + \color{blue!85}\rule{0.05\textwidth}{1pt}\par + \color{blue!90}\rule{0.02\textwidth}{1pt}\par + \end{center} +\vskip-2cm +\href{\@urlin}{\faLinkedin}\\ +\href{\@urlgh}{\faGithub}\\ +\href{\@urlgp}{\faGooglePlus}\\ +\href{\@urltw}{\faTwitter} \hspace*{.1cm} \href{\@urlhome}{\faHome} \hspace*{.1cm} \href{\@contmail}{\faEnvelope} \hfill \textcolor{red!80}{\scriptsize \textit{compiled via \XeLaTeX}}\\ +\vfill +\end{frame} +} + +% ****************************** Q&A section *********************************** +\newcommand{\makeqahour}{ +\begin{frame}[plain,b]\frametitle{}\framesubtitle{} +\vfill + \begin{center} + \includegraphics[height=.8\paperheight,draft=false]{Figs/darktableQA1.jpg} + \end{center} +%\vskip-2cm + +\begin{flushright} +\hfill\href{\@urlhome}{\faHome} +\href{\@contmail}{\faEnvelope} +\href{\@urlin}{\faLinkedin} +\href{\@urlgh}{\faGithub} +\href{\@urlgp}{\faGooglePlus} +\href{\@urltw}{\faTwitter} +\end{flushright} + +%\textcolor{red!80}{\scriptsize \textit{compiled via \XeLaTeX}}\\ +\vfill +\end{frame} +} +% ****************** Chapter Mode - To print only selected chapters ************ +\newif\ifdefineChapter\defineChapterfalse %To enable Separate abstract + +\newif\ifPRES@chapter\PRES@chapterfalse % Enable Separate Abstract +\DeclareOption{chapter}{ + \PRES@chaptertrue + \ClassWarning{beamerLct}{You have chosen an option that generates only + selected chapters with references, if this was intentional, ignore this + warning. If not, please remove the option `chapter' from the document class + and recompile. Good luck with your writing!} +} + +\ProcessOptions\relax% + +% ***************************** Chapter Mode *********************************** +% The chapter mode allows user to only print particular chapters with references +% All other options are disabled by default +% To include only specific chapters without TOC, LOF, Title and Front Matter +% To send it to supervisior for changes + +\ifPRES@chapter + \defineChaptertrue + % Disable the table of contents, figures, tables, index and nomenclature + \renewcommand{\maketitle}{} +% \renewcommand{\tableofcontents}{} + \renewcommand{\makethanku}{} +\else + \defineChapterfalse +\fi + +% ****************** Print Bibliography option ********************************* +\newif\ifdefinePrintbib\definePrintbibfalse %To enable Separate abstract + +\newif\ifPRES@printbib\PRES@printbibfalse % Enable Separate Abstract +\DeclareOption{printbib}{ + \PRES@printbibtrue + \ClassWarning{beamerLct}{You have chosen an option that generates only + selected chapters with references, if this was intentional, ignore this + warning. If not, please remove the option `printbib' from the document class + and recompile. Good luck with your writing!} +} + +\ProcessOptions\relax% + +\ifPRES@printbib + \definePrintbibtrue +\else + \definePrintbibfalse +\fi + +% \RequirePackage[backend=biber, style=authoryear, citestyle=alphabetic, sorting=nty, natbib=true]{biblatex} + +% ********************* Progress Bar option ************************************ +\newif\ifdefineProgrbar\defineProgrbarfalse %To enable Separate abstract + +\newif\ifPRES@progrbar\PRES@progrbarfalse % Enable Separate Abstract +\DeclareOption{progrbar}{ + \PRES@progrbartrue + \ClassWarning{beamerLct}{Υou have chosen an option that generates Progress bar + in all frames of the presentation, if this was intentional, ignore this + warning. If not, please remove the option `progrbar' from the document class + and recompile. Good luck with your writing!} +} + +\ProcessOptions\relax% + +\ifPRES@progrbar + \defineProgrbartrue + +\makeatletter + \newcommand{\Progressbar@LabelColor}{black} + \newcommand{\Progressbar@LabelText}{Label} + \newcommand{\Progressbar@LabelWidth}{5} +% Farbe, Text, Breite des Labels + + \newcommand{\Progressbar@BarWidth}{10} + \newcommand{\Progressbar@BarHeight}{1} + \newcommand{\Progressbar@BarColor}{yellow} + \newcommand{\Progressbar@BarBorder}{black} +% Breite, Höhe, Schriftfarbe des Prozentsatzes, Rahmenfarbe des Fortschrittbalkens + + \newcommand{\Progressbar@TodoA}{gray} + \newcommand{\Progressbar@TodoB}{black} +% Farbe 1 und 2 für den unerledigten Teil + + \newcommand{\Progressbar@DoneA}{red} + \newcommand{\Progressbar@DoneB}{blue} +% Farbe 1 und 2 für den erledigten Teil + + \newcommand{\Progressbar@Direction}{LTR} +% Modus links nach rechts oder umgekehrt; umgekehrt ist buggy (no support yet) + + \newcommand{\Progressbar@Completion}{50} +% Fertigstellung in Prozent + + \define@key{Progressbar}{LabelColor}[\Progressbar@LabelColor]{\renewcommand{\Progressbar@LabelColor}{#1}} + \define@key{Progressbar}{LabelText}[\Progressbar@LabelText]{\renewcommand{\Progressbar@LabelText}{#1}} + \define@key{Progressbar}{LabelWidth}[\Progressbar@LabelWidth]{\renewcommand{\Progressbar@LabelWidth}{#1}} + + \define@key{Progressbar}{BarWidth}[\Progressbar@BarWidth]{\renewcommand{\Progressbar@BarWidth}{#1}} + \define@key{Progressbar}{BarHeight}[\Progressbar@BarHeight]{\renewcommand{\Progressbar@BarHeight}{#1}} + \define@key{Progressbar}{BarColor}[\Progressbar@BarColor]{\renewcommand{\Progressbar@BarColor}{#1}} + + \define@key{Progressbar}{BarBorder}[\Progressbar@BarBorder]{\renewcommand{\Progressbar@BarBorder}{#1}} + \define@key{Progressbar}{TodoA}[\Progressbar@TodoA]{\renewcommand{\Progressbar@TodoA}{#1}} + \define@key{Progressbar}{TodoB}[\Progressbar@TodoB]{\renewcommand{\Progressbar@TodoB}{#1}} + + \define@key{Progressbar}{DoneA}[\Progressbar@DoneA]{\renewcommand{\Progressbar@DoneA}{#1}} + \define@key{Progressbar}{DoneB}[\Progressbar@DoneB]{\renewcommand{\Progressbar@DoneB}{#1}} + \define@key{Progressbar}{Direction}[\Progressbar@Direction]{\renewcommand{\Progressbar@Direction}{#1}} + + \define@key{Progressbar}{Completion}[\Progressbar@Completion]{\renewcommand{\Progressbar@Completion}{#1}} + + \newcommand{\Progressbar}[1]% + { \setkeys{Progressbar}{#1} + % Progress Bars -------------------------------------------------- + \begin{tikzpicture}[overlay, remember picture,shift={($(current page.south west)+(0,0.05)$)}] + + \ifthenelse{ \( \Progressbar@Completion = 0 \) or \( \Progressbar@Completion = 100 \) } + { \newcommand{\TCA}{\Progressbar@TodoA} + \newcommand{\TCB}{\Progressbar@TodoB} + \newcommand{\DCA}{\Progressbar@DoneA} + \newcommand{\DCB}{\Progressbar@DoneB} + } + { \newcommand{\TCA}{\Progressbar@TodoB !\Progressbar@Completion !\Progressbar@TodoA} + \newcommand{\TCB}{\Progressbar@TodoB} + \newcommand{\DCA}{\Progressbar@DoneA} + \newcommand{\DCB}{\Progressbar@DoneB !\Progressbar@Completion !\Progressbar@DoneA} + } + \ifthenelse{\equal{\Progressbar@Direction}{LTR}} + { \shade[left color=\DCA,right color=\DCB]% + (0,0) rectangle (\Progressbar@Completion * \Progressbar@BarWidth / 100,\Progressbar@BarHeight); + \shade[left color=\TCA,right color=\TCB]% + (\Progressbar@Completion * \Progressbar@BarWidth / 100,0)% + rectangle (\Progressbar@BarWidth,\Progressbar@BarHeight); + } + { \shade[left color=\TCB,right color=\TCA]% + (0,0) rectangle (\Progressbar@Completion * \Progressbar@BarWidth / 100,\Progressbar@BarHeight); + \shade[left color=\DCB,right color=\DCA]% + (\Progressbar@Completion * \Progressbar@BarWidth / 100,0)% + rectangle (\Progressbar@BarWidth,\Progressbar@BarHeight); + } + \draw (0,0) rectangle (\Progressbar@BarWidth,\Progressbar@BarHeight); + \node[color=\Progressbar@BarColor] at% + (\Progressbar@BarWidth / 10,\Progressbar@BarHeight / 2) {\Progressbar@Completion \%}; + \draw[color=white] (- \Progressbar@LabelWidth,0) -- % + node[anchor=west,color=\Progressbar@LabelColor,text width=\Progressbar@LabelWidth]% + {\Progressbar@LabelText} (- \Progressbar@LabelWidth,\Progressbar@BarHeight) ; +% \typeout{todo c1 = \TCA} +% \typeout{todo c2 = \TCB} +% \typeout{done c1 = \DCA} +% \typeout{done c2 = \DCB} + \end{tikzpicture} + } +\makeatother + +\logo { \pgfmathsetmacro{\wid}{\the\paperwidth/28.45276} + \pgfmathtruncatemacro{\prog}{100*\insertpagenumber/\insertdocumentendpage} + \Progressbar{ LabelColor=yellow,% + LabelText=,% + LabelWidth=0,% + BarWidth=\wid,% + BarHeight=0.18,% + BarColor=green,% + BarBorder=black,% + TodoA=red!20!white,% + TodoB=red!70!gray,% + DoneA=blue!70!cyan,% + DoneB=blue!20!white,% + Completion=\prog% + } + } + +\else + \defineProgrbarfalse +\fi \ No newline at end of file diff --git a/Figs/darktableQA1.jpg b/Figs/darktableQA1.jpg new file mode 100644 index 0000000..c7d1db7 Binary files /dev/null and b/Figs/darktableQA1.jpg differ diff --git a/Preample/preampleLct.tex b/Preample/preampleLct.tex new file mode 100644 index 0000000..58fba95 --- /dev/null +++ b/Preample/preampleLct.tex @@ -0,0 +1,387 @@ +% ********************************** Preamble ********************************** +% Preamble: Contains packages and user-defined commands and settings +%\usepackage{../sty/beamerthemesimpledso} +%%----------------------------------------------------------------------------- +% % USE THEME +%%----------------------------------------------------------------------------- +\usetheme{RedLecture} +% \usetheme{PaloAlto} +% \usetheme{Singapore} +% \usetheme{Szeged} +% \usetheme{CambridgeUS} +% \usetheme{Montpellier} +% \usetheme{Pittsburgh} <--- +% \usetheme{Warsaw} +% \usetheme{Rochester} +% \usetheme{Marburg} +% \usetheme{Malmoe} +% \usetheme{Madrid} +% \usetheme{Luebeck} +% \usetheme{Ilmenau} +% \usetheme{Hannover} <--- +% \usetheme{Goettingen} +% \usetheme{Dresden} +% \usetheme{boxes} +% \usetheme{Boadilla} +% \usetheme{Berlin} +% \usetheme{Berkeley} +% \usetheme{AnnArbor} + +\usepackage{lmodern} +\usepackage[scale=2]{ccicons} + +%%----------------------------------------------------------------------------- +% % double slides left presentation // right notes NOT WORK WELL!!! +%%----------------------------------------------------------------------------- +% \usepackage{pgfpages} +% \setbeameroption{show notes on second screen=right} + +%%----------------------------------------------------------------------------- +% % margins +%%----------------------------------------------------------------------------- +\setbeamersize{text margin left=0.4cm} % <- like this +\setbeamersize{text margin right=0.4cm} % <- like this +% \setbeamersize{text margin top=0.2cm} % <- like this +% \setbeamersize{text margin bottom=0.2cm} % <- like this + +%%----------------------------------------------------------------------------- +% % SET RATIO TO 16:9 uncoment next line +%%----------------------------------------------------------------------------- +% \usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter} % reduce ratio to 16:9 IUGG defaults! +% Better to use class option!! + +%%----------------------------------------------------------------------------- +% % Set background for simpledso theme +%%----------------------------------------------------------------------------- +%\graphicspath{{Chapter3/Figs/Vector/}{Chapter3/Figs/}} +\setwatermark{\includegraphics[height=8cm,draft=false]{Figs/backgr01.png}} + +%%----------------------------------------------------------------------------- +% Languages +%%----------------------------------------------------------------------------- +% \usepackage[english, greek]{babel} +\usepackage{xgreek} +\usepackage[Greek,Latin]{ucharclasses} +\setTransitionsForGreek{\setlanguage{greek}}{\setlanguage{english}} +% \usepackage{xunicode} +% \usepackage{xltxtra} +% \usepackage[monogreek]{xgreek} +% \usepackage{tabu} + +%%----------------------------------------------------------------------------- +% Tables +%%----------------------------------------------------------------------------- +\usepackage{booktabs,tabularx} +\usepackage{tabu} +\usepackage{multirow} + +%%----------------------------------------------------------------------------- +% Fonts - many bugs +%----------------------------------------------------------------------------- +% % To use system fonts uncomment the next two lines +% \usefonttheme{professionalfonts} % using non standard fonts for beamer +% \usefonttheme{serif} % default family is serif + +\usepackage{fontspec} +\setsansfont{Arial} + +% \setmainfont{Liberation Serif} +% ******************* Fonts (like different typewriter fonts etc.)************* + +% Add `customfont' in the document class option to use this section + +%\ifsetCustomFont + % Set your custom font here and use `customfont' in options. Leave empty to + % load computer modern font (default LaTeX font). +% \RequirePackage{helvet} + +% \setmainfont[Mapping=tex-text]{GFS Didot} +% \setmainfont[Mapping=tex-text]{GFS Bodoni} +% \setmainfont[Mapping=tex-text]{GFS Olga} % ότι να ναι αυτή!!πλάγια NOT support English +% \setmainfont[Mapping=tex-text]{GFS Neohellenic} +% \setmainfont[Mapping=tex-text]{GFS Artemisia} +% \setmainfont[Mapping=tex-text]{GFS Elpis} %low resolution printing +% \setmainfont[Mapping=tex-text]{Linux Libertine T} +% \setmainfont[Mapping=tex-text]{Linux Libertine O} + +% % For use with XeLaTeX +% \setmainfont[ +% Path = /usr/share/texlive/texmf-dist/fonts/opentype/public/libertine/, %./libertine/opentype/, +% Extension = .otf, +% UprightFont = LinLibertine_R, +% BoldFont = LinLibertine_RZ, % Linux Libertine O Regular Semibold +% ItalicFont = LinLibertine_RI, +% BoldItalicFont = LinLibertine_RZI, % Linux Libertine O Regular Semibold Italic +% ] +% {LGR} +% % % load font from system font +% \newfontfamily\libertinesystemfont{Linux Libertine O} + +% \fi % custom font class + +% \setmainfont{TeX Gyre Pagella} +% \setsansfont{TeX Gyre Heros} +% \setmonofont{Inconsolata} +% \setmainfont{Times New Roman} +% \setmainfont{Augie} +% \setsansfont{Arial} +% \setsansfont{Tapir} +% \newfontfamily\greekfont[Script=Greek]{Linux Libertine O} +% \setmainfont{Minion Pro} % substitute with any font that exists on your system +% \setsansfont{Myriad Pro} % substitute with any font that exists on your system +% \setmonofont{Consolas} % substitute with any font that exists on your system +% \usefonttheme[onlymath]{serif} + +%%----------------------------------------------------------------------------- +% REQUIRED PACKAGES +%----------------------------------------------------------------------------- +\usepackage{graphicx} % Required for including images +\usepackage{fancybox} +% \usepackage{xcolor} +%% for tikz +% \usepackage{dtklogos} +%\usepackage{tikz} +\usetikzlibrary{mindmap,shadows} +\usepackage{smartdiagram} + +% restart numbering footnotes per page +\usepackage{perpage} +\MakePerPage{footnote} +% % Sychronize footnotes on columns minipages +\renewcommand\thempfootnote{\arabic{mpfootnote}} + +% use nice itemlists .. +%\usepackage{enumitem, color, amssymb} +\usepackage{url} +\hypersetup{colorlinks,citecolor=blue,linkcolor=,urlcolor=links} +%\hypersetup{colorlinks=true,allcolors=blue} + +% use metalogo to print xelatex! +\usepackage{metalogo} + +% % tcolorbox custom block, problem with caption package, cant solve it yet! +% \usepackage[most]{tcolorbox} + +%%----------------------------------------------------------------------------- +%% Adgust figures +%%----------------------------------------------------------------------------- +\usepackage{adjustbox} % for \adjincludegraphics +% {\shadowbox{\color{black!35}\includegraphics[height=4cm]{img/iono.eps}} + +%%----------------------------------------------------------------------------- +%% Print Arrows +%%----------------------------------------------------------------------------- +\usepackage{marvosym} % \MVRIGHTarrow +\usepackage{stmaryrd} % \shortrightarrow $\Rightarrow$ +\usepackage{textcomp} % \textrightarrow + +%%----------------------------------------------------------------------------- +%% Math symbols +%%----------------------------------------------------------------------------- +\usepackage{amssymb} +\usepackage{amsmath} + +% \usepackage{soul} +% \definecolor{lightblue}{rgb}{.90,.95,1} +% \sethlcolor{lightblue} +% \renewcommand<>{\hl}[1]{\only#2{\beameroriginal{\hl}}{#1}} +% ----------------------------------------------------------------------------- +% CAPTIONS +%----------------------------------------------------------------------------- +\usepackage{caption} +\usepackage{subcaption} +\captionsetup[figure]{font=footnotesize,labelfont=footnotesize,skip=0pt,belowskip=0pt} +\setbeamertemplate{caption}[numbered] + +\setbeamerfont{caption}{size=\scriptsize} + +% ----------------------------------------------------------------------------- +% Four Quad +%----------------------------------------------------------------------------- +\newcommand\FourQuad[4]{ + \begin{minipage}[b][.45\textheight][t]{.50\textwidth}\centering#1\end{minipage}\hfill% + \begin{minipage}[b][.45\textheight][t]{.50\textwidth}\centering#2\end{minipage}\\[0.1cm] + \begin{minipage}[b][.45\textheight][t]{.50\textwidth}\centering#3\end{minipage}\hfill + \begin{minipage}[b][.45\textheight][t]{.50\textwidth}\centering#4\end{minipage}% +} + +% ----------------------------------------------------------------------------- +% Custom symbols for itemize +%----------------------------------------------------------------------------- + +\newenvironment{proenv}{\only{\setbeamercolor{local structure}{fg=green}}}{} +\newenvironment{conenv}{\only{\setbeamercolor{local structure}{fg=red}}}{} + \usepackage{fontawesome} + +% ----------------------------------------------------------------------------- +% Rotate text +%----------------------------------------------------------------------------- +\usepackage{rotating} +%\begin{turn}{45} +% ... +% \end{turn} + + +% ----------------------------------------------------------------------------- +% BIBLATEX +%----------------------------------------------------------------------------- +\usepackage{hyperref} +\usepackage[backend=biber, + style=authoryear, + maxbibnames=9, + maxcitenames=1, + citestyle=authoryear, + hyperref=true, + backref=true, + sorting=nty, + natbib=true]{biblatex} + +% Hypper linc for all citations use \parencite & \textcite +\ExecuteBibliographyOptions{maxcitenames=1} + +\DeclareFieldFormat{citehyperref}{% + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{#1}} + +\DeclareFieldFormat{textcitehyperref}{% + \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links + \bibhyperref{% + #1% + \ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}}} + +\savebibmacro{cite} +\savebibmacro{textcite} + +\renewbibmacro*{cite}{% + \printtext[citehyperref]{% + \restorebibmacro{cite}% + \usebibmacro{cite}}} + +\renewbibmacro*{textcite}{% + \ifboolexpr{ + ( not test {\iffieldundef{prenote}} and + test {\ifnumequal{\value{citecount}}{1}} ) + or + ( not test {\iffieldundef{postnote}} and + test {\ifnumequal{\value{citecount}}{\value{citetotal}}} ) + } + {\DeclareFieldAlias{textcitehyperref}{noformat}} + {}% + \printtext[textcitehyperref]{% + \restorebibmacro{textcite}% + \usebibmacro{textcite}}} + + + +\bibliography{References/triangleref.bib} +\newcounter{bibitmctr} +\newcommand{\brf}{% + \stepcounter{bibitmctr}% + \ifnum\value{bibitmctr}=7% + \setcounter{bibitmctr}{0} + \framebreak + \fi +} + +\renewbibmacro*{finentry}{\finentry\brf} + +% % cahnge fontsize of bibliography for biblatex +\renewcommand*{\bibfont}{\tiny} + + +% ----------------------------------------------------------------------------- +% Insert frame after new section +%----------------------------------------------------------------------------- +% comment next lines if you don't like to use this +\AtBeginSection[]{ + \begin{frame}[b] +% \vfill + \vspace{\fill} + \centering + \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title} + \usebeamerfont{title}\Large{\insertsectionhead}% + \end{beamercolorbox} + \vskip-2cm + \begin{flushleft} + {\color{blue!20}\rule{0.7\textwidth}{1pt}}\par + {\color{blue!40}\rule{0.5\textwidth}{1pt}}\par + {\color{blue!60}\rule{0.3\textwidth}{1pt}}\par + {\color{blue!70}\rule{0.16\textwidth}{1pt}}\par + {\color{blue!80}\rule{0.08\textwidth}{1pt}}\par + {\color{blue!90}\rule{0.04\textwidth}{1pt}}\par + \end{flushleft} + \vspace{.5cm} +% \vfill + \end{frame} +} + +% ----------------------------------------------------------------------------- +% Configure Draft mode +%----------------------------------------------------------------------------- +% *********************** Configure Draft Mode ********************************** +\ifsetDraft + \usepackage[printwatermark]{xwatermark} + % Bottom +% \newwatermark*[pages=2-,color=red!60,textalign=center,angle=0,scale=.37,xpos=-.2cm,ypos=-.437\paperheight]{\makebox[.9\textwidth]{{\drafttext}\space-\space{\draftVersion}\space{\timestamp}}} + %Flush right + \newwatermark*[pages=2-,color=red!60,textalign=center,angle=90,scale=.35,xpos=.45\paperwidth, ypos=-.7cm]{\makebox[.9\textwidth]{{\drafttext}\space-\space{\draftVersion}\space{\timestamp}}} + +\fi + +% Uncomment to disable figures in `draft' mode +% \setkeys{Gin}{draft=true} % set draft to false to enable figures in `draft' + +% These options are active only during the draft mode +% Default text is "Draft" +\SetDraftText{DRAFT} + +% Default Watermark location is top. Location (top/bottom) +%\SetDraftWMPosition{bottom} + +% Draft Version - default is v1.0 +\SetDraftVersion{v1.0} + +% Draft Text grayscale value (should be between 0-black and 1-white) +% Default value is 0.75 +% \SetDraftGrayScale{0.8} + +% Set Draft water mark in print mode. Uncomment next lines +% \usepackage{draftwatermark} +% \SetWatermarkText{\parbox{46cm}{%54 +% * D R A F T - v0.9.7 * \\ \\ +% * \today * \\ \\ +% compiled via \LaTeX}} +% \SetWatermarkScale{.24}%44 +% \SetWatermarkColor[rgb]{1,0,0} + + +% ******************************** Todo Notes ********************************** +%% Uncomment the following lines to have todonotes. % Not working yet! + +% \ifsetDraft +% \usepackage[colorinlistoftodos,prependcaption,textsize=small]{todonotes} +% \setlength{\marginparwidth}{2.2cm} +% % \usepackage[colorinlistoftodos]{todonotes} +% \newcommand{\mynote}[1]{\todo[author=mitsos,size=\small,inline,color=green!40]{#1}} +% \newcommand{\unsure}[1]{\todo[author=mitsos,size=\small,color=red!60]{#1}} +% \newcommand{\change}[2][1=]{\todo[author=mitsos,size=\small,linecolor=blue,backgroundcolor=blue!35,bordercolor=blue]{#1}} +% % \newcommand{\info}[2][1=]{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}} +% % \newcommand{\improvement}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}} +% \newcommand{\xanthos}[1]{\todo[author=xanthos,size=\small,inline,color=red!40]{#1}} +% \newcommand{\vagg}[1]{\todo[author=vagg,size=\small,inline,color=red!40]{#1}} +% \else +% \newcommand{\todo}[1]{} +% \newcommand{\mynote}[1]{} +% \newcommand{\unsure}[1]{} +% \newcommand{\change}[1]{} +% \newcommand{\info}[2][1=]{} +% \newcommand{\improvement}[2][1=]{} +% \newcommand{\xanthos}[1]{} +% \newcommand{\vagg}[1]{} +% \newcommand{\listoftodos}{} +% \fi +% +% Example todo: \mynote{Hey! I have a note} + diff --git a/README.md b/README.md index 2934aba..cad6741 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,9 @@ Templates for academic presentations -- pre-released * `Pub`: Professional presentaions for your research work on conferences, meetings etc. - * `~~Lecture~~`: Available Soon!! + * `Lct`: Academic presentation for university courses, lecture. + + * Special pre-defined frames for each style (thanku, Q&A) -------------------------------------------------------------------------------- @@ -115,7 +117,7 @@ Then select you presentation style on `preample.tex` file * `beamerPub`: Class file for conference presentations! -* `~~beamer Lecture~~`: under development! +* `beamerLct`: Class file for conference presentation! ### Class options @@ -131,6 +133,8 @@ Then select you presentation style on `preample.tex` file * `printbib`: Include bibliography at the end of the presentation (__bug__: not working with makefile!) +* `progrbar`: Enable progress bar in the frame. Chose this option after your first compilation. + ## Contributing 1. Create an issue and describe your idea diff --git a/Variables.ini b/Variables.ini index 3e8d1e7..158488b 100644 --- a/Variables.ini +++ b/Variables.ini @@ -4,7 +4,7 @@ neverclean := *.pdf *.ps *.dvi # If you list files here, they will be treated as _include_ files includes.fig := Figs/ntua.png Figs/DSOtrans.png -onlysources.tex := pub_pres.tex +onlysources.tex := lct_pres.tex LATEX_COLOR_WARNING := 'bold red uline' # Change BUILD_STRATEGY diff --git a/lct_pres.tex b/lct_pres.tex new file mode 100644 index 0000000..cb18c83 --- /dev/null +++ b/lct_pres.tex @@ -0,0 +1,100 @@ +% ******************* PhD Thesis Presentation Template ************************* +% Please have a look at the README.md file for info on how to use the template +\PassOptionsToPackage{table}{xcolor} % <-μονο εδω δουλεύει!! + +\documentclass[progrbar]{Classes/beamerLct}%% +% ****************************************************************************** +% ******************************* Class Options ******************************** +% *********************** See README for more details ************************** +% ****************************************************************************** +% +% `aspectratio=169`: reduce ratio to 16:9 +% +% `draft`: Special draft mode with line numbers, images, and water mark with +% timestamp and custom text. Position of the text can also be modified. To +% disable figures see on `preample.tex` the Draftmode section. +% +% `chapter`: This option enables only the specified chapter and it's references +% Useful for review and corrections. +% +% `notes`: Prints frames and notes +% +% `notes=only`: Prints only notes of each frame +% +% `printbib`: Include bibliography at the end of the presentation +% +% `progrbar`: Enable progress bar in the frame. Chose this option after your +% first compilation + +% ********************************** Preamble ********************************** +% Preamble: Contains packages and user-defined commands and settings +\include{Preample/preampleLct} + +% ************************ Thesis Information & Meta-data ********************** +% Thesis title and author information, refernce file for biblatex +\input{pres-info} + +% ***************************** Chapter Mode *********************************** +\ifdefineChapter +% \includeonly{Chapter1/ch1presLct} +\includeonly{Chapter2/ch2pres} +% \includeonly{Chapter3/ch3pres} +% \includeonly{Chapter4/ch4pres} +% \includeonly{Chapter5/ch5pres} +% \includeonly{Chapter6/ch6pres} +% \includeonly{Appendix/ap_refs} +% \includeonly{Appendix/ap_soft} +% \includeonly{Appendix/cut01.tex} +\fi + +% *********************** Start the document *********************************** +\begin{document} + +% ***************************** Make title ************************************* +\maketitle + +% ***************************** TOC ************************************* +\begin{frame} + \frametitle{Δομή της διάλεξης} + \tableofcontents +\end{frame} + + +% ************************ Include Chapters ************************************* +\include{Chapter1/ch1presLct} +\include{Chapter2/ch2pres} +\include{Chapter3/ch3pres} +\include{Chapter4/ch4pres} +\include{Chapter5/ch5pres} +%\include{Chapter6/ch6pres} +% \include{Appendix/ap_refs} +% \include{Appendix/ap_soft} + +%%----------------------------------------------------------------------------- +%% END OF PRESENTATION ... +%%----------------------------------------------------------------------------- + +% ************************ Q & A frame *************************************** +% include Q&A frame at the end of presentation +\makeqahour + +% ************************ Thank you frame ********************************** +% include Thank U last frame +% \makethanku % Ιncluded to class file + +% ************************ Bibliography ************************************* +% % % Add 'printbib' option in Class file to Include Bibliography +\ifdefinePrintbib + \begin{frame}[t,allowframebreaks] + \frametitle{Βιβλιογραφία} + \printbibliography + \end{frame} +\fi + +% ************************ Cut Frames ************************************** +% Add back up cut frames +% \include{Appendix/cut01} + + +% *********************** end of document ************************************ +\end{document} diff --git a/pres-info.tex b/pres-info.tex index 2b1f9da..3c9fc52 100644 --- a/pres-info.tex +++ b/pres-info.tex @@ -1,17 +1,112 @@ +%% ----------------------------------------------------------------------------- +%% General information... +%% ----------------------------------------------------------------------------- +% ************************ Pres g Information & Meta-data ********************** + +%% Meta information +% \subject{Γεωδαισία} \keywords{{Γεωδαισία} {Τριγωνισμός} {Παραμόρφωση} {Ελλάδα}} + +%% Contact e-informations +\urlhome{demanasta.github.io} %% homepage +\contmail{dganastasiou@gmail.com} %% contact mail +\urlin{https://www.linkedin.com/in/demitrisanastasiou/} %% linkedin url +\urlgh{https://github.com/demanasta} %% github repository +\urlgp{https://plus.google.com/u/0/+DemitrisAnastasiou} %% Google+ +\urltw{https://twitter.com/DemAnast} %% Twitter + %% ----------------------------------------------------------------------------- %% PhD section INFO %% ----------------------------------------------------------------------------- % ************************ Thesis Information & Meta-data ********************** %% The title of the thesis -% \eltitle{ΠΡΟΤΥΠΟ ΠΑΡΟΥΣΙΑΣΗΣ ΣΕ ΠΑΡΙΒΑΛΛΟΝ \\ Beamer-\LaTeX / \XeLaTeX} +%\eltitle{ΠΡΟΤΥΠΟ ΠΑΡΟΥΣΙΑΣΗΣ ΣΕ ΠΑΡΙΒΑΛΛΟΝ \\ Beamer-\LaTeX / \XeLaTeX} +% +%%% Subtitle (Optional) +%% \subtitle{Using the CUED template} +% +%%% The full name of the author +%\author{ΔΗΜΗΤΡΙΟΥ Γ. ΑΝΑΣΤΑΣΙΟΥ} +%\authorname{ΔΗΜΗΤΡΙΟΣ Γ. ΑΝΑΣΤΑΣΙΟΥ} +%\authortitle{Διπλ. Αγρονόμος \& Τοπογράφος Μηχανικός Ε.Μ.Π} +% +%%% Department (eg. Department of Engineering, Maths, Physics) +%\dept{ΣΧΟΛΗ ΑΓΡΟΝΟΜΩΝ \& ΤΟΠΟΓΡΑΦΩΝ ΜΗΧΑΝΙΚΩΝ} +% +%%% Laboratory +%\lab{ΚΕΝΤΡΟ ΔΟΡΥΦΟΡΩΝ ΔΙΟΝΥΣΟΥ} +% +%%% University and Crest +%\university{ΕΘΝΙΚΟ ΜΕΤΣΟΒΙΟ ΠΟΛΥΤΕΧΝΕΙΟ} +% +%% Crest minimum should be 30mm. +%\crestleft{\includegraphics[width=\textwidth,draft=false]{Figs/ntua.png}} +%\crestright{\includegraphics[width=0.85\textwidth,draft=false]{Figs/DSOtrans.png}} +%%% Use this crest, if you are using the college crest +% +%%% Crest long miminum should be 65mm +%%\crest{\includegraphics[width=0.45\textwidth]{University_Crest_Long}} +% +%%% College shield [optional] +%% Crest minimum should be 30mm. +%% \collegeshield{\includegraphics[width=0.2\textwidth]{CollegeShields/Kings}} +% +%%% Full title of the Degree +%\degreetitle{ΔΙΔΑΚΤΟΡΙΚΗ ΔΙΑΤΡΙΒΗ} +% +%% Supervisor +%\supervisor{......O/E.........\\ ....Θέση..........} +% +%%% College affiliation (optional) +%\city{ΑΘΗΝΑ} +% +%%% Submission date +%% Default is set as {\monthname[\the\month]\space\the\year} +%% \degreedate{\today} +%\degreedate{5 Ιουλίου 2017} + +%% Meta information +% \subject{Γεωδαισία} \keywords{{Γεωδαισία} {Τριγωνισμός} {Παραμόρφωση} {Ελλάδα}} + +%% Add "thank you" text% +\thankutext{Ευχαριστώ για την προσοχή σας !} + +%% ----------------------------------------------------------------------------- +%% Publication's section INFO +%% ----------------------------------------------------------------------------- +%% The title of the thesis +% \prestitle{Α Beamer-{\LaTeX} / {\XeLaTeX} template \\ for conference presentations } + +%% The team prepare this presentation +% \presteam{ +% \underline{D.Anastasiou}\textsuperscript{1}, +% X. Pap.\textsuperscript{2}, +% V. Zach.\textsuperscript{1}, +% A. Mar.\textsuperscript{2}} + +%% Organizations of the team +% \presorgn{\textsuperscript{1}National Technical University of Athens -- Dionysos Satellite Observatory\\ +% \textsuperscript{2}School of Rural \& Surveying Engineering -- Laboratory of Higher Geodesy +% } + +%Contact informations +% \presweb{dionysos.survey.ntua.gr} % webpage +% \presmail{dganastasiou@gmail.com} % contact mail + +%% Conference details, Select text or logo type. If you define both only logo will +%% be print +% \confname{EUREF Analysis Centre Workshop} +% \confdetail{AIU Bern, Switzerland, October 14-5, 2015} +%% OR conf logo.... +% \conflogo{\includegraphics[width=.8\textwidth,draft=false]{Figs/conflogo.png}} + + -%% Subtitle (Optional) -% \subtitle{Using the CUED template} -%% The full name of the author -% \author{ΔΗΜΗΤΡΙΟΥ Γ. ΑΝΑΣΤΑΣΙΟΥ} -\authorname{ΔΗΜΗΤΡΙΟΣ Γ. ΑΝΑΣΤΑΣΙΟΥ} -\authortitle{Διπλ. Αγρονόμος \& Τοπογράφος Μηχανικός Ε.Μ.Π} + + +%% ----------------------------------------------------------------------------- +%% Course section INFO +%% ----------------------------------------------------------------------------- %% Department (eg. Department of Engineering, Maths, Physics) \dept{ΣΧΟΛΗ ΑΓΡΟΝΟΜΩΝ \& ΤΟΠΟΓΡΑΦΩΝ ΜΗΧΑΝΙΚΩΝ} @@ -25,77 +120,32 @@ % Crest minimum should be 30mm. \crestleft{\includegraphics[width=\textwidth,draft=false]{Figs/ntua.png}} \crestright{\includegraphics[width=0.85\textwidth,draft=false]{Figs/DSOtrans.png}} -%% Use this crest, if you are using the college crest -%% Crest long miminum should be 65mm -%\crest{\includegraphics[width=0.45\textwidth]{University_Crest_Long}} -%% College shield [optional] -% Crest minimum should be 30mm. -% \collegeshield{\includegraphics[width=0.2\textwidth]{CollegeShields/Kings}} +%% The full name of the author +\authorname{ΔΗΜΗΤΡΙΟΣ Γ. ΑΝΑΣΤΑΣΙΟΥ} +\authortitle{Διπλ. Αγρ. \& Τοπ. Μηχ. Ε.Μ.Π} -%% Full title of the Degree -% \degreetitle{ΔΙΔΑΚΤΟΡΙΚΗ ΔΙΑΤΡΙΒΗ} +%% Lecture title +\coursetitle{Τίτλος του Μαθήματος} +\courseinfo{5ο Εξάμηνο} +\lcttitle{Δημιουργία παρουσιάσεων σε περιβάλλον {\LaTeX}} -% Supervisor -% \supervisor{......O/E.........\\ ....Θέση..........} -%% College affiliation (optional) -% \city{ΑΘΗΝΑ} +%%% College affiliation (optional) +\city{ΑΘΗΝΑ} %% Submission date % Default is set as {\monthname[\the\month]\space\the\year} % \degreedate{\today} -% \degreedate{5 Ιουλίου 2017} - -%% Meta information -% \subject{Γεωδαισία} \keywords{{Γεωδαισία} {Τριγωνισμός} {Παραμόρφωση} {Ελλάδα}} - -%% Add "thank you" text% -\thankutext{Ευχαριστώ για την προσοχή σας !} - -%% Contact e-informations -\urlin{https://www.linkedin.com/in/demitrisanastasiou/} -\urlgh{https://github.com/demanasta} -\urlgp{https://plus.google.com/u/0/+DemitrisAnastasiou} -\urltw{https://twitter.com/DemAnast} +\degreedate{5 Ιουλίου 2017} -%% ----------------------------------------------------------------------------- -%% Publication's section INFO -%% ----------------------------------------------------------------------------- -%% The title of the thesis -\prestitle{Α Beamer-{\LaTeX} / {\XeLaTeX} template \\ for conference presentations } - -%% The team prepare this presentation -\presteam{ -\underline{D.Anastasiou}\textsuperscript{1}, -X. Pap.\textsuperscript{2}, -V. Zach.\textsuperscript{1}, - A. Mar.\textsuperscript{2}} - -%% Organizations of the team -\presorgn{\textsuperscript{1}National Technical University of Athens -- Dionysos Satellite Observatory\\ -\textsuperscript{2}School of Rural \& Surveying Engineering -- Laboratory of Higher Geodesy -} -%Contact informations -\presweb{dionysos.survey.ntua.gr} % webpage -\presmail{dganastasiou@gmail.com} % contact mail - -%% Conference details, Select text or logo type. If you define both only logo will -%% be print -\confname{EUREF Analysis Centre Workshop} -\confdetail{AIU Bern, Switzerland, October 14-5, 2015} -%% OR conf logo.... -\conflogo{\includegraphics[width=.8\textwidth,draft=false]{Figs/conflogo.png}} -%% ----------------------------------------------------------------------------- -%% Course section INFO -%% ----------------------------------------------------------------------------- diff --git a/sty/beamerthemeRedLecture.sty b/sty/beamerthemeRedLecture.sty new file mode 100644 index 0000000..a6b9d0b --- /dev/null +++ b/sty/beamerthemeRedLecture.sty @@ -0,0 +1,215 @@ +% Copyright 2015 by Facundo Muñoz +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% + +\DeclareOptionBeamer{compress}{\beamer@compresstrue} +\ProcessOptionsBeamer + +\usepackage{tikz} +\usetikzlibrary{arrows,shapes,trees,positioning,fadings} + +\input xkeyval + +\newcommand<>{\includeoverlaygraphics}[2][]{% + \begin{tikzpicture} + \alt#3{\node[opacity=1] {\includegraphics[#1]{#2}};} + {\node[opacity=.15] {\includegraphics[#1]{#2}};} + \end{tikzpicture} +} + +% These define macros \KV@setwatermark@hoffset that take one argument +% which is processed by the last piece of codes into braces +\def\@hos{} +\def\@vos{} +\def\@alpha{} % This one does not work. Why? +\define@key{setwatermark}{hoffset}[\def\@hos{.}]{\def\@hos{\hspace*{#1}}} +\define@key{setwatermark}{voffset}[\def\@vos{.}]{\def\@vos{\vspace*{#1}}} +\define@key{setwatermark}{alpha}[\def\@alpha{0.7}]{\def\@alpha{#1}} + +\def\setwatermark{\@ifnextchar[\@setwatermark{\@setwatermark[]}} +\def\@setwatermark[#1]#2{% + \setkeys{setwatermark}{#1}% + \def\@watermark{#2} +} +% \newcommand{\setwatermark}[1]{\def\@watermark{#1}} +\setwatermark{} % Empty initialization + +\mode + +%\definecolor{pb@yellow} {rgb} {0.95,0.95,0.85} +%\definecolor{pb@gray} {rgb} {0.90,0.90,0.90} +\definecolor{pb@blue} {rgb} {0.20,0.30,0.50} +\definecolor{pb@red} {rgb} {0.78,0.03,0.08} +\definecolor{pb@lightblue} {rgb} {0.92,0.93,0.95} +\definecolor{pb@darkblueone} {rgb} {0.01,0.05,0.15} +%\definecolor{pb@darkbluetwo} {rgb} {0.25,0.45,0.5} + +%\setbeamercolor{structure} {fg=pb@red, bg=white} +%\setbeamercolor{background canvas}{parent=palette primary} + +\setbeamercolor{palette primary} {fg=pb@blue, bg=pb@lightblue} +\setbeamercolor{palette secondary} {fg=white!90!pb@red, bg=pb@red} +\setbeamercolor{palette tertiary} {fg=pb@blue, bg=pb@lightblue} +\setbeamercolor{palette quaternary} {fg=pb@blue, bg=pb@lightblue} + +\setbeamercolor{structure} {fg=pb@red, bg=} +\setbeamercolor{title} {parent=structure} +\setbeamercolor{subtitle} {parent=title} +%\setbeamercolor{frametitle} {fg=pb@lightblue!90!pb@blue, bg=pb@blue} +%\setbeamercolor{section in head/foot} {parent=palette secondary} + +\setbeamercolor{headstructure} {fg=pb@darkblueone, bg=} + + +\definecolor{links}{rgb}{0.78,0.03,0.08} + + + + + + + + +\setbeamercolor{section in head/foot}{use=headstructure,bg=headstructure.fg!30!bg} + +\useoutertheme[subsection=false]{miniframes} + +\setbeamertemplate{frametitle}[default][center] + +\AtBeginDocument{% + { + \usebeamercolor{section in head/foot} + } + + \pgfdeclareverticalshading{beamer@headfade}{\paperwidth} + {% + color(0cm)=(bg); + color(1.25cm)=(section in head/foot.bg)% + } + + \setbeamercolor{section in head/foot}{bg=} +} + +\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1.25cm}{} + +% overlays semitransparentes +\setbeamercovered{transparent} +\setbeamertemplate{navigation symbols}{}%remove navigation symbols + +% SET footline options +\setbeamertemplate{footline}[frame number] + +% % SET fooline \w coolorox options +% \setbeamercolor{footlinecolor}{bg=blue!30,fg=white} +% \setbeamercolor{footlinecolor2}{bg=blue!10,fg=white} +% \setbeamercolor{sngp1}{use=structure,bg=structure.fg!30!bg} +% \setbeamercolor{sngp2}{use=structure,bg=structure.fg!10!bg} +% \setbeamertemplate{footline} +% {% +% % \noindent\makebox[\linewidth]{\rule{1.5\paperwidth}{0.4pt}} +% \leavevmode% +% +% \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2ex,dp=1.125ex,leftskip=1.0cm,rightskip=.3cm]{sngp1}% +% \@authorname +% \end{beamercolorbox}% +% +% \begin{beamercolorbox}[wd=.5\paperwidth,ht=2ex,dp=1.125ex,leftskip=1cm,rightskip=1.0cm plus1fil]{sngp2}% +% %\usebeamerfont{author in head/foot}\insertshortauthor\hfill\insertpagenumber/\insertpresentationendpage +% \usebeamerfont{author in head/foot}\insertdate\hfill\insertpagenumber/\insertpresentationendpage +% \end{beamercolorbox}}% +% +% \vskip0pt% +% } + + +% %************************************************************************** +% % set block parameters theme +\setbeamertemplate{blocks}[rounded][shadow=true] +\setbeamercolor{block title}{fg=blue,bg=structure.fg!20!bg!50!bg} +\setbeamercolor{block body}{use=block title,bg=block title.bg} + +\usepackage{etoolbox} + +%\setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} +%\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg} + +\setbeamercolor{block title}{use=structure,fg=structure.fg,bg=blue!35!white} +\setbeamercolor{block body}{parent=normal text,use=block title,bg=blue!18!white} + +\setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg} +\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg} + +\addtobeamertemplate{proof begin}{% + \setbeamercolor{block title}{fg=black,bg=red!50!white} + \setbeamercolor{block body}{fg=red, bg=red!30!white} +}{} + +\BeforeBeginEnvironment{theorem}{ + \setbeamercolor{block title}{fg=black,bg=orange!50!white} + \setbeamercolor{block body}{fg=orange, bg=orange!30!white} +} +\AfterEndEnvironment{theorem}{ + \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} + \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg, fg=black} +} + +\BeforeBeginEnvironment{definition}{% + \setbeamercolor{block title}{fg=black,bg=pink!50!white} + \setbeamercolor{block body}{fg=pink, bg=pink!30!white} +} +\AfterEndEnvironment{definition}{ + \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} + \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg, fg=black} +} + +\BeforeBeginEnvironment{blnotitle}{% + \setbeamercolor{block title}{fg=black,bg=pink!50!white} + \setbeamercolor{block body}{fg=pink, bg=pink!30!white} +} +\AfterEndEnvironment{blnotitle}{ + \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} + \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg, fg=black} +} + +% change notepage background colors +\setbeamercolor{note page}{bg=black!5} +\setbeamercolor{note title}{bg=black!15} +\setbeamercolor{note date}{fg=white} + +% % Block with variable length +\newenvironment<>{varblock}[2][.9\textwidth]{% + \setlength{\textwidth}{#1} + \begin{actionenv}#3% + \def\insertblocktitle{#2}% + \par% + \usebeamertemplate{block begin}} + {\par% + \usebeamertemplate{block end}% + \end{actionenv}} + + +\beamertemplatedotitem + +\setbeamertemplate{background}{ + \parbox[c][\paperheight]{\paperwidth}{% + \vfill \hfill + \begin{tikzpicture} + %\node[opacity=\@alpha] % not working. why? + \node[opacity=.18] + { + \@watermark + }; + \end{tikzpicture} + \@hos + + \@vos + } +} + +\mode +