I've managed using this stack exchange info to build the following MWE:
\documentclass{article}
\pagestyle{empty}
\usepackage{tikz}
\usepackage{geometry}
\usetikzlibrary{positioning,calc}
\geometry{papersize={20mm, 40mm}}
\def\centerarc[#1](#2)(#3:#4:#5)
{ \draw[#1] ($(#2)+({#5*cos(#3)},{#5*sin(#3)})$) arc (#3:#4:#5); }
\newcommand\lw{0.2mm}
\newcommand\dial[2]{
\begin{tikzpicture}[remember picture,overlay]
\centerarc[fill=none,draw=black,line width=\lw]($(current page.south west)+(#1,#2)$)(-60:240:8mm)
\end{tikzpicture}
}
\begin{document}
\dial{10.0mm}{20.0mm}
\end{document}
As I result I get this:
How do I change the dial to have tick marks like this?
A solution for the above dial would already help me a great deal.
Really cool would be if the code provided the flexibility for putting text on each tick mark, such as the numbers 0 to 10, or something customized for a volume knob like this:



