Skip to content

Commit

Permalink
lecture2
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyan-mishev committed Sep 13, 2024
1 parent 23a4b3e commit 747cfde
Show file tree
Hide file tree
Showing 25 changed files with 510 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lecture2/Packages.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
% Load Packages
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{fontawesome}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}

% Define Commands
\newcommand*{\ClipSep}{0.06cm} %To adjust footer logo
\newcommand{\E}{\mathrm{e}\,} %\def\I{e} % used to defined e for exp(x), see later what it should be
\newcommand{\ud}{\mathrm{d}}
\lstset{numbers=left, numberstyle=\tiny, stepnumber=1,firstnumber=1,breaklines=true,
numbersep=5pt,language=Python,
stringstyle=\ttfamily,
basicstyle=\footnotesize,
showstringspaces=false
}
Binary file added lecture2/atomic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions lecture2/beamercolorthemeoxonian.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
% Dictates which colours are used
\ProvidesPackage{beamercolorthemeoxonian}

\mode<presentation>
% Define Colours
\definecolor{oxfordblue}{RGB}{0,32,68}
\definecolor{glassgrey}{rgb}{220,220,220}

% Set Colours
\setbeamercolor{title}{parent=oxfordblue}
\setbeamercolor{title}{fg=oxfordblue}
\setbeamercolor{subtitle}{parent=oxfordblue}
\setbeamercolor{author}{parent=glassgrey}
\setbeamercolor{date}{parent=oxfordblue}
\setbeamercolor{institute}{parent=oxfordblue}

\setbeamercolor{section title}{parent=oxfordblue}
\setbeamercolor{subsection title}{parent=oxfordblue}
\setbeamercolor{frametitle}{parent=oxfordblue}
\setbeamercolor{background canvas}{parent=oxfordblue}
\setbeamercolor{structure}{fg=oxfordblue}

\setbeamercolor{normal text}{fg=black!97}

\setbeamercolor{footnote}{fg=black!97}
\setbeamercolor{page number in head/foot}{fg=oxfordblue}

\mode
<all>
5 changes: 5 additions & 0 deletions lecture2/beamerfontthemeoxonian.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
% Dictates which fonts/font attributes are used
\ProvidesPackage{beamerfontthemeoxonian}

\usefonttheme{serif}
\setbeamerfont{institute}{size=\small}
86 changes: 86 additions & 0 deletions lecture2/beamerinnerthemeoxonian.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
% Specify how elements are typeset inside the frame
\ProvidesPackage{beamerinnerthemeoxonian}

% --- Title Page ---
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\vskip0.25em%
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip2.25em%
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\vspace{-10pt}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\end{centering}
\vfill
}
\makeatother

% --- Footer ---
%Remove Navigation Bars
\setbeamertemplate{footline}[frame number]{}
% And Symbols
\setbeamertemplate{navigation symbols}{}
% Design
\setbeamertemplate{footline}{
\begin{tikzpicture}[remember picture,overlay]
\coordinate (West) at (0,0.5);
\coordinate (East) at (\textwidth,0.5);

\draw[oxfordblue, very thick] (West) -- (East);

% \node [inner sep=0pt,clip,rounded corners=0.1cm] (oxlogo) at (0.85\textwidth,0.5);

% {\includegraphics[width=.16\textwidth]{../Theme/Logos/OxfordLogoV3.png}};

\end{tikzpicture}}

% --- Header ---
\setbeamertemplate{frametitle}{

\begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1.375ex]{frametitle}
\hspace*{2ex}\insertframetitle \hfill {\small\insertframenumber} \hspace*{1ex}
\end{beamercolorbox}

\par

\begin{tikzpicture}[remember picture,overlay]

\coordinate (LeftEnd) at (-1, 0.5);
\coordinate (LeftEndUnder) at (-1, 0.1);
\coordinate (RightEnd) at (3,0.5);
\draw[oxfordblue, thick, fill=oxfordblue] (LeftEnd)--(RightEnd)--(LeftEndUnder) -- (LeftEnd);

\coordinate (RightEnd) at (\paperwidth, 0.1);
\coordinate (PreRightEnd) at (10, 0.1);
\draw[oxfordblue,thick] (RightEnd) -- (PreRightEnd);

\end{tikzpicture}


}

% --- Table of Content ---
% Might modify later (next version)

% --- Sidebar of Content ---
% Might add later (next version)
16 changes: 16 additions & 0 deletions lecture2/beamerouterthemeoxonian.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
% Specify the outside/border (ex. logo, navigation, sidebar)
\ProvidesPackage{beamerouterthemeoxonian}

% If you want Section Page to be automatically generated
% \AtBeginSection[]{
% \begin{frame}[plain]
% \vfill
% \centering
% \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
% \usebeamerfont{title}\insertsectionhead\par%
% \color{oxfordblue}\noindent\rule{10cm}{1pt} \\
% \LARGE{\faFileCodeO}
% \end{beamercolorbox}
% \vfill
% \end{frame}
% }
16 changes: 16 additions & 0 deletions lecture2/beamerthemeoxonian.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
% Copyright 2019 Clara Eleonore Pavillet

% Author: Clara Eleonore Pavillet
% Description: This is an unofficial Oxford University Beamer Template I made from scratch. Feel free to use it, modify it, share it.
% Version: 1.0

\ProvidesPackage{beamerthemeoxonian}
\mode<presentation>

\usefonttheme{oxonian}
\usecolortheme{oxonian}
\useinnertheme{oxonian}
\useoutertheme{oxonian}

\mode
<all>
Binary file added lecture2/compilaton-process.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/firstprivate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/fork-join.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/iaps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/master-thread.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/multi-thread.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/openmp-standards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/openmp-variants.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lecture2/openmp.pdf
Binary file not shown.
Loading

0 comments on commit 747cfde

Please sign in to comment.