isteinbrecher / latex2ai

LaTeX Plugin for Adobe Illustrator
MIT License
147 stars 5 forks source link

Can't make a new line #120

Closed tandeitnik closed 1 year ago

tandeitnik commented 1 year ago

I'm trying to make a multiline text. I tried using double dash \, \newline, and shift+enter, but these commands are just ignored. Is it possible to make multiline texts with Latex2Ai?

isteinbrecher commented 1 year ago

Under the hood LaTeX2AI creates every item in a TikZ picture, which restricts line breaks. There are many possible solutions for this, the first one that comes to my mind is to use a minipage environment:

\begin{minipage}{2cm}
First line \\
Second line
\end{minipage}
tandeitnik commented 1 year ago

It worked, thank you very much! And wow, the response was lightning fast! I really appreciate your plugin!