In relation from these question (the first it is mine) A distribution of clocks in different rulers in a 3D plane and Draw a table of clocks on a plane, what are the best methods to put the clocks of clock package randomizing the hours and the minutes in a grid in the cartesian plane?
Asked
Active
Viewed 168 times
2
Sebastiano
- 54,118
1 Answers
3
\documentclass{article}
\usepackage{clock}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,...,10}{
\foreach \j
[evaluate=\j as \h using {int(12*rnd)},
evaluate=\j as \m using {int(60*rnd)}]
in {1,...,10}
\node at (\i,\j) {\clock{\h}{\m}};}
\end{tikzpicture}
\end{document}
Update: Selection clock style
\documentclass{article}
\usepackage{clock}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,...,5}{
\foreach \j
[evaluate=\j as \h using {int(12rnd)},
evaluate=\j as \m using {int(60rnd)}]
in {1,...,5}
\node[font={\clockfont\ClockStyle=1\ClockFrametrue\Large}] at (\i,\j) {\clock{\h}{\m}};}
\end{tikzpicture}
\end{document}
Ignasi
- 136,588



fontoption in node options or including them into node contents. See the updated answer. – Ignasi May 14 '21 at 14:29