From 1d737195b5c9b622c32754a536f73386295bbe92 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Mon, 24 Oct 2022 15:11:00 +0900 Subject: [PATCH] Implemented Bibliography quick and dirty --- Bibliography.bib | 6 +++++ Content.tex | 2 -- Packages.tex | 22 ++++++++++++++++--- Sources.tex | 10 +++++++++ Template_Presentation.tex | 10 +++++++-- TitlePage.tex | 2 +- beamerinnerthemeutokyo.sty | 2 +- .../ExampleSection.tex | 5 ++++- 8 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 Bibliography.bib delete mode 100644 Content.tex create mode 100644 Sources.tex rename frames/ExampleFrame.tex => sections/ExampleSection.tex (87%) diff --git a/Bibliography.bib b/Bibliography.bib new file mode 100644 index 0000000..69b36ed --- /dev/null +++ b/Bibliography.bib @@ -0,0 +1,6 @@ +@Misc{ example, + author = {Example Author}, + title = {Example Title}, + howpublished = {\url{google.com}}, + note = {Retrieved 2022-10-24} +} diff --git a/Content.tex b/Content.tex deleted file mode 100644 index ec6ddfd..0000000 --- a/Content.tex +++ /dev/null @@ -1,2 +0,0 @@ -%all the content goes here -\input{frames/ExampleFrame.tex} diff --git a/Packages.tex b/Packages.tex index 62ea568..956ffa4 100644 --- a/Packages.tex +++ b/Packages.tex @@ -53,6 +53,12 @@ rightsub = \grq% \usepackage{colortbl} %enable line break in nomenclature \usepackage{array} +%multirows in tables +\usepackage{multirow} +%footnotes for tables +\usepackage{threeparttable} +%enable rotation of table headers +\newcommand\rothead{\bfseries\rotatebox{90}} %-------------------- %header and footer @@ -67,7 +73,9 @@ rightsub = \grq% %-------------------- %bibliography %-------------------- -\usepackage[square, numbers]{natbib} +%\usepackage[square, numbers]{natbib} +\usepackage[style=authortitle]{biblatex} +\bibliography{Bibliography.bib} %-------------------- %for calculating the number of pages @@ -79,17 +87,23 @@ rightsub = \grq% %-------------------- \usepackage{ifthen} +%-------------------- +%symbols +%-------------------- +%special symbols +\usepackage{fontawesome} + %-------------------- %equations %-------------------- %math symbols and more \usepackage{amsmath} -%special symbols -\usepackage{fontawesome} %si units \usepackage[output-decimal-marker={,}]{siunitx} %decimal comma \usepackage{icomma} +%stealth arrows in math +\usepackage{mathabx} %-------------------- %drawings @@ -103,6 +117,7 @@ rightsub = \grq% \usetikzlibrary{shapes.geometric} \usepackage{pgf-umlsd} \usepackage{environ} +%enable resizing TikZ pictures \makeatletter \newsavebox{\measure@tikzpicture} \NewEnviron{scaletikzpicturetowidth}[1]{% @@ -124,3 +139,4 @@ rightsub = \grq% } % landscape \usepackage{pdflscape} + diff --git a/Sources.tex b/Sources.tex new file mode 100644 index 0000000..e3b709e --- /dev/null +++ b/Sources.tex @@ -0,0 +1,10 @@ +\section{Sources}% +\label{sec:Sources} + +\begin{frame}[t, allowframebreaks] + \frametitle{\secname} + + \setbeamertemplate{bibliography item}{} + \AtNextBibliography{\small} + \printbibliography[heading=none] +\end{frame} diff --git a/Template_Presentation.tex b/Template_Presentation.tex index 5292897..56408e4 100644 --- a/Template_Presentation.tex +++ b/Template_Presentation.tex @@ -1,4 +1,5 @@ -\documentclass[aspectratio=169, 17pt]{beamer} +\documentclass[aspectratio=169, english, 17pt, xcolor=table]{beamer} +\renewcommand<>\cellcolor[1]{\only#2{\beameroriginal\cellcolor{#1}}} \usetheme{utokyo} \input{Packages.tex} @@ -12,14 +13,19 @@ \setbeamertemplate{frametitle continuation}{} +%TODO: REMOVE +\nocite{*} + \begin{document} \definecolor{utokyo-blue}{HTML}{187fc3} \definecolor{utokyo-yellow}{HTML}{f9be00} \input{TitlePage.tex} - \input{Content.tex} + \input{sections/ExampleSection.tex} \input{TitlePage.tex} + \input{Sources.tex} + \end{document} diff --git a/TitlePage.tex b/TitlePage.tex index 02ae55e..d21a255 100644 --- a/TitlePage.tex +++ b/TitlePage.tex @@ -1,4 +1,4 @@ -\setcounter{framenumber}{0} +\setcounter{framenumber}{-1} \title{\TITLE} \subtitle{\SUBTITLE} diff --git a/beamerinnerthemeutokyo.sty b/beamerinnerthemeutokyo.sty index fa94b3f..f841f9a 100644 --- a/beamerinnerthemeutokyo.sty +++ b/beamerinnerthemeutokyo.sty @@ -7,7 +7,7 @@ \definecolor{utokyo-blue}{HTML}{187fc3}; \definecolor{utokyo-yellow}{HTML}{f9be00}; \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); - \ifnum\insertframenumber>1\relax% + \ifnum\insertframenumber>0\relax% \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight); \node [below left] at (\the\paperwidth, \the\paperheight - 5mm) {\includesvg[height = 1.2 cm]{./images/UTokyo_Logo.svg}}; diff --git a/frames/ExampleFrame.tex b/sections/ExampleSection.tex similarity index 87% rename from frames/ExampleFrame.tex rename to sections/ExampleSection.tex index 1775efb..5421b10 100644 --- a/frames/ExampleFrame.tex +++ b/sections/ExampleSection.tex @@ -1,5 +1,8 @@ +\section{Example Section}% +\label{sec:Example Section} + \begin{frame}[t] - \frametitle{example title} + \frametitle{\secname} \framesubtitle{example subtitle} example text \begin{itemize}