|
From: | Catalin Codreanu |
Subject: | Re: Google Summer of Code - LaTeX processing |
Date: | Fri, 7 Jun 2013 09:43:06 +0200 |
On Jun 6, 2013, at 11:13 PM, Patrick Noffke wrote:
On Wed, Jun 5, 2013 at 2:57 PM, Andrej Lojdl <address@hidden> wrote:
Today I had more time, so I started reading the code and thinking how to
control multiline high as Michael proposed. There are some things bugging
me... I understand that height is expressed in font size and that 64 is some
scaling factor between font size and size of character on screen. And that
we save line high in font size (it is expressed in font size). But I don't
understand how to add this scaling factor? Can someone give me a hint or
example? When make plot and add title typing title (" text \n text \n text
\n"), it makes two lines and then, just pack all new lines to second. If I
get it, this is what needs to be repaired. Is function called once for every
line or for whole string?
I was just playing around, and I think the problem is more than with
multi-line text.
figure;plot(x,y);title(sprintf('Line 1\nLine 2\nLine 3'), 'FontSize', 24)
- The lines are drawn somewhat on top of one another.
figure;plot(x,y);title(sprintf('Line 1\nLine 2\nLine 3'), 'FontSize', 10)
Pardon the intrusion, I've been trying to follow along.
I'm not sure what you mean by "somewhat on top of one another". I tried ...
title ("Line 1\nLine 2\nLine 3", "FontSize", 20)
and
title ({"Line 1", "Line 2", "Line 3"}, "FontSize", 20)Both give the result attached, which looks correct to me.
Ben
TitleOverlap.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |