stefano-meschiari / latex2exp

Use LaTeX in R graphics.
Other
188 stars 10 forks source link

break line #10

Closed dax44 closed 6 years ago

dax44 commented 6 years ago

How to do break in line? For example I want to get: This is first line of plot title and this is the next

stefano-meschiari commented 6 years ago

You can use \n to break the line. E.g.

TeX("This is first line of plot title\nand this is the next")
dax44 commented 6 years ago

Yes but if I use LaTeX frase like TeX("This is first line of plot title $a^3\\sin(x)$ \n and this is the next") it didn't work :(