Pass the "noraise" flag to okular if it is used as a Latex viewer. If an okular instance is already displaying the Latex compilation result, subsequent invocations won't make okular steal focus from Emacs.