![](https://secure.gravatar.com/avatar/475dfbec7c097f26f0e7d3ec630f6c16.jpg?s=120&d=mm&r=g)
Dear list, Consider the following example: \definepapersize [custom] [width=20cm, height=15cm] \setuppapersize [custom] \setuplayout [ width=fit, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt, height=fit, header=0pt, footer=0pt, topspace=0cm, backspace=0cm, bottomspace=0cm, bottom=0pt, location=singlesided] \setuppagenumbering[location=] \startMPpage StartPage ; width := PaperWidth ; height := PaperHeight ; unit := cm ; drawoptions(withpen pencircle scaled .2pt withcolor .8white) ; draw vlingrid(0, width /unit, 1/10, width, height) ; draw hlingrid(0, height/unit, 1/10, height, width ) ; drawoptions(withpen pencircle scaled .5pt withcolor .4white) ; draw vlingrid(0, width /unit, 1, width, height) ; draw hlingrid(0, height/unit, 1, height, width ) ; draw thetextext.origin("Hello, World!", (1cm, 5cm)) ; StopPage ; \stopMPpage I want to position the text "Hello, World!" such that the vertical coordinate of the text origin is at the baseline, but the output seems to be the same even if I use "thetextext.raw" (note how the output changes if I remove the comma from the text). Also, how would I go about setting the origin on the right side? Kind regards, Stefan
participants (1)
-
Stefan Nedeljkovic