The definition of holomorphic maps between Riemann surfaces confuses me a little. When we say a (continuous) map between two Riemann surfaces $f: X \to Y$ is holomorphic, we mean that for any pair of charts $\varphi: U_1\subseteq X \to V_1$ and $\psi: U_2 \subseteq Y \to V_2$, the composition $\psi \circ f\circ \varphi^{-1}: \varphi(U_1 \cap f^{-1}(U_2))\to \psi(f(U_1)\cap U_2)$ is differentiable at every point in its domain.
Now the word 'charts' here confuses me. Do we require the charts to be in the complex atlases of $X$ and $Y$? Or do we require the charts to be in the maximal atlases on $X$ and $Y$? Or do we just take arbitrary local homomorphisms $\varphi, \psi$ regardless of the atlases on $X$ and $Y$?
In the first case, will the definition of holomorphic maps depends on the specific atlases (not necessarily maximal) we impose on $X$ and $Y$?
It seems to me that the second case is somehow equivalent to the first one as we can simply write, for any charts $\varphi',\psi$ in the maximal atlases, $$\psi'\circ f\circ\varphi'^{-1}=(\psi'\circ\psi^{-1})\circ(\psi\circ f\circ\varphi^{-1})\circ(\varphi\circ\varphi'^{-1})$$ given some charts $\varphi, \psi$ in the given atlases. But I am not quite sure because even the same author may refer to different things when they mention the word 'chart' in different places. Thanks in advance.