Multiple lines one side of big curly bracket in live editor latex equation

28 views (last 30 days)
Hi, I need to write an equation, via the latex equation option in an interactive-mode script, with a big curly bracket on the left hand side and multiple lines beside it. How can I do it? The latex equation editor does not recognise \begin{..}, nor the alignment or line break signs.
Thanks!

Answers (1)

Cris LaPierre
Cris LaPierre on 29 Dec 2021
MATLAB does not support all LaTeX libraries. I therefore find it easiest to create LaTeX expressions interactively in a live script using the interactive equation editor. On the INSERT tab, click Equation. This opens the EQUATION tab, from which you can select elements to add to you equation.
Once complete, if I need the LaTeX I can right click on the equation and select "Copy as LaTeX".
Note there are options at the bottom of the menu to adjust the number of colums and rows (starts with a 2x2 grid).
Here is the copied LaTeX expression:
$\left\lbrace \begin{array}{l}
\mathrm{Line}\;1\;\mathrm{here}\\
\mathrm{Line}\;2\;\mathrm{here}\\
\mathrm{Line}\;3\;\mathrm{here}
\end{array}\right.$
I created this using the 'Cases' structure.

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!