A minimal example:

--------------- cut --------------------
\def\2#1#2{\vcenter{\halign{\hfil ##\hfil\cr #1\cr#2\cr}}}
\def\ptwo#1#2{\left(\2{#1}{#2}\right)}

\starttext

\startformula
\underbrace{\ptwo{specific}{heat}}_{1}
\stopformula

\stoptext
--------------- cut --------------------

It works with 2013.05.28 00:36 MKIV current, correctly producing 

( specific )
  heat

(with bigger parens) with an underbrace and a 1 underneath the brace.

With 2013.12.26 12:50 MKIV beta, I get this error:

  ! Illegal parameter number in definition of \m_math_stackers_text_middle.

  system          > tex > error on line 7 in file /home/sanjoy/sfse/test3.tex: 
Illegal parameter number in definition of  ...

   1     \def\2#1#2{\vcenter{\halign{\hfil ##\hfil\cr #1\cr#2\cr}}}
   2     \def\ptwo#1#2{\left(\2{#1}{#2}\right)}
   3     
   4     \starttext
   5     
   6     \startformula
   7 >>  \underbrace{\ptwo{specific}{heat}}_{1}
   8     \stopformula
   9     
  10     \stoptext
  11     

  <to be read again> 
  \hfil 
  \2#1#2l-\vcenter {\halign {\hfil ##\hfil 
                                           \cr #1\cr #2\cr }}
  \ptwo #1#2l-\left (\2{#1}{#2}
                               \right )
  \math_stackers_make_double ...kers_text_middle {#6
                                                    }\edef \p_offset 
{\mathsta...
  l.7 \underbrace{\ptwo{specific}{heat}}
                                      _{1}

I've attached the log file.

The "\ptwo{specific}{heat}" by itself is fine.  Only when it is wrapped
in the \underbrace does the problem occur.

-Sanjoy

(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.12.26 12:50 MKIV beta  fmt: 2013.12.26  int: english/english

system          > 'cont-new.mkiv' loaded
(/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system          > files > jobname 'test3', input './test3', result 'test3'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
(/home/sanjoy/sfse/test3.tex{/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown library 'loc'
{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > 'fallback modern rm 12pt' is loaded
backend         > xmp > using file 
'/home/sanjoy/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
 ) 
)</home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf></home/sanjoy/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

system          > structure > start used structure

used structure  > text: test3

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-yes.mkiv 
usedmethod=otherwise
used file       >    2: filename=cont-new.mkiv filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/cont-new.mkiv 
usedmethod=otherwise
used file       >    3: filename=lang-us.lua filetype=scripts 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/patterns/lang-us.lua
 usedmethod=otherwise
used file       >    4: filename=/home/sanjoy/sfse/test3.tex 
foundname=/home/sanjoy/sfse/test3.tex usedmethod=direct
used file       >    5: filename=mkiv-base.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map
 usedmethod=database
used file       >    6: filename=lm.lfg filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm.lfg 
usedmethod=otherwise
used file       >    7: filename=lm-math.lfg filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/fonts/lm-math.lfg 
usedmethod=otherwise
used file       >    8: filename=lm-math.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-math.map 
usedmethod=database
used file       >    9: filename=lm-rm.map filetype=map format=map 
foundname=/home/sanjoy/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map 
usedmethod=database
used file       >   10: filename=lmroman12-regular filetype=otf format=otf 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
used file       >   11: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file       >   12: filename=latinmodern-math.otf filetype=otf format=otf 
foundname=/home/sanjoy/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
used file       >   13: filename=lpdf-pdx.xml filetype=tex 
foundname=/home/sanjoy/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml 
usedmethod=otherwise

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="3"
used option     > fulljobname="./test3.tex"
used option     > input="./test3.tex"
used option     > kindofrun="2"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"
used option     > nonstopmode="true"
used option     > passon="-file-line-error -recorder -interaction nonstopmode"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./test3.tex

system          > options > stop commandline files



mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/home/sanjoy/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.014 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 338 modules (0.220 sec), 69 tables 
(0.000 sec), 407 chunks (0.220 sec)
mkiv lua stats  > cleaned up reserved nodes: 42 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks: 6 unique task lists, 6 instances 
(re)created, 42 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 150 direct, 178 indirect, 328 total
mkiv lua stats  > randomizer: resumed with value 0.86747895500971
mkiv lua stats  > result saved in file: test3.pdf, compresslevel 3, 
objectcompreslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.324 seconds for 4 fonts, 2 shared in 
backend, 2 common vectors, 0 common hashes
mkiv lua stats  > used platform: linux, type: unix, binary subtree: texmf-linux
mkiv lua stats  > luatex banner: this is luatex, version beta-0.76.0-2013040516 
 (tex live 2013/dev)(rev 4627)
mkiv lua stats  > control sequences: 38336 of 65536 + 100000
mkiv lua stats  > current memory usage: 29 MB (ctx: 28 MB)
mkiv lua stats  > runtime: 0.769 seconds, 1 processed pages, 1 shipped pages, 
1.300 pages/second

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to