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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to