gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
162 stars 43 forks source link

Arithmetic overflow when setting spaces before setting grefactor #80

Closed henryso closed 9 years ago

henryso commented 9 years ago

Compile this using lualatex --shell-escape --halt-on-error mwe3.tex

mwe3.tex

\documentclass[11pt]{article} \usepackage{luatextra} \usepackage{graphicx} \usepackage{gregoriotex} \usepackage[utf8]{luainputenc} \usepackage{times} \begin{document} \setspaceafterinitial{2.2mm plus 0em minus 0em}{1} \setspacebeforeinitial{2.2mm plus 0em minus 0em}{1} \setgrefactor{15} \includescore{mwe3} \end{document}

mwe3.gabc

%% (c4) Test(c)

mwe3.log

This is LuaTeX, Version beta-0.70.1-2014113017 (format=lualatex 2014.11.30) 14 MAR 2015 16:19 \write18 enabled. **mwe3.tex (./mwe3.tex LaTeX2e <2011/06/27> LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation patterns for engl ish, dumylang, nohyphenation, loaded. (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size11.clo File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texmf-dist/tex/lualatex/luatextra/luatextra.sty Package: luatextra 2010/10/10 v1.0 Loading usual LuaLaTeX packages

(/usr/share/texmf-dist/tex/generic/oberdiek/ifluatex.sty Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) Package ifluatex Info: LuaTeX detected. ) (/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty Package: fontspec 2012/05/06 v2.2b Advanced font selection for XeLaTeX/LuaLaTeX

(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texmf-dist/tex/latex/l3kernel/l3names.sty (/usr/share/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty Package: l3bootstrap 2012/07/16 v3991 L3 Experimental bootstrap code

(/usr/share/texmf-dist/tex/generic/oberdiek/luatex.sty Package: luatex 2010/03/09 v0.4 LuaTeX basic definition package (HO)

(/usr/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texmf-dist/tex/latex/etex-pkg/etex.sty Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB) \et@xins=\count87 ) \LuT@AllocAttribute=\count277 \LuT@AllocCatcodeTable=\count278 \CatcodeTableStack=\count279 \CatcodeTableIniTeX=\catcodetable1 \CatcodeTableString=\catcodetable3 \CatcodeTableOther=\catcodetable5 \CatcodeTableLaTeX=\catcodetable7

(/usr/share/texmf-dist/tex/generic/oberdiek/luatex-loader.sty Package: luatex-loader 2010/03/09 v0.4 Lua module loader (HO)

(/usr/share/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua))) (/usr/share/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO )

(/usr/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) ) (/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. \pdftexcmds@toks=\toks14 )) Package: l3names 2012/09/24 v4230 L3 Namespace for primitives ) Package: expl3 2012/11/21 v4332 L3 Experimental code bundle wrapper

