Commit c08a2170 authored by Alija Sabic's avatar Alija Sabic
Browse files

Minor corrections of progressbar

parent ce25fcbf
No preview for this file type
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sliced Circular Progressbar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\slicedcircularprogressbar}[9]{% Syntax: \twprogressbar{\coordinate}{\oradius}{\iradius}{\oangle}{\total}{\number}{\basecol}{\fillcol}{\bgcol}
\begin{tikzpicture}[overlay]
\def\ratio{#6/#5}
\def\outerradius{#2}
\def\innerradius{#3}
\coordinate (centerprogressbar) at #1;
\draw[draw=none,fill=#7] (centerprogressbar) circle (\outerradius);
\draw[draw=none,fill=#8] (centerprogressbar) -- (centerprogressbar) ++(0,\outerradius) arc (90:90-360*\ratio:\outerradius) -- (centerprogressbar);
\draw[draw=none,fill=#9] (centerprogressbar) circle (\innerradius);
\pgfmathparse{#5-1}
\pgfmathsetmacro{\nums}{\pgfmathresult}
\foreach \x in {0,...,\nums} {
\pgfmathparse{360/#5*\x}
\pgfmathsetmacro{\angl}{\pgfmathresult}
\def\slice{#4}
\draw[draw=none,fill=#9,line width=0.1mm] (centerprogressbar) -- +(90-\angl+\slice:\outerradius+0.1) arc (90-\angl+\slice:90-\angl-\slice*2:\outerradius) -- cycle;
}
\end{tikzpicture}
}
\ No newline at end of file
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
%% Packages %% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation> \mode<presentation>
\RequirePackage{custom}
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage[utf8]{inputenc} \RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
...@@ -26,8 +27,6 @@ ...@@ -26,8 +27,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{tikz} \RequirePackage{tikz}
\usetikzlibrary{shapes.geometric} \usetikzlibrary{shapes.geometric}
% \usetikzlibrary{fadings}
% \usetikzlibrary{external}
\usetikzlibrary{calc} \usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...@@ -218,28 +217,13 @@ ...@@ -218,28 +217,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sidebar %% 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}{ % \setbeamertemplate{sidebar \beamer@sidebarside}{
\makeatletter \makeatletter
\defbeamertemplate*{sidebar \beamer@sidebarside}{fhtw}{ \defbeamertemplate*{sidebar \beamer@sidebarside}{fhtw}{
\begin{tikzpicture}[overlay] % Progressbar
\def\ratio{\insertframenumber/\inserttotalframenumber} \slicedcircularprogressbar{(1,-0.965)}{0.8cm}{0.7cm}{1}{\inserttotalframenumber}{\insertframenumber}{\primarycolor!30}{\primarycolor}{\secondarycolor!30};
\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}
\vskip 0.7cm \hskip 0.50cm \vskip 0.7cm \hskip 0.50cm
\includegraphics[height=15pt]{resources/images/fhtw-logo.pdf} \includegraphics[height=15pt]{resources/images/fhtw-logo.pdf}
...@@ -261,6 +245,7 @@ ...@@ -261,6 +245,7 @@
\vfill \vfill
% Slide number
\hbox to \sidebarwidth{ \hbox to \sidebarwidth{
\hfill \hfill
{\small \textcolor{\secondarycolor}{\insertframenumber/\inserttotalframenumber}} {\small \textcolor{\secondarycolor}{\insertframenumber/\inserttotalframenumber}}
...@@ -269,7 +254,8 @@ ...@@ -269,7 +254,8 @@
\vskip 0.10mm \vskip 0.10mm
\begin{tikzpicture}[overlay] % Line separating sidebar and main content
\begin{tikzpicture}[overlay]
\draw[draw=\primarycolor,line width=0.4mm] (-0.04,9.6) -- ++(0,-9.6); \draw[draw=\primarycolor,line width=0.4mm] (-0.04,9.6) -- ++(0,-9.6);
\draw[draw=\primarycolor,line width=0.15mm] (0,0) -- (0,10); \draw[draw=\primarycolor,line width=0.15mm] (0,0) -- (0,10);
\end{tikzpicture} \end{tikzpicture}
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
% Acronyms % Acronyms
% ---------------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------------
\usepackage[hyperref=true]{acro} \usepackage[hyperref=true]{acro}
\acsetup{first-long-format=\itshape} \acsetup{first-long-format=\itshape}
\input{acronyms} \input{acronyms}
% ---------------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------------
...@@ -83,7 +83,6 @@ ...@@ -83,7 +83,6 @@
% ---------------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------------
\section{Intro} \section{Intro}
\begin{frame}{Introduction} \begin{frame}{Introduction}
\ac{ES}-style beamer template of \acs{UAS} Technikum Wien. \ac{ES}-style beamer template of \acs{UAS} Technikum Wien.
\end{frame} \end{frame}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment