I'm using @AlexG's method described here Using the animate package without Adobe to produce an animated svg (animate package and/or tikz animations library), it's really nice. I have two questions:
1- I would like to attach the .svg to a pdf file as explained in the link but I'm not sure what I should use to compile. Up to now I was using: xelatex -no-pdf svgbeamer.tex && xelatex -no-pdf svgbeamer.tex && dvisvgm --font-format=ttf --exact --zoom=-1 -p1,- svgbeamer.xdv
2- When in full screen mode (F11) my slides don't occupy the whole screen. Using tikz I draw a rectangle (width 16cm, height 9cm) and put everything I want on screen inside it but I still get white bands above, below and to the left of the rectangle. Is there a way around this?
Here is a minimal example:
\documentclass[dvisvgm,aspectratio=169]{beamer}
\usepackage{tikz}
\usetikzlibrary{calc,angles,animations,arrows,backgrounds,patterns,intersections,tikzmark,decorations.pathreplacing,calligraphy}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\huge
\draw[thick] (0,0) rectangle (16,9); % a 16 by 9 rectangle
\clip (0,0) rectangle (16,9); % everything outside the rectangle is clipped
%%%%%%%% GRID
\foreach \i in {1,...,20}{\draw[gray] (\i*0.8,0) -- (\i*0.8,9); }
\foreach \i in {0,...,11}{
\draw[gray] (0,0.2+\i*0.8) -- (17,0.2+\i*0.8);
\foreach \j in {1,...,3}{\draw[lightgray, thin] (0,0.2+\i*0.8 + \j*0.2) -- (17,0.2+\i*0.8+ \j*0.2);}
}
%%%%%%%%%
\draw (8,8.2) node[text width=14.4cm, align=left, anchor=base]
{This is a test}; % some text
\draw[very thick] (2,6) -- (4,3) -- (1,4) -- cycle; % some drawing
\draw[very thick] (12,6) -- (18,3) -- (11,4) -- cycle; % some clipped drawing
\end{tikzpicture}
\end{frame}
\end{document}
and what it looks like after pressing F11:
beamer
) for the standalone animation. Please clarify.