(/usr/share/texmf-dist/tex/latex/l3kernel/l3basics.sty Package: l3basics 2012/11/10 v4306 L3 Basic definitions ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3expan.sty Package: l3expan 2012/08/28 v4149 L3 Argument expansion ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3tl.sty Package: l3tl 2012/09/28 v4244 L3 Token lists ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3seq.sty Package: l3seq 2012/09/09 v4212 L3 Sequences and stacks ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3int.sty Package: l3int 2012/09/26 v4237 L3 Integers \c_max_int=\count280 \l_tmpa_int=\count281 \l_tmpb_int=\count282 \g_tmpa_int=\count283 \g_tmpb_int=\count284 \l_tmpc_int=\count285 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3quark.sty Package: l3quark 2012/11/04 v4268 L3 Quarks ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3prg.sty Package: l3prg 2012/09/09 v4212 L3 Control structures \gprg_map_int=\count286 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3clist.sty Package: l3clist 2012/09/09 v4212 L3 Comma separated lists ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3token.sty Package: l3token 2012/11/01 v4251 L3 Experimental token manipulation ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3prop.sty Package: l3prop 2012/09/09 v4212 L3 Property lists ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3msg.sty Package: l3msg 2012/09/09 v4212 L3 Messages ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3file.sty Package: l3file 2012/09/09 v4212 L3 File and I/O operations \lior_stream_int=\count287 \l_iow_line_count_int=\count288 \liow_target_count_int=\count289 \l__iow_current_line_int=\count290 \liow_current_word_int=\count291 \liow_current_indentation_int=\count292 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3skip.sty Package: l3skip 2012/11/04 v4260 L3 Dimensions and skips \c_zero_dim=\dimen256 \c_max_dim=\dimen257 \l_tmpa_dim=\dimen258 \l_tmpb_dim=\dimen259 \g_tmpa_dim=\dimen260 \g_tmpb_dim=\dimen261 \c_zero_skip=\skip256 \c_max_skip=\skip257 \l_tmpa_skip=\skip258 \l_tmpb_skip=\skip259 \g_tmpa_skip=\skip260 \g_tmpb_skip=\skip261 \c_zero_muskip=\muskip10 \c_max_muskip=\muskip11 \l_tmpa_muskip=\muskip12 \l_tmpb_muskip=\muskip13 \g_tmpa_muskip=\muskip14 \g_tmpb_muskip=\muskip15 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3keys.sty Package: l3keys 2012/11/02 v4256 L3 Experimental key-value interfaces \g__keyval_level_int=\count293 \l_keys_choice_int=\count294 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3fp.sty Package: l3fp 2012/11/10 v4305 L3 Floating points \cfp_leading_shift_int=\count295 \cfp_middle_shift_int=\count296 \c__fp_trailing_shift_int=\count297 \cfp_big_leading_shift_int=\count298 \cfp_big_middle_shift_int=\count299 \cfp_big_trailing_shift_int=\count300 \cfp_Bigg_leading_shift_int=\count301 \cfp_Bigg_middle_shift_int=\count302 \cfp_Bigg_trailing_shift_int=\count303 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3box.sty Package: l3box 2012/11/04 v4259 L3 Experimental boxes \c_empty_box=\box256 \l_tmpa_box=\box257 \l_tmpb_box=\box258 \g_tmpa_box=\box259 \g_tmpb_box=\box260 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3coffins.sty Package: l3coffins 2012/09/09 v4212 L3 Coffin code layer \lcoffin_internal_box=\box261 \lcoffin_internal_dim=\dimen262 \lcoffin_offset_x_dim=\dimen263 \lcoffin_offset_y_dim=\dimen264 \lcoffin_x_dim=\dimen265 \lcoffin_y_dim=\dimen266 \l__coffin_x_prime_dim=\dimen267 \lcoffin_y_prime_dim=\dimen268 \c_empty_coffin=\box262 \lcoffin_aligned_coffin=\box263 \lcoffin_aligned_internal_coffin=\box264 \l_tmpa_coffin=\box265 \l_tmpb_coffin=\box266 \lcoffin_display_coffin=\box267 \lcoffin_display_coord_coffin=\box268 \lcoffin_display_pole_coffin=\box269 \l__coffin_display_offset_dim=\dimen269 \lcoffin_display_x_dim=\dimen270 \lcoffin_display_y_dim=\dimen271 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3color.sty Package: l3color 2012/08/29 v4156 L3 Experimental color support ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3luatex.sty Package: l3luatex 2012/08/03 v4049 L3 Experimental LuaTeX-specific functions \gcctab_allocate_int=\count304 \gcctab_stack_int=\count305 \c_code_cctab=\catcodetable9 ) (/usr/share/texmf-dist/tex/latex/l3kernel/l3candidates.sty Package: l3candidates 2012/11/09 v4298 L3 Experimental additions to l3kernel \lbox_top_dim=\dimen272 \lbox_bottom_dim=\dimen273 \lbox_left_dim=\dimen274 \lbox_right_dim=\dimen275 \l__box_top_new_dim=\dimen276 \lbox_bottom_new_dim=\dimen277 \lbox_left_new_dim=\dimen278 \l__box_right_new_dim=\dimen279 \lbox_internal_box=\box270 \lcoffin_bounding_shift_dim=\dimen280 \l__coffin_left_corner_dim=\dimen281 \lcoffin_right_corner_dim=\dimen282 \lcoffin_bottom_corner_dim=\dimen283 \l__coffin_top_corner_dim=\dimen284 \lcoffin_scaled_total_height_dim=\dimen285 \lcoffin_scaled_width_dim=\dimen286 )) (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty Package: xparse 2012/07/16 v3990 L3 Experimental document command parser \l__xparse_current_arg_int=\count306 \lxparse_m_args_int=\count307 \l__xparse_mandatory_args_int=\count308 \lxparse_processor_int=\count309 \lxparse_v_nesting_int=\count310 ) (/usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload.sty Package: luaotfload 2012/05/28 v1.27 OpenType layout system

(/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase.sty Package: luatexbase 2010/10/06 v0.3 Module utilities for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty Package: luatexbase-compat 2010/10/10 v0.3 Compatibility tools for LuaTeX ) (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty Package: luatexbase-loader 2010/10/10 v0.3 Lua module loader for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua)) (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-regs.sty Package: luatexbase-regs 2010/10/10 v0.3 Registers allocation for LuaTeX ) (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-attr.sty Package: luatexbase-attr 2011/05/21 v0.31 Attributes allocation for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/attr.lua)) (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-cctb.sty Package: luatexbase-cctb 2010/10/10 v0.3 Catcodetable allocation for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/cctb.lua) \lltxb@catcodetable@alloc=\count311 \CatcodeTableIniTeX=\luatexcatcodetable1 \CatcodeTableString=\luatexcatcodetable3 \CatcodeTableOther=\luatexcatcodetable5 \CatcodeTableLaTeX=\luatexcatcodetable7 \CatcodeTableLaTeXAtLetter=\luatexcatcodetable9 \CatcodeTableExpl=\luatexcatcodetable11 ) (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-mcb.sty Package: luatexbase-mcb 2010/10/10 v0.3 Callback management for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.sty Package: luatexbase-modutils 2010/10/10 v0.3 Module utilities for LuaTeX

(/usr/share/texmf-dist/tex/luatex/luatexbase/modutils.lua)) (/usr/share/texmf-dist/tex/luatex/luatexbase/mcb.lua) Lua module: luatexbase-mcb 2010/05/12 0.2 register several functions in a callb ack )) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs.lua) Lua module: lualibs 2011/01/20 0.96 Lua additional functions.

