Compare commits

...

17 Commits

Author SHA1 Message Date
Achim D. Brucker 07af76712e Introduced \isabelletext{}. 2020-05-08 21:21:59 +01:00
Achim D. Brucker 649d9fe457 Ensure use of sffamily in footer. 2020-05-07 18:36:21 +01:00
Achim D. Brucker 1524ec524e Added support for IDL. 2020-05-06 19:56:34 +01:00
Achim D. Brucker 92b6aeeeef Load tcolorbox only if not loaded already and made font size of code boxes configurable. 2020-05-05 20:51:41 +01:00
Achim D. Brucker f613834dd2 Removed not needed libraries for tcolorbox. 2020-04-26 23:01:22 +01:00
Achim D. Brucker f07ebe1a9f Styled section titles. 2020-04-26 16:56:45 +01:00
Achim D. Brucker 005a6ffb60 Styled itemize labels. 2020-04-26 16:55:58 +01:00
Achim D. Brucker 0d04741c59 Draft implementation of abstract and changelog. 2020-04-26 16:55:29 +01:00
Achim D. Brucker ce3d520761 Added hooks for overwriting language definitions locally. 2020-04-26 09:10:33 +01:00
Achim D. Brucker 305aaa736f Improved page layout. 2020-04-26 09:07:22 +01:00
Achim D. Brucker 3fef361a20 Updated host organisation. 2020-04-26 09:06:35 +01:00
Achim D. Brucker 1c12001db9 Added lecturepart. 2020-04-06 15:43:52 +01:00
Achim D. Brucker 078ed192ef Improved logo position. 2020-04-06 15:34:53 +01:00
Achim D. Brucker 519364ccaa Added support for section pages/divider. 2020-04-06 15:34:28 +01:00
Achim D. Brucker 6da79a921c Fixed spelling mistake. 2020-04-06 15:33:48 +01:00
Achim D. Brucker 171ca4615d Updated default affiliation. 2020-04-06 15:32:01 +01:00
Achim D. Brucker 755c8dda28 Added various new languages. 2020-04-06 15:26:51 +01:00
7 changed files with 1099 additions and 143 deletions

View File

@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{lh-exercise}%
[2016/12/28 v0.0 LaTeX class for home work / exercise sheets
followign the cooperate design of LogicalHacking.com]
following the cooperate design of LogicalHacking.com]
\PassOptionsToClass{\CurrentOption}{scrartcl}
\LoadClass[abstracton,DIV11, 11pt,a4paper]{scrartcl}[]

View File

