Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alija Sabic
fhtw-latex-slides
Commits
c08a2170
Commit
c08a2170
authored
Nov 23, 2018
by
Alija Sabic
Browse files
Minor corrections of progressbar
parent
ce25fcbf
Changes
4
Hide whitespace changes
Inline
Side-by-side
build/presentation.pdf
View file @
c08a2170
No preview for this file type
custom.sty
0 → 100644
View file @
c08a2170
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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
fhtw.sty
View file @
c08a2170
...
...
@@ -17,6 +17,7 @@
%% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode
<presentation>
\RequirePackage
{
custom
}
\RequirePackage
{
xcolor
}
\RequirePackage
[utf8]
{
inputenc
}
\RequirePackage
[T1]
{
fontenc
}
...
...
@@ -26,8 +27,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage
{
tikz
}
\usetikzlibrary
{
shapes.geometric
}
% \usetikzlibrary{fadings}
% \usetikzlibrary{external}
\usetikzlibrary
{
calc
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -218,28 +217,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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
}{
\begin{tikzpicture}
[overlay]
\def\ratio
{
\insertframenumber
/
\inserttotalframenumber
}
\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}
% Progressbar
\slicedcircularprogressbar
{
(1,-0.965)
}{
0.8cm
}{
0.7cm
}{
1
}{
\inserttotalframenumber
}{
\insertframenumber
}{
\primarycolor
!30
}{
\primarycolor
}{
\secondarycolor
!30
}
;
\vskip
0.7cm
\hskip
0.50cm
\includegraphics
[height=15pt]
{
resources/images/fhtw-logo.pdf
}
...
...
@@ -261,6 +245,7 @@
\vfill
% Slide number
\hbox
to
\sidebarwidth
{
\hfill
{
\small
\textcolor
{
\secondarycolor
}{
\insertframenumber
/
\inserttotalframenumber
}}
...
...
@@ -269,7 +254,8 @@
\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.15mm]
(0,0) -- (0,10);
\end{tikzpicture}
...
...
presentation.tex
View file @
c08a2170
...
...
@@ -41,7 +41,7 @@
% Acronyms
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage
[hyperref=true]
{
acro
}
\acsetup
{
first-long-format=
\itshape
}
\acsetup
{
first-long-format=
\itshape
}
\input
{
acronyms
}
% ----------------------------------------------------------------------------------------------------------------------------
...
...
@@ -83,7 +83,6 @@
% ----------------------------------------------------------------------------------------------------------------------------
\section
{
Intro
}
\begin{frame}
{
Introduction
}
\ac
{
ES
}
-style beamer template of
\acs
{
UAS
}
Technikum Wien.
\end{frame}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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