Re: [NTG-context] font bug in latest beta?
On 3/21/2014 9:12 PM, Thomas A. Schmitz wrote: \setupbodyfont[times] \starttext 1--2 o'clock \stoptext indeed, i forgot to adapt the tlig/trep definitions (will do) 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 ___
[NTG-context] font bug in latest beta?
Hans, is it possible that the latest beta has a bug in font handling? As far as I can see, all the usual TeX ligatures etc. do not work: \setupbodyfont[times] \starttext 1--2 o'clock \stoptext would be a minimal example. All best Thomas ___ 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] issue with \processaction
On 03/18/2014 11:30 PM, Aditya Mahajan wrote: > On Tue, 18 Mar 2014, Pablo Rodriguez wrote: > >> The next one (AFAIK) should work on every OS: >> >> \startluacode >> local user = "" >> local users = { >> ["ousia"] = 1, >> } >> function document.CheckUser() >> user = os.resultof("echo ousia") >> context.verbatim(user) >> end >> >> function document.UserNumber(name) >> context.verbatim(users[name or user] or 0) >> end >> \stopluacode >> >> \def\CheckUser {\ctxlua{document.CheckUser ()}} >> \def\UserNumber{\ctxlua{document.UserNumber()}} >> >> \starttext >> This is user \CheckUser with number \UserNumber. >> \stoptext > > (Untested) > > Change `local user` by > > ~~~ > userdata = userdata or {} > userdata.user = "" > ~~~ > > and all other occurances of `user` by `userdata.user`. Many thanks for your reply, Aditya. I followed your instructions, but I’m afraid that it doesn’t work. I cannot say whether it is my fault, since this is all Greek to me. I tried a simpler approach (my guess, I discovered the existence of \executesystemcommand yesterday), which doesn’t work either: \def\Checkuser{\executesystemcommand{echo rightuser > tmp-yser.txt}} \def\CheckUser{\Checkuser\input tmp-yser.txt} \def\UserNumber{\processaction[\CheckUser][rightuser=>1, unknown=>user unknown]} \starttext This is user \CheckUser\ with number \UserNumber. \stoptext I don’t know why the \UserNumber command cannot process action and why the backslash after \CheckUser is required, since it seems to add an extra space. What am I doing wrong in the previous example? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] proposal about link borders
Hi Hans, many thanks for fixing the issue with links (and other two issues about PDF information). I have two proposals about hyperlinks, after having looked at an uncompressed file with hyperlinks. AFAIK, they haven’t been implemented (I have checked the wiki, the “ConTeXt Commands” documents, the reference manual, and the source [I apologize, if I have overlooked something]). My first proposal would be an option to have link borders enabled. I guess that something like \setupinteraction[linkborders=on] would be a good choice. With this option, one can have an interactive version and a printable version of a document in the same file. This is extremely useful in many scenarios. My second proposal would be an option to have colored link borders. \setupinteraction[linkbordercorlor=on] could be the option to enable color in link borders. I think both proposals could be useful for (at least for some) interactive documents. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] lower superscripts in MkIV -- too low?
Dear math typesetting aficianados, In the following example, \starttext $x^3\ x\mathstrut^3$ \stoptext the superscript without the strut is about 2pt lower than with the strut, using MkIV. With MkII or plain TeX, they are the same height (at the higher position obtained by using the \mathstrut in MkIV). My eye tells me that the higher position looks more right. Do others agree? Or, if it's a matter of taste, is the difference configurable so that one can get the MkII behavior even without the \mathstrut? -- -Sanjoy ___ 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 ___