[texhax] Sorting

Reinhard Kotucha reinhard.kotucha at web.de
Fri Aug 5 00:55:59 CEST 2016


On 2016-08-04 at 08:28:18 -0400, William Adams wrote:

 > https://www.tug.org/TUGboat/tb14-3/tb40laan-sort.pdf

Another approach is to use lambda calculus for sorting, as Alan
Jeffrey did:

  http://ctan.org/tex-archive/macros/generic/lambda-lists

 > These days though, why not just use Lua scripting in LuaTeX?

Using Lua is certainly the best approach because many things can be
accomplished much easier with Lua than with TeX macro programming.

However, there is no need to switch from pdftex to luatex.  A
reasonable approach is to write data to a file, call a texlua script
for sorting (texlua is LuaTeX without TeX), and read the sorted data
back again.

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the texhax mailing list