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?
2. There is no white line even though I put "\blank[big]" between Frame(bring
it from MetaFun) and text as in the following example.
\starttext
%%%%%%%% framed Text
\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt(\MPstring{FunnyFrame}) ;
o := BodyFontSize ;
a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
%fill b withcolor .85white ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .425green;%.85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic
\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame,
offset=\bodyfontsize, width=\overlaywidth]%.8\textwidth]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText}
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf\white #1\hss}}}
This is a test line file for blank spaces.
\blank[big] % white line is wanted
{\FrameTitle{Test}
\StartFrame
\startitemize[n]
\item the first line.
\item the second line.
\item the third line.
\stopitemize
\StopFrame
}
\blank[big] % white line is wanted
Here is another test line.
\stoptext
What should I do to make a blank line before and after
Thank you.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________