Commit a288d7de authored by Jörn Stöhler's avatar Jörn Stöhler
Browse files

removed animation

parent d96dd6b6
Pipeline #30643 failed with stages
in 16 seconds
......@@ -5,15 +5,10 @@ PDFS = presentation.pdf presentation_with_second_screen.pdf presentation_with_no
all: $(PDFS)
animation:
make -C animation
%.pdf: %.tex content.tex presentation.sty animation
%.pdf: %.tex content.tex presentation.sty
$(LATEXMK) -pdf -halt-on-error $<
clean:
make -C animation clean
rm -rf *.aux *.fdb_latexmk *.fls *.log *.nav *.out *.pdf *.pyg *.snm *.synctex.* *.toc *.vrb _minted-*
.PHONY: all animation clean
.PHONY: all clean
animation/animation.mov
\ No newline at end of file
animation/animation.mp4
\ No newline at end of file
PDF2SWF = pdf2swf
SWFCOMBINE = swfcombine
PDFINFO = pdfinfo
MUTOOL = mutool
FFMPEG = ffmpeg
LATEXMK = latexmk
FRAMERATE = 30
DPI = 600
H264_QUALITY = 18
all: animation.mov animation.mp4 animation_loop.swf animation_stop.swf
animation_loop.swf: animation.pdf
$(PDF2SWF) $< -o $@ -T 9 -s framerate=$(FRAMERATE)
animation_stop.swf: animation.pdf
PDF_PAGE_NUM="$$($(PDFINFO) "$<" | awk '$$1 == "Pages:" { print $$2 }')" && \
$(PDF2SWF) $< -o $(basename $@)_part01.swf -T 9 -p 1-$$(( PDF_PAGE_NUM - 1 )) -s framerate=$(FRAMERATE) && \
$(PDF2SWF) $< -o $(basename $@)_part02.swf -T 9 -p $${PDF_PAGE_NUM} -t -s framerate=$(FRAMERATE) && \
$(SWFCOMBINE) -F 9 -z --cat $(basename $@)_part01.swf $(basename $@)_part02.swf -o $@
animation.mp4: animation.pdf
$(MUTOOL) draw -r $(DPI) -o png_export/%05d.png $<
$(FFMPEG) -y -framerate $(FRAMERATE) -i png_export/%05d.png -c:v h264 -tune animation \
-crf $(H264_QUALITY) -pix_fmt yuv420p -vf "crop=floor(iw/2)*2:floor(ih/2)*2" $@
animation.mov: animation.mp4
$(FFMPEG) -y -i $< -c:v copy $@
animation.pdf: animation.tex animation.sty graphics/pendel.tex
$(LATEXMK) -pdf -halt-on-error $<
clean:
rm -f *.aux *.fdb_latexmk *.fls *.log *.pdf *.mov *.mp4 *.swf png_export/*.png
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{animate}
\usepackage{tikz}
\newenvironment{page}{}{}%
\documentclass[12pt, multi=page, crop=true]{standalone}
%
\usepackage{animation}
%
\pagestyle{empty}
\thispagestyle{empty}
\begin{document}
%
\foreach \i in {0, ..., 360} {%
\begin{page}%
\input{graphics/pendel}%
\end{page}%
}%
%
\end{document}
\begin{tikzpicture}[x={(3, 0)}, y={(0, 3)}]
% nodes
\begin{scope}[fill=yellow]
\node (a) at (0, 0) [draw, fill, circle] {A};
\node (b) at (1, 0) [draw, fill, circle] {B};
\node (c) at (1, 1) [draw, fill, circle] {C};
\node (d) at (0, 1) [draw, fill, circle] {D};
\end{scope}
% Verbindungslinien
\begin{scope}[>=latex, very thick]
\foreach \s/\e/\f in {a/b/1, b/c/2, c/d/3, d/a/4} {
\ifthenelse{\f < \i \OR \f = \i}{
\draw[->] (\s) -- (\e);
}{}
}
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}
\useasboundingbox (-4.35, 0) rectangle (4.35, -4.6);
\pgfmathsetmacro{\a}{90 - 70*cos(\i)}
\draw[very thick] (0, 0) -- (-\a:4);
\filldraw[fill=blue] (-\a:4) circle(0.5cm);
\end{tikzpicture}
Supports Markdown
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