On 5/2/2013 7:00 PM, Sietse Brouwer wrote:
Hi Hans,
How do I enable the output of for example: report_typescripts("unknown library %a or %a",name_one,name_two)
`logs.reporter("fonts","typescripts")` returns a function for writing to the log. Calling that function produces this sort of output:
fonts > typescripts > bla bla bla
Sometimes calls to a reporter are wrapped in a 'only if tracker x is active'. This is not the case with this reporter, though. If this reporter is not printing anything, it's because the error condition is not arising, not because you didn't activate some tracker.
For completeness: the wiki has more on trackers, including a list of them. http://wiki.contextgarden.net/Trackers
context --trackers context --directives context --experiments
And this is what a reporter wrapped in a tracker looks like:
-- defining the tracker local trace_casing = false trackers.register("typesetters.casing", function(v) trace_casing = v end)
-- checking whether the tracker is active if trace_casing then report_casing("case trigger %a, instance %a, result %a",attr%100,div(attr,100),ok) end
Klopt. En verschillende modules kunnen dezelfde tracker gebruiken (een ietwat complex onderliggend mechanisms zorgt er voor dat alles wordt gesynchroniseerd). Men kan ook in texsmfcnf.lua dingen instellen (trackers, directives, experiments). Men kan die dingen op verschillende momenten instellen: - commandline - environment - cnf file - tex/lua file in volgorde van prioriteit. 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 -----------------------------------------------------------------