12 Apr
2008
12 Apr
'08
1:37 a.m.
Hallo, I have a few silly questions about tex.print() To produce $\sqrt{2}=1.4142135623731$ it should be enough to write tex.print("$\\sqrt{2}=" .. math.sqrt(2) .. "$") or better tex.print([[$\sqrt{2}=]] .. math.sqrt(2) .. "$") but that's both not working. The following instead does the job: tex.print("$\string\\sqrt{2}=" .. math.sqrt(2) .. "$") why? Another question: What is the differenz between 'tex.sprint()' and 'tex.write()'? Wolfgang