4

I want to center the poem written by William Blake. Is there an environment in ConTeXt to achieve this?

My only method is the midaligned

\midaligned{To see a world in a grain of sand}
\midaligned{And a heaven in a wild fllower}
\midaligned{Hold infinity in the palm of your hand}
\midaligned{And eternity in an hour}

but it's not elegant.

0

1 Answer 1

5

There is lines.

\starttext
\setuplines[align=middle]
\startlines
To see a world in a grain of sand
And a heaven in a wild flower
Hold infinity in the palm of your hand
And eternity in an hour
\stoplines
\stoptext
4
  • Normally, one uses align=middle rather than align=center. (I am actually surprised that align=center works!)
    – Aditya
    Apr 14, 2013 at 16:16
  • @Aditya Oh, I'll fix that. I don't really use ConTeXt, so I just tried it, and it worked. Apr 14, 2013 at 16:16
  • 3
    Yes, that is one of the features of ConTeXt. You try the logical thing and it works :)
    – Aditya
    Apr 14, 2013 at 16:18
  • @Aditya "You try the logical thing and it works" exactly
    – yanpengl
    Apr 14, 2013 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .