forked from asalber/statistics-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.tex
More file actions
57 lines (50 loc) · 1.63 KB
/
Copy pathanimation.tex
File metadata and controls
57 lines (50 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% arara: xelatex: {shell: true}
\documentclass{beamer}
% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}%
% COLOR SETTINGS
\input{settings/colors}
% FONT SETTINGS
\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\setmathfont[math-style=ISO,bold-style=ISO,vargreek-shape=TeX]{TeX Gyre Pagella Math}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
% PGFPLOTS SETTINGS
\input{settings/pgfplots}
\usepackage{tikz}
\usetikzlibrary{external, arrows, arrows.meta, calc, shapes, shapes.arrows, positioning, decorations.pathreplacing, intersections}
% TIKZ SETTINGS
\tikzset{
% Overlays
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
},
% Vectors
vector/.style={->, color1, thick},
% Arrow tips
>=stealth,
}
\tikzset{
animation export/.style={
external/system call={
xelatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource";
convert -verbose -delay 250 -loop 0 -density 300 -background white -alpha remove "\image.pdf" "\image.gif"
}
}
}
%\tikzexternalize[prefix=img/exported/]
%\tikzset{animation export}
\begin{document}
\begin{frame}
\begin{center}
%\tikzsetnextfilename{regression/variation_decomposition}
\input{img/regression/variation_decomposition}
\end{center}
\end{frame}
\end{document}