Comment 8 for bug 771959

Revision history for this message
Michael Jäntsch (michael-jaentsch) wrote : Re: [Bug 771959] Re: eps+latex/pdf+latex export (v0.48): newline characters in svg not followed in LaTeX

Hi,

I am not exactly sure anymore. This has been 5 years go. I explored the
possibilites back then. And I believe it had to do with where the anchor
for the text ends up. It is supposed to be on the baseline of the first
line in my opinion. The solution I posted worked for multiline text with
any alignment. This is what worked best for me. Hope this helps.

Michael

On 01/24/2017 03:23 PM, Tetsuya Suga wrote:
> Thank you for pushing this up to the next milestone release.
>
> @Michael - I have a question. I noticed that your patch posted on 2012-04-10 has an interesting behavior.
> If I type
> ====
> Line1
> Line2
> Line3
> ===
> in a text element in inkscape, the exported code looks like
> \shortstack[c]{\smash{Line1}\\Line2\\Line3}}
> Why only the first line ('Line1') is wrapped by \smash ?
> Do you have any intention to wrap only the first line?
>
> Thank you in advance.
>