Math & Sciencebeamer | Equation Alignment with Bullet Point in between

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
olegkomarov
Posts: 10
Joined: Tue Jul 26, 2011 4:24 am

beamer | Equation Alignment with Bullet Point in between

Post by olegkomarov »

I'd like to align the two equations in a certain way and keep the bullet point in between, is it possible?
The MWE shows my current situation and what type of alignment I am lookign for.

Thanks in advance.

Code: Select all

\documentclass[serif,9pt]{beamer}
\begin{document}
\begin{frame}{Example}
    \begin{itemize}
        \item First model
            \[
                \text{CAPM:}\quad \ln (RV_{t,T}/SW_{t,T}) = \alpha + \beta_j ER^m_{t,T} + e
            \]
        \item Second model
            \[
                \text{3-mom. CAPM:}\quad \ln (RV_{t,T}/SW_{t,T}) = \alpha + \beta_j ER^m_{t,T} + \gamma(R_m-\overline{R}^m) + e
            \]
    \end{itemize}
Is it possible to get the following alignment but keeping the bullet point in between?
    \[
    \begin{array}{rl}
        \text{CAPM:}\quad        & \ln (RV_{t,T}/SW_{t,T}) = \alpha + \beta_j ER^m_{t,T} + e\\
        \text{3-mom. CAPM:}\quad & \ln (RV_{t,T}/SW_{t,T}) = \alpha + \beta_j ER^m_{t,T} + \gamma(R_m-\overline{R}^m) + e
    \end{array}    
    \]
\end{frame}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Equation Alignment with Bullet Point in between

Post by Stefan Kottwitz »

You could use an align* environment of amsmath, and add an itemize environment with \intertext:

Code: Select all

\documentclass[serif,9pt]{beamer}
\begin{document}
\begin{frame}{Example}
    \begin{itemize}
        \item First model
    \end{itemize}
    \begin{align*}
                \text{CAPM:}\quad &\ln (RV_{t,T}/SW_{t,T})
                    = \alpha + \beta_j ER^m_{t,T} + e \\
        \intertext{
            \begin{itemize}
                \item Second model
            \end{itemize}
        }
                \text{3-mom. CAPM:}\quad &\ln (RV_{t,T}/SW_{t,T}) = \alpha +
                    \beta_j ER^m_{t,T} + \gamma(R_m-\overline{R}^m) + e
    \end{align*}
\end{frame}
\end{document}
slide.png
slide.png (10.94 KiB) Viewed 6063 times
Stefan
LaTeX.org admin
olegkomarov
Posts: 10
Joined: Tue Jul 26, 2011 4:24 am

Re: beamer | Equation Alignment with Bullet Point in between

Post by olegkomarov »

Thanks Stefan.
Post Reply