Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> dofile "newrect.lua"
> z = ZHA.fromspec("12RRL1LLRR"):print()
    45    
  44      
43        
  33      
    23    
  22  13  
    12  03
  11  02  
10  01    
  00      
> mp = MixedPicture.new({}, z)
> mp = MixedPicture.new({bhbox=1, paren=1, scale="10pt", def="foo"}, z)
> = mp:put(v"02", "02")
02
> = mp:tolatex()
\def\foo{\left(\bhbox{$\vcenter{\hbox{\unitlength=10pt%
\celllower=2.5pt%
\def\cellfont{}%
\begin{picture}(1,1)(1.5,1.5)
  \put(2,2){\cell{02}}
\end{picture}}}$}\right)}
> for v in z:points() do mp:put(v, v:lr()) end
> = mp:addcontour()
      /  \      
       45       
   /     /      
    44          
/     /         
 43             
\     \         
    33          
   \     \      
       23       
   /        \   
    22    13    
   \           \
       12    03 
   /           /
    11    02    
/           /   
 10    01       
\        /      
    00          
   \  /         
> = mp:addlcut(0):addrcut(2)
      /  \      
       45       
   /     /      
    44          
/     /         
 43             
\     \         
    33          
   \     \      
       23       
   /  \     \   
    22    13    
   \     \  /  \
       12    03 
   /     /  \  /
    11    02    
/     /     /   
 10    01       
\  /     /      
    00          
   \  /         
> latex = mp:tolatex()
> = latex
\def\foo{\left(\bhbox{$\vcenter{\hbox{\unitlength=10pt%
\celllower=2.5pt%
\def\cellfont{}%
\begin{picture}(6,11)(-2,-1)
  \put(0,-1){\line(-1,1){2}}
  \put(-2,1){\line(1,1){2}}
  \put(0,3){\line(-1,1){1}}
  \put(-1,4){\line(1,1){1}}
  \put(0,5){\line(-1,1){2}}
  \put(-2,7){\line(1,1){3}}
  \put(1,10){\line(1,-1){1}}
  \put(2,9){\line(-1,-1){2}}
  \put(0,7){\line(1,-1){4}}
  \put(4,3){\line(-1,-1){4}}
  \put(-1,0){\line(1,1){4}}
  \put(0,5){\line(1,-1){3}}
  \put(2,2){\cell{02}}
  \put(-1,7){\cell{43}}
  \put(0,8){\cell{44}}
  \put(1,9){\cell{45}}
  \put(0,6){\cell{33}}
  \put(0,4){\cell{22}}
  \put(1,5){\cell{23}}
  \put(-1,1){\cell{10}}
  \put(0,2){\cell{11}}
  \put(1,3){\cell{12}}
  \put(2,4){\cell{13}}
  \put(0,0){\cell{00}}
  \put(1,1){\cell{01}}
  \put(2,2){\cell{02}}
  \put(3,3){\cell{03}}
\end{picture}}}$}\right)}
> writefile("/tmp/o.tex", latex)  -- (find-fline "/tmp/o.tex")
> -- (find-ist "-handouts.tex" "mixedpicture-tests")
> 
>