In this post, I have learned to plot the following three interesting figures in mathematics (p-adic numers):
\begin{tikzpicture}
\draw[ ] (0,0) circle [radius=3];
\node at (0,2) {0};
\node at (2,-1) {1};
\node at (-2,-1) {2};
\end{tikzpicture}
\newcommand{\RA}{1.5}
\pgfmathsetmacro{\RB}{\RA*(1+2/sqrt(3)}
\begin{tikzpicture}
\draw[ ] (0,0) circle[radius=\RB cm];
\foreach \ang in {90,210,330}
\draw[ ] (\ang:\RB-\RA) circle[radius=\RA cm];
\node[red] at (0,2.5) {0};
\node[red] at (-0.8,1.5) {6};
\node[red] at (0.8,1.5) {3};
\node[red] at (1.7,-0.1) {1};
\node[red] at (2.4,-1.3) {4};
\node[blue] at (1,-1.3) {7};
\node[red] (8) at (-2.4,-1.3) {8};
\node[blue] at (-1,-1.3) {5};
\node[red] at (-1.7,-0.1) {2};
\end{tikzpicture}
\newcommand{\RRA}{4}
\pgfmathsetmacro{\RRB}{\RRA/(1+2/sqrt(3)}
\begin{tikzpicture}
\draw[ ] (0,0) circle[radius=\RRA cm];
\foreach \ang [count = \i from 1] in {90,210,330}
\draw[ ] (\ang:\RRA-\RRB) coordinate (center-\i) circle[radius=\RRB cm];
\pgfmathsetmacro{\RRC}{\RRB/(1+2/sqrt(3)}
\foreach \i in {1,2,3}
\foreach \ang in {90,210,330}
\draw[ ] ($(center-\i)+(\ang:\RRB-\RRC)$) circle[radius=\RRC cm];
\node[red] at (0,3.6) {0};
\node[red] at (0.3,3) {18};
\node[green] at (-0.3,3) {9};
\node[red] at (0.9,2.1) {6};
\node[red] at (1.2,1.4) {24};
\node[green] at (0.5,1.4) {15};
\node[cyan] at (-0.5,1.4) {21};
\node[cyan] at (-0.9,2.1) {3};
\node at (-1.2,1.4) {12};
\node[red] at (1.8,0.5) {2};
\node[purple] at (-1.8,0.5) {1};
\node at (-2.2,-0.33) {10};
\node[purple] at (-1.4,-0.33) {19};
\node[red] at (2.2,-0.33) {20};
\node[green] at (1.4,-0.33) {11};
\node[red] at (2.7,-1) {8};
\node[red] at (3.2,-1.8) {26};
\node[green] at (2.3,-1.8) {17};
\node[cyan] (7) at (1,-1.1) {5};
\node[cyan] (7) at (1.5,-1.8) {23};
\node (7) at (0.5,-1.8) {14};
\node[red] at (-2.7,-1) {4};
\node at (-3.2,-1.8) {13};
\node[red] at (-2.3,-1.8) {22};
\node[purple] (7) at (-1,-1.1) {7};
\node (7) at (-1.5,-1.8) {16};
\node[purple] (7) at (-0.5,-1.8) {25};
\end{tikzpicture}
The above three Tikz codes gives the following three figures, respectively:
My question:
I want to animate these three figures in such a way that the first figure will be displayed for 5 seconds, then the second figures will be displayed for 5 seconds and then the same for third figure.
I got PGF/TikZ manual but unable to apply here.
I appreciate your assitance.
Edit:
I have my preamble:
\documentclass[12pt,reqno]{amsart}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=newest}
\pgfplotsset{ytick style={draw=none}}
\pgfplotsset{xtick style={draw=none}}
\topmargin=0.02cm
\textwidth = 17cm
\textheight = 23cm
\baselineskip=11pt
\setcounter{secnumdepth}{3}
\setlength{\oddsidemargin}{0.01 pt}
\setlength{\evensidemargin}{0.01 pt}
\renewcommand{\baselinestretch}{1.4}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{graphicx}
\graphicspath{ }
%\usepackage[bookmarks=false]{hyperref}
%\usetikzlibrary{animations}
\usepackage{mathrsfs}
\usepackage{epstopdf}
\usepackage{csquotes}
\usepackage{wrapfig}
\usepackage{accents}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{calligra}
\usepackage[colorlinks]{hyperref}
\usepackage{kantlipsum}
\hypersetup{colorlinks,
breaklinks,
linkcolor=red,
citecolor=red,
linktocpage=true}
\newtheorem{fig}{figure}[section]
\numberwithin{figure}{section}
\newcommand\norm[1]{\left\lVert#1\right\rVert}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}{Corollary}[thm]
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\newtheorem{conj}{Conjecture}[section]
\newtheorem{exmp}{Example}[section]
\setcounter{tocdepth}{3}
\theoremstyle{remark}
\newtheorem*{rem}{Remark}
\newtheorem*{note}{Note}
\usetikzlibrary{calc}
\usepackage{mathtools}
\makeatletter
\@namedef{subjclassname@2020}{%
\textup{2020} Mathematics Subject Classification}
\makeatother
\begin{document}
....
\end{document}



\documentclass[tikz,border=3.14mm]{standalone}in the preamble ? – learner Sep 06 '23 at 12:23\documentclassand end with\end{document}. It is the questioners task to make the code complete. Please familiarise yourself with this site's conventions. – AlexG Sep 06 '23 at 12:25\pausecauses the page to be duplicated. You might be able to do something with eforms and java script. – John Kormylo Sep 06 '23 at 13:40\pause. Thanks. However the link you mentioned doesn't deal with Tikz. I am seeking something with Tikz because I have drawn my figures with Tikz – learner Sep 06 '23 at 13:53documentenvironment. It does not compile as it is shown in your question. – samcarter_is_at_topanswers.xyz Sep 06 '23 at 14:12\pause:) – samcarter_is_at_topanswers.xyz Sep 06 '23 at 14:21\pauseis not available. – samcarter_is_at_topanswers.xyz Sep 06 '23 at 14:29\documentclass{article}alright ? – learner Sep 06 '23 at 14:32amsartis fine. But your preamble is full of irrelevant pkgs. Please remove the unneeded ones. And insert your TikZ code in the body of the document. This may help you to set up a good example: https://tex.meta.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-working-example-mwe-what-is-that – AlexG Sep 06 '23 at 14:49