[NTG-context] problem with publication lists in mkiv
Hi all, since a few betas ago, I'm experiencing the problem that some commands add unwanted vertical space in mkiv. I think this is the case with \writetolist, but I need to prepare an example for that. I have prepared an example for publication lists: the following code produces the expected output in mkii. In mkiv, it adds vertical space for every item that is added to the bibliography. Maybe some unescaped line-endings somewhere in the code? All best Thomas \startpublication[k=intertestualita,t=book, a={intertestualita},y=1995, n=2552,s=int95] \pubyear{1995} \title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26 novembre 1994} \city{Amsterdam} \pubname{Hakkert} \stoppublication \startpublication[k=gibsonlearning,t=article, a={gibsonlearning},y=2004, n=991,s=gib04] \pubyear{2004} \arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the Treatises on Progymnasmata} \journal{Classical Philology} \volume{99} \pages{103--129} \stoppublication \startpublication[k=ackrillaristotle,t=book, a={{Ackrill}},y=1981, n=305,s=Ack81] \author[]{J.~L.}[J.~L.]{}{Ackrill} \pubyear{1981} \title{Aristotle the Philosopher} \city{Oxford} \pubname{Oxford UP} \stoppublication \setuppublications[state=start] \starttext \section{Edited Volumes} test test test test test test test test test test test test test test \nocite[intertestualita,gibsonlearning,ackrillaristotle] \placepublications[criterium=cite] \stoptext ___ 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 14-7-2010 11:22, Khaled Hosny wrote: Sorry, I should have mentioned that I'm testing against texlive-2010 pretest. Already months ago texlive 2010 was frozen and therefore the context on it is one of a few month ago. I get the impression that other tex macro packages keep updating but we keep frozen. After all, it's a snapshot and users can update any time. We could of course push a recent version but the luatex binary used on tl is not the latest and we don't want to enter testing new cache code in tl 2010 now. So .. do no use the tl 2010 version as benchmark (esp not for things that evolve due to fixes in the engine, improved insight, more benchmark fonts, etc). Hans - 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] Wrong upright Greek instead of Italic
On 15-7-2010 7:08, Aditya Mahajan wrote: @Hans, can you correct these definitions in math-ini.mkiv. BTW, I did not know that you could use \setupbodyfont without the \usetypescript line. I added that a while ago for mkiv, where it's doable as we don't have to specify font encodings (\settrue\autotypescripts is default). Actually, it will also try to load type-askedname when no match is found, so you can make type-mycombi.tex with a mycombi typescript and then \setupbodyfont[mycombi]. Hans - 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] Wrong Pi and Gamma with XITS
On Thu, Jul 15, 2010 at 09:25:47AM +0200, Hans Hagen wrote: On 14-7-2010 11:22, Khaled Hosny wrote: Sorry, I should have mentioned that I'm testing against texlive-2010 pretest. Already months ago texlive 2010 was frozen and therefore the context on it is one of a few month ago. I get the impression that other tex macro packages keep updating but we keep frozen. After all, it's a snapshot and users can update any time. We could of course push a recent version but the luatex binary used on tl is not the latest and we don't want to enter testing new cache code in tl 2010 now. AFAIK, texlive 2010 freeze will start from tomorrow, so it was not frozen before. -- 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] imbalanced columns
Am 15.07.2010 02:35, schrieb Idris Samawi Hamid ادريس سماوي حامد: 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? has to do with the way the column width is calculated. the combined entries (2+3,4+5) in row one can only influence (increase) the total width of the involved columns, but they can not give an answer to the question how wide the single columns should be. in the end you need a linear system of equations (and metapost) to solve this. and there is also no guarantee that it is solvable in all (more complex) cases. col2=col3; col4=col5; col2+col3= ; col4+col5= ; also: i can't imagine how a user interface for this should look like. :) 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... true, but this is font related. you can see this by using \ruledhbox{ʿAlī}. you have to add some manual kerning (\kern-0.??em ...) then. \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 ___ 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] require(module.so) on cygwin
Hello, How can I load a lua-lib in cygwin? Example: file test.tex: \startluacode package.cpath = ?.so require(testmod) \stopluacode \starttext bla \stoptext file testmod.c: #include lua.h #include lauxlib.h static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1) * 100; lua_pushnumber(L, n); return 1; } static const struct luaL_Reg mylib[] = {{test100, l_test}, {NULL, NULL}}; int luaopen_testmod(lua_State *L) { luaL_register(L, testmod, mylib); return 1; } file testmod.so generated under cygwin with: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a The problem: context test hanges after language en is active. TIA for any help! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] require(module.so) on cygwin
On Thu, Jul 15, 2010 at 10:49 AM, Peter Münster pmli...@free.fr wrote: Hello, How can I load a lua-lib in cygwin? Example: file test.tex: \startluacode package.cpath = ?.so require(testmod) \stopluacode \starttext bla \stoptext file testmod.c: #include lua.h #include lauxlib.h static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1) * 100; lua_pushnumber(L, n); return 1; } static const struct luaL_Reg mylib[] = {{test100, l_test}, {NULL, NULL}}; int luaopen_testmod(lua_State *L) { luaL_register(L, testmod, mylib); return 1; } file testmod.so generated under cygwin with: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a The problem: context test hanges after language en is active. TIA for any help! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___ I dont't have the answer , but what is the message ? 1) Why don't you use mingw (luatex is compiled with mingw)? 2) Does it work under Linux ? -- luigi ___ 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] require(module.so) on cygwin
On Thu, Jul 15 2010, luigi scarso wrote: I dont't have the answer , but what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). 1) Why don't you use mingw (luatex is compiled with mingw)? I switched from mingw to cygwin some time ago for several reasons. The one I remember: a lot of packages are easily available for cygwin but not for mingw. 2) Does it work under Linux ? Yes. New results: I've built luatex under cygwin and replaced luatex.exe in my windows installation. Now it creates a pdf, but there is a stack-dump in the end: mkiv luv stats : runtime - 41.469 seconds, 1 processed pages, 1 shipped pages, 0.024 pages/second 3 [sig] luatex 3940 open_stackdumpfile: Dumping stack trace to luatex.exe.stackdump MTXrun | fatal error: return code: 34304 This is file luatex.exe.stackdump: Stack trace: Frame Function Args 0022C828 7C802542 (0600, EA60, 00A4, 0022C91C) 0022C938 610C26D3 (, 7C802600, 7C802542, ) 0022CA18 610BF387 (, , , ) 0022CA68 610BF79B (0F64, 0022CA90, 0022CA78, 67F0A00C) 0022CB28 610BF8C1 (0F64, 0006, 0022CB58, 610BF965) 0022CB38 610BF8FC (0006, 0022CE80, , ) 0022CB58 610BF965 (67F0A00C, , 6115B10C, 006BB4D8) 0022CB78 67F05531 (0081, 67F05550, 0022CB98, 61004C69) 0022CB88 00401119 (, 0001, 0022CBC8, 6113AEE7) 0022CB98 61004C69 (6115DD10, , , ) 0022CBC8 6113AEE7 (, , 0022CBF8, 0042FB36) 0022CBE8 61112E0A (, 00E47588, 0022CC08, 610BC8B6) 0022CBF8 61004EA1 (, , 0022CC18, 0042E6D1) 0022CC08 610BC8B6 (, 00E47588, 0022CC38, 00401934) 0022CC18 0042E6D1 (0005, 00E47588, 0022CC48, 0022CC50) 0022CC38 00401934 (0022CC73, 6116CFFF, 0022CD98, 61006E73) End of stack trace (more stack frames may be present) Here a new example file for easy testing: \startbuffer[testmod.c] #include lua.h #include lauxlib.h static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1) * 100; lua_pushnumber(L, n); return 1; } static const struct luaL_Reg mylib[] = {{test100, l_test}, {NULL, NULL}}; int luaopen_testmod(lua_State *L) { luaL_register(L, testmod, mylib); return 1; } \stopbuffer \startbuffer[Makefile] testmod.so: testmod.c gcc -shared -o $@ $ /usr/lib/liblua.dll.a \stopbuffer \savebuffer[testmod.c][testmod.c] \savebuffer[Makefile][Makefile] \executesystemcommand{make testmod.so} \startluacode package.cpath = ?.so require(testmod) \stopluacode \starttext bla \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] require(module.so) on cygwin
Peter Münster wrote: On Thu, Jul 15 2010, luigi scarso wrote: I dont't have the answer , but what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). You could try with just a lua file, without the context wrapper: package.cpath = ?.so require(testmod) print (testmod.test100(10)) ___ 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] require(module.so) on cygwin
On Thu, Jul 15 2010, Taco Hoekwater wrote: Peter Münster wrote: On Thu, Jul 15 2010, luigi scarso wrote: I dont't have the answer , but what is the message ? Hello Luigi, There is no message, luatex just hangs... (no cpu usage). You could try with just a lua file, without the context wrapper: package.cpath = ?.so require(testmod) print (testmod.test100(10)) luatex test.lua hangs too: no output. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] require(module.so) on cygwin
On Thu, Jul 15 2010, Peter Münster wrote: New results: I've built luatex under cygwin and replaced luatex.exe in my windows installation. Now it creates a pdf, but there is a stack-dump in the end: mkiv luv stats : runtime - 41.469 seconds, 1 processed pages, 1 shipped pages, 0.024 pages/second 3 [sig] luatex 3940 open_stackdumpfile: Dumping stack trace to luatex.exe.stackdump MTXrun | fatal error: return code: 34304 Ok, the problem was, that I compiled the trunk-version... Now I've tried version 0.60.2, and there is no more problem! :))) So, when I'll have some time, I could update build-binaries/bin_build.sh and first-setup.sh to support cygwin. Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] require(module.so) on cygwin
Hi, Peter Münster wrote: file testmod.so generated under cygwin with: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a On Linux, the .so does not need a liblua dependency. The test works fine with just gcc -shared -o testmod.so testmod.c I tried to reproduce what you did in mingw32-cross + wine, and that worked as well (but with .dll instead of .so). I have no idea what is wrong with cygwin, and no way to test it. Best wishes, Taco ___ 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
Aditya Mahajan wrote: @Taco: Does it deserve a hotfix in TL? It is just a change of two lines. Sure, if you send me tested patch against TL10/pretest (I don't run pretest any more, and I don't trust copying files from the current beta). Best wishes, Taco ___ 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] require(module.so) on cygwin
On Thu, Jul 15 2010, Taco Hoekwater wrote: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a On Linux, the .so does not need a liblua dependency. Indeed, I only need it on cygwin. The test works fine with just gcc -shared -o testmod.so testmod.c I tried to reproduce what you did in mingw32-cross + wine, and that worked as well (but with .dll instead of .so). I have no idea what is wrong with cygwin, and no way to test it. I suppose, that the testmod.so has some dependency on cygwin libraries, and this causes trouble because luatex is not cygwin aware. But see my other message for the solution: luatex compiles without problems under cygwin. Thanks for your efforts! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] new beta
Hi, I uploaded a beta to the website (so the garden will follow in an hour). Apart from a few fixes and experimental features, the most important change is in the language department. The following should work \starttext \setupbodyfont[xits,12pt] \setuplanguage[ru][patterns={ru,us}] \setuplanguage[en][patterns={us,ru}] \setuplanguage[de][patterns={de,ru}] \start \language[ru] \dorecurse{50}{Multilingual }\dorecurse{50}{русский текст } \par \stop \start \language[en] \dorecurse{50}{Multilingual }\dorecurse{50}{русский текст } \par \stop \start \language[de] \dorecurse{50}{Multilingual }\dorecurse{50}{русский текст } \par \stop \stoptext you can add more patterns to an existing set so \setuplanguage[en][patterns=ru] will use us+ru patterns. You can say {reset,ru} if needed. Also available is: \startexceptions[en] xxx-yyy-zzz \stopexceptions \hyphenatedword{xxxyyyzzz} - 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] imbalanced columns
On Thu, 15 Jul 2010 02:33:03 -0600, Peter Rolf indi...@gmx.net wrote: has to do with the way the column width is calculated. the combined entries (2+3,4+5) in row one can only influence (increase) the total width of the involved columns, but they can not give an answer to the question how wide the single columns should be. in the end you need a linear system of equations (and metapost) to solve this. and there is also no guarantee that it is solvable in all (more complex) cases. col2=col3; col4=col5; col2+col3= ; col4+col5= ; Ok... But it seems inescapable that this is a bug in some sense. If we simplify things, compare == \starttext \starttables[|c|c|] \HL \VL \Use{2}[c]{B} \VL\AR \HL \VL B \VL B\VL\AR \HL \stoptables \blank \starttables[|c|c|] \HL \VL \Use{2}[c]{BBB} \VL\AR \HL \VL B \VL B\VL\AR \HL \stoptables \stoptext Your mathematical explanation makes sense, but to a new user I doubt one could convince him/her that the second table is a feature and not a bug. But I understand that the challenge may be complicated. Till then, we need a simple workaround if that's possible. also: i can't imagine how a user interface for this should look like. \setuptables[spanalign=balance] or something 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... true, but this is font related. you can see this by using \ruledhbox{ʿAlī}. you have to add some manual kerning (\kern-0.??em ...) then. I don't see the font-relatedness, even with \ruledhbox... Hence the above simple test case. As we work to bring ConTeXt to a wider audience -- I'm currently involved with such efforts, we should keep track of outwardly simple cases like the above ... Thanks again 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 table.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] Wrong Pi and Gamma with XITS
On Thu, 15 Jul 2010, Taco Hoekwater wrote: Aditya Mahajan wrote: @Taco: Does it deserve a hotfix in TL? It is just a change of two lines. Sure, if you send me tested patch against TL10/pretest (I don't run pretest any more, and I don't trust copying files from the current beta). See attached patch, for the Gamma and Pi as well as the corrected definition of \mathgreekitalic. (I tested with Cambria rather than xits, but that should not matter here). Adityadiff --git a/math-ini.mkiv b/math-ini.mkiv index 828a6ec..9dbadc1 100644 --- a/math-ini.mkiv +++ b/math-ini.mkiv @@ -54,8 +54,8 @@ % todo: only in mmode -\unexpanded\def\mathgreekupright{\attribute\mathgreekattribute11 } -\unexpanded\def\mathgreekitalic {\attribute\mathgreekattribute22 } +\unexpanded\def\mathgreekupright{\attribute\mathgreekattribute22 } +\unexpanded\def\mathgreekitalic {\attribute\mathgreekattribute33 } \unexpanded\def\mathgreekdefault{\attribute\mathgreekattribute\attributeunsetvalue} \let\mathgreeknormal\mathgreekupright diff --git a/math-map.lua b/math-map.lua index 2d34dc1..d3e8cc1 100644 --- a/math-map.lua +++ b/math-map.lua @@ -303,9 +303,9 @@ alphabets.monospaced.it = alphabets.sansserif.tf alphabets.monospaced.bf = alphabets.sansserif.tf alphabets.monospaced.bi = alphabets.sansserif.bf -alphabets.blackboard.tf.symbols = table.merge(alphabets.regular.tf.symbols, alphabets.blackboard.tf.symbols) -alphabets.blackboard.tf.lcgreek = table.merge(alphabets.regular.tf.lcgreek, alphabets.blackboard.tf.lcgreek) -alphabets.blackboard.tf.ucgreek = table.merge(alphabets.regular.tf.ucgreek, alphabets.blackboard.tf.ucgreek) +alphabets.blackboard.tf.symbols = table.merged(alphabets.regular.tf.symbols, alphabets.blackboard.tf.symbols) +alphabets.blackboard.tf.lcgreek = table.merged(alphabets.regular.tf.lcgreek, alphabets.blackboard.tf.lcgreek) +alphabets.blackboard.tf.ucgreek = table.merged(alphabets.regular.tf.ucgreek, alphabets.blackboard.tf.ucgreek) alphabets.blackboard.it = alphabets.blackboard.tf alphabets.blackboard.bf = alphabets.blackboard.tf ___ 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 Thu, Jul 15, 2010 at 09:25:47AM +0200, Hans Hagen wrote: On 14-7-2010 11:22, Khaled Hosny wrote: Sorry, I should have mentioned that I'm testing against texlive-2010 pretest. Already months ago texlive 2010 was frozen and therefore the context on it is one of a few month ago. I get the impression that other tex macro packages keep updating but we keep frozen. After all, it's a snapshot and users can update any time. We could of course push a recent version but the luatex binary used on tl is not the latest and we don't want to enter testing new cache code in tl 2010 now. AFAIK, texlive 2010 freeze will start from tomorrow, so it was not frozen before. Yes, but the TL binary freeze is much sooner (and for good reason). Freezing luatex effectively freezes ConTeXt MkIV. Bugfixes and new features must be added selectively to pretest, which makes testing much harder. ___ 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 15.07.2010 16:53, schrieb Idris Samawi Hamid ادريس سماوي حامد: On Thu, 15 Jul 2010 02:33:03 -0600, Peter Rolf indi...@gmx.net wrote: has to do with the way the column width is calculated. the combined entries (2+3,4+5) in row one can only influence (increase) the total width of the involved columns, but they can not give an answer to the question how wide the single columns should be. in the end you need a linear system of equations (and metapost) to solve this. and there is also no guarantee that it is solvable in all (more complex) cases. col2=col3; col4=col5; col2+col3= ; col4+col5= ; Ok... But it seems inescapable that this is a bug in some sense. If we simplify things, compare == \starttext \starttables[|c|c|] \HL \VL \Use{2}[c]{B} \VL\AR \HL \VL B \VL B\VL\AR \HL \stoptables \blank \starttables[|c|c|] \HL \VL \Use{2}[c]{BBB} \VL\AR \HL \VL B \VL B\VL\AR \HL \stoptables \stoptext Your mathematical explanation makes sense, but to a new user I doubt one could convince him/her that the second table is a feature and not a bug. it's more a limitation of this table implementation. you have some additional space from the multicolumn entry that must be added to the involved columns somehow. the current implementation is probably something like this: use the natural width (maxima) for all but the last involved column and add the complete additional space to the last one. But I understand that the challenge may be complicated. Till then, we need a simple workaround if that's possible. also: i can't imagine how a user interface for this should look like. \setuptables[spanalign=balance] right. you can implement all kind of different spanning algorithms. i would expect that 'balance' would share the additional space equally on all involved columns. but table macros in tex are really ugly. you need tons of bookkeeping data for maxima, styles, multi-column|row, whatever. and tex has no data types for bookkeeping (like a programming language), so you have to store all the data in macros, dimens... it's a complete mess. have a look at the macro definitions and you will agree :) anyhow, i expect much better functionality (e.g. clever spanning alternatives) with a lua based table implementation. we have to wait for that. or something 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... true, but this is font related. you can see this by using \ruledhbox{ʿAlī}. you have to add some manual kerning (\kern-0.??em ...) then. I don't see the font-relatedness, even with \ruledhbox... Hence the above simple test case. see attached pdf (the box looks centered). the \ruledhbox breaks the width calculation of the second column somehow, but you can see that there is some additional space in front of the first character. use a negative kern in front of it for compensation. As we work to bring ConTeXt to a wider audience -- I'm currently involved with such efforts, we should keep track of outwardly simple cases like the above ... not an easy task, as it's more a 'special' than a 'simple' case ;) but i know what you mean. my best wishes for that. Peter test.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
On Thu, 15 Jul 2010 11:12:16 -0600, Peter Rolf indi...@gmx.net wrote: see attached pdf (the box looks centered). Thanks... Could you post the code ;-) (unless this is the same code u posted the first time...) 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
Am 15.07.2010 19:12, schrieb Peter Rolf: see attached pdf (the box looks centered). the \ruledhbox breaks the width calculation of the second column somehow, but you can see that there is some additional space in front of the first character. use a negative kern in front of it for compensation. sorry, wrong pdf test.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 15.07.2010 19:16, schrieb Idris Samawi Hamid ادريس سماوي حامد: On Thu, 15 Jul 2010 11:12:16 -0600, Peter Rolf indi...@gmx.net wrote: see attached pdf (the box looks centered). Thanks... Could you post the code ;-) sure, but don't expect too much :) (unless this is the same code u posted the first time...) Best wishes Idris \starttext \setbox\scratchbox\hbox{Al-YaÊ¿qÅ«bÄ« (d.~283{\sc ah})} \newdimen\colA \colA\wd\scratchbox \advance\colA-2em \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 \ruledhbox{Ê¿AlÄ«} \VL Zayd \VL Ê¿AlÄ« \VL Zayd \VL\AR \HL \stoptables \stoptext ___ 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
On Thu, 15 Jul 2010, Peter Rolf wrote: also: i can't imagine how a user interface for this should look like. \setuptables[spanalign=balance] right. you can implement all kind of different spanning algorithms. i would expect that 'balance' would share the additional space equally on all involved columns. but table macros in tex are really ugly. you need tons of bookkeeping data for maxima, styles, multi-column|row, whatever. and tex has no data types for bookkeeping (like a programming language), so you have to store all the data in macros, dimens... it's a complete mess. have a look at the macro definitions and you will agree :) anyhow, i expect much better functionality (e.g. clever spanning alternatives) with a lua based table implementation. we have to wait for that. Also remember that the starttable macros are just a wrapper around TaBlE macros written by Michael Wichura. I don't know if those have enough hooks to support a high level interface. Have you tried using natural tables. Now you can use them with almost the same amount of typing as the old table macros. \startTABLE \NC text 1 \NC text 2 \NC\NR \NC text 3 \NC text 4 \NC\NR \stopTABLE and you have a high level interface of \setupTABLE (although I do not know if natural tables support equal column widths) 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 ___
[NTG-context] Tables for newbies [WAS Re: imbalanced columns]
Hi Aditya, On Thu, 15 Jul 2010 11:37:32 -0600, Aditya Mahajan adit...@umich.edu wrote: Have you tried using natural tables. Now you can use them with almost the same amount of typing as the old table macros. \startTABLE \NC text 1 \NC text 2 \NC\NR \NC text 3 \NC text 4 \NC\NR \stopTABLE Question for all: for MkIV, should we recommend ONLY natural tables to newcomers, e.g., in a ConTeXt Book? I have not used Natural Tables too much, but I can switch to those for future work and consider Tables deprecated for most purposes. Mainly a pedagogical/practical question: better to have one good way to do things than burdening folks with too much info... and you have a high level interface of \setupTABLE (although I do not know if natural tables support equal column widths) I guess we'll find out soon enough... ;-) 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] Tables for newbies [WAS Re: imbalanced columns]
2010/7/15 Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu Hi Aditya, On Thu, 15 Jul 2010 11:37:32 -0600, Aditya Mahajan adit...@umich.edu wrote: Have you tried using natural tables. Now you can use them with almost the same amount of typing as the old table macros. \startTABLE \NC text 1 \NC text 2 \NC\NR \NC text 3 \NC text 4 \NC\NR \stopTABLE Question for all: for MkIV, should we recommend ONLY natural tables to newcomers, e.g., in a ConTeXt Book? I have not used Natural Tables too much, but I can switch to those for future work and consider Tables deprecated for most purposes. I use only 1) b\TABLE\eTABLE 2) \starttabulate\stoptabulate -- luigi ___ 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 15.07.2010 19:28, schrieb Peter Rolf: Am 15.07.2010 19:16, schrieb Idris Samawi Hamid ادريس سماوي حامد: On Thu, 15 Jul 2010 11:12:16 -0600, Peter Rolf indi...@gmx.net wrote: see attached pdf (the box looks centered). Thanks... Could you post the code ;-) sure, but don't expect too much :) mh, seems my advice with the negative kern has some unwanted side effect to the cell height. tables are complex constructs :) using \hskip has no sideeffect (the value is not optimized). so here only the changed line... \VL\VL \hskip-.2emʿAlī \VL Zayd \VL \hskip-.2emʿAlī \VL Zayd \VL\AR i'll drink a beer now, so no more advices from my side! (i know why) ;) cheers, peter (unless this is the same code u posted the first time...) Best wishes Idris ___ 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] Tables for newbies [WAS Re: imbalanced columns]
On 15-7-2010 7:45, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Aditya, On Thu, 15 Jul 2010 11:37:32 -0600, Aditya Mahajan adit...@umich.edu wrote: Have you tried using natural tables. Now you can use them with almost the same amount of typing as the old table macros. \startTABLE \NC text 1 \NC text 2 \NC\NR \NC text 3 \NC text 4 \NC\NR \stopTABLE Question for all: for MkIV, should we recommend ONLY natural tables to newcomers, e.g., in a ConTeXt Book? I have not used Natural Tables too much, but I can switch to those for future work and consider Tables deprecated for most purposes. Mainly a pedagogical/practical question: better to have one good way to do things than burdening folks with too much info... and you have a high level interface of \setupTABLE (although I do not know if natural tables support equal column widths) I guess we'll find out soon enough... ;-) \bTABLE .. \eTABLE \starttabulate .. \stoptabulate tabulate is quite different and has unique properties (there are also linetables but those are only for source code readers) Hans - 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] imbalanced columns
On 15-7-2010 7:37, Aditya Mahajan wrote: Also remember that the starttable macros are just a wrapper around TaBlE macros written by Michael Wichura. I don't know if those have enough hooks to support a high level interface. indeed .. I actually should merge all the patches on TaBLe and then have a look at it again ... I must admit that I haven't used starttable for ages Hans - 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] imbalanced columns
On Thu, 15 Jul 2010 12:43:44 -0600, Hans Hagen pra...@wxs.nl wrote: I must admit that I haven't used starttable for ages Well then, that settles it; the current project is my last start/stoptable :-) 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 ___
[NTG-context] Using stylistic sets in math
In XITS I have stylistic sets (ss01-07) for accessing additional alphabets not bresent in Unicode, or variants of exising ones. For example, ss01 maps the script alphabets to an alternate calligraphic one, so I did: \starttext \setupbodyfont[xits] \ctxlua{fonts.otf.features.register_base_substitution('ss01')} \definefontfeature[ss01][mode=base,script=math,ss01=yes] $\addff{ss01}\cal ABCDEFG$ \stoptext (I was not expecting \addff to work in math, but anyway). This works, however, but I don't want to set the feature globally: \starttext \ctxlua{fonts.otf.features.register_base_substitution('ss01')} \definefontfeature[math-text][mode=base,script=math,ss01=yes] \setupbodyfont[xits] $\cal ABCDEF$ \stoptext Regards, Khaled -- 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] Using stylistic sets in math
On 15-7-2010 9:24, Khaled Hosny wrote: In XITS I have stylistic sets (ss01-07) for accessing additional alphabets not bresent in Unicode, or variants of exising ones. For example, ss01 maps the script alphabets to an alternate calligraphic one, so I did: \starttext \setupbodyfont[xits] \ctxlua{fonts.otf.features.register_base_substitution('ss01')} \definefontfeature[ss01][mode=base,script=math,ss01=yes] $\addff{ss01}\cal ABCDEFG$ \stoptext (I was not expecting \addff to work in math, but anyway). This works, however, but I don't want to set the feature globally: \starttext \ctxlua{fonts.otf.features.register_base_substitution('ss01')} \definefontfeature[math-text][mode=base,script=math,ss01=yes] \setupbodyfont[xits] $\cal ABCDEF$ \stoptext math currently operates in base mode; what i can do is map it onto some private range; as the number of math fonts is small it's no big deal to keep either a list of features that provide this; we'd best cook up such a list in small committee also, context does math different than e.g. latex so having the glyphs in some well defined spot helps macro packages actually, since there are probably more symbols not in unicode, i think that we need to define some extensions ourselves in the private use area. so, to start with you need some 7 alphabets of 26 chars ? do you think that there will be more? for instance we can reserve 0xFE700-0xFE8FF 0xFE700 ss01 0xFE720 ss02 0xFE740 ss03 0xFE760 ss04 0xFE780 ss05 0xFE7A0 ss06 0xFE7C0 ss07 or we could even move to a much lower range (taco might know a good one); it does not matter much as we can define an offset @aditya mojca: didn't we have some pending symbols as well? I do use some slots for some lm left-overs but there might be more. Hans - 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] Wrong Pi and Gamma with XITS
Aditya Mahajan wrote: On Thu, 15 Jul 2010, Taco Hoekwater wrote: Aditya Mahajan wrote: @Taco: Does it deserve a hotfix in TL? It is just a change of two lines. Sure, if you send me tested patch against TL10/pretest (I don't run pretest any more, and I don't trust copying files from the current beta). See attached patch, for the Gamma and Pi as well as the corrected definition of \mathgreekitalic. Thanks, applied. best wishes, Taco ___ 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 ___