Numerical schemes that preserve the structure of kinetic equations can provide stable simulation results over a long time. An electromagnetic particle-in-cell solver for Vlasov--Maxwell preserves at discrete level noncanonical Hamiltonian has been presented in [Kraus et al., J. Plasma Phys., 83 (2017)]. While original formulation obtained Cartesian coordinates, we extend to curvilinear coordina...