Re: [NTG-context] \usemodule not working in latest beta
Wolfgang and Marco, Thank you. Changing p-title.tex has solved the problem. Best, Mica On Fri, Mar 8, 2013 at 9:49 AM, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 07.03.2013 um 23:59 schrieb Marco Patzer home...@lavabit.com: On 2013–03–07 Mica Semrick wrote: Upon updating to the latest beta last night, the document wouldn't compile. It looked like it wasn't reading up the \usemodule[title] at all, because it was giving me an undefined control sequence error on the first macro defined in t-title.tex (\doctitle{my title}). Help please! A title module was recently added to the context distribution. It might be that it's interfering with your personal one. You can run your document with \enabletrackers [resolvers.details] and check if your title module is actually loaded. If you're sure that \usemodule is broken please post a minimal example. It can be a problem with the file extension because in MkIV files with a mkvi or mkiv extension are preferred to files with a tex extension. For local/private modules one can use the p-prefix instead of the t-prefix because files with a p-prefix are used first. Wolfgang ___ 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 ___
[NTG-context] new beta
Hi, I uploaded a beta. The most important change is that the 'context' function now uses the formatters mechanism instead of Lua's format. This has several benefits. First of all it's in most cases faster (I measured upto 3 times) but it also permits us to support some more: integer %...i number integer %...d number unsigned %...u number utf character%...c number hexadecimal %...x number HEXADECIMAL %...X number octal%...o number string %...s string number float%...f number exponential %...e number exponential %...E number autofloat%...g number autofloat%...G number force tostring %...S any force tostring %Q any force tonumber %N number (strip leading zeros) signed number%I number rounded number %r number 0xhexadecimal%...h character number 0xHEXADECIMAL%...H character number U+hexadecimal%...u character number U+HEXADECIMAL%...U character number points %p number (scaled points) basepoints %b number (scaled points) table concat %...t table boolean (logic) %l boolean BOOLEAN %L boolean whitespace %...w More info can be found in cld-mkiv.pdf. There I also explain how to create specific formatters and how to extend them. In the default formatter there are two extensions that can be used as: string.formatters[whatever %!tex! and %!xml!]($ 100,ab) or local mf = string.formatters[whatever %!tex! and %!xml!] ... mf($ 100,ab) or context(whatever %!tex! and %!xml!,$ 100,ab) (Someone should add that to the wiki I guess). 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 ___