> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://authorea.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Can I write a LaTeX equation over multiple lines? Using the multiline, aligned packages.

Sometimes a long equation needs to be broken over multiple lines, especially if using a double column export style. 

For example, this equation would most likely span over two columns:

```
\begin{equation}
F = \{F_{x} \in  F_{c} : (|S| > |C|) \cap 
(minPixels  < |S| < maxPixels) \cap 
(|S_{conected}| > |S| - \epsilon) 
  \}
\end{equation}
```

To achieve correct break and alignment of the above equation try the code below. (Note: new lines (\\) do not work in equation environments.)


```
\begin{equation}
\begin{aligned}
F ={} & \{F_{x} \in  F_{c} : (|S| > |C|) \\
      & \cap (\mathrm{minPixels}  < |S| < \mathrm{maxPixels}) \\
      & \cap (|S_{\mathrm{conected}}| > |S| - \epsilon)\}
\end{aligned}
\end{equation}
```
will produce:

![](https://storage.crisp.chat/users/helpdesk/website/d38f777e-0276-4c52-8a15-b5855ac4903c/d1bc592a-5a4a-4c57-a805-bdc745d901f4.png)

### Further reading
[More LaTeX equation examples (fork it!)](https://www.authorea.com/users/3/articles/165181-latex-mathematics-examples)
[LaTeX cheatsheet](https://www.authorea.com/users/77723/articles/110898-how-to-write-mathematical-equations-expressions-and-symbols-with-latex)