Hi Thomas, move definitions and setups for Three and Four before the use of \framed. (With TL2019 works.) Wishes, Tomáš Thu, Jan 23, 2020 ve 11:54:49AM +0100 Thomas A. Schmitz napsal(a): # Hi all, # # I want line numbering within a framed environment, and I need two (at least) independent numbering systems. I hit a similar problem in 2016, and Wolfgang provided a solution (defining different numbering environment). However, this does not work within a frame. The example shows the problem: # # \starttext # # % This works: # \definelinenumbering[One] # \setuplinenumbering[One] # [style=\ss, # distance=-2ex, # step=2, # location=inleft, # start=20, # color=darkblue] # \startlinenumbering[One] # \input knuth # \stoplinenumbering # # \blank [line] # # \definelinenumbering[Two] # \setuplinenumbering[Two] # [style=\bf, # distance=-2ex, # step=3, # location=inleft, # start=4, # color=darkred] # \startlinenumbering[Two] # \input klein # \stoplinenumbering # # % This fails: # \framed # [background=color, # backgroundcolor=gray, # align={normal,hanging,stretch,tolerant}, # frame=off, # loffset=6ex, # width=\textwidth, # foregroundstyle=\ss] # {\definelinenumbering[Three] # \setuplinenumbering[Three] # [style=\ss, # distance=-2ex, # step=2, # location=inleft, # start=20, # color=darkblue] # \startlinenumbering[Three] # \input knuth # \stoplinenumbering # \blank [line] # # \definelinenumbering[Four] # \setuplinenumbering[Four] # [style=\bf, # distance=-2ex, # step=3, # location=inleft, # start=4, # color=darkred] # \startlinenumbering[Four] # \input klein # \stoplinenumbering} # # \stoptext # # The framed environment fails with the error message "Missing number, treated as zero.” Does anyone know how this can be fixed? # # All best # # Thomas # ___________________________________________________________________________________ # 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://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala