summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/media4svg/example/beamer-example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/media4svg/example/beamer-example.tex')
-rw-r--r--macros/latex/contrib/media4svg/example/beamer-example.tex28
1 files changed, 6 insertions, 22 deletions
diff --git a/macros/latex/contrib/media4svg/example/beamer-example.tex b/macros/latex/contrib/media4svg/example/beamer-example.tex
index f5654af427..c00834d218 100644
--- a/macros/latex/contrib/media4svg/example/beamer-example.tex
+++ b/macros/latex/contrib/media4svg/example/beamer-example.tex
@@ -12,9 +12,7 @@
% mouse cursor autohide on idle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[totpages]{zref}
-\usepackage{atbegshi}
-\usepackage{tikz}
-\usepgflibrary{arrows.meta}
+\usepackage{fontawesome5}
\setbeamertemplate{navigation symbols}{}
\def\navBtnSize{9pt}
\def\navBtnLnWd{1.6pt}
@@ -54,30 +52,16 @@
}%
\AtBeginShipoutUpperLeftForeground{%
\raisebox{-\dimexpr\height+0.5ex\relax}[0pt][0pt]{\makebox[\paperwidth][r]{%
- \color{structure!40!}%
+ \normalsize\color{structure!40!}%
\ifnum\thepage>1%
- \href{\jobname-\the\numexpr\thepage-1\relax.svg}{%
- \tikz{
- \filldraw[black!0!] (-1pt,-\dimexpr\navBtnSize/2+1pt\relax)
- rectangle (\dimexpr\navBtnSize+1pt\relax,\dimexpr\navBtnSize/2+1pt\relax);
- \draw[{Straight Barb[round]}-,line width=\navBtnLnWd] (-1pt,0)--(\navBtnSize,0);}}%
+ \href{\jobname-\the\numexpr\thepage-1\relax.svg}{\faArrowLeft}%
\else%
- \textcolor{lightgray}{\tikz{
- \filldraw[black!0!] (-1pt,-\dimexpr\navBtnSize/2+1pt\relax)
- rectangle (\dimexpr\navBtnSize+1pt\relax,\dimexpr\navBtnSize/2+1pt\relax);
- \draw[{Straight Barb[round]}-,line width=\navBtnLnWd] (-1pt,0)--(\navBtnSize,0);}}%
+ \textcolor{lightgray}{\faArrowLeft}%
\fi\hspace{0.5ex}%
\ifnum\thepage<\ztotpages%
- \href{\jobname-\the\numexpr\thepage+1\relax.svg}{%
- \tikz{
- \filldraw[black!0!] (-1pt,-\dimexpr\navBtnSize/2+1pt\relax)
- rectangle (\dimexpr\navBtnSize+1pt\relax,\dimexpr\navBtnSize/2+1pt\relax);
- \draw[-{Straight Barb[round]},line width=\navBtnLnWd] (-1pt,0)--(\navBtnSize,0);}}%
+ \href{\jobname-\the\numexpr\thepage+1\relax.svg}{\faArrowRight}%
\else%
- \textcolor{lightgray}{\tikz{
- \filldraw[black!0!] (-1pt,-\dimexpr\navBtnSize/2+1pt\relax)
- rectangle (\dimexpr\navBtnSize+1pt\relax,\dimexpr\navBtnSize/2+1pt\relax);
- \draw[-{Straight Barb[round]},line width=\navBtnLnWd] (-1pt,0)--(\navBtnSize,0);}}%
+ \textcolor{lightgray}{\faArrowRight}%
\fi%
\hspace{0.5ex}%
}}%