(/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-string.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-lpeg.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-boolean.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-number.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-math.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-table.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-aux.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-io.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-os.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-file.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-md5.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-unicode.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-utils.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-dimen.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-url.lua) (/usr/share/texmf-dist/tex/luatex/lualibs/lualibs-set.lua) (/usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload.lua) Lua module: luaotfload 2012/05/28 1.27 OpenType layout system. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-luat- dum.lua.(using cache: /home/inxi/.texlive/texmf-var/luatex-cache/generic) luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-luat- ovr.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-data- con.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- ini.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-node- dum.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-node- inj.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- tfm.lua. luatexbase.attributes["otfl@state"] = 1 luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- cid.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- ott.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- map.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- otf.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- otd.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- oti.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- otb.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- otn.lua. luatexbase.attributes["otfl@markbase"] = 2 luatexbase.attributes["otfl@markmark"] = 3 luatexbase.attributes["otfl@markdone"] = 4 luatexbase.attributes["otfl@cursbase"] = 5 luatexbase.attributes["otfl@curscurs"] = 6 luatexbase.attributes["otfl@cursdone"] = 7 luatexbase.attributes["otfl@kernpair"] = 8 luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- ota.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- otc.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- def.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- xtx.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- dum.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- nms.lua. luaotfload: loading file /usr/share/texmf-dist/tex/luatex/luaotfload/otfl-font- clr.lua. Module luatexbase-mcb info: creating 'luaotfload.patch_font' type 4 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' Module luatexbase-mcb info: inserting 'unicodemath.set_sscale_diments' (luatexbase-mcb) at position 1 in 'luaotfload.patch_font' ) (/usr/share/texmf-dist/tex/latex/fontspec/fontspec.lua) Lua module: fontspec 2009/12/04 2 Advanced font selection for LuaLaTeX.

