ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* luatexing
@ 2008-04-11 23:37 Wolfgang Werners-Lucchini
  2008-04-12  7:29 ` luatexing Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Werners-Lucchini @ 2008-04-11 23:37 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-13 11:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.4851.1207985975.4340.ntg-context@ntg.nl>
2008-04-12 19:47 ` mplib Wolfgang Werners-Lucchini
2008-04-13 10:31   ` mplib Taco Hoekwater
2008-04-12 19:47 ` luatexing Wolfgang Werners-Lucchini
2008-04-13  8:59   ` luatexing Taco Hoekwater
2008-04-13 11:58   ` luatexing Hans Hagen
2008-04-11 23:37 luatexing Wolfgang Werners-Lucchini
2008-04-12  7:29 ` luatexing Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).