Re: [Veusz-discuss] Latex in Veusz

2011-10-29 Par sujet Jeremy Sanders

On 28/10/11 14:14, George wrote:
> Then I discovered Veusz and basically realized that this is what I
> was envisioning when I started working on my GUI. The only issue
> which I am having with it is that I cannot get the text (for example
> axes labels) to have true Latex look. I chose cmr10 font (which I
> assume means Computer Modern Roman, which is what Latex uses by
> default, However if I type \mu as a axis label, that \mu does not
> appear to be the same as in Latex. So I'm wondering whether I am
> doing something wrong, or whether the text rendering in Veusz is not
> really done by Latex, although the syntax is Latex-like? Is there
> currently any way to make the text in a Veusz plot to look exactly
> the same as the text in a Latex document?

Ben is correct that Veusz's text output just tries to emulate latex's 
syntax. It doesn't use latex, its layout algorithms or fonts.


Whether Veusz could do a better job is another matter, it could 
interpret $$ signs as equations, and italicise text within them and try 
to get the spacing a bit better.


Alternatively, perhaps it would be possible to use latex directly, like 
this http://pav.iki.fi/software/textext/  You'd need a latex system and 
some translation, however. I don't think it would be the default because 
of the dependencies (unless someone has a small embedded latex unless I 
am aware of).


An alternative may be to translate something like this to Qt:
http://www.mathjax.org/
It looks very similar to latex and may be close enough.

Jeremy

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


Re: [Veusz-discuss] Latex in Veusz

2011-10-28 Par sujet George

> 
> Hi George,
>It's as you've guessed: Veusz does not actually use LaTeX for
> typesetting, it only emulates the syntax. All of the text layout
> is done internally, and Qt provides the font rendering. If you want
> a true exact match for LaTeX text rendering, Veusz is not currently
> the tool for you. Veusz is more like Matlab with Interpreter='tex' than 
> with Interpreter='latex'.
> 
> Regards,


Hi Benjamin,

Thanks a lot for your reply. Even if it doesn't have that functionality Veusz is
still a really nice program and I will probably be using it for some purposes. I
was just thinking of suggesting that if it is in line with your future
development goals and is practically possible, it would be nice to implement
true Latex fonts in future releases. But even without it is a very nice tool!

Best wishes,
George


___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


Re: [Veusz-discuss] Latex in Veusz

2011-10-28 Par sujet Benjamin K. Stuhl

On 10/28/2011 7:14 AM, George wrote:
[snip]

Then I discovered Veusz and basically realized
that this is what I was envisioning when I
started working on my GUI. The only issue which
I am having with it is that I cannot get the
text (for example axes labels) to have true
Latex look. I chose cmr10 font (which I assume
means Computer Modern Roman, which is what
Latex uses by default, However if I type \mu
as a axis label, that \mu does not appear to
be the same as in Latex. So I'm wondering
whether I am doing something wrong, or whether
the text rendering in Veusz is not really done
by Latex, although the syntax is Latex-like?
Is there currently any way to make the text in
a Veusz plot to look exactly the same as the
text in a Latex document?


Hi George,
  It's as you've guessed: Veusz does not actually use LaTeX for
typesetting, it only emulates the syntax. All of the text layout
is done internally, and Qt provides the font rendering. If you want
a true exact match for LaTeX text rendering, Veusz is not currently
the tool for you. Veusz is more like Matlab with Interpreter='tex' than 
with Interpreter='latex'.


Regards,
-- BKS


___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


[Veusz-discuss] Latex in Veusz

2011-10-28 Par sujet George
Hello,

First, thanks a lot to all the people involved
in the development of Veusz! I just discovered 
it recently and it looks like a really amazing
program.

I used to use Matlab a lot back in the days, 
however its prohibitively high price put an
end to that. Some time ago I switched to 
python, numpy and matplotlib which produces
amazing plots however I got tired of editing
python scripts all the time, so I started 
writing a GUI for matplotlib (well for a very
small subset of what matplotlib can do). On
of the main motivation for me to use matplotlib
is that you can use Latex for the text 
rendering, which means that once you have
the plots ready, the fonts used in them look
exactly the same way as the main text in the
Latex document they are in.

Then I discovered Veusz and basically realized
that this is what I was envisioning when I 
started working on my GUI. The only issue which
I am having with it is that I cannot get the
text (for example axes labels) to have true
Latex look. I chose cmr10 font (which I assume
means Computer Modern Roman, which is what 
Latex uses by default, However if I type \mu 
as a axis label, that \mu does not appear to
be the same as in Latex. So I'm wondering 
whether I am doing something wrong, or whether
the text rendering in Veusz is not really done
by Latex, although the syntax is Latex-like? 
Is there currently any way to make the text in
a Veusz plot to look exactly the same as the
text in a Latex document?

Thanks a lot in advance and congratulations
once again for the program you've written.

Regards,
George


___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss