22 Oct
2012
22 Oct
'12
5:15 a.m.
On Mon, 22 Oct 2012, Jeong Dal wrote:
Dear all,
1. I'd like to make a horizontal space using \hspace[3em] inside luacode.
But context.hspace({3em}), context.hspace({"3em"}), context.hspace("3em") don't work. And print(" ") doesn't work either.
How to make some horizontal space in luacode?
\hspace does not accept dimensions. The syntax for hspace is \definehspace[whatever][3em] \hspace[whatever]. So, you need: \definehspace[skip][3em] \starttext \startluacode context("Some text") context.hspace{"skip"} context("More text") \stopluacode \stoptext Aditya