I want to make several middle-aligned paragraphs, this is the code:
\usemodule[zhfonts] % zhfonts is a third-party module which created by Liyanrui, for selecting Chinese fonts,font size, etc.
% https://github.com/liyanrui/zhfonts
\starttext
\startalignment[middle]
天地玄黄
宇宙洪荒
\stopalignment
\midaligned{天地玄黄}
\midaligned{宇宙洪荒}
\startalignment[middle]
\hbox{天地玄黄}
\hbox{宇宙洪荒}
\stopalignment
\stoptext
The code above doesn't produce the desired effect, for it doesn't deal with the distance between characters. (Compare it with the \midaligned
command.)
When put the characters in a hbox
, the two paragraphs become left justified!
How to modify \start ... \stopalignment
environment to get the effect produced by \midaligned
command?
\documentclass
and terminating with\end{document}
\startalignment[middle,broad]
to get rid of the space between the characters.\hbox
doesn't start a paragraph. You have to do\dontleavehmode\hbox
.