ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Luatex question
@ 2011-10-25 12:09 Lutz Haseloff
  2011-10-25 12:15 ` luigi scarso
  2011-10-25 12:27 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Lutz Haseloff @ 2011-10-25 12:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

some months ago I printed the name of the current font with following code:

\starttext
The current font is: \ctxlua{tex.print(font.getfont(font.current()).fullname)}.
\stoptext

Now I get an error message:

! LuaTeX error <main ctx instance>:1: no string to print
stack traceback:
	[C]: in function 'print'
	<main ctx instance>:1: in main chunk.
l.2 ...int(font.getfont(font.current()).fullname)}
                                                  .
?

What is the right way now?
(didn't find any news in functionref.pdf or luatexref-t.pdf)

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


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

end of thread, other threads:[~2011-10-25 13:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 12:09 Luatex question Lutz Haseloff
2011-10-25 12:15 ` luigi scarso
2011-10-25 12:27 ` Hans Hagen
2011-10-25 13:04   ` Lutz Haseloff

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).