{"action":"created","issue":{"url":"https://api.github.com/repos/clerkma/ptex-ng/issues/7","repository_url":"https://api.github.com/repos/clerkma/ptex-ng","labels_url":"https://api.github.com/repos/clerkma/ptex-ng/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/clerkma/ptex-ng/issues/7/comments","events_url":"https://api.github.com/repos/clerkma/ptex-ng/issues/7/events","html_url":"https://github.com/clerkma/ptex-ng/issues/7","id":143414903,"number":7,"title":"特定条件会触发长度计算错误（溢出？）","user":{"login":"leo-liu","id":570611,"avatar_url":"https://avatars.githubusercontent.com/u/570611?v=3","gravatar_id":"","url":"https://api.github.com/users/leo-liu","html_url":"https://github.com/leo-liu","followers_url":"https://api.github.com/users/leo-liu/followers","following_url":"https://api.github.com/users/leo-liu/following{/other_user}","gists_url":"https://api.github.com/users/leo-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/leo-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo-liu/subscriptions","organizations_url":"https://api.github.com/users/leo-liu/orgs","repos_url":"https://api.github.com/users/leo-liu/repos","events_url":"https://api.github.com/users/leo-liu/events{/privacy}","received_events_url":"https://api.github.com/users/leo-liu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-25T03:22:03Z","updated_at":"2016-03-30T05:54:23Z","closed_at":null,"body":"凑出来的重现代码：\r\n```latex\r\n\\documentclass{minimal}\r\n\\usepackage{amsmath}\r\n\\usepackage{array}\r\n\r\n\\begin{document} \r\n\\begin{gather}\r\n  \\begin{matrix} a \\end{matrix} \\\\\r\n\\end{gather}\r\n\\end{document}\r\n```\r\n算不上最小示例，但把 `amsmath` 和 `array` 宏包里面的宏解析出来估计比较费时。总之足够重现错误了。\r\n\r\n无论是使用 W32TeX 的预编译版本还是目前库里面的版本，就会触发 `! Dimension too large.` 的错误。我估计是哪里计算长度的时候溢出了。\r\n\r\n同样的代码，`uplatex` 编译是没有问题的。\r\n\r\n详细的 log 为：\r\n```\r\nThis is Asian pTeX, Version 3.14159265 (W32TeX) (preloaded format=platex-ng 2016.2.26)  2016 MAR 25 11:20\r\nentering extended mode\r\n**z\r\n(z.tex\r\npLaTeX2e <2011/05/07u00>+0 (based on LaTeX2e <2016/02/01> patch level 0)\r\nBabel <3.9q> and hyphenation patterns for 81 language(s) loaded.\r\n(c:/texlive/2015/texmf-dist/tex/latex/base/minimal.cls\r\nDocument Class: minimal 2001/05/25 Standard LaTeX minimal class\r\n) (c:/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty\r\nPackage: amsmath 2016/03/03 v2.15a AMS math features\r\n\\@mathmargin=\\skip41\r\n\r\nFor additional information on amsmath, use the `?' option.\r\n(c:/texlive/2015/texmf-dist/tex/latex/amsmath/amstext.sty\r\nPackage: amstext 2000/06/29 v2.01 AMS text\r\n\r\n(c:/texlive/2015/texmf-dist/tex/latex/amsmath/amsgen.sty\r\nFile: amsgen.sty 1999/11/30 v2.0 generic functions\r\n\\@emptytoks=\\toks15\r\n\\ex@=\\dimen118\r\n))\r\n(c:/texlive/2015/texmf-dist/tex/latex/amsmath/amsbsy.sty\r\nPackage: amsbsy 1999/11/29 v1.2d Bold Symbols\r\n\\pmbraise@=\\dimen119\r\n)\r\n(c:/texlive/2015/texmf-dist/tex/latex/amsmath/amsopn.sty\r\nPackage: amsopn 1999/12/14 v2.01 operator names\r\n)\r\n\\inf@bad=\\count81\r\nLaTeX Info: Redefining \\frac on input line 199.\r\n\\uproot@=\\count82\r\n\\leftroot@=\\count83\r\nLaTeX Info: Redefining \\overline on input line 297.\r\n\\classnum@=\\count84\r\n\\DOTSCASE@=\\count85\r\nLaTeX Info: Redefining \\ldots on input line 394.\r\nLaTeX Info: Redefining \\dots on input line 397.\r\nLaTeX Info: Redefining \\cdots on input line 518.\r\n\\Mathstrutbox@=\\box41\r\n\\strutbox@=\\box42\r\n\\big@size=\\dimen120\r\nLaTeX Font Info:    Redeclaring font encoding OML on input line 630.\r\nLaTeX Font Info:    Redeclaring font encoding OMS on input line 631.\r\n\\macc@depth=\\count86\r\n\\c@MaxMatrixCols=\\count87\r\n\\dotsspace@=\\muskip10\r\n\\c@parentequation=\\count88\r\n\\dspbrk@lvl=\\count89\r\n\\tag@help=\\toks16\r\n\\row@=\\count90\r\n\\column@=\\count91\r\n\\maxfields@=\\count92\r\n\\andhelp@=\\toks17\r\n\\eqnshift@=\\dimen121\r\n\\alignsep@=\\dimen122\r\n\\tagshift@=\\dimen123\r\n\\tagwidth@=\\dimen124\r\n\\totwidth@=\\dimen125\r\n\\lineht@=\\dimen126\r\n\\@envbody=\\toks18\r\n\\multlinegap=\\skip42\r\n\\multlinetaggap=\\skip43\r\n\\mathdisplay@stack=\\toks19\r\nLaTeX Info: Redefining \\[ on input line 2735.\r\nLaTeX Info: Redefining \\] on input line 2736.\r\n)\r\n(c:/texlive/2015/texmf-dist/tex/latex/tools/array.sty\r\nPackage: array 2014/10/28 v2.4c Tabular extension package (FMi)\r\n\\col@sep=\\dimen127\r\n\\extrarowheight=\\dimen128\r\n\\NC@list=\\toks20\r\n\\extratabsurround=\\skip44\r\n\\backup@length=\\skip45\r\n) (z.aux)\r\nLaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for JY2/mc/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Checking defaults for JT2/mc/m/n on input line 5.\r\nLaTeX Font Info:    ... okay on input line 5.\r\nLaTeX Font Info:    Font shape `JT2/mc/m/n' will be\r\n(Font)              scaled to size 9.6222pt on input line 5.\r\nLaTeX Font Info:    Font shape `JY2/mc/m/n' will be\r\n(Font)              scaled to size 9.6222pt on input line 5.\r\n\r\n! Dimension too large.\r\n\\calc@shift@gather ...\\wdz@ \\fi \\ifdim \\eqnshift@ \r\n                                                  <\\z@ \\global \\eqnshift@ \\z...\r\nl.8 \\end{gather}\r\n                \r\n? \r\n! Dimension too large.\r\n\\set@gather@field ...\\dp \\z@ \\fi \\kern \\eqnshift@ \r\n                                                  \\boxz@ \\hfil \r\nl.8 \\end{gather}\r\n                \r\n? \r\n\r\nOverfull \\hbox (190578223.56172pt too wide) in paragraph at lines 8--8\r\n[] \r\n []\r\n\r\n\r\nOverfull \\hbox (85540399.56995pt too wide) in alignment at lines 8--8\r\n[] []\r\n []\r\n\r\n[1] (z.aux) ) \r\n\r\nHere is how much of TeX's memory you used:\r\n 690 strings out of 10000\r\n 7244 string characters out of 80000\r\n 77013 words of memory out of 262140\r\n 4276 multiletter control sequences out of 524288\r\n 6429 words of font info for 33 fonts, out of 45975 for 65535\r\n 929 hyphenation exceptions out of 8191\r\n 27i,12n,20p,211b,174s stack positions out of 100i,100n,100p,1000b,1000s\r\n (i = in_stack, n = nest_stack, p = param_stack, b = buf_stack, s = save_stack)\r\n 4 inputs open max out of 15\r\n\r\nSuccess at breaking 2 paragraphs:\r\n 2 single line `paragraphs'\r\n 2 first pass (\\pretolerance = 100)\r\n 1 second pass (\\tolerance = 200)\r\n\r\n 2 overfull \\hboxes\r\n\r\nOutput written on C:/Users/Leo/Desktop/MiL4/z.pdf (1 page, 2327 bytes).\r\n```"},"comment":{"url":"https://api.github.com/repos/clerkma/ptex-ng/issues/comments/203260168","html_url":"https://github.com/clerkma/ptex-ng/issues/7#issuecomment-203260168","issue_url":"https://api.github.com/repos/clerkma/ptex-ng/issues/7","id":203260168,"user":{"login":"clerkma","id":8791213,"avatar_url":"https://avatars.githubusercontent.com/u/8791213?v=3","gravatar_id":"","url":"https://api.github.com/users/clerkma","html_url":"https://github.com/clerkma","followers_url":"https://api.github.com/users/clerkma/followers","following_url":"https://api.github.com/users/clerkma/following{/other_user}","gists_url":"https://api.github.com/users/clerkma/gists{/gist_id}","starred_url":"https://api.github.com/users/clerkma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clerkma/subscriptions","organizations_url":"https://api.github.com/users/clerkma/orgs","repos_url":"https://api.github.com/users/clerkma/repos","events_url":"https://api.github.com/users/clerkma/events{/privacy}","received_events_url":"https://api.github.com/users/clerkma/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T05:54:23Z","updated_at":"2016-03-30T05:54:23Z","body":"大概查到是某个glue算错了。"}}