0

I'm using overleaf to write my paper.

There is an equation

$$\frac{L_{t_2}}{h_{t_1}}=\frac{L_{t_2}}{o_{t_2}}\frac{o_{t_2}}{h_{t_1}}$$

It shows normally.

But when I tried to write it as a multiple line equation following overleaf's guide

\begin{equation}
\begin{split}

\frac{L_{t_2}}{h_{t_1}}&=\frac{L_{t_2}}{o_{t_2}}\frac{o_{t_2}}{h_{t_1}}\ &= ...

\end{split} \end{equation}

I got an error. It shows missing $ inserted, misplaced alignment tab character & and other errors. What have I done wrong?

David Carlisle
  • 757,742

1 Answers1

1

no error messages after removing blank lines. But I don't use Overleaf.

\documentclass[a4paper, 12pt]{article}
\usepackage{mathrsfs, amsmath, amsfonts}
\begin{document}
    \begin{equation}
        \begin{split}
            \frac{L_{t_2}}{h_{t_1}}&=\frac{L_{t_2}}{o_{t_2}}\frac{o_{t_2}}{h_{t_1}}\\
            &= ...
        \end{split}
    \end{equation}
\end{document}

enter image description here

CrocoDuck
  • 3,875
  • 1
    Thank you very much! Never thought a blank line would affect the result so much. – user900476 Aug 01 '22 at 18:21
  • @user900476 If you really want a blank line, you can put a % somewhere in the otherwise blank line to have an almost blank line. – Teepeemm Aug 01 '22 at 19:01