Re: [NTG-context] change numeral to string in Metafun
Dear Wolfgang, It is nicely working. Thank you for your help. best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom metaobj object in context
On 13.07.2010 21:03, Hans Hagen wrote: On 13-7-2010 6:01, Stefan Müller wrote: Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm...@#= assignObj(@#,Segment); ObjPoint a,b; ObjCode @#...@#a=(1cm,2cm); enddef; \stopuseMPgraphic When processing this with context (MkIV) I get ! Illegal parameter number in definition of \...@mpg@objecttest. to be read again = argument vardef newsegm...@##= assignObj(@##,Segment); ObjPoint a,b; Ob... \dostartuseMPgraphic ...leuseMPgraphic {#1}{#2}{#3 }} l.7 \stopuseMPgraphic My first wild guess is that it has something to do with the evil @-symbol. But even if this is the case I don't know what to do to fix this. Any help appreciated and thank you very much in advance. no, more with # being special to tex's parser \string# or \# will probably do Thank you Hans for the fast answer. Adding \string in front of every # led to basically the same error message (only difference: @\sting ## instead of @##). When using \# instead of # in the vardef the small example from above works (even with \placefigure added). But there is still a problem: \starttext \startuseMPgraphic{objecttest} vardef newsegm...@\#= assignObj(@\#,Segment); ObjPoint a,b; ObjCode @\...@\#a=(1cm,2cm); enddef; newSegment.s; % create an instance \stopuseMPgraphic \placefigure[here][fig:objecttest]{My object}{\useMPgraphic{objecttest}} \stoptext now produces the metapost error ! Isolated expression. to be read again ( newSegment-begingroup.assignObj( (SUFFIX2),Segment);ObjPoint.a,b;ObjCode@... to be read again ; * ... @#...@#a=(1cm,2cm); enddef; newSegment.s; Without \placefigure there is no error at all. (Maybe then metapost doesn't even run?) And I again have no clue what's going on. Thanks for your help in advance. Stefan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Return value of context call
On 5-7-2010 9:41, Taco Hoekwater wrote: On 07/04/2010 07:39 PM, Marco wrote: Hi, when there's a mistake in the context code then the context call returns »1«. When there's a mistake in the metapost code then the context call returns »0«. This is annoying for me, since I use the return value as indicator for my pdf reader to refresh. This seems like a bug to me. Is there a workaround? Like this maybe, this converts metapost errors into a series of tex errors: \startluacode function report_mplib_error (...) local v = string.format(...) tex.sprint(tex.ctxcatcodes,\\errmessage{) tex.sprint(tex.vrbcatcodes,v) tex.print(tex.ctxcatcodes,}) end i added something like this as option \enabledirectives[mplib.texerrors] \startMPcode draww fullcircle ; \stopMPcode this then can be set in texmfcnf.lua in the directives table mplib.texerrors = yes, no beta yet - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Return value of context call
On Wed, 14 Jul 2010 14:40:34 +0200, Hans Hagen pra...@wxs.nl wrote: i added something like this as option \enabledirectives[mplib.texerrors] \startMPcode draww fullcircle ; \stopMPcode this then can be set in texmfcnf.lua in the directives table mplib.texerrors = yes, Thanks a lot!! Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \AR in Tables
Dear gang, In Tables: \NR, \SR, \FR, \MR, \LR those I understand. But what does \AR do? When is it used? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \AR in Tables
On Wed, Jul 14, 2010 at 11:23:54AM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, In Tables: \NR, \SR, \FR, \MR, \LR those I understand. But what does \AR do? When is it used? Automatic Row? it guesses the appropriate new row command for you? -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \AR in Tables
On Wed, 14 Jul 2010 11:28:32 -0600, Khaled Hosny khaledho...@eglug.org wrote: Automatic Row? it guesses the appropriate new row command for you? Yep, http://tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf talks about \AR so I'll study that... seems that \AR does some intelligent guessing, and the \S|F|M|LR are there in case \AR guesses wrong... Thanks, Khaled, and سلام Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] imbalanced columns
Dear fellow gangsters, MkIV: \starttext \starttables[|c|c|c|c|c|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext In row 2, the space between columns 2-3, and 3-4 are not even. Is this a bug? If not, how do I balance them? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] imbalanced columns
pdf attached Best wishes On Wed, 14 Jul 2010 12:42:29 -0600, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear fellow gangsters, MkIV: \starttext \starttables[|c|c|c|c|c|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext In row 2, the space between columns 2-3, and 3-4 are not even. Is this a bug? If not, how do I balance them? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 asbaa3.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] imbalanced columns
Am 14.07.2010 20:42, schrieb Idris Samawi Hamid ادريس سماوي حامد: Dear fellow gangsters, MkIV: \starttext \starttables[|c|c|c|c|c|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext In row 2, the space between columns 2-3, and 3-4 are not even. Is this a bug? If not, how do I balance them? probably just automatic width balancing. Best wishes Idris maybe like this... \starttext \setbox\scratchbox\hbox{Al-Yaʿqūbī (d.~283{\sc ah})} \newdimen\colA \colA\wd\scratchbox \advance\colA-2em % sub column offsets \setbox\scratchbox\hbox{Al-Munādī (d.~334{\sc ah})} \newdimen\colB \colB\wd\scratchbox \advance\colB-2em \starttables[|c|cp(.5\colA)|cp(.5\colA)|cp(.5\colB)|cp(.5\colB)|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext Best wishes, Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Wrong Pi and Gamma with XITS
I get double struck instead of regular ones. \setupbodyfont[xits] \starttext $\mathit{Γ\quadΠ}$ \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Wrong upright Greek instead of Italic
This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Wed, 14 Jul 2010, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext What happens if you key in the actual unicode values (sorry no ConTeXt right now)? Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong Pi and Gamma with XITS
On Wed, 14 Jul 2010, Khaled Hosny wrote: I get double struck instead of regular ones. \setupbodyfont[xits] \starttext $\mathit{Γ\quadΠ}$ \stoptext This was fixed a while back. Not sure if Hans released a beta after that. IIRC, in math-map.lua table.merge needs to be changed to table.merged (or vice versa?) Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext What happens if you key in the actual unicode values (sorry no ConTeXt right now)? I get the correct style as typed. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong Pi and Gamma with XITS
On Wed, Jul 14, 2010 at 05:18:07PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: I get double struck instead of regular ones. \setupbodyfont[xits] \starttext $\mathit{Γ\quadΠ}$ \stoptext This was fixed a while back. Not sure if Hans released a beta after that. IIRC, in math-map.lua table.merge needs to be changed to table.merged (or vice versa?) Sorry, I should have mentioned that I'm testing against texlive-2010 pretest. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong Pi and Gamma with XITS
On Thu, 15 Jul 2010, Khaled Hosny wrote: On Wed, Jul 14, 2010 at 05:18:07PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: I get double struck instead of regular ones. \setupbodyfont[xits] \starttext $\mathit{Γ\quadΠ}$ \stoptext This was fixed a while back. Not sure if Hans released a beta after that. IIRC, in math-map.lua table.merge needs to be changed to table.merged (or vice versa?) Sorry, I should have mentioned that I'm testing against texlive-2010 pretest. This bug was fixed two weeks back, and as such is not fixed in TL. @Taco: Does it deserve a hotfix in TL? It is just a change of two lines. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Thu, 15 Jul 2010, Khaled Hosny wrote: On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext What happens if you key in the actual unicode values (sorry no ConTeXt right now)? I get the correct style as typed. Then this is a bug in the mappings (and I assume that Cambria also does not work). I will test later. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] imbalanced columns
Hi Peter, On Wed, 14 Jul 2010 14:26:10 -0600, Peter Rolf indi...@gmx.net wrote: Am 14.07.2010 20:42, schrieb Idris Samawi Hamid ادريس سماوي حامد: Dear fellow gangsters, MkIV: \starttext \starttables[|c|c|c|c|c|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext In row 2, the space between columns 2-3, and 3-4 are not even. Is this a bug? If not, how do I balance them? probably just automatic width balancing. I'm sure you are right :-) The question is, what is the logic here? If this is correct behavior, I'd like to understand why. Can someone explain it? maybe like this... That's a great workaround, and I appreciate it. But what about new users? There has got to be a more elegant solution to this seemingly simple table. Row two just does not look right... \starttext \setbox\scratchbox\hbox{Al-Yaʿqūbī (d.~283{\sc ah})} \newdimen\colA \colA\wd\scratchbox \advance\colA-2em % sub column offsets \setbox\scratchbox\hbox{Al-Munādī (d.~334{\sc ah})} \newdimen\colB \colB\wd\scratchbox \advance\colB-2em \starttables[|c|cp(.5\colA)|cp(.5\colA)|cp(.5\colB)|cp(.5\colB)|] \HL \VL Sevens \VL \Use{2}[c]{Al-Yaʿqūbī} (d.~283{\sc ah})\VL \Use{2}[c]{Al-Munādī} (d.~334{\sc ah}) \VL\AR \HL \VL\VL ʿAlī \VL Zayd \VL ʿAlī \VL Zayd \VL\AR \HL \stoptables \stoptext Thanks again, Peter, and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Wed, Jul 14, 2010 at 05:42:30PM -0400, Aditya Mahajan wrote: On Thu, 15 Jul 2010, Khaled Hosny wrote: On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext What happens if you key in the actual unicode values (sorry no ConTeXt right now)? I get the correct style as typed. Then this is a bug in the mappings (and I assume that Cambria also does not work). I will test later. Or even LM, all give me upright instead of italic. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
Hi Khaled, Do you use \setupmathematics[ucgreek=italic] at the top of your file? Here I do get italic Greek letters if I add the above command to your example. Best regards: OK On 14 juil. 2010, at 16:33, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Thu, Jul 15, 2010 at 12:42:53AM -0400, Otared Kavian wrote: Hi Khaled, Do you use \setupmathematics[ucgreek=italic] at the top of your file? Here I do get italic Greek letters if I add the above command to your example. But then \mathrm will be italic too, since I'm explicitely selecting the style, the setup should make no difference, which is indeed the case with Latin. Best regards: OK On 14 juil. 2010, at 16:33, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Wed, Jul 14, 2010 at 5:42 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 15 Jul 2010, Khaled Hosny wrote: On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote: On Wed, 14 Jul 2010, Khaled Hosny wrote: This gives me upright Greek, but I was expecting italic: \setupbodyfont[xits] \starttext $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$ \stoptext What happens if you key in the actual unicode values (sorry no ConTeXt right now)? I get the correct style as typed. Then this is a bug in the mappings (and I assume that Cambria also does not work). I will test later. Currently, \mathit does not set the attributes for greek. The italic attributes for greek are set by \mathgreekitalic and \mathgreekupright (but see below). \mathit can also set \mathgreekitalic. But I am not sure if it should. However, there is a bug in \mathgreekupright and \mathgreekialic: they set the wrong numerical values for attributes. The correct definitions are: \unexpanded\def\mathgreekupright{\attribute\mathgreekattribute22 } \unexpanded\def\mathgreekitalic {\attribute\mathgreekattribute33 } and then you can use \mathgreekitalic and \mathgreekitalic\bf instead of \mathit and \mathbi. @Hans, can you correct these definitions in math-ini.mkiv. BTW, I did not know that you could use \setupbodyfont without the \usetypescript line. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong upright Greek instead of Italic
On Thu, Jul 15, 2010 at 01:08:41AM -0400, Aditya Mahajan wrote: BTW, I did not know that you could use \setupbodyfont without the \ usetypescript line. I learnt it by accident, looks like some mkiv goody or something. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom metaobj object in context
On Wed, Jul 14, 2010 at 7:16 AM, Stefan Müller warrence@gmx.de wrote: On 13.07.2010 21:03, Hans Hagen wrote: On 13-7-2010 6:01, Stefan Müller wrote: Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm...@#= assignObj(@#,Segment); ObjPoint a,b; ObjCode @#...@#a=(1cm,2cm); enddef; \stopuseMPgraphic Can you post a complete metapost file that gives some output.I tried the following mp file: input metaobj; vardef newsegm...@#= assignObj(@#,Segment); ObjPoint a,b; ObjCode @#...@#a=(1cm,2cm); enddef; beginfig(1) ; newSegment.s; % create an instance endfig ; end; but running it through metapost gives me an empty file: %!PS %%BoundingBox: 0 0 0 0 %%HiResBoundingBox: 0 0 0 0 %%Creator: MetaPost 1.208 %%CreationDate: 2010.07.15:0119 %%Pages: 1 %%BeginProlog %%EndProlog %%Page: 1 1 showpage %%EOF Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___