Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-25 Thread Aditya Mahajan
On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: \unexpanded\def\cal{\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}} Can this line above be copied and pasted in to my personal module file? For the time being, you should add this to your personal configuration.

[NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
Hi All! I'm in beginning to write a thesis in physics(undergraduate level) and one of many things I wanna do is, cause I create much illustrations in DIA http://www.gnome.org/projects/dia/ and the program can export to figure.mp, to include these in my document. I've read the instructions on

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan
On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: Hi All! I'm in beginning to write a thesis in physics(undergraduate level) and one of many things I wanna do is, cause I create much illustrations in DIA http://www.gnome.org/projects/dia/ and the program can export to figure.mp, to include these in

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Peter Rolf
Hi Jan-Erik, Jan-Erik Hägglöf schrieb: Hi All! I'm in beginning to write a thesis in physics(undergraduate level) and one of many things I wanna do is, cause I create much illustrations in DIA http://www.gnome.org/projects/dia/ and the program can export to figure.mp, to include these

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
mån 2008-11-24 klockan 09:08 -0500 skrev Aditya Mahajan: On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: Hi All! I'm in beginning to write a thesis in physics(undergraduate level) and one of many things I wanna do is, cause I create much illustrations in DIA

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan
On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: Thanks to all answers. I got it work, though a minor problem left, it seems that calligraphy is not working. line 108 draw btex { $ \vec{\cal B }$} etex. see the new attached file. If you are using MKII (running context using texexec

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
mån 2008-11-24 klockan 10:40 -0500 skrev Aditya Mahajan: On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: Thanks to all answers. I got it work, though a minor problem left, it seems that calligraphy is not working. line 108 draw btex { $ \vec{\cal B }$} etex. see the new attached

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan
On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: I tried to do some fontsettings, maybe it was the wrong way setting up things. You can see in the updated file. This is not your fault. There is a bug in MKIV definition of \cal. Test example: \starttext \startMPcode draw \sometxt{$\cal B$} ;

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
It worked! Thanks a lot! mån 2008-11-24 klockan 16:23 -0500 skrev Aditya Mahajan: On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote: I tried to do some fontsettings, maybe it was the wrong way setting up things. You can see in the updated file. This is not your fault. There is a bug in MKIV

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Taco Hoekwater
Aditya Mahajan wrote: Hans, Taco: Is it OK to add \unexpanded in the definition of cal \unexpanded\def\cal{\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}} I think so. It makes sense to have \unexpanded before every macro that executes an unexpandable primitive