Module luatexbase-mcb info: inserting 'fontspec.set_capheight' (luatexbase-mcb) at position 2 in 'luaotfload.patch_font' \l_fontspec_script_int=\count312 \l_fontspec_language_int=\count313 \l_fontspec_strnum_int=\count314 \l_fontspec_tmpa_dim=\dimen287 \l_fontspec_tmpb_dim=\dimen288 \l_fontspec_tmpc_dim=\dimen289 Variant \tl_gset:cV already defined; not changing it on line 66 (/usr/share/texmf-dist/tex/latex/fontspec/fontspec-patches.sty Package: fontspec-patches 2012/05/06 v2.2b Advanced font selection for XeLaTeX/ LuaLaTeX

(/usr/share/texmf-dist/tex/latex/base/fixltx2e.sty Package: fixltx2e 2006/09/13 v1.1m fixes to LaTeX LaTeX Info: Redefining \em on input line 420. ) LaTeX Info: Redefining \em on input line 22. LaTeX Info: Redefining \emph on input line 29. LaTeX Info: Redefining - on input line 32.


(/usr/share/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(/usr/share/texmf-dist/tex/latex/euenc/eu2enc.def File: eu2enc.def 2010/05/27 v0.1h Experimental Unicode font encodings ) LaTeX Font Info: Try loading font information for EU2+lmr on input line 100.

(/usr/share/texmf-dist/tex/latex/euenc/eu2lmr.fd File: eu2lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern ) luaotfload | load font: auto-selecting default features for script: dflt (was l atn)(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-lm roman10-regular.lua)) (/usr/share/texmf-dist/tex/xelatex/xunicode/xunicode.sty File: xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many other characters in Unicode lower plane

(/usr/share/texmf-dist/tex/latex/tipa/t3enc.def File: t3enc.def 2001/12/31 T3 encoding luaotfload | load font: auto-selecting default features for script: dflt (was l atn)(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-lm romanslant10-regular.lua) luaotfload | load font: auto-selecting default features for script: dflt (was l atn)(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-lm roman10-italic.lua) luaotfload | load font: auto-selecting default features for script: dflt (was l atn)(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-lm roman10-bold.lua) LaTeX Font Info: Try loading font information for EU2+lmss on input line 357 . (/usr/share/texmf-dist/tex/latex/euenc/eu2lmss.fd File: eu2lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern ) luaotfload | load font: auto-selecting default features for script: dflt (was l atn)(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-lm sans10-regular.lua)) \tipaTiiicode=\count315 \tipasavetokens=\toks15 \tipachecktokens=\toks16 (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks17 ) (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-dist/tex/latex/graphics/trig.sty Package: trig 1999/03/16 v1.09 sin cos tan (DPC) ) (/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live ) Package graphics Info: Driver file: pdftex.def on input line 91.

(/usr/share/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX \Gread@gobject=\count316 )) \Gin@req@height=\dimen290 \Gin@req@width=\dimen291 )) ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \fontspec with arg. spec. 'O{}m' on line 42. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setmainfont with arg. spec. 'O{}m' on line 46. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setsansfont with arg. spec. 'O{}m' on line 50. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setmonofont with arg. spec. 'O{}m' on line 54. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setmathrm with arg. spec. 'O{}m' on line 62. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setboldmathrm with arg. spec. 'O{}m' on line 65. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setmathsf with arg. spec. 'O{}m' on line 68. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \setmathtt with arg. spec. 'O{}m' on line 71. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newfontfamily with arg. spec. 'mO{}m' on line 87. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newfontface with arg. spec. 'mO{}m' on line 90. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \defaultfontfeatures with arg. spec. 'm' on line . 94. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \addfontfeatures with arg. spec. 'm' on line 110. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newfontfeature with arg. spec. 'mm' on line 121. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newAATfeature with arg. spec. 'mmmm' on line 128. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newICUfeature with arg. spec. 'mmm' on line 135. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \aliasfontfeature with arg. spec. 'mm' on line . 162. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \aliasfontfeatureoption with arg. spec. 'mmm' on . line 167. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newfontscript with arg. spec. 'mm' on line 172. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \newfontlanguage with arg. spec. 'mm' on line 195. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining document command \DeclareFontsExtensions with arg. spec. 'm' on . line 214. ................................................. Variant \prop_gput:cnV already defined; not changing it on line 489 Variant \prop_gput:cnx already defined; not changing it on line 490 \l_fontspec_tmp_int=\count317 LaTeX Info: Redefining \itshape on input line 1819. LaTeX Info: Redefining \slshape on input line 1823. LaTeX Info: Redefining \scshape on input line 1827. LaTeX Info: Redefining \upshape on input line 1831.

