Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
86 changes: 86 additions & 0 deletions Practicals/Christine/Assignment 3/beamer_exercise.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
\documentclass[11pt, aspectratio=169]{beamer}
\usetheme{default}
\usecolortheme{beaver}
\beamertemplatenavigationsymbolsempty

\usepackage{amsmath}

\title{Example document to recreate with \texttt{beamer} in \LaTeX}
\author{Christine Hedde - von Westernhagen}
\date{}


\begin{document}

\begin{frame}[plain]
\titlepage
\vspace{\fill}
\centering FALL 2019\\Markup Languages and Reproducible Programming in Statistics
\end{frame}


\begin{frame}{Outline}
\hyperlink{working}{Working with equations} \\
\hspace{5mm} \hyperlink{aligning}{Aligning the same equations} \\
\hspace{5mm} \hyperlink{omit}{Omit equation numbering} \\
\hspace{5mm} \hyperlink{ugly}{Ugly alignment} \\
\vspace{10mm}
\hyperlink{discussion}{Discussion}
\end{frame}


\begin{frame}[label=working]{Working with equations}
We define a set of equations as
\begin{equation} a = b + c^2, \end{equation}
\begin{equation} a - c^2 = b, \end{equation}
\begin{equation} \text{left side = right side,} \end{equation}
\begin{equation} \text{left side + something} \geq \text{right side,} \end{equation}
for all something $> 0$.
\end{frame}


\begin{frame}[label=aligning]{Aligning the same equations}
Aligning the equations by the equal sign gives a much better view into the placements of the separate equation components.
\begin{align}
a &= b + c^2, \\
a - c^2 &= b, \\
\text{left side} &= \text{right side,} \\
\text{left side + something} &\geq \text{right side,}
\end{align}
\end{frame}


\begin{frame}[label=omit]{Omit equation numbering}
Alternatively, the equation numbering can be omitted.
\begin{align*}
a &= b + c^2 \\
a - c^2 &= b \\
\text{left side} &= \text{right side} \\
\text{left side + something} &\geq \text{right side}
\end{align*}
\end{frame}


\begin{frame}[label=ugly]{Ugly alignment}
Some components do not look well, when aligned. Especially equations with different heights and spacing. For example,
\begin{align}
E &= mc^2, \\
m &= \frac{E}{c^2}, \\
c &= \sqrt{\frac{E}{m}}.
\end{align}
Take that into account.
\end{frame}


\begin{frame}[label=discussion]{Discussion}
This is where you’d normally give your audience a recap of your talk, where you could discuss e.g. the following
\begin{itemize}
\item Your main findings
\item The consequences of your main findings
\item Things to do
\item Any other business not currently investigated, but related to your talk
\end{itemize}
\end{frame}


\end{document}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions Practicals/Christine/Assignment 5/img/insert-logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<style>
.logo {
background-image: url('img/uu_logo.png');
background-size: contain;
background-repeat: no-repeat;
position: absolute;
top: 0.5em;
right: 0.5em;
width: 60px;
height: 60px;
z-index: 0;
}
</style>

<script>
document
.querySelectorAll(
'.remark-slide-content' +
// ':not(.title-slide)' +
// add additional classes to exclude here, e.g.
':not(.inverse)' +
':not(.hide-logo)'
)
.forEach(el => {
el.innerHTML += '<div class="logo"></div>';
});
</script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
var i, h, a;
for (i = 0; i < hs.length; i++) {
h = hs[i];
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
a = h.attributes;
while (a.length > 0) h.removeAttribute(a[0].name);
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700);

body { font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif; }
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code, .remark-inline-code { font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace; }
72 changes: 72 additions & 0 deletions Practicals/Christine/Assignment 5/libs/remark-css/default.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
a, a > code {
color: rgb(249, 38, 114);
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 90%;
}
.remark-code-line-highlighted { background-color: #ffff88; }

.inverse {
background-color: #272822;
color: #d6d6d6;
text-shadow: 0 0 20px #333;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #f3f3f3;
}
/* Two-column layout */
.left-column {
color: #777;
width: 20%;
height: 92%;
float: left;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #000;
}
.right-column {
width: 75%;
float: right;
padding-top: 1em;
}
.pull-left {
float: left;
width: 47%;
}
.pull-right {
float: right;
width: 47%;
}
.pull-right + * {
clear: both;
}
img, video, iframe {
max-width: 100%;
}
blockquote {
border-left: solid 5px lightgray;
padding-left: 1em;
}
.remark-slide table {
margin: auto;
border-top: 1px solid #666;
border-bottom: 1px solid #666;
}
.remark-slide table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }

@page { margin: 0; }
@media print {
.remark-slide-scaler {
width: 100% !important;
height: 100% !important;
transform: scale(1) !important;
top: 0 !important;
left: 0 !important;
}
}
18 changes: 18 additions & 0 deletions Practicals/Christine/Assignment 5/libs/remark-latest.min.js

Large diffs are not rendered by default.

Loading