[luatex] Sample documentation won't compile.

Philipp Gesang Philipp.Gesang at alumni.uni-heidelberg.de
Fri May 31 17:07:09 CEST 2013


···<date: 2013-05-31, Friday>···<from: Paul Isambert>···

> Herbert Schulz <herbs at wideopenwest.com> 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)

The cld printers are based on formatters, not string.format()
(see cldf-ini.lua), which may account for the difference.

Best
Philipp

>                                             “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
> 

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20130531/104c5813/attachment.bin>


More information about the luatex mailing list