Process for preparing para-quinone and ortho-quinone derivatives