Compare commits

...

15 Commits

8 changed files with 304 additions and 13 deletions

View File

@ -14,8 +14,12 @@
\mode<presentation>
\ifthenelse{\boolean{lh@inverse}}{%
\setbeamercolor{block title}{fg=white bg=lhOrange}
\setbeamercolor{headline}{fg=lhWhite, bg=lhDarkGray}
\setbeamercolor{block title}{fg=white, bg=lhOrange}
\setbeamercolor{block body}{fg=lhCyanDark, bg=white}
\setbeamercolor{item}{parent=local structure,fg=lhOrange,bg=lhDarkGray}
\setbeamercolor{subitem}{parent=item, fg=lhDarkGray}
\setbeamercolor{subsubitem}{parent=subitem,fg=lhLightGray}
}{
\setbeamercolor{headline}{fg=lhWhite, bg=lhDarkGray}
\setbeamercolor{block title}{fg=lhOrange, bg=lhBlack}

View File

@ -0,0 +1,103 @@
%% Copyright (C) 2016 Achim D. Brucker, https://www.brucker.ch
%%
%% License:
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt; either
%% version 1 of the License, or any later version.
%% OR
%% The 2-clause BSD-style license.
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{beamerinnerthemelh-poster}
[2017/04/14 v0.0 LaTeX poster class implementing the cooperate design of LogicalHacking.com]
\usepackage{transparent}
\usepackage{tikz}
\mode<presentation>
\setbeamertemplate{itemize item}{
\tikz{
\draw[fill=lhOrange,draw=none] (0, 0) rectangle(0.2, 0.2);
\draw[fill=lhOrange,draw=none] (0.2, 0.2) rectangle(0.4, 0.4);
\draw[fill=lhOrange,draw=none] (0, 0.4) rectangle(0.2, 0.6);
}
}
\ifthenelse{\boolean{lh@inverse}}{%
\setbeamertemplate{itemize subitem}{
\tikz{
\draw[fill=lhLightGray,draw=none] (0, 0) rectangle(0.150, 0.150);
\draw[fill=lhLightGray,draw=none] (0.150, 0.150) rectangle(0.3, 0.3);
\draw[fill=lhLightGray,draw=none] (0, 0.3) rectangle(0.075, 0.45);
}
}
\setbeamertemplate{itemize subsubitem}{
\tikz{
\draw[fill=lhDarkGray,draw=none] (0, 0) rectangle(0.15, 0.15);
\draw[fill=lhDarkGray,draw=none] (0.15, 0.15) rectangle(0.3, 0.3);
\draw[fill=lhDarkGray,draw=none] (0, 0.3) rectangle(0.15, 0.45);
}
}
}{%
\setbeamertemplate{itemize subitem}{
\tikz{
\draw[fill=lhDarkGray,draw=none] (0, 0) rectangle(0.15, 0.15);
\draw[fill=lhDarkGray,draw=none] (0.15, 0.15) rectangle(0.3, 0.3);
\draw[fill=lhDarkGray,draw=none] (0, 0.3) rectangle(0.15, 0.45);
}
}
\setbeamertemplate{itemize subsubitem}{
\tikz{
\draw[fill=lhLightGray,draw=none] (0, 0) rectangle(0.15, 0.15);
\draw[fill=lhLightGray,draw=none] (0.15, 0.15) rectangle(0.3, 0.3);
\draw[fill=lhLightGray,draw=none] (0, 0.3) rectangle(0.15, 0.45);
}
}
}
\usepackage{beamerboxeslhframed}
\setlhframedlinewidth{6pt}
\setlhframedmargin{12pt}
\defbeamertemplateparent{blocks}[framed]{block begin,block end,%
block alerted begin,block alerted end,%
block example begin,block example end}[1][]
{[#1]}
\defbeamertemplate{block begin}{framed}[1][]
{
\par\vskip\bigskipamount%
\begin{beamerboxesframed}[upper=block title,lower=block body,#1]%
{\raggedright\usebeamerfont*{block title}\insertblocktitle}%
\raggedright%
\usebeamerfont{block body}%
}
\defbeamertemplate{block end}{framed}[1][]
{\end{beamerboxesframed}\vskip\smallskipamount}
\defbeamertemplate{block alerted begin}{framed}[1][]
{
\par\vskip\bigskipamount%
\begin{beamerboxesframed}[upper=block title alerted,lower=block body alerted,#1]%
{\raggedright\usebeamerfont*{block title alerted}\insertblocktitle}%
\raggedright%
\usebeamerfont{block body alerted}%
}%
\defbeamertemplate{block alerted end}{framed}[1][]
{\end{beamerboxesframed}\vskip\smallskipamount}
\defbeamertemplate{block example begin}{framed}[1][]
{
\par\vskip\bigskipamount%
\begin{beamerboxesframed}[upper=block title example,lower=block body example,#1]
{\raggedright\usebeamerfont*{block title example}\insertblocktitle}%
\raggedright%
\usebeamerfont{block body alerted}%
}%
\defbeamertemplate{block example end}{framed}[1][]
{\end{beamerboxesframed}\vskip\smallskipamount}
\setbeamertemplate{blocks}[framed]
\mode<all>

View File

@ -11,6 +11,10 @@
\ProvidesPackage{beamerthemelh-poster}
[2017/04/14 v0.0 LaTeX poster class implementing the cooperate design of LogicalHacking.com]
\DeclareOptionBeamer{inverse}{\PassOptionsToPackage{inverse}{beamerthemelh-presentation}}
\ProcessOptionsBeamer\relax
\usetheme{lh-presentation}
\usefonttheme{lh-poster}
@ -41,11 +45,11 @@
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=north west,yshift=-3.7cm,xshift=4cm]
at (current page.north west) {
\ifthenelse{\boolean{lh@inverse}}{%
\lhLogoLight[height=\logoheight]
}{
% \ifthenelse{\boolean{lh@inverse}}{%
% \lhLogoLight[height=\logoheight]
% }{
\lhLogoDark[height=\logoheight]
}
% }
};
\end{tikzpicture}
\end{minipage}%
@ -82,6 +86,7 @@
\end{beamercolorbox}
}
\useinnertheme{lh-poster}
\mode<all>
\endinput

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
%\documentclass[orientation=landscape,size=a1,scale=1.2]{lh-poster}
\documentclass[inverse,orientation=landscape,size=a1,scale=1.2]{lh-poster}
\documentclass[orientation=landscape,size=a1,scale=1.2]{lh-poster}
%\documentclass[inverse,orientation=landscape,size=a1,scale=1.2]{lh-poster}
%\documentclass[orientation=portrait,size=a1,scale=1.2]{lh-poster}
%\documentclass[inverse,orientation=portrait,size=a1,scale=1.2]{lh-poster}
@ -13,13 +13,13 @@
<a.brucker@sheffield.ac.uk>}{a.brucker@sheffield.ac.uk}}
}
%%
% \setbeamertemplate{rhlogo}{\includegraphics[width=6cm]{partnerlogo}}
\begin{document}
\begin{frame}[t]
\begin{columns}[t]
\begin{column}{.31\textwidth}
\begin{block}{Test Title}
A regular box with an itemize list
\begin{itemize}
\item First item.
\item Second item.
@ -31,14 +31,14 @@
\end{block}
\end{column}
\begin{column}{.31\textwidth}
\begin{block}{Test Title}
\end{block}
\begin{alertblock}{Test Title}
\end{alertblock}
\begin{block}{Test Title}
\end{block}
\end{column}
\begin{column}[t]{.31\textwidth}
\begin{block}{Test Title}
\end{block}
\begin{example}{Test Title (Example)}
\end{example}
\begin{block}{Test Title}
\end{block}
\end{column}

View File

@ -13,7 +13,8 @@
[2017/04/14 v0.0 LaTeX poster class implementing the cooperate design of LogicalHacking.com]
\RequirePackage{ifthen}
\LoadClassWithOptions{beamer}[]
\ProcessOptions\relax
\DeclareOptionBeamer{inverse}{\PassOptionsToPackage{inverse}{beamerthemelh-poster}}
\ProcessOptionsBeamer\relax
\usetheme{lh-poster}
\usepackage{beamerposter}
\endinput

View File

@ -0,0 +1,178 @@
%% Copyright (C) 2017 Achim D. Brucker, https://www.brucker.ch
%%
%% License:
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt; either
%% version 1 of the License, or any later version.
%% OR
%% The 2-clause BSD-style license.
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{beamerboxeslhframed}
[2017/05/01 v0.0 Framed boxes for Beamer.]
\usepackage{ifthen}
\newboolean{lh@framed@rounded}
\setboolean{lh@framed@rounded}{false}
%\setboolean{lh@framed@rounded}{true}
\newlength{\lh@frame@linewidth}
\setlength{\lh@frame@linewidth}{2pt}
\newcommand{\setlhframedlinewidth}[1]{\setlength{\lh@frame@linewidth}{#1}}
\newlength{\lh@frame@margin}
\setlength{\lh@frame@margin}{3pt}
\newcommand{\setlhframedmargin}[1]{\setlength{\lh@frame@margin}{#1}}
\newlength{\lh@bmb@width}
\newcommand\beamerboxesframed[2][]{%
\global\let\beamer@firstlineitemizeunskip=\relax%
\vbox\bgroup%
\setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth}%
\setkeys{beamerboxes}{#1}%
{%
\usebeamercolor{\bmb@lower}%
\globalcolorstrue%
\colorlet{lower.bg}{bg}%
}%
{%
\usebeamercolor{\bmb@upper}%
\globalcolorstrue%
\colorlet{upper.bg}{bg}%
}%
%
% Typeset head
%
\lh@bmb@width=\bmb@width%
\advance\lh@bmb@width-\lh@frame@margin%
\advance\lh@bmb@width-\lh@frame@margin%
\vskip4bp
\setbox\bmb@box=\hbox{#2}%
\ifdim\wd\bmb@box=0pt%
\relax%
\else
\setbox\bmb@box=\hbox{%
\hspace{\lh@frame@margin}\begin{minipage}[b]{\lh@bmb@width}%
\usebeamercolor[fg]{\bmb@upper}%
{\vskip\lh@frame@margin}#2{\vspace{\lh@frame@margin}}%
\end{minipage}}%
\fi%
\ifdim\wd\bmb@box=0pt%
\setbox\bmb@box=\hbox{}%
\ht\bmb@box=0pt%
\bmb@prevheight=-4.5pt%
\else%
\wd\bmb@box=\bmb@width%
\bmb@temp=\dp\bmb@box%
\ifdim\bmb@temp<1.5pt%
\bmb@temp=1.5pt%
\fi%
\setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
\dp\bmb@box=0pt%
\bmb@prevheight=\ht\bmb@box%
\fi%
\bmb@temp=\bmb@width%
\bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{%
\begin{pgfpicture}{0bp}{+-\ht\bmb@box}{0bp}{+-\ht\bmb@box}
\pgfsetlinewidth{\lh@frame@linewidth}
\ifdim\wd\bmb@box=0pt%
\color{lower.bg}%
\else%
\color{upper.bg}%
\fi%
\pgfpathqmoveto{-4bp}{-1bp}
%% <corner>
\ifthenelse{\boolean{lh@framed@rounded}}{%
\pgfpathqcurveto{-4bp}{1.2bp}{-2.2bp}{3bp}{0bp}{3bp}
}{%
\pgfpathlineto{\pgfpoint{-4bp}{3bp}}
}
%% </corner>
\pgfpathlineto{\pgfpoint{\bmb@temp}{3bp}}
%% <corner>
\ifthenelse{\boolean{lh@framed@rounded}}{%
\pgfpathcurveto%
{\pgfpoint{\bmb@dima}{3bp}}%
{\pgfpoint{\bmb@dimb}{1.2bp}}%
{\pgfpoint{\bmb@dimb}{-1bp}}%
}{%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{3bp}}
}
%% </corner>
\bmb@dima=-\ht\bmb@box%
\advance\bmb@dima by-2pt%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}}
\pgfpathclose
\pgfsetstrokecolor{black}\pgfusepath{stroke, fill}
\end{pgfpicture}%
\copy\bmb@box%
}%
\nointerlineskip%
\ifdim\wd\bmb@box=0pt
\else
\vskip2.4pt%
\fi%
\nointerlineskip%
\setbox\bmb@colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}%
\setbox\bmb@box=\hbox\bgroup\hspace{\lh@frame@margin}\begin{minipage}[b]{\lh@bmb@width}%
\usebeamercolor[fg]{\bmb@lower}%
\colorlet{beamerstructure}{upper.bg}%
{\smallskip\vskip\lh@frame@margin}%
\colorlet{structure}{upper.bg}%
%\color{.}%
}
\def\endbeamerboxesframed{%
{\vskip\lh@frame@margin}%
\end{minipage}\egroup%
\wd\bmb@box=\bmb@width%
\bmb@temp=\dp\bmb@box%
\advance\bmb@temp by\lh@frame@margin%
\setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
\dp\bmb@box=0pt%
\bmb@temp=\wd\bmb@box%
\bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{%
\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
\pgfsetlinewidth{\lh@frame@linewidth}
\unhbox\bmb@colorbox%
\pgfpathmoveto{\pgfpoint{-4bp}{\ht\bmb@box}}
\pgfpathlineto{\pgfpoint{-4bp}{1bp}}
%% <corner>
\ifthenelse{\boolean{lh@framed@rounded}}{%
\pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp}
}{%
\pgfpathlineto{\pgfpoint{-4bp}{-3bp}}
}
%% </corner>
\pgfpathlineto{\pgfpoint{\the\bmb@temp}{-3bp}}
%% <corner>
\ifthenelse{\boolean{lh@framed@rounded}}{%
\pgfpathcurveto%
{\pgfpoint{\the\bmb@dima}{-3bp}}%
{\pgfpoint{\the\bmb@dimb}{-1.2bp}}%
{\pgfpoint{\the\bmb@dimb}{1bp}}%
}{%
\pgfpathlineto{\pgfpoint{\the\bmb@dimb}{-3bp}}
}
%% </corner>
{
\bmb@dima=\ht\bmb@box%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfsetstrokecolor{black}\pgfusepath{stroke, fill}
}
\end{pgfpicture}%
\box\bmb@box%
}%
\vskip2bp%
\egroup% of \vbox\bgroup
}