(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/share/texmf-dist/tex/latex/metalogo/metalogo.sty Package: metalogo 2010/05/29 v0.12 Extended TeX logo macros

(/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional ) \xl@everylogo=\toks18 \xl@@everylogo=\toks19 LaTeX Info: Redefining \TeX on input line 193. LaTeX Info: Redefining \LaTeX on input line 202. LaTeX Info: Redefining \LaTeXe on input line 219. ) (/usr/share/texmf-dist/tex/lualatex/luacode/luacode.sty Package: luacode 2012/01/23 v1.2a lua-in-tex helpers (mpg) \luacode@lines=\toks20 \luacode@table@soft=\luatexcatcodetable13 )) (/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex.sty Package: gregoriotex 2010/09/27 v2.1 GregorioTeX system.

(/usr/share/texmf-site/tex/latex/xcolor/xcolor.sty Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

(/usr/share/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package xcolor Info: Driver file: pdftex.def on input line 225. Package xcolor Info: Model cmy' substituted bycmy0' on input line 1337. Package xcolor Info: Model hsb' substituted byrgb' on input line 1341. Package xcolor Info: Model RGB' extended on input line 1353. Package xcolor Info: ModelHTML' substituted by rgb' on input line 1355. Package xcolor Info: ModelHsb' substituted by hsb' on input line 1356. Package xcolor Info: ModeltHsb' substituted by hsb' on input line 1357. Package xcolor Info: ModelHSB' substituted by hsb' on input line 1358. Package xcolor Info: ModelGray' substituted by gray' on input line 1359. Package xcolor Info: Modelwave' substituted by `hsb' on input line 1360. ) (/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex.tex (/usr/share/texmf-dist/tex/generic/xstring/xstring.sty (/usr/share/texmf-dist/tex/generic/xstring/xstring.tex \@xs@message=\write3 \integerpart=\count318 \decimalpart=\count319 ) Package: xstring 2010/03/28 v1.5d String manipulations (C Tellechea) ) \gregorioattr=\luatexattribute9 \gregoriocenterattr=\luatexattribute10

(/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex.lua) Lua module: gregoriotex 2013/12/29 2.4 GregorioTeX module. \Greaux=\write4 \grefactor=\count320

(/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex-spaces.tex \gre@textlower=\dimen292 \gre@stafflinewidth=\dimen293 \gre@linewidth=\dimen294 \gre@stafflineheight=\dimen295 \gre@interstafflinespace=\dimen296 \gre@stafflinediff=\dimen297 \gre@constantglyphraise=\dimen298 \gre@staffheight=\dimen299 \gre@glyphraisevalue=\dimen300 \gre@addedraisevalue=\dimen301 \gre@additionalbottomspace=\dimen302 \gre@additionaltopspace=\dimen303 \gre@textaligncenter=\dimen304 \gre@enddifference=\dimen305 \gre@previousenddifference=\dimen306 \gre@currenttranslationheight=\dimen307 \gre@nextbegindifference=\skip262 \gre@aboveinitialfirstraise=\dimen308 \gre@aboveinitialsecondraise=\dimen309 \gre@begindifference=\dimen310 \gre@clefwidth=\dimen311 \gre@lastglyphwidth=\dimen312 \gre@notesaligncenter=\dimen313 \gre@additionalleftspace=\dimen314 \gre@initialwidth=\dimen315 \gre@currentabovelinestextheight=\dimen316 \gre@temp@dimen@one=\dimen317 \gre@temp@dimen@two=\dimen318 \gre@temp@dimen@three=\dimen319 \gre@temp@dimen@four=\dimen320 \gre@temp@dimen@five=\dimen321 \gre@temp@skip@one=\skip263 \gre@temp@skip@two=\skip264 \gre@temp@skip@three=\skip265 \gre@temp@skip@four=\skip266 \gre@temp@count@one=\count321 \gre@temp@count@two=\count322 \gre@temp@count@three=\count323 \gre@unit=\dimen322 \gre@base=\dimen323 \gre@maxlen=\dimen324 \gre@unitfactor=\count324 \gre@basefactor=\count325 ) \GreTempwidth=\box271 \GreInitial=\box272 \grebiginitial=\count326 \greknownline=\count327 \GreAboveinitialfirstbox=\box273 \GreAboveinitialsecondbox=\box274 \GreLines=\box275

(/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex-chars.tex) (/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex-signs.tex \greclefnum=\count328 \GreTempsign=\box276 \keeprightbox=\count329 \grefirstisalteration=\count330 ) (/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex-syllable.tex \greisonaline=\count331 \grefirstglyph=\count332 \GreSyllablenotes=\box277 \GreSyllabletext=\box278 \grefirstsyllableofword=\count333 \greendofscore=\count334 \gre@englishcentering=\count335 \gre@clivisalignment=\count336 ) \printchirovbars=\count337 \grelastoflinecount=\count338 \greblockcusto=\count339

(/usr/share/texmf-site/tex/luatex/gregoriotex/gregoriotex-symbols.tex \gretempfactor=\count340

luaotfload | Font names database loaded: /home/inxi/.texlive/texmf-var/luatex-c ache/generic/names/otfl-names.lua luaotfload | load font: font family='gresym', subfamily='regular' found: gresym .ttf(load: /home/inxi/.texlive/texmf-var/luatex-cache/generic/fonts/otf/temp-gr esym.lua)))) (/usr/share/texmf-dist/tex/lualatex/luainputenc/luainputenc.sty Package: luainputenc 2010/11/19 v0.973 inputenc package for LuaTeX

(/usr/share/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua) Lua module: luainputenc 2010/05/10 0.97 Lua simple inputenc package. \inpenc@prehook=\toks21 \inpenc@posthook=\toks22

(/usr/share/texmf-dist/tex/lualatex/luainputenc/lutf8.def File: lutf8.def 2010/05/10 v0.97 UTF-8 support for luainputenc Now handling font encoding OML ... ... no UTF-8 mapping file for font encoding OML Now handling font encoding T1 ... ... processing UTF-8 mapping file for font encodingT1

(/usr/share/texmf-dist/tex/latex/base/t1enc.dfu File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc ) Now handling font encoding OT1 ... ... processing UTF-8 mapping file for font encodingOT1

(/usr/share/texmf-dist/tex/latex/base/ot1enc.dfu File: ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc ) Now handling font encoding OMS ... ... processing UTF-8 mapping file for font encodingOMS

(/usr/share/texmf-dist/tex/latex/base/omsenc.dfu File: omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc ) Now handling font encoding OMX ... ... no UTF-8 mapping file for font encoding OMX Now handling font encoding U ... ... no UTF-8 mapping file for font encoding U Now handling font encoding EU2 ... ... no UTF-8 mapping file for font encoding EU2 Now handling font encoding T3 ... ... no UTF-8 mapping file for font encoding T3 )) (/usr/share/texmf-dist/tex/latex/psnfss/times.sty Package: times 2005/04/12 PSNFSS-v9.2a (SPQR) ) (./mwe3.aux) LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for EU2/lmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Checking defaults for T3/cmr/m/n on input line 7. LaTeX Font Info: Try loading font information for T3+cmr on input line 7.

(/usr/share/texmf-dist/tex/latex/tipa/t3cmr.fd File: t3cmr.fd 2001/12/31 TIPA font definitions ) LaTeX Font Info: ... okay on input line 7. LaTeX Font Info: Try loading font information for EU2+ptm on input line 7. LaTeX Font Info: No file EU2ptm.fd. on input line 7.

LaTeX Font Warning: Font shape EU2/ptm/m/n' undefined (Font) usingEU2/lmr/m/n' instead on input line 7.

luaotfload | load font: auto-selecting default features for script: dflt (was l atn) (/usr/share/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count341 \scratchdimen=\dimen325 \scratchbox=\box279 \nofMPsegments=\count342 \nofMParguments=\count343 \everyMPshowfont=\toks23 \MPscratchCnt=\count344 \MPscratchDim=\dimen326 \MPnumerator=\count345 \makeMPintoPDFobject=\count346 \everyMPtoPDFconversion=\toks24 ) (/usr/share/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf

(/usr/share/texmf-dist/tex/latex/oberdiek/grfext.sty Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)

(/usr/share/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) )) (/usr/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)

(/usr/share/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)

(/usr/share/texmf-dist/tex/generic/oberdiek/etexcmds.sty Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) ))) Package grfext Info: Graphics extension search list: (grfext) .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE G,.JBIG2,.JB2,.eps \AppendGraphicsExtensions on input line 452.

(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv e )) ................................................. . fontspec info: "setup-math" . . Adjusting the maths setup (use [no-math] to avoid this). ................................................. \symlegacymaths=\mathgroup4 LaTeX Font Info: Overwriting symbol font legacymaths' in versionbold' (Font) OT1/cmr/m/n --> OT1/cmr/bx/n on input line 7. LaTeX Font Info: Redeclaring math accent \acute on input line 7. LaTeX Font Info: Redeclaring math accent \grave on input line 7. LaTeX Font Info: Redeclaring math accent \ddot on input line 7. LaTeX Font Info: Redeclaring math accent \tilde on input line 7. LaTeX Font Info: Redeclaring math accent \bar on input line 7. LaTeX Font Info: Redeclaring math accent \breve on input line 7. LaTeX Font Info: Redeclaring math accent \check on input line 7. LaTeX Font Info: Redeclaring math accent \hat on input line 7. LaTeX Font Info: Redeclaring math accent \dot on input line 7. LaTeX Font Info: Redeclaring math accent \mathring on input line 7. LaTeX Font Info: Redeclaring math symbol \colon on input line 7. LaTeX Font Info: Redeclaring math symbol \Gamma on input line 7. LaTeX Font Info: Redeclaring math symbol \Delta on input line 7. LaTeX Font Info: Redeclaring math symbol \Theta on input line 7. LaTeX Font Info: Redeclaring math symbol \Lambda on input line 7. LaTeX Font Info: Redeclaring math symbol \Xi on input line 7. LaTeX Font Info: Redeclaring math symbol \Pi on input line 7. LaTeX Font Info: Redeclaring math symbol \Sigma on input line 7. LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 7. LaTeX Font Info: Redeclaring math symbol \Phi on input line 7. LaTeX Font Info: Redeclaring math symbol \Psi on input line 7. LaTeX Font Info: Redeclaring math symbol \Omega on input line 7. LaTeX Font Info: Redeclaring math symbol \mathdollar on input line 7. LaTeX Font Info: Redeclaring symbol font operators' on input line 7. LaTeX Font Info: EncodingOT1' has changed to EU2' for symbol font (Font)operators' in the math version normal' on input line 7. LaTeX Font Info: Overwriting symbol fontoperators' in version normal' (Font) OT1/cmr/m/n --> EU2/ptm/m/n on input line 7. LaTeX Font Info: EncodingOT1' has changed to EU2' for symbol font (Font)operators' in the math version bold' on input line 7. LaTeX Font Info: Overwriting symbol fontoperators' in version bold' (Font) OT1/cmr/bx/n --> EU2/ptm/m/n on input line 7. LaTeX Font Info: Overwriting symbol fontoperators' in version normal' (Font) EU2/ptm/m/n --> EU2/ptm/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathrm' in version normal' (Font) EU2/ptm/m/n --> EU2/ptm/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathit' in version normal' (Font) OT1/cmr/m/it --> EU2/ptm/m/it on input line 7. LaTeX Font Info: Overwriting math alphabet\mathbf' in version normal' (Font) OT1/cmr/bx/n --> EU2/ptm/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathsf' in version normal' (Font) OT1/cmss/m/n --> EU2/phv/m/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathtt' in version normal' (Font) OT1/cmtt/m/n --> EU2/pcr/m/n on input line 7. LaTeX Font Info: Overwriting symbol fontoperators' in version bold' (Font) EU2/ptm/m/n --> EU2/ptm/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathrm' in version bold' (Font) EU2/ptm/m/n --> EU2/ptm/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathit' in version bold' (Font) OT1/cmr/bx/it --> EU2/ptm/bx/it on input line 7. LaTeX Font Info: Overwriting math alphabet\mathsf' in version bold' (Font) OT1/cmss/bx/n --> EU2/phv/bx/n on input line 7. LaTeX Font Info: Overwriting math alphabet\mathtt' in version `bold' (Font) OT1/cmtt/m/n --> EU2/pcr/bx/n on input line 7.

(/usr/share/texmf-site/tex/luatex/gregoriotex/gsp-default.tex \greconffactor=\count347 ) ! Arithmetic overflow. \gre@convertto ...ly \gre@base by \gre@unitfactor \fi \gre@temp@count@one = ... l.10 \setgrefactor{15}

Here is how much of LuaTeX's memory you used: 16990 strings out of 495099 100000,383344 words of node,token memory allocated 292 words of node memory still in use: 2 hlist, 1 rule, 1 glyph, 4 attribute, 41 glue_spec, 4 attributelist, 3 if stack, 1 open, 1 write, 1 dir, 1 pdf_colorstack nodes avail lists: 2:7,3:1,4:1,6:2,7:1,9:2 19884 multiletter control sequences out of 65536+200000 22 fonts using 1355935 bytes 55i,0n,37p,611b,85s stack positions out of 5000i,500n,10000p,200000b,50000s ! ==> Fatal error occurred, no output PDF file produced!

rpspringuel commented 9 years ago

spaceafterinitial and spacebeforeinitial are dimensions, not skips. They should not take a rubber value (i.e. no plus or minus). For some reason they got left off the error checking routine for \grechangedim that prevents attempts to set a rubber value to dimensions.

henryso commented 9 years ago

If I understand correctly, I should change mwe3.tex to:

\documentclass[11pt]{article} \usepackage{luatextra} \usepackage{graphicx} \usepackage{gregoriotex} \usepackage[utf8]{luainputenc} \usepackage{times} \begin{document} \setspaceafterinitial{2.2mm}{1} \setspacebeforeinitial{2.2mm}{1} \setgrefactor{15} \includescore{mwe3} \end{document}

However, this still results in an Arithmetic overflow, in the same place.

rpspringuel commented 9 years ago

Yes, that's an appropriate distance. I didn't have time to change and test the MWE earlier. Since the problem still occurs, I'll look into it.

rpspringuel commented 9 years ago

Addressed in #81.