Python Kurs initial commit
This commit is contained in:
@@ -0,0 +1,190 @@
|
|||||||
|
%Schriftfarbe, Schrifteinstellungen, Schriften
|
||||||
|
|
||||||
|
% Copyright 2009 by Patrick Kilian <mail@petschge.de>
|
||||||
|
% based on the myulm theme by
|
||||||
|
% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>.
|
||||||
|
%
|
||||||
|
% This program can be redistributed and/or modified under the terms
|
||||||
|
% of the GNU Public License, version 2.
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
%CI colors
|
||||||
|
\definecolor{beamer@hdgrey}{rgb}{.2118,.2118,.2118}
|
||||||
|
\definecolor{beamer@hddarkred}{rgb}{0.3490,0.0510,0.0314}
|
||||||
|
\definecolor{beamer@hdlightred}{rgb}{0.7765,0.0941,0.1490}
|
||||||
|
\definecolor{beamer@hdsand}{rgb}{0.8,0.7901,0.7694}
|
||||||
|
\definecolor{beamer@hdblue}{rgb}{0.1412,0.1843,0.2510}
|
||||||
|
%
|
||||||
|
%
|
||||||
|
% %matching complementary
|
||||||
|
% \definecolor{beamer@uniwueorange}{rgb}{.93359375,.50390625,.04296875}
|
||||||
|
% \definecolor{beamer@uniwuered}{rgb}{.78515625,.14453125,.16796875}
|
||||||
|
% \definecolor{beamer@uniwuedarkgreen}{rgb}{.0234375,.4765625,.03125}
|
||||||
|
% \definecolor{beamer@uniwuelightgreen}{rgb}{.546875,.7734375,.24609375}
|
||||||
|
% \definecolor{beamer@uniwuegreen}{rgb}{.546875,.7734375,.24609375}
|
||||||
|
|
||||||
|
|
||||||
|
%Schrift, Hintergrund (bg = background)
|
||||||
|
\setbeamercolor{normal text}{fg=black,bg=white}
|
||||||
|
\setbeamercolor{alerted text}{fg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{example text}{fg=beamer@hdlightred}
|
||||||
|
|
||||||
|
\setbeamercolor{structure}{fg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{structure1}{fg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{structure2}{fg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{structure3}{fg=black}
|
||||||
|
|
||||||
|
\setbeamercolor{background canvas}{parent=normal text}
|
||||||
|
\setbeamercolor{background}{parent=background canvas}
|
||||||
|
|
||||||
|
\setbeamercolor{palette primary}{use=structure,fg=structure.fg}
|
||||||
|
\setbeamercolor{palette secondary}{use=structure,fg=structure.fg}
|
||||||
|
\setbeamercolor{palette tertiary}{use=structure,fg=structure.fg}
|
||||||
|
\setbeamercolor{palette date}{use=structure,fg=structure.fg,bg=beamer@hdsand}
|
||||||
|
\setbeamercolor{palette author}{fg=white,bg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{palette quaternary}{fg=black}
|
||||||
|
\setbeamercolor{palette fakultaet}{use=structure2,fg=structure2.fg}
|
||||||
|
|
||||||
|
\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
|
||||||
|
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
|
||||||
|
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
|
||||||
|
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}
|
||||||
|
|
||||||
|
\setbeamercolor{math text}{}
|
||||||
|
\setbeamercolor{math text inlined}{parent=math text}
|
||||||
|
\setbeamercolor{math text displayed}{parent=math text}
|
||||||
|
|
||||||
|
\setbeamercolor{normal text in math text}{}
|
||||||
|
|
||||||
|
\setbeamercolor{local structure}{parent=structure2}
|
||||||
|
|
||||||
|
\setbeamercolor{titlelike}{parent=structure3}
|
||||||
|
|
||||||
|
\setbeamercolor{title}{parent=titlelike}
|
||||||
|
\setbeamercolor{title in head/foot}{parent=structure1}
|
||||||
|
\setbeamercolor{title in sidebar}{parent=palette sidebar quaternary}
|
||||||
|
|
||||||
|
\setbeamercolor{subtitle}{parent=title}
|
||||||
|
|
||||||
|
\setbeamercolor{author}{parent=structure3}
|
||||||
|
\setbeamercolor{author in head/foot}{parent=palette author}
|
||||||
|
\setbeamercolor{author in sidebar}{use=palette sidebar tertiary,fg=palette sidebar tertiary.fg}
|
||||||
|
|
||||||
|
\setbeamercolor{institute}{parent=structure3}
|
||||||
|
\setbeamercolor{institute in head/foot}{parent=palette fakultaet}
|
||||||
|
\setbeamercolor{institute in sidebar}{use=palette fakultaet,fg=palette fakultaet.fg}
|
||||||
|
|
||||||
|
\setbeamercolor{date}{}
|
||||||
|
\setbeamercolor{date in head/foot}{parent=palette date}
|
||||||
|
\setbeamercolor{date in sidebar}{use=palette sidebar tertiary,fg=palette sidebar tertiary.fg}
|
||||||
|
|
||||||
|
\setbeamercolor{titlegraphic}{}
|
||||||
|
|
||||||
|
\setbeamercolor{part name}{}
|
||||||
|
\setbeamercolor{part title}{parent=titlelike}
|
||||||
|
|
||||||
|
\setbeamercolor{section in toc}{parent=structure3}
|
||||||
|
\setbeamercolor{section in toc shaded}{parent=structure3.fg!50!white}
|
||||||
|
\setbeamercolor{section in head/foot}{parent=palette tertiary}
|
||||||
|
\setbeamercolor{section in sidebar}{parent=palette sidebar secondary}
|
||||||
|
\setbeamercolor{section in sidebar shaded}{use=section in sidebar,fg=section in sidebar.fg!40!bg}
|
||||||
|
\setbeamercolor{section number projected}{parent=item projected}
|
||||||
|
|
||||||
|
\setbeamercolor{subsection in toc}{parent=structure3}
|
||||||
|
\setbeamercolor{subsection in toc shaded}{parent=structure3.fg!50!white}
|
||||||
|
\setbeamercolor{subsection in head/foot}{parent=palette secondary}
|
||||||
|
\setbeamercolor{subsection in sidebar}{parent=palette sidebar primary}
|
||||||
|
\setbeamercolor{subsection in sidebar shaded}{use=subsection in sidebar,fg=subsection in sidebar.fg!40!bg}
|
||||||
|
\setbeamercolor{subsection number projected}{parent={subitem projected}}
|
||||||
|
|
||||||
|
\setbeamercolor{subsubsection in toc}{parent=subsection in toc}
|
||||||
|
\setbeamercolor{subsubsection in toc shaded}{parent=subsubsection in toc}
|
||||||
|
\setbeamercolor{subsubsection in head/foot}{parent=subsection in head/foot}
|
||||||
|
\setbeamercolor{subsubsection in sidebar}{parent=subsection in sidebar}
|
||||||
|
\setbeamercolor{subsubsection in sidebar shaded}{parent=subsection in sidebar shaded}
|
||||||
|
\setbeamercolor{subsubsection number projected}{parent=subsubitem projected}
|
||||||
|
|
||||||
|
\setbeamercolor{headline}{parent=structure3}
|
||||||
|
\setbeamercolor{footline}{}
|
||||||
|
|
||||||
|
\setbeamercolor{sidebar}{}
|
||||||
|
\setbeamercolor{sidebar left}{parent=sidebar}
|
||||||
|
\setbeamercolor{sidebar right}{parent=sidebar}
|
||||||
|
|
||||||
|
\setbeamercolor{logo}{parent=palette secondary}
|
||||||
|
|
||||||
|
\setbeamercolor{frametitle}{parent=structure3}
|
||||||
|
\setbeamercolor{framesubtitle}{parent=frametitle}
|
||||||
|
|
||||||
|
\setbeamercolor{frametitle right}{parent=frametitle}
|
||||||
|
|
||||||
|
\setbeamercolor{caption}{}
|
||||||
|
\setbeamercolor{caption name}{parent=structure}
|
||||||
|
|
||||||
|
\setbeamercolor{button}{use=local structure,bg=local structure.fg!50!bg,fg=white}
|
||||||
|
\setbeamercolor{button border}{use=button,fg=button.bg}
|
||||||
|
\setbeamercolor{navigation symbols}{use=structure,fg=structure.fg!40!bg}
|
||||||
|
\setbeamercolor{navigation symbols dimmed}{use=structure,fg=structure.fg!20!bg}
|
||||||
|
\setbeamercolor{mini frame}{parent=section in head/foot}
|
||||||
|
|
||||||
|
\setbeamercolor{block body}{bg=beamer@hdsand}
|
||||||
|
\setbeamercolor{block body alerted}{fg=white,bg=beamer@hdgrey}
|
||||||
|
\setbeamercolor{block body example}{}
|
||||||
|
\setbeamercolor{block title}{parent=structure,fg=white,bg=beamer@hdlightred}
|
||||||
|
\setbeamercolor{block title alerted}{parent=alerted text,fg=beamer@hdsand,bg=beamer@hddarkred}
|
||||||
|
\setbeamercolor{block title example}{parent=example text}
|
||||||
|
|
||||||
|
\setbeamercolor{item}{parent=local structure}
|
||||||
|
\setbeamercolor{subitem}{parent=item}
|
||||||
|
\setbeamercolor{subsubitem}{parent=subitem}
|
||||||
|
|
||||||
|
\setbeamercolor{item projected}{parent=item,use=item,fg=white,bg=item.fg}
|
||||||
|
\setbeamercolor{subitem projected}{parent=item projected}
|
||||||
|
\setbeamercolor{subsubitem projected}{parent=subitem projected}
|
||||||
|
|
||||||
|
\setbeamercolor{enumerate item}{parent=item}
|
||||||
|
\setbeamercolor{enumerate subitem}{parent=subitem}
|
||||||
|
\setbeamercolor{enumerate subsubitem}{parent=subsubitem}
|
||||||
|
|
||||||
|
\setbeamercolor{itemize item}{parent=item}
|
||||||
|
\setbeamercolor{itemize subitem}{parent=subitem}
|
||||||
|
\setbeamercolor{itemize subsubitem}{parent=subsubitem}
|
||||||
|
|
||||||
|
\setbeamercolor{itemize/enumerate body}{fg=black}
|
||||||
|
\setbeamercolor{itemize/enumerate subbody}{}
|
||||||
|
\setbeamercolor{itemize/enumerate subsubbody}{}
|
||||||
|
|
||||||
|
\setbeamercolor{description item}{parent=item}
|
||||||
|
|
||||||
|
\setbeamercolor{bibliography item}{parent=item}
|
||||||
|
|
||||||
|
\setbeamercolor{bibliography entry author}{use=structure,fg=structure.fg}
|
||||||
|
\setbeamercolor{bibliography entry title}{use=normal text,fg=normal text.fg}
|
||||||
|
\setbeamercolor{bibliography entry location}{use=structure,fg=structure.fg!65!bg}
|
||||||
|
\setbeamercolor{bibliography entry note}{use=structure,fg=structure.fg!65!bg}
|
||||||
|
|
||||||
|
\setbeamercolor{separation line}{}
|
||||||
|
|
||||||
|
\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{abstract}{}
|
||||||
|
\setbeamercolor{abstract title}{parent=structure}
|
||||||
|
|
||||||
|
\setbeamercolor{verse}{}
|
||||||
|
|
||||||
|
\setbeamercolor{quotation}{}
|
||||||
|
\setbeamercolor{quote}{parent=quotation}
|
||||||
|
|
||||||
|
\setbeamercolor{page number in head/foot}{fg=fg!50!bg}
|
||||||
|
|
||||||
|
\setbeamercolor{qed symbol}{parent=structure}
|
||||||
|
|
||||||
|
\mode
|
||||||
|
<all>
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
%Schriften
|
||||||
|
|
||||||
|
% Copyright 2009 by Patrick Kilian <mail@petschge.de>
|
||||||
|
% based on the myulm theme by
|
||||||
|
% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
|
||||||
|
%
|
||||||
|
% This program can be redistributed and/or modified under the terms
|
||||||
|
% of the GNU Public License, version 2.
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\usepackage[scaled]{uarial}
|
||||||
|
\usepackage{helvet}
|
||||||
|
\renewcommand{\familydefault}{\sfdefault}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamerfont{normal text}{size=\normalsize} % ignored currently
|
||||||
|
\setbeamerfont{alerted text}{}
|
||||||
|
\setbeamerfont{example text}{}
|
||||||
|
|
||||||
|
\setbeamerfont{structure}{size=\normalsize}
|
||||||
|
\setbeamerfont{tiny structure}{size=\tiny}
|
||||||
|
|
||||||
|
\setbeamerfont{title}{size=\Large, series=\bfseries, parent=structure}
|
||||||
|
\setbeamerfont{title in head/foot}{}
|
||||||
|
\setbeamerfont{title in sidebar}{size=\tiny}
|
||||||
|
|
||||||
|
\setbeamerfont{subtitle}{size=\large, series=\bfseries,parent=title}
|
||||||
|
|
||||||
|
\setbeamerfont{author}{size=\footnotesize}
|
||||||
|
\setbeamerfont{author in head/foot}{}
|
||||||
|
\setbeamerfont{author in sidebar}{size=\tiny}
|
||||||
|
|
||||||
|
\setbeamerfont{institute}{size=\scriptsize}
|
||||||
|
\setbeamerfont{institute in head/foot}{}
|
||||||
|
\setbeamerfont{institute in sidebar}{}
|
||||||
|
|
||||||
|
\setbeamerfont{date}{}
|
||||||
|
\setbeamerfont{date in head/foot}{}
|
||||||
|
\setbeamerfont{date in sidebar}{}
|
||||||
|
|
||||||
|
\setbeamerfont{part name}{size=\Large}
|
||||||
|
\setbeamerfont{part title}{parent=title}
|
||||||
|
|
||||||
|
\setbeamerfont{section in toc}{parent=structure,size=\normalsize}
|
||||||
|
\setbeamerfont{section in toc shaded}{parent=section in toc}
|
||||||
|
\setbeamerfont{section in head/foot}{parent=structure3}
|
||||||
|
\setbeamerfont{section in sidebar}{size=\tiny}
|
||||||
|
\setbeamerfont{section number projected}{size=\small,parent={section in toc,projected text}}
|
||||||
|
|
||||||
|
\setbeamerfont{subsection in toc}{size=\normalsize}
|
||||||
|
\setbeamerfont{subsection in toc shaded}{parent=subsection in toc}
|
||||||
|
\setbeamerfont{subsection in head/foot}{}
|
||||||
|
\setbeamerfont{subsection in sidebar}{}
|
||||||
|
|
||||||
|
\setbeamerfont{subsubsection in toc}{size=\small}
|
||||||
|
\setbeamerfont{subsubsection in toc shaded}{parent=subsubsection in toc}
|
||||||
|
\setbeamerfont{subsubsection in head/foot}{}
|
||||||
|
\setbeamerfont{subsubsection in sidebar}{}
|
||||||
|
|
||||||
|
\setbeamerfont{headline}{parent={tiny structure}}
|
||||||
|
\setbeamerfont{footline}{parent={tiny structure}}
|
||||||
|
|
||||||
|
\setbeamerfont{sidebar}{size=\Tiny,parent={tiny structure}}
|
||||||
|
\setbeamerfont{sidebar left}{parent=sidebar}
|
||||||
|
\setbeamerfont{sidebar right}{parent=sidebar}
|
||||||
|
|
||||||
|
\setbeamerfont{frametitle}{parent=structure3,size=\Large}
|
||||||
|
\setbeamerfont{framesubtitle}{parent=frametitle,size=\footnotesize}
|
||||||
|
|
||||||
|
\setbeamerfont{caption}{size=\small}
|
||||||
|
\setbeamerfont{caption name}{parent={structure,caption}}
|
||||||
|
|
||||||
|
\setbeamerfont{button}{size=\tiny}
|
||||||
|
|
||||||
|
\setbeamerfont{block body}{}
|
||||||
|
\setbeamerfont{block body alerted}{}
|
||||||
|
\setbeamerfont{block body example}{}
|
||||||
|
\setbeamerfont{block title}{parent={structure,block body}}
|
||||||
|
\setbeamerfont{block title alerted}{parent={block title,alerted text}}
|
||||||
|
\setbeamerfont{block title example}{parent={block title,example text}}
|
||||||
|
|
||||||
|
\setbeamerfont{item}{parent=structure}
|
||||||
|
\setbeamerfont{subitem}{parent=item}
|
||||||
|
\setbeamerfont{subsubitem}{parent=subitem}
|
||||||
|
|
||||||
|
\setbeamerfont{item projected}{size=\tiny,parent={item,projected text}}
|
||||||
|
\setbeamerfont{subitem projected}{parent=item projected}
|
||||||
|
\setbeamerfont{subsubitem projected}{parent=subitem projected}
|
||||||
|
|
||||||
|
\setbeamerfont{itemize item}{parent=item}
|
||||||
|
\setbeamerfont{itemize subitem}{parent=subitem}
|
||||||
|
\setbeamerfont{itemize subsubitem}{parent=subsubitem}
|
||||||
|
|
||||||
|
\setbeamerfont{enumerate item}{parent=item}
|
||||||
|
\setbeamerfont{enumerate subitem}{parent=subitem}
|
||||||
|
\setbeamerfont{enumerate subsubitem}{parent=subsubitem}
|
||||||
|
|
||||||
|
\setbeamerfont{itemize/enumerate body}{size=\normalsize}
|
||||||
|
\setbeamerfont{itemize/enumerate subbody}{size=\small}
|
||||||
|
\setbeamerfont{itemize/enumerate subsubbody}{size=\footnotesize}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamerfont{description item}{parent=item}
|
||||||
|
|
||||||
|
\setbeamerfont{projected text}{parent={tiny structure}}
|
||||||
|
|
||||||
|
\setbeamerfont{abstract}{size=\small}
|
||||||
|
\setbeamerfont{abstract title}{parent={abstract,structure},size=\normalsize}
|
||||||
|
|
||||||
|
\setbeamerfont{verse}{family=\rmfamily,shape=\itshape}
|
||||||
|
|
||||||
|
\setbeamerfont{quotation}{shape=\itshape}
|
||||||
|
\setbeamerfont{quote}{parent=quotation}
|
||||||
|
|
||||||
|
\setbeamerfont{note page}{size=\small}
|
||||||
|
|
||||||
|
\mode
|
||||||
|
<all>
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
%Titelseite der Präsentation
|
||||||
|
|
||||||
|
% Copyright 2009 by Patrick Kilian <mail@petschge.de>
|
||||||
|
% based on the myulm theme
|
||||||
|
% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
|
||||||
|
%
|
||||||
|
% This program can be redistributed and/or modified under the terms
|
||||||
|
% of the GNU Public License, version 2.
|
||||||
|
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
|
\ProvidesPackage{beamerinnerthemenhd}
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
%Titelseite der Präsentation:
|
||||||
|
\defbeamertemplate*{title page}{hd}[1][]
|
||||||
|
{
|
||||||
|
\begin{picture}(0,0)%
|
||||||
|
\put(300,25){\includegraphics[width=0.3\paperwidth]{zah_unihd_logo.pdf}}
|
||||||
|
\end{picture}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\vspace{-10mm}
|
||||||
|
% \vbox{}
|
||||||
|
% \vskip4.35em\par
|
||||||
|
% \begin{centering}
|
||||||
|
\begin{beamercolorbox}[sep=8pt,right#1]{author}
|
||||||
|
\flushleft\usebeamerfont{title}\inserttitle\par%
|
||||||
|
\ifx\insertsubtitle\@empty%
|
||||||
|
\else%
|
||||||
|
\vskip0.25em%
|
||||||
|
{\flushleft\usebeamerfont{subtitle}\insertsubtitle\par}%
|
||||||
|
\fi%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
% \vskip2.4em\par
|
||||||
|
% \vfill
|
||||||
|
% \end{centering}
|
||||||
|
\vspace{-6mm}
|
||||||
|
\begin{beamercolorbox}[sep=4pt,right,#1]{author}
|
||||||
|
\flushleft\usebeamerfont{author}\insertauthor \\
|
||||||
|
%\end{beamercolorbox}
|
||||||
|
%\begin{beamercolorbox}[sep=4pt,left,#1]{institute}
|
||||||
|
\flushleft\usebeamerfont{institute}\insertinstitute \\
|
||||||
|
\vskip0.35em
|
||||||
|
%\end{beamercolorbox}
|
||||||
|
%\begin{beamercolorbox}[sep=4pt,left,#1]{author}
|
||||||
|
\usebeamerfont{author}\insertdate
|
||||||
|
\end{beamercolorbox}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{blocks}[rounded][shadow=false]
|
||||||
|
\setbeamertemplate{items}[ball]
|
||||||
|
\setbeamertemplate{sections/subsections in toc}[ball]
|
||||||
|
\setbeamertemplate{title page}[hd][colsep=-4bp,rounded=true,shadow=false]
|
||||||
|
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,shadow=true]
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
%Folien der Präsentation
|
||||||
|
|
||||||
|
% Copyright 2009 by Patrick Kilian <mail@petschge.de>
|
||||||
|
% based on the myulm theme by
|
||||||
|
% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
|
||||||
|
%
|
||||||
|
% This program can be redistributed and/or modified under the terms
|
||||||
|
% of the GNU Public License, version 2.
|
||||||
|
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
|
\ProvidesPackage{beamerouterthemehd}
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\pgfdeclareimage[interpolate=true, width=\the\paperwidth]{topImage}{logo_nwu.png}
|
||||||
|
|
||||||
|
\setbeamertemplate{background}{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamercolor{frametitle}{parent=structure3}
|
||||||
|
|
||||||
|
% \AtBeginDocument{
|
||||||
|
% \usebeamerfont*{headline}
|
||||||
|
%
|
||||||
|
% \usebeamercolor{normal text}
|
||||||
|
% \usebeamercolor{title in head/foot}
|
||||||
|
% \usebeamercolor{subsection in head/foot}
|
||||||
|
% \usebeamercolor{section in head/foot}
|
||||||
|
% \usebeamercolor{frametitle}
|
||||||
|
% }
|
||||||
|
|
||||||
|
|
||||||
|
\defbeamertemplate*{headline}{uniwue}
|
||||||
|
{ \vspace{2mm}
|
||||||
|
\begin{tabular*}{\paperwidth}[t]{p{\paperwidth}c}
|
||||||
|
\hspace{0.65\paperwidth}
|
||||||
|
\includegraphics[width=0.3\paperwidth]{zah_unihd_logo.pdf}
|
||||||
|
\end{tabular*}
|
||||||
|
}
|
||||||
|
|
||||||
|
\defbeamertemplate*{frametitle}{hd}
|
||||||
|
{
|
||||||
|
\vskip-1.6em
|
||||||
|
\hskip 4.0em
|
||||||
|
\usebeamerfont{frametitle} \hspace{-22mm}\insertframetitle
|
||||||
|
}
|
||||||
|
|
||||||
|
\defbeamertemplate*{footline}{hd} {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\begin{tabular*}{\paperwidth}{l@{\extracolsep\fill}r}
|
||||||
|
& \usebeamertemplate*{navigation symbols}
|
||||||
|
\end{tabular*}
|
||||||
|
\leavevmode%
|
||||||
|
\hbox{%
|
||||||
|
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1.0ex,center]{author in head/foot}%
|
||||||
|
\usebeamerfont{author in foot}\insertshortauthor ~~(\insertshortinstitute)
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1.0ex,center]{date in head/foot}%
|
||||||
|
\usebeamerfont{title in foot}\insertshorttitle
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\begin{beamercolorbox}[wd=.33333\paperwidth,ht=2.25ex,dp=1.0ex,right]{author in head/foot}%
|
||||||
|
\usebeamerfont{date in foot}\insertshortdate \hspace*{2em}
|
||||||
|
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
|
||||||
|
|
||||||
|
\end{beamercolorbox}}%
|
||||||
|
\vskip0pt%
|
||||||
|
% \begin{tabular*}{\paperwidth}{l@{\extracolsep\fill}cr}
|
||||||
|
% \color{beamer@uniwueblue} {
|
||||||
|
% \usebeamerfont{author in foot}\insertshortauthor \hskip 2pt \usebeamerfont{institute in foot}(\insertshortinstitute)
|
||||||
|
% } &
|
||||||
|
% \color{beamer@uniwueblue} {
|
||||||
|
% \usebeamerfont{title in foot}\insertshorttitle
|
||||||
|
% } &
|
||||||
|
% \color{beamer@uniwueblue} {
|
||||||
|
% \usebeamerfont{date in foot}\insertdate
|
||||||
|
% }
|
||||||
|
% \end{tabular*}
|
||||||
|
}
|
||||||
|
|
||||||
|
\defbeamertemplate*{sidebar right}{hd}
|
||||||
|
{ }
|
||||||
|
|
||||||
|
\setbeamersize{text margin left=1.5em,text margin right=1.5em}
|
||||||
|
|
||||||
|
\mode
|
||||||
|
<all>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
%Hier werden alle Style-Dateien zusammen gef�hrt
|
||||||
|
|
||||||
|
% Copyright 2009 by Patrick Kilian <mail@petschge.de>
|
||||||
|
% based on the myulm theme by
|
||||||
|
% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
|
||||||
|
%
|
||||||
|
% This program can be redistributed and/or modified under the terms
|
||||||
|
% of the GNU Public License, version 2.
|
||||||
|
|
||||||
|
%\DeclareOptionBeamer{backgroundimagefile}{
|
||||||
|
% \PassOptionsToPackage{backgroundimagefile=#1}{beamerouterthemeuniwue}
|
||||||
|
%}
|
||||||
|
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\usefonttheme{hd}
|
||||||
|
\usecolortheme{hd}
|
||||||
|
\useinnertheme{hd}
|
||||||
|
\useoutertheme{hd}
|
||||||
|
|
||||||
|
\setbeamerfont{block title}{size={}}
|
||||||
|
|
||||||
|
\mode
|
||||||
|
<all>
|
||||||
@@ -0,0 +1,359 @@
|
|||||||
|
\documentclass[10pt,unknownkeysallowed,aspectratio=169]{beamer}
|
||||||
|
\fontfamily{cmss}
|
||||||
|
|
||||||
|
\mode<presentation> {
|
||||||
|
\usetheme{hd}
|
||||||
|
%\seFtbeamercovered{transparent}
|
||||||
|
}
|
||||||
|
|
||||||
|
\def\newblock{\hskip .11em plus .33em minus .07em}
|
||||||
|
|
||||||
|
\usepackage[english]{babel}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage{times}
|
||||||
|
\usepackage{calc}
|
||||||
|
\usepackage{natbib}
|
||||||
|
\usepackage[absolute,overlay]{textpos}
|
||||||
|
|
||||||
|
\usepackage{booktabs}%für horizontale Linien
|
||||||
|
%Figures
|
||||||
|
\usepackage{caption}
|
||||||
|
\usepackage{subcaption}%subfigures
|
||||||
|
\usepackage{sidecap}%caption an der seite
|
||||||
|
%Mathe/Physik
|
||||||
|
\usepackage{amsmath}
|
||||||
|
\usepackage{mathtools}
|
||||||
|
\usepackage{esint}%volumen und oberflächenintegrale
|
||||||
|
%\usepackage[thinc]{esdiff}%derivative-macros
|
||||||
|
\usepackage{physics}
|
||||||
|
\usepackage{siunitx}
|
||||||
|
%Sonstiges
|
||||||
|
\usepackage[framemethod=tikz]{mdframed}%merkboxen
|
||||||
|
\mdfdefinestyle{theoremstyle}{
|
||||||
|
linecolor=gray,linewidth=2pt,
|
||||||
|
frametitlerule=true,
|
||||||
|
frametitlebackgroundcolor=gray,
|
||||||
|
}
|
||||||
|
\mdtheorem[style=theoremstyle]{nutshell}{"In a Nutshell"}
|
||||||
|
\usepackage[english]{babel}
|
||||||
|
\usepackage{blindtext}
|
||||||
|
\usepackage{color}%farbiger text
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\usepackage{cleveref}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usetikzlibrary{patterns}
|
||||||
|
\usetikzlibrary{decorations.pathmorphing,fit,shapes,arrows,intersections,calc,trees,positioning,math,calc}
|
||||||
|
\usepackage{dirtree}
|
||||||
|
\usepackage{pgfplots,adjustbox}
|
||||||
|
\pgfplotsset{compat=1.12}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\usetikzlibrary{arrows.meta,positioning}
|
||||||
|
|
||||||
|
\usetikzlibrary{external}%
|
||||||
|
%\tikzexternalize[up to date check=md5]%
|
||||||
|
\tikzsetexternalprefix{tikz/cache/}%
|
||||||
|
|
||||||
|
\tikzset{
|
||||||
|
invisible/.style={opacity=0},
|
||||||
|
visible on/.style={alt={#1{}{invisible}}},
|
||||||
|
alt/.code args={<#1>#2#3}{%
|
||||||
|
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
\tikzset{
|
||||||
|
highlighted/.style={color=red},
|
||||||
|
nonhighlighted/.style={color=black},
|
||||||
|
highlight on/.style={alt={#1{highlighted}{nonhighlighted}}},
|
||||||
|
}
|
||||||
|
|
||||||
|
\usepackage{tcolorbox}
|
||||||
|
\tcbuselibrary{minted}
|
||||||
|
\tcbuselibrary{xparse}
|
||||||
|
|
||||||
|
\definecolor{codebg}{rgb}{.85,.85,.85}
|
||||||
|
|
||||||
|
\newminted{cpp}{autogobble,linenos,mathescape,bgcolor=codebg}
|
||||||
|
\newminted{bash}{autogobble,linenos}
|
||||||
|
|
||||||
|
\NewTCBListing{bash}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=bash,
|
||||||
|
minted options={autogobble,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewTCBListing{cpp}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=cpp,
|
||||||
|
minted options={autogobble,mathescape,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewTCBListing{cmake}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=cmake,
|
||||||
|
minted options={autogobble,mathescape,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewTCBListing{plaincode}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=text,
|
||||||
|
minted options={autogobble,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewTCBListing{diff}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=diff,
|
||||||
|
minted options={autogobble,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewTCBListing{python}{O{}}{%
|
||||||
|
listing only,
|
||||||
|
minted language=python,
|
||||||
|
minted options={autogobble,#1},
|
||||||
|
colframe=black!10!white,
|
||||||
|
arc=.5mm,
|
||||||
|
boxsep=1mm,
|
||||||
|
top=0mm,
|
||||||
|
bottom=0mm,
|
||||||
|
flush left,
|
||||||
|
grow to left by=\leftmargin,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\newmintinline{bash}{}
|
||||||
|
\newmintinline{cpp}{}
|
||||||
|
\newmintinline{python}{}
|
||||||
|
|
||||||
|
|
||||||
|
\providecommand{\V}[1]{\mathbf{#1}}
|
||||||
|
\newcommand{\field}[1]{\mathbb{#1}}
|
||||||
|
\newcommand{\reals}{\field{R}}
|
||||||
|
|
||||||
|
|
||||||
|
\newcommand{\attentionbox}[3]{\begin{center}\begin{minipage}[c]{#1\columnwidth}\begin{alertblock}{#2}#3\end{alertblock}\end{minipage}\end{center}}
|
||||||
|
\newcommand{\textbox}[3]{\begin{center}\begin{minipage}[c]{#1\columnwidth}\begin{block}{#2}#3\end{block}\end{minipage}\end{center}}
|
||||||
|
\newcommand{\weidingerblock}[5]{
|
||||||
|
\begin{textblock*}{#1 \columnwidth}[0,0](#2,#3)
|
||||||
|
\begin{alertblock}{}
|
||||||
|
\begin{center}
|
||||||
|
\includegraphics[width=0.90\textwidth]{#4}
|
||||||
|
\begin{flushright}
|
||||||
|
\begin{scriptsize}
|
||||||
|
#5
|
||||||
|
\end{scriptsize}
|
||||||
|
\hspace*{0.05\textwidth}
|
||||||
|
\end{flushright}
|
||||||
|
\vspace*{-3mm}
|
||||||
|
\end{center}
|
||||||
|
\end{alertblock}
|
||||||
|
\end{textblock*}
|
||||||
|
}
|
||||||
|
%
|
||||||
|
%\newcommand{\diff}{\ \mathrm{d}}
|
||||||
|
%\newcommand{\sdiff}{\mathrm{d}}
|
||||||
|
%\newcommand{\del}{\partial}
|
||||||
|
|
||||||
|
\newcommand{\copyrightinfo}{\footnotesize Original Author: Thomas Robitaille\\
|
||||||
|
Additions to the original lecture material were made by Markus Demleitner, Markus Hundertmark}
|
||||||
|
|
||||||
|
\title[]{Python for Scientists}
|
||||||
|
|
||||||
|
\author[Felix Spanier] % (optional, nur bei vielen Autoren)
|
||||||
|
{F. Spanier}
|
||||||
|
\institute[ITA]{Institut für Theoretische Astrophysik}
|
||||||
|
|
||||||
|
\date[IPK] % (optional, sollte der abgekürzte Konferenzname sein)
|
||||||
|
{Blockkurs Winter 2024/2025}
|
||||||
|
\definecolor{d-green}{rgb}{0,0.8,0}
|
||||||
|
|
||||||
|
\definecolor{blocklight}{RGB}{189,199,221}
|
||||||
|
|
||||||
|
|
||||||
|
\newcommand{\dpr}{^{\prime\prime}}
|
||||||
|
\def\vec#1{\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle#1$}}
|
||||||
|
{\mbox{\boldmath$\textstyle#1$}}
|
||||||
|
{\mbox{\boldmath$\scriptstyle#1$}}
|
||||||
|
{\mbox{\boldmath$\scriptscriptstyle#1$}}}}
|
||||||
|
%
|
||||||
|
\def\matr#1{\mathbf{#1}}
|
||||||
|
\def\tens#1{\vec{#1}}
|
||||||
|
\def\max{\textrm{max}}
|
||||||
|
\def\min{\textrm{min}}
|
||||||
|
\newcommand{\dr}{\Gamma^{\mathrm{IT}}_{a \rightarrow b}}
|
||||||
|
\newcommand{\drb}{\Gamma^{\mathrm{IT}}_{p \, \gamma \rightarrow p' \, b}}
|
||||||
|
\newcommand{\dsb}{\sigma^{\mathrm{IT}}}
|
||||||
|
\newcommand{\dcb}{\chi^{\mathrm{IT}}}
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamertemplate{caption}{\centering\textit{\insertcaption}\par}
|
||||||
|
|
||||||
|
\begin{frame}[plain]
|
||||||
|
\titlepage
|
||||||
|
\copyrightinfo
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\begin{frame}{About the course}
|
||||||
|
|
||||||
|
This course was originally written by Thomas Robitaille, and was carefully adapted by Markus Demleitner and myself.
|
||||||
|
|
||||||
|
The web page for this course is [http://wwwstaff.ari.uni-heidelberg.de/rschmidt/pycourse/].
|
||||||
|
|
||||||
|
The lecturer is Felix Spanier. You can contact me during the course and at \url{felix.spanier@uni-heidelberg.de
|
||||||
|
Topics
|
||||||
|
\begin{itemize}
|
||||||
|
\item Using the IPython Notebook
|
||||||
|
\item Introduction to Python
|
||||||
|
\item Modules and Functions
|
||||||
|
\item Introduction to Numpy and Matplotlib
|
||||||
|
\item Reading/writing data from files
|
||||||
|
\item Introduction to Scipy (interpolation, integration, fitting)
|
||||||
|
\item Applying Python to scientific problems
|
||||||
|
\item Object-oriented programming
|
||||||
|
%%TODO Matplotlib, Schleifen
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}{Structure}
|
||||||
|
|
||||||
|
The block course lasts five days, and each day will follow this schedule:
|
||||||
|
|
||||||
|
9:00-10:30 - lecture/exercises
|
||||||
|
10:30-11:00 - break
|
||||||
|
11:00-12:30 - lecture/exercises
|
||||||
|
12:30-13:30 - break for lunch
|
||||||
|
13:30-14:30 - lecture/exercises
|
||||||
|
14:30-17:00 - computer pool available to finish homework
|
||||||
|
|
||||||
|
The lectures will be mixed with exercise sessions - from time to time I will give you 5 or 10 minutes to complete a given task/exercise. There will be problem sets during the week, and you will be required to hand these in a deadline indicated on the problem sheet. An average of 60% [=54 points] in the problem sets will be required to obtain 2 credits points at the end of the course.
|
||||||
|
|
||||||
|
The course will be in English or German as convenient.
|
||||||
|
|
||||||
|
I am happy to review or talk about your code/solutions to exercises.
|
||||||
|
Solutions to problem sheets
|
||||||
|
|
||||||
|
All solutions should be submitted as IPython (/Jupyter) notebooks or python programs (one notebook/program per problem set).
|
||||||
|
|
||||||
|
-> Please use a filename that contains the name of the problem sheet and your name.
|
||||||
|
|
||||||
|
-> Only submit the program (.py or .ipynb), do not submit data downloaded from the course web page.
|
||||||
|
|
||||||
|
Submissions have to be entered in the uebungen system.
|
||||||
|
|
||||||
|
The following criteria are taken into account for grading problem sets - the notebook/program should:
|
||||||
|
|
||||||
|
run with no errors under python3
|
||||||
|
produce the correct results
|
||||||
|
be clearly readable, and include text to explain what you are doing and why
|
||||||
|
not include any unused code! (-> readability)
|
||||||
|
|
||||||
|
Please make use of the ability to add comments and text around your code. Make it so that someone not familiar with the problem could read it and understand your solution.
|
||||||
|
|
||||||
|
There is never a unique solution to a problem, so it does not matter if your programs do not look the same as somebody else's! What matters most is that you get a chance to make mistakes and learn from them.
|
||||||
|
Policy on handing in solutions
|
||||||
|
|
||||||
|
Problem set submissions need to be handed in separately for each participant.
|
||||||
|
|
||||||
|
The deadlines for the Problem Sets are:
|
||||||
|
|
||||||
|
Problem Set 1 Thursday, April 11th 2024, 7pm CEST
|
||||||
|
|
||||||
|
Problem Set 2 Thursday, April 18th 2024, 7pm CEST
|
||||||
|
|
||||||
|
Problem Set 3 Thursday, April 25th 2024, 7pm CEST
|
||||||
|
Your own python installation on your Laptop
|
||||||
|
|
||||||
|
The default is to use the jupyter server (see below), but if you would like to use Python on your laptop, you have several possibilities:
|
||||||
|
|
||||||
|
If you have a linux laptop and are familiar with package managers, most major scientific Python packages are available through these
|
||||||
|
Otherwise, try and install the Anaconda Python distribution
|
||||||
|
|
||||||
|
Getting set up
|
||||||
|
CIP Pool, the jupyter server and the Lecture Notes
|
||||||
|
|
||||||
|
The default is to use the server https://jupyter.kip.uni-heidelberg.de for this course (there is also jupyter2 in case of overcrowding). Please login there.
|
||||||
|
|
||||||
|
You can download the notebooks I'm showing, the problem sets and the ancillary data files from here
|
||||||
|
|
||||||
|
The simplest way to upload the files to the jupyter server is the following:
|
||||||
|
|
||||||
|
copy link location (using the "right" mouse button)
|
||||||
|
then open a terminal on the jupyter server using "New" -> "Terminal" (top right next to "Upload")
|
||||||
|
type: wget [paste link location here]
|
||||||
|
using the browser, go back to the tab with the jupyter Home directory ("Home")
|
||||||
|
|
||||||
|
The file should now be visible in the Home directory.
|
||||||
|
|
||||||
|
In the same directory you also find the 'data' directory. The contains material that will be used in this course. In case you used your account before, this may also be called 'data2'. You can ask me if you want to rename this.
|
||||||
|
Using ipython on the CIP pool computer directly
|
||||||
|
|
||||||
|
This option is now deprecated due to the antiquated python installation on these systems, so we do not recommend to do this.
|
||||||
|
|
||||||
|
For backwards compatibility I still keep the instructions here:
|
||||||
|
|
||||||
|
You will need to start up a command-line Terminal application. In the CIP pool this is located in the Anwendungen -> Zubehör -> Terminal menu.
|
||||||
|
|
||||||
|
To ensure a common environment, in the CIP pool we'll be using an updated version of ipython over what is installed on the machines themselves. To use that, you have to manipulate your path. Here is one way to do that:
|
||||||
|
|
||||||
|
echo "export PATH=/local/py4sci/anaconda3/bin:$PATH" >> ~/.bashrc
|
||||||
|
exec bash
|
||||||
|
|
||||||
|
You only need to do that once.
|
||||||
|
|
||||||
|
Then fetch the notebooks and execute the notebook player (optionally in a subdirectory):
|
||||||
|
|
||||||
|
ipython notebook
|
||||||
|
|
||||||
|
A web browser should open and you should be ready to go.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
||||||
Binary file not shown.
Reference in New Issue
Block a user