@ -12,6 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\RequirePackage{etoolbox}
\RequirePackage{graphicx}
\RequirePackage{keycommand}
\ProvidesPackage{lh-lecture-presentation}
[2017/02/08 v0.0 LaTeX style for lectures (add-on to lh-presentation)]
@ -30,7 +31,9 @@
\newboolean{lh@lecture@cloze}
\setboolean{lh@lecture@cloze}{false}
\newenvironment{lecturedesc}[7]{%
%%%% OLD Definition:
\newenvironment{lecturedesc}[7]{
\lecturedate{#3}%
\lecture{#1}{#2}%
\lecturelength{#4}%
@ -61,6 +64,98 @@
\end{bibunit}
}
\newcounter{lh@lecture@part@cnt}
\stepcounter{lh@lecture@part@cnt}
\newcommand{\lh@lecture}[2]{%
\@expandtwoargs\lecture{#1}{\expanded{#2}}%
}%
\newcommand{\centry}[2]{\item[ \usebeamercolor*{normal
text} #1] #2}
\newkeyenvironment*{lecturepart}[%
part=%
,label=%
,date=%
,lastmodify=%
,duration=%
,visual={lh-title-visual-lock-16x9}%
,bool bibliography=false%
,bool cloze=false%
,takeaways=%
,changelog=%
]{%
\lh@lecture{Part \thelh@lecture@part@cnt: \commandkey{part}}{\commandkey{label}}
\ifthenelse{\equal{\commandkey{lastmodify}}{}}{%
\lecturedate{\commandkey{date}}%
}{%
\lecturedate{\commandkey{date} (Last modification: \commandkey{lastmodify})}%
}
\lecturelength{\commandkey{duration}}%
\part{Part \thelh@lecture@part@cnt: \commandkey{part}}
\subtitle{Part \thelh@lecture@part@cnt: \commandkey{part}}%
\titlevisual{\commandkey{visual}}%
\ifthenelse{\equal{\commandkey{bibliography}}{1}}{%
\setboolean{lh@lecture@bib}{true}
}{%
\setboolean{lh@lecture@bib}{false}
}
\ifthenelse{\equal{\commandkey{cloze}}{1}}{%
\setboolean{lh@lecture@cloze}{true}
}{%
\setboolean{lh@lecture@cloze}{false}
}
\begin{frame}[plain]\maketitle\end{frame}%
\begin{frame}
\frametitle{Outline}
\tableofcontents[sectionstyle=show/show,subsectionstyle=hide/hide]
\begin{tikzpicture}[remember picture,overlay]
\node[above, xshift=-2.5cm,yshift=0.4cm] at (current page.south east){%
\scalebox{0.6}{\begin{minipage}{7.42cm}
\begin{block}{Changelog}
\begin{description}
\commandkey{changelog}
\centry{\commandkey{date}}{Initial release}
\end{description}
\end{block}
\end{minipage}}
};
\end{tikzpicture}
\end{frame}
\begin{bibunit}[alpha]
}{
\ifcommandkey{takeaways}{%
\KeyTakeAwayFrame{
\commandkey{takeaways}
}
}{%
\ThanksFrame
}
\section{Appendix}
\ifthenelse{\boolean{lh@lecture@bib}}{%
\begin{frame}[allowframebreaks]
\frametitle{Bibliography}
\footnotesize
\putbib[adb-long,brucker,fmde]
\end{frame}}{}
\ifthenelse{\boolean{lh@lecture@cloze}}{%
\begin{frame}
\frametitle{Cloze Solutions}
\printendnotes
\end{frame}}{}
\end{bibunit}
\stepcounter{lh@lecture@part@cnt}
}
\newcommand\appendtographicspath[1]{%
\gappto\Ginput@path{{#1}}%

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,7 @@
\usebeamercolor{footer}{\setlength{\fboxsep}{2.25pt}
\colorbox{bg}{%
\parbox{\@tempdima}{%\mbox{}\\[.0005cm]
\mbox{}\quad \textcolor{fg}{\tiny\bfseries \textcopyright~\the\year{} \href{https://logicalhacking.com}{LogicalHacking.com}. \hfill\hfill
\mbox{}\quad \textcolor{fg}{\sffamily\tiny\bfseries \textcopyright~\the\year{} \href{https://logicalhacking.com}{LogicalHacking.com}. \hfill\hfill
\lh@classification\hfill\hfill\hfill
Page \insertframenumber{} of \insertpresentationendframe%\inserttotalframenumber
}\quad\mbox{}%\\[.0005cm]

View File

@ -431,6 +431,22 @@
\egroup
}
\setbeamertemplate{section page}
{
\begin{centering}
\begin{beamercolorbox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\insertsection\par
\usebeamerfont{subsection title}\insertsubsection\par
\end{beamercolorbox}
\end{centering}
}
\DeclareDocumentCommand{\SectionFrame}{}{%
\frame{\sectionpage}
}
\newsavebox{\@tempsboxa}
\newsavebox{\@tempsboxb}
\newlength{\@tempdimd}

View File

@ -16,7 +16,7 @@
\PassOptionsToClass{\CurrentOption}{scrartcl}
\LoadClass[twoside=semi,DIV=calc,abstract=on, 11pt, a4paper]{scrartcl}
\LoadClass[twoside=semi,abstract=on, 11pt, a4paper]{scrartcl}
\ProcessOptions\relax
@ -32,6 +32,11 @@
\usepackage{fontawesome}
\usepackage{lastpage}
\usepackage{scrlayer-scrpage}
\RequirePackage{keycommand}
\RequirePackage{environ}
\usepackage{adjustbox}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\let\oldauthor\author
\renewcommand{\author}[2][1]{\oldauthor{#2}}
@ -52,7 +57,8 @@
\usepackage{hyperref}
\urlstyle{sf}
\addtokomafont{date}{\small}
\addtokomafont{date}{\small\color{black}}
\addtokomafont{title}{\color{lhOrange}}
\backgroundsetup{
scale=1,
@ -64,16 +70,16 @@
\path [fill=lhOrange] (-0.5\paperwidth+20,0.5\paperheight)
rectangle (0.5\paperwidth-20,0.5\paperheight-12);
\draw (-0.5\paperwidth+15,0.5\paperheight-225) node [anchor=base west]
{\lhcomLogoLight[height=1.1cm]};
\draw (.37\paperwidth,0.5\paperheight-225) node [anchor=base west]
{\partnerLogo[height=1.1cm]};
{\lhcomLogoLight[height=1cm]};
\draw (0.5\paperwidth-15,0.5\paperheight-225) node [anchor=base east]
{\partnerLogo[height=1cm]};
\draw (0,0.5\paperheight-30) node
{\textcolor{lhBlack}{{\usekomafont{title}{\huge \@title}} }};
{\usekomafont{title}{\huge \@title}} ;
\draw (0,0.5\paperheight-53) node%
{\textcolor{lhBlack}{%
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle}\fi}%
}};%
\draw (0,0.5\paperheight-75) node%
\draw (0,0.5\paperheight-100) node%
{\color{black}
\usekomafont{author}{%
\begin{tabular}[t]{c}
@ -83,12 +89,12 @@
};
% \draw (0,0.5\paperheight-70) node
% {\textcolor{lhBlack}{\Large\bfseries\lh@topic}};
\draw (0,0.5\paperheight-140) node[align=center]%
\draw (0,0.5\paperheight-160) node[align=center]%
{\color{black}%
\usekomafont{publishers}{\normalsize%
\begin{tabular}[t]{c}\@publishers
\end{tabular}}\\[2ex]
{\usekomafont{date}\@date}
{\usekomafont{date}\@date}%
};
\end{tikzpicture}}
}
@ -99,8 +105,91 @@
\ifoot{\small\textnormal{\textcopyright~\the\year~\href{https://logicalhacking.com}{LogicalHacking.com}}}
\ifoot{\footnotesize\textnormal{\textcopyright~\the\year~\href{https://logicalhacking.com}{LogicalHacking.com}}}
%\cfoot{\small\textnormal{Confidential}}
\cfoot{\small\textnormal{\lh@classification}}
\ofoot{\small\textnormal{Page \thepage\ of \pageref{LastPage}}}
\cfoot{\footnotesize\textnormal{\lh@classification}}
\ofoot{\footnotesize\textnormal{Page \thepage\ of \pageref{LastPage}}}
\pagestyle{scrheadings}
\newcommand{\lh@saveparinfos}{%
\edef\lh@indent{\the\parindent}%
\edef\lh@parskip{\the\parskip}%
}
\newcommand{\lh@useparinfo}{%
\setlength{\parindent}{\lh@indent}%
\setlength{\parskip}{\lh@parskip}%
}
\lh@saveparinfos
\newcommand{\centry}[2]{\item[#1] #2}
\addtokomafont{sectioning}{\color{lhOrange}}
\newkeycommand*\lh@abstract[%
,changelog=%
,keywords=%
][1]{%
\begin{adjustbox}{center}
\begin{minipage}{.85\paperwidth}
\begin{minipage}{.58\textwidth}%
\begin{tcolorbox}[%
colback=lhLightGray%
,colframe=lhDarkGray%
,colbacklower=lhGreen%
,equal height group=abstract%
,sharp corners%
,title=\textbf{Abstract}%
]\footnotesize\lh@useparinfo%
\noindent #1%
\ifcommandkey{keywords}{%
\mbox{}\smallskip\\\noindent\textbf{Keywords:\\}%
\noindent \commandkey{keywords}%
}{}%
\end{tcolorbox}
\end{minipage}%
\hfill%
\begin{minipage}{.40\textwidth}
\begin{tcolorbox}[
colback=lhLightGray%
,colframe=lhDarkGray%
,colbacklower=lhGreen%
,equal height group=abstract%
,sharp corners%
,title=\textbf{Changelog}%
,valign=bottom%
]\footnotesize%
\ifcommandkey{changelog}{%
\begin{description}%
\commandkey{changelog}%
\end{description}%
}{}%
\end{tcolorbox}
\end{minipage}
\end{minipage}
\end{adjustbox}\bigskip%
}
\RenewEnviron{abstract}[1][]{\lh@abstract[#1]{\BODY}}
\renewcommand{\labelitemi}{
\tikz{
\draw[fill=lhOrange,draw=none] (0, 0) rectangle(0.1, 0.1);
\draw[fill=lhOrange,draw=none] (0.1, 0.1) rectangle(0.2, 0.2);
\draw[fill=lhOrange,draw=none] (0, 0.2) rectangle(0.1, 0.3);
}
}
\renewcommand{\labelitemii}{
\tikz{
\draw[fill=lhDarkGray,draw=none] (0, 0) rectangle(0.075, 0.075);
\draw[fill=lhDarkGray,draw=none] (0.075, 0.075) rectangle(0.15, 0.15);
\draw[fill=lhDarkGray,draw=none] (0, 0.15) rectangle(0.075, 0.225);
}
}
\renewcommand{\labelitemiii}{
\tikz{
\draw[fill=lhLightGray,draw=none] (0, 0) rectangle(0.075, 0.075);
\draw[fill=lhLightGray,draw=none] (0.075, 0.075) rectangle(0.15, 0.15);
\draw[fill=lhLightGray,draw=none] (0, 0.15) rectangle(0.075, 0.225);
}
}

View File

@ -105,14 +105,14 @@
confidentiality agreement has been signed.
\or% customer
classified ``\emph{\lh@customer}'' and only available to staff
of the University of Sheffield and to business partners. Disclosure to third parties only after a
of the University of Exeter and to business partners. Disclosure to third parties only after a
confidentiality agreement has been signed.
\or% student
classified ``\emph{\lh@student}'' and only available to
\ifthenelse{\equal{\lh@classification@student@long}{}}%
{staff of the University of Sheffield and to a limited group of students
(e.g., that are registered for a specific module) of the University of Sheffield.}%
{students of the University of Sheffield that are registered to the module \lh@classification@student@long.}
{staff of the University of Exeter and to a limited group of students
(e.g., that are registered for a specific module) of the University of Exeter.}%
{students of the University of Exeter that are registered to the module \lh@classification@student@long.}
Disclosure to third parties only after a
confidentiality agreement has been signed.
\or% public CC BY NC ND
@ -181,10 +181,10 @@
\institute[The University of Sheffield]{%
\institute[University of Exeter]{%
\textbf{Software Assurance \& Security Research}\\
Department of Computer
Science, The University of Sheffield, Sheffield, UK\\
Science, University of Exeter, Exeter, UK\\
\hspace{.6cm} \href{https://logicalhacking.com/}{https://logicalhacking.com/}}