Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
StudyATHome_public
fhtw-latex-slides
Commits
5809fe85
Commit
5809fe85
authored
Nov 23, 2018
by
Alija Sabic
Browse files
Create progress bar variants
parent
9ae4f88e
Changes
3
Hide whitespace changes
Inline
Side-by-side
build/presentation.pdf
View file @
5809fe85
No preview for this file type
fhtw.sty
View file @
5809fe85
...
...
@@ -26,8 +26,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage
{
tikz
}
\usetikzlibrary
{
shapes.geometric
}
\usetikzlibrary
{
fadings
}
\usetikzlibrary
{
external
}
%
\usetikzlibrary{fadings}
%
\usetikzlibrary{external}
\usetikzlibrary
{
calc
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -214,6 +214,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sidebar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\centerarc
[#1]
(#2)(#3:#4:#5)
% Syntax: [draw options] (center) (initial angle:final angle:radius)
{
\draw
[#1]
(
$
(
#
2
)+(
{
#
5
*
cos
(
#
3
)
}
,
{
#
5
*
sin
(
#
3
)
}
)
$
) arc (#3:#4:#5);
}
% \setbeamertemplate{sidebar \beamer@sidebarside}{
\makeatletter
\defbeamertemplate*
{
sidebar
\beamer
@sidebarside
}{
fhtw
}{
...
...
@@ -222,6 +224,58 @@
% \vskip 0.25cm \hskip 0.30cm
% \includegraphics[height=20pt]{resources/images/fhtw-logo.pdf}
\begin{tikzpicture}
[overlay]
\def\ratio
{
\insertframenumber
/
\inserttotalframenumber
}
% Variant 4
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% Variant 5
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% \pgfmathparse{\inserttotalframenumber-1}
% \pgfmathsetmacro{\nums}{\pgfmathresult}
% \foreach \x in {0,...,\nums} {
% \pgfmathparse{360/\inserttotalframenumber*\x}
% \pgfmathsetmacro{\angl}{\pgfmathresult}
% \draw[draw=\secondarycolor!30,line width=1mm] (1,-0.9685) -- +(90-\angl:0.7cm);
% }
% Variant 6
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% \pgfmathparse{\inserttotalframenumber-1}
% \pgfmathsetmacro{\nums}{\pgfmathresult}
% \foreach \x in {0,...,\nums} {
% \pgfmathparse{360/\inserttotalframenumber*\x}
% \pgfmathsetmacro{\angl}{\pgfmathresult}
% \draw[draw=\secondarycolor!30,line width=1mm] (1,-0.9685) -- +(90-\angl:0.9cm);
% }
% Variant 7
\draw
[draw=none,fill=\primarycolor!25]
(1,-0.965) circle (0.8cm);
\draw
[draw=none,fill=\primarycolor]
(1,-0.965) -- (1,-0.17) arc (90:90-360*
\ratio
:0.8cm) -- (1,-0.965);
\draw
[draw=none,fill=\secondarycolor!30]
(1,-0.965) circle (0.6cm);
\pgfmathparse
{
\inserttotalframenumber
-1
}
\pgfmathsetmacro
{
\nums
}{
\pgfmathresult
}
\foreach
\x
in
{
0,...,
\nums
}
{
\pgfmathparse
{
360/
\inserttotalframenumber*\x
}
\pgfmathsetmacro
{
\angl
}{
\pgfmathresult
}
\draw
[draw=\secondarycolor!30,line width=0.4mm]
(1,-0.9685) -- +(90-
\angl
:0.9cm);
}
\end{tikzpicture}
% Variant 3
\vskip
0.7cm
\hskip
0.50cm
\includegraphics
[height=15pt]
{
resources/images/fhtw-logo.pdf
}
...
...
@@ -264,8 +318,11 @@
\draw
[draw=\primarycolor,line width=0.15mm]
(0,0) -- (0,10);
% Variant 3
\draw
[draw=\primarycolor!25,line width=0.8mm]
(1.7,8.6375) arc (0:360:0.7);
\draw
[draw=\primarycolor,line width=0.8mm]
(1.7,8.6375) arc (0:(360*
\ratio
):0.7);
% \draw[draw=\primarycolor!25,line width=0.8mm] (1.7,8.6375) arc (0:360:0.7);
% \draw[draw=\primarycolor,line width=0.8mm] (1.7,8.6375) arc (0:(360*\ratio):0.7);
% Variant 4
% \draw[draw=none,fill=\primarycolor!25] (1,8.6375) circle (0.7cm);
\end{tikzpicture}
...
...
presentation.tex
View file @
5809fe85
...
...
@@ -45,6 +45,32 @@
% Intro
% ----------------------------------------------------------------------------------------------------------------------------
\section
{
Intro
}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
\begin{frame}
{
Introduction
}
Introduction is boring.
\end{frame}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment