var string1 = "Test"
var string2
var string3
var string4
var string5
var string6
var string7
var endString ="\\end{array}$"
var string0 = string1+endString

function writeEqn(){
     string1 = "$\\begin{array}{rcl}\\lim_{\\theta\\rightarrow 0}\\frac{1-\\cos \\theta}{\\theta}&=&\\altLink{\\lim_{\\theta\\rightarrow 0}\\frac{1-\\cos \\theta}{\\theta}\\cdot\\frac{1+\\cos \\theta}{1+\\cos \\theta}}{Step 1.}\\\\"
     string2 = "&=&\\altLink{\\lim_{\\theta\\rightarrow 0}\\,\\frac{1-\\cos^2 \\theta}{\\theta(1+\\cos \\theta)}}{Step 2.}\\\\"
     string3 = "&=&\\altLink{\\lim_{\\theta\\rightarrow 0}\\,\\frac{\\sin^2\\theta}{\\theta(1+\\cos \\theta)}}{Step 3.}\\\\"
     string4 = "&=&\\altLink{\\lim_{\\theta\\rightarrow 0}\\,\\frac{\\sin\\theta}{\\theta}\\cdot\\frac{\\sin\\theta}{1+\\cos \\theta}}{Step 4.}\\\\"
     string5 = "&=&\\altLink{\\lim_{\\theta\\rightarrow 0}\\,\\frac{\\sin\\theta}{\\theta} \\cdot \\lim_{\\theta\\rightarrow 0}\\,\\frac{\\sin\\theta}{1+\\cos \\theta}}{Step 5.}\\\\"
     string6 = "&=&\\altLink{1\\cdot \\frac{\\sin\\, 0}{1+\\cos\\, 0}\\, =\\, 0}{Step 6.}\\\\"
     string0 = string1+string2+string3+string4+string5+string6+endString     
}
