Antiferromagnetism of RPtX (R = Ho, Er; X = Si, Ge) compounds