# Add newline to LaTeXString equation

**URL:** <https://discourse.julialang.org/t/add-newline-to-latexstring-equation/95104>\
**Category:** Visualization\
**Tags:** latex, latexstrings\
**Created:** [February 23, 2023, 8:31pm UTC](https://discourse.julialang.org/t/add-newline-to-latexstring-equation/95104 "2023-02-23T20:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [February 28, 2023, 4:42pm UTC](https://discourse.julialang.org/t/add-newline-to-latexstring-equation/95104/9 "2023-02-28T16:42:53Z")

</div>

> [@jd-foster](#):
>
> Note the balancing of `\left(` with `\right.` and vice versa on the second.

The downside to this approach is that the last `\right)` does not realize it should be the same size as the first `\left(`, but I am tempted to call this good enough.

```julia
s = L"""
    $\Delta\epsilon_{peqk} = \frac{\sqrt{2}}{3} \cdot \left[ \left( \Delta\epsilon_{p11k} - \Delta\epsilon_{p22k} \right)^{2} + \left( \Delta\epsilon_{p22k} - \Delta\epsilon_{p33k} \right)^{2} + \left( \Delta\epsilon_{p33k} - \Delta\epsilon_{p11k} \right)^{2} \right.$
    $\vdots$
    $+ \left. 1.5 \cdot \left( \Delta\epsilon_{p12k}^{2} + \Delta\epsilon_{p23k}^{2} + \Delta\epsilon_{p31k}^{2} \right) \right]^{0.5}$
    """
render(s)

```

![image](https://global.discourse-cdn.com/julialang/original/3X/1/2/122a343cc7ddc3d29ef30721510cf8ae844fbb7e.png)

---

_[View the full topic](https://discourse.julialang.org/t/add-newline-to-latexstring-equation/95104)._
