Commit 4dc2a62c authored by Marc Feger's avatar Marc Feger
Browse files

Add skeleton for presentation

parent 7a5da9d9
Pipeline #53448 passed with stage
in 2 minutes and 50 seconds
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
.*.pdf
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
*.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# comment
*.cut
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
*.lzo
*.lzs
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
# *.ist
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
# *.tikz
*-tikzDictionary
# listings
*.lol
# luatexja-ruby
*.ltjruby
# makeidx
*.idx
*.ilg
*.ind
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# tcolorbox
*.listing
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# vhistory
*.hst
*.ver
# easy-todo
*.lod
# xcolor
*.xcp
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices and outlines
*.xyc
*.xyd
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# LyX
*.lyx~
# Kile
*.backup
# gummi
.*.swp
# KBibTeX
*~[0-9]*
# TeXnicCenter
*.tps
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
# Makeindex log files
*.lpz
# xwatermark package
*.xwm
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored.
#*Notes.bib
.*.DS_Store
.DS_Store
\ No newline at end of file
image: $CI_REGISTRY/cn-tsn/general/templates/latex
lint:
image: golang:alpine
before_script:
- apk add --no-cache git
- go get github.com/errata-ai/vale
script:
- vale .
allow_failure: true
pdf:
script:
- latexmk -f
only:
- master
artifacts:
paths:
- master.pdf
expire_in: 1 week
# specify the main file
@default_files = ('master.tex');
# create a pdf version of the document with pdflatex
$pdf_mode = 1; # tex -> pdf
# specify the pdflatex options
$pdflatex = 'pdflatex -8bit -file-line-error -halt-on-error -synctex=1 %O %S';
# remove files with the following file extentions (as well as the default ones) when using "latexmk -c" or "latexmk -C"
$clean_ext .= "synctex.gz run.xml %R-blx.bib lol bbl";
$cleanup_includes_cusdep_generated = 1;
# Remove comment from next line to output a list of dependents after compilation ("shadows" latexmk output)
# $dependents_list = 1;
# convert svg files directly to pdf with inkscape
add_cus_dep('svg', 'pdf', 0, 'svg2pdf');
sub svg2pdf {
$currdir = '$PWD';
return system("inkscape --export-text-to-path --export-area-drawing --export-pdf=\"$currdir/$_[0].pdf\" \"$currdir/$_[0].svg\"");
}
# run makeindex
add_cus_dep('idx', 'ind', 0, 'makeindex');
sub makeindex{
return system("makeindex \"$_[0].idx\"");
}
push @generated_exts, 'ind';
# Ethics of Science
This repository contains the presentation for the module " Ethics of Science I" on the topic "Commercial Conflicts of Interest in Business-Related Research".
\ No newline at end of file
This repository contains the presentation for the module " Ethics of Science I" on the topic "Commercial Conflicts of Interest in Business-Related Research".
:rocket: Launch
The following code will compile the presentation.
Make sure to run this line at the top-level of the project.
$ latexmk
\ No newline at end of file
\makeatletter
\let\appendixtotalframenumber\empty
\def\mainend{-1}
\let\appendixorig\appendix
\def\appendix{
\edef\mainend{\theframenumber}
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
\appendixorig
\def\inserttotalframenumber{\appendixtotalframenumber}%
\setcounter{framenumber}{0}
}
\def\pageatend{
\edef\appendixend{\theframenumber}
\ifnum\mainend>0%
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}%
\else
\fi
}
\AtEndDocument{\pageatend}
\makeatother
\ProvidesPackage{beamercolorthemeHHUD} [2019/10/04 v2.1 beamer 'HHUD' color theme]
\mode<presentation>
\definecolor{hhuUniBlau}{RGB}{0,106,179}
\definecolor{hhuUniGrau}{RGB}{217,218,219}
\definecolor{hhuUniGruen}{RGB}{151,191,13}
\definecolor{hhuUniRot}{RGB}{190,10,38}
\definecolor{hhuUniSchwarz}{RGB}{0,0,0}
\definecolor{hhuUniWeiss}{RGB}{255,255,255}
% Textfarben
\setbeamercolor{normal text}{fg=black}
\setbeamercolor{alerted text}{fg=hhuUniRot}
\setbeamercolor{example text}{fg=hhuUniGruen}
\setbeamercolor{structure}{fg=hhuUniBlau}
\setbeamercolor{navigation symbols}{use=structure,fg=structure.fg}
\setbeamercolor{navigation symbols dimmed}{use=structure,fg=structure.fg!50!bg}
\setbeamercolor{separation line}{fg=hhuUniGrau}
\setbeamercolor{upper separation line head}{parent=separation line}
\setbeamercolor{middle separation line head}{parent=separation line}
\setbeamercolor{lower separation line head}{parent=separation line}
\setbeamercolor{upper separation line foot}{parent=separation line}
\setbeamercolor{middle separation line foot}{parent=separation line}
\setbeamercolor{lower separation line foot}{parent=separation line}
\setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!30}
\setbeamercolor{block title alerted}{use=alerted text,fg=alerted text.fg,bg=alerted text.fg!30}
\setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!30}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.fg!10}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.fg!10}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.fg!10}
\mode
<all>
\ProvidesPackage{beamerouterthemeHHUD} [2019/10/04 v2.1 beamer 'HHUD' outer theme]
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 2.
\beamer@compresstrue
\mode<presentation>
\defbeamertemplate*{headline}{HHUD theme}
{
\vskip9.3pt
\hskip0.183\paperwidth
\textcolor{hhuUniBlau}{\insertsectionnavigationhorizontal{0.772\paperwidth}{}{} }
\vskip16pt
}
\defbeamertemplate*{footline}{HHUD theme}
{
\hskip12pt
\textcolor{hhuUniWeiss}{\bf \insertframenumber{} / \inserttotalframenumber{}}\hspace*{10pt}
\vskip3.2pt
}
\defbeamertemplate*{navigation symbols}{HHUD theme}
{%
% \hbox{%
% \hbox{\insertslidenavigationsymbol}
% \hbox{\insertframenavigationsymbol}
% \hbox{\insertsubsectionnavigationsymbol}
% \hbox{\insertsectionnavigationsymbol}
% \hbox{\insertdocnavigationsymbol}
% \hbox{\insertbackfindforwardnavigationsymbol}%
% }%
}
\beamer@leftmargin=1.00cm
\beamer@rightmargin=1.00cm
\mode
<all>
\ProvidesPackage{beamerthemeHHUD} [2019/10/04 v2.1 beamer 'HHUD' theme]
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 2.
\mode<presentation>
\useoutertheme{HHUD}
%\useinnertheme[shadow=true]{rounded}
\useinnertheme{circles}
\usecolortheme{HHUD}
\mode
<all>
This diff is collapsed.
This diff is collapsed.
set terminal postscript eps enhanced 12
set output 'beispiel.eps'
set key left box
set samples 50
plot [-10:10] sin(x),atan(x),cos(atan(x))
File added
% !TeX program = pdflatex
\pdfoptionpdfminorversion=5
\documentclass[9pt]{beamer}
\mode<presentation> {
\usetheme{HHUD}
\setbeamercovered{invisible}
}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{times}
\usepackage{amsmath}
\usepackage{subfigure}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{xmpmulti}
\usepackage{multirow}
\usepackage{appendixnumberbeamer}
\usepackage[normalem]{ulem}
\usepackage{mathabx}
\usepackage[linesnumbered,algoruled,boxed,lined]{algorithm2e}
\usepackage{amssymb}
\usepackage[longnamesfirst, authoryear]{natbib}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{color}
\usepackage{tabularx}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\usepackage[absolute,overlay]{textpos}
\usepackage{subfigure}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{
width=.8\textwidth,
% compat=1.13,
height=3.0cm,
xbar stacked,
xmin=0,
enlarge y limits=0.5,
symbolic y coords={Haskell,Frege},
ytick=data,
% nodes near coords,
}
%%%%% https://github.com/cebe/pdfpc-latex-notes
% create a new file handle
\newwrite\pdfpcnotesfile
% open file on \begin{document}
\AtBeginDocument{%
\immediate\openout\pdfpcnotesfile\jobname.pdfpc\relax
\immediate\write\pdfpcnotesfile{[notes]}
}
% define a # http://tex.stackexchange.com/a/37757/10327
\begingroup
\catcode`\#=12
\gdef\hashchar{#}%
\endgroup
% define command \pnote{} that works exactly like not but
% additionally writes notes to file in pdfpc readable format
\newcommand{\pnote}[1]{%
% keep normal notes working
\note{#1}%
% write notes to file
\begingroup
\let\#\hashchar
\immediate\write\pdfpcnotesfile{\#\#\# \theframenumber}%
\immediate\write\pdfpcnotesfile{\unexpanded{#1}}%
\endgroup
}
% close file on \begin{document}
\AtEndDocument{%
\immediate\closeout\pdfpcnotesfile
}
% background image
\usebackgroundtemplate{\includegraphics[width=\paperwidth]
{fig/background_small}} % für den schiefen blauen Streifen _small entfernen
% commands for low and high decoration in frame foot
\newcommand{\footdecorationlow}{\usebackgroundtemplate{
\includegraphics[width=\paperwidth]{fig/background_small}}}
\newcommand{\footdecorationhigh}{\usebackgroundtemplate{
\includegraphics[width=\paperwidth]{fig/background_small}}} % für den schiefen blauen Streifen _small entfernen
% Own commands:
\newcommand{\TODO}{\colorbox{yellow}{\color{red}todo}}
\newcommand{\CSPM}{CSP$_M$}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\la}[1]{{\fontsize{6pt}{8pt}\selectfont\color{gray}\textit{#1}}}
\usepackage{listings} % Alternative: minted
\lstset{
captionpos=b,
language=haskell,
basicstyle=\footnotesize\ttfamily,
morekeywords={derive,pure,native,private,throw,throwIO},
moredelim=**[is][\btHL]{@@}{@@},
escapeinside={\%*}{*)},
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{gray}\hookrightarrow\space}},
breakindent=10pt,
keywordstyle=\bfseries\color{black!40!black},
commentstyle=\itshape\color{green!40!black},
identifierstyle=\color{hhuUniBlau},
alsoother=@\$,
% classstyle=\color{black},
stringstyle=\color{red},
showstringspaces=false,
}
\lstdefinestyle{prompt}{
breaklines=true,
language=bash,
morecomment=[l]{hs>},
morecomment=[l]{fr>},
commentstyle=\color{black!40!black},
basicstyle=\footnotesize\ttfamily\color{darkgray!40!darkgray},
identifierstyle=\color{darkgray!40!darkgray},
keywordstyle=\color{darkgray!40!darkgray},
% classstyle=\color{darkgray!40!darkgray},
stringstyle=\color{darkgray!40!darkgray}
}
% \AtBeginSection[] {
% \footdecorationhigh
% \begin{frame}<beamer>
% \thispagestyle{empty}
% %\frametitle{Gliederung}
% \vspace{-5mm}