Herbert Schulz <[email protected]> a écrit: > Howdy, > > MacTeX has installed some sample documentation for Context/LuaTeX/XeTeX at > least since 2010. One document used to compile fine but doesn't do so with > the TeX Live 2013 pretest. Mojca Miklavec was able to fix the document by > > - context("%#2i",r) > + context("%2i",r) > > i.e., removing the `#' from the format string. > > I'm wondering if this is because of a change in the Lua interpreter or > something else. The corrected file is enclosed.
The Lua 5.1 documentation* states that “format.string()” (on which, I suppose, the “context()” function is based) “follows the same rules as the printf family of standard C functions”, whereas according to the Lua 5.2 documentation,** it “follows the same rules as the ANSI C function sprintf”. Perhaps that’s the source of the difference? > PS: Please copy any answers to me since I'm not a member of this list. > > Good Luck, We’ll need it, what with the depressing rainy spring and all :) Best, Paul * http://www.lua.org/manual/5.1/manual.html#pdf-string.format ** http://www.lua.org/manual/5.2/manual.html#pdf-string.format
