2

I need to draw a contour around part of modiagram in beamer for next slide like in the picture:

enter image description here

\documentclass{beamer}
\usepackage[version=3]{mhchem}
\usepackage{modiagram}

\begin{document}

\begin{frame}
    \MOsetup{
        style=square, 
        labels,
        names,
        AO-width=8pt,
        labels-fs=\footnotesize,
        labels-style={blue}
    }
    \begin{overprint}
        %============================== B2 ======================
        \onslide<1>
        \begin{columns}[T]
            \begin{column}{.45\linewidth}
                \scalebox{0.7}{
                    \begin{MOdiagram}
                        \atom[\ce{a}]{left}{
                            1s  = {;pair}, 
                            2s  = {;pair}, 
                            2p = {;up}
                        }
                        \atom[\ce{b}]{right}{
                            1s  = {;pair}, 
                            2s  = {;pair}, 
                            2p = {;up}
                        }
                        \molecule[\ce{B2}]{
                            1sMO = {;pair,pair}, 
                            2sMO = {;pair,pair}, 
                            2pMO = {0.9/2,1.7/1;,up,up},
                            color = { 1sigma*=red, 2sigma*=red }
                        }
                        \EnergyAxis
                    \end{MOdiagram}
                }
            \end{column}
            \begin{column}{.5\linewidth}
                \vspace*{8em}
                Paramagnetic
            \end{column}
        \end{columns}
    \end{overprint}
\end{frame}


\end{document}
2

You could use tikz, overlaying an arrow box:

\documentclass{beamer}
\usepackage[version=3]{mhchem}
\usepackage{modiagram}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows}

\begin{document}
\begin{frame}
    \MOsetup{
        style=square, 
        labels,
        names,
        AO-width=8pt,
        labels-fs=\footnotesize,
        labels-style={blue}
    }
    \begin{overprint}
        %============================== B2 ======================
        \onslide<1>
        \begin{columns}[T]
            \begin{column}{.45\linewidth}
                \scalebox{0.7}{
                    \begin{MOdiagram}
                        \atom[\ce{a}]{left}{
                            1s  = {;pair}, 
                            2s  = {;pair}, 
                            2p = {;up}
                        }
                        \atom[\ce{b}]{right}{
                            1s  = {;pair}, 
                            2s  = {;pair}, 
                            2p = {;up}
                        }
                        \molecule[\ce{B2}]{
                            1sMO = {;pair,pair}, 
                            2sMO = {;pair,pair}, 
                            2pMO = {0.9/2,1.7/1;,up,up},
                            color = { 1sigma*=red, 2sigma*=red }
                        }
                        \EnergyAxis
                    \end{MOdiagram}
                }
            \end{column}
            \begin{column}{.5\linewidth}
                \vspace*{19.2ex}
                Paramagnetic
            \end{column}
        \end{columns}
        \begin{tikzpicture}[overlay]
              \node[arrow box, draw, red, arrow box arrows={east:1.9cm},
              text width=2.4em, minimum height=3.4ex]
              at (2.84,3.4) {};
        \end{tikzpicture}
    \end{overprint}
\end{frame}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.