Am 29.01.2011 um 05:04 schrieb Will Robertson:

> Hi,
> 
> When I run a unicode-math document with LuaLaTeX, here's the console output I 
> get purely related to loading the various Lua stuff:
> 
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty
> )
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua
> ))
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-regs.sty)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-attr.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/attr.lua))
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-cctb.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/cctb.lua))
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-mcb.sty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.s
> ty
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/modutils.lua))
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luatexbase/mcb.lua)))
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-string.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-lpeg.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-boolean.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-number.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-math.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-table.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-aux.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-io.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-os.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-file.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-md5.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-unicode.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-utils.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-dimen.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-url.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/lualibs/lualibs-set.lua)
> (/usr/local/texlive/2010/texmf-dist/tex/luatex/luaotfload/luaotfload.lua)(using
> cache: /Users/will/Library/texlive/2010/texmf-var/luatex-cache/generic)
> Module luatexbase-mcb info: inserting 'luaotfload.pre_linebreak_filter'
> (luatexbase-mcb)            at position 1 in 'pre_linebreak_filter'
> Module luatexbase-mcb info: inserting 'luaotfload.hpack_filter'
> (luatexbase-mcb)            at position 1 in 'hpack_filter'
> Module luatexbase-mcb info: resetting callback 'define_font'
> Module luatexbase-mcb info: inserting 'luaotfload.define_font'
> (luatexbase-mcb)            at position 1 in 'define_font'
> Module luatexbase-mcb info: inserting 'luaotfload.find_vf_file'
> (luatexbase-mcb)            at position 1 in 'find_vf_file'
> )
> 
> 
> Is there any way to make this quieter? (Can lua files be loaded from lua 
> without being printed in the console output?)

I think LuaTeX should aim for more sane output in general, similar to other 
non-TeX compilers. That means:
- No printing of page numbers (already possible), file names (suggested in 
http://tracker.luatex.org/view.php?id=535) and similar nonsense. People who are 
interested in which files are loaded can use the filename recorder.
- All messages use file:line:message style, even those that come from \write or 
Lua print() or texio.write()
- \scrollmode (i.e. no user interaction) by default
- Primitives or Lua functions for printing errors, warnings and informational 
messages
- Getting rid of \errhelp
- Messages are never broken across lines; every message is exactly one line; 
newline chars in messages are converted to spaces
- No continuation of messages
- No log file
- Error messages go to stderr
- No banner
I don't think this has to be configurable. The current mess probably needs to 
stay for compatibility reasons, but a command line option --sane-output could 
be added that switches output to the sensible style GCC and most other compiler 
use.

Another thing @Will: did you ever consider building a "LaTeX 2.2" format that 
is essentially LaTeX 2e with expl3 and the xpackages (and, for XeTeX and 
LuaTeX, fontspec) preloaded? That should not break anything, but it would make 
expl3 more attractive and reduce compilation times. Also, expl3 should probably 
move to the latex-base collection of TeX Live since it is nowadays required by 
important packages such as fontspec and siunitx.

Reply via email to