Using TeX notation in xlabel makes the title of the figure change to Greek font

Ben Abbott bpabbott at mac.com
Mon Sep 22 06:13:21 CDT 2008


On Sep 22, 2008, at 4:47 AM, David Bateman wrote:

> Alexander Mamonov wrote:
>> --------
>> Bug report for Octave 3.0.2 configured for i486-pc-linux-gnu
>>
>> Description:
>> -----------
>>
>> The problem can be recreated by
>>
>>
>>> figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a \in  
>>> [0,1]');
>>>
>>
>> Upon execution of the above command line the title of the figure is
>> displayed in
>> Greek letters - capital alpha for A, beta for B, xi for C, delta  
>> for D
>> and so on.
>> The TeX symbol of set inclusion '\in' in the xlabel is displayed  
>> correctly.
>> If the TeX symbol '\in' is removed from the argument of xlabel, i.e.
>>
>>
>>> figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a  
>>> [0,1]');
>>>
>
> Weird... I can't duplicate this with 3.0.2+ or 3.1.51+ (Sorry I don't
> have 3.0.2 to check) and so I suspect that either its already been  
> fixed
> (though I don't see a patch addressing this) or its some particular
> issue with your installation. Try the command
>
> figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a \in  
> [0,1]');
> drawnow ("x11", "/dev/null", false, "debug.gp")
>
> This will create a file debug.gp with the commands that Octave sends  
> to
> gnuplot. You can then do "load debug.gp" in gnuplot to get the same
> result. It might be easier to debug your issue using this file than
> modifying Octave itself. In any case maybe you could send the file  
> here
> for info.
>
> Regards
> David

Presently I have 3.0.1, 3.0.2, and 3.1.51 (current as of Saturday) all  
running, so I can try all three out.

The titles are all correct, but the "\in" in xlabel produces a  
"therefore symbol" similar to AMS's "\therefore" but with small  
circles replacing the dots, and is followed by "316". The remainder is  
correct.

I'm on Mac OSX 10.5.5, and am using the aquaterm. When I use x11  
instead all looks as it should.

Ben







More information about the Bug-octave mailing list