%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  2. Auflage
%% 
%%  Beispiel 15-05-18 auf Seite 822.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\parindent=0pt
%StartShownPreambleCommands
\usepackage{chemmacros}
\usepackage{chemfig}\usepackage{modiagram}
%StopShownPreambleCommands
\begin{document}
\begin{MOdiagram}[labels,names,style=square]
\atom[\ch{N}]{left}{2p={0;up,up,up}}
\atom[\ch{O}]{right}{2p={2;pair,up,up}}
\molecule[\ch{NO}]{2pMO={1.8,.4;pair,pair,pair,up},color={2piy*=red}}
\end{MOdiagram}
\end{document}
