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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to