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 added Practicals/Shannon/Assignment 3/Untitled.pdf
Binary file not shown.
188 changes: 188 additions & 0 deletions Practicals/Shannon/Assignment 3/Untitled.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
10pt,
ignorenonframetext,
]{beamer}
\usepackage{pgfpages}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{: }
\setbeamercolor{caption name}{fg=normal text.fg}
\beamertemplatenavigationsymbolsempty
% Prevent slide breaks in the middle of a paragraph
\widowpenalties 1 10000
\raggedbottom
\setbeamertemplate{part page}{
\centering
\begin{beamercolorbox}[sep=16pt,center]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorbox}
}
\setbeamertemplate{section page}{
\centering
\begin{beamercolorbox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
}
\setbeamertemplate{subsection page}{
\centering
\begin{beamercolorbox}[sep=8pt,center]{part title}
\usebeamerfont{subsection title}\insertsubsection\par
\end{beamercolorbox}
}
\AtBeginPart{
\frame{\partpage}
}
\AtBeginSection{
\ifbibliography
\else
\frame{\sectionpage}
\fi
}
\AtBeginSubsection{
\frame{\subsectionpage}
}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
pdftitle={Example document to recreate with beamer in },
pdfauthor={Shannon Dickson},
hidelinks,
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\newif\ifbibliography
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\title{Welcome to \LaTeX{} Workshop}
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi

\title{Example document to recreate with beamer in \LaTeX}
\author{Shannon Dickson}
\date{Fall 2019\\
Markup Languages and Reproducible Programming in Statistics}

\begin{document}
\frame{\titlepage}

\begin{frame}{Outline}
\protect\hypertarget{outline}{}
Working with equations\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}Aligning
the same equations\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}Omit
equation numbering\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}Ugly
alignment\\
\strut \\
\strut \\
\strut \\

Discussion
\end{frame}

\begin{frame}{Working with equations}
\protect\hypertarget{working-with-equations}{}
We define a set of equations as

\begin{gather}
a = b + c^2,\\
a - c^2 = b,\\
\textrm{left side} = \textrm{right side},\\
\textrm{left side} + \textrm{something} \geq \textrm{right side},
\end{gather}

for all something \textgreater{} 0.
\end{frame}

\begin{frame}{Aligning the same equations}
\protect\hypertarget{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,\\
\textrm{left side} &= \textrm{right side},\\
\textrm{left side} + \textrm{something} &\geq \textrm{right side},
\end{align}
\end{frame}

\begin{frame}{Omit equation numbering}
\protect\hypertarget{omit-equation-numbering}{}
\begin{align*}
a &= b + c^2\\
a - c^2 &= b\\
\textrm{left side} &= \textrm{right side}\\
\textrm{left side} + \textrm{something} &\geq \textrm{right side}
\end{align*}
\end{frame}

\begin{frame}{Ugly alignment}
\protect\hypertarget{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}{c^2}}, \\
\end{align}

Take that into account.
\end{frame}

\begin{frame}{Discussion}
\protect\hypertarget{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}
\tightlist
\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}
13 changes: 13 additions & 0 deletions Practicals/Shannon/Assignment 5/Assignment_5.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: knitr
LaTeX: pdfLaTeX
Loading