Dear gang, Can one of you remind me if ConTeXt has a command for the following [or even if there is a better Plain TeX command]: \line{This \hfill is \hfill an \hfill evenly \hfill spread \hfill sentence.} Is there a command a la \ctxcommand[align=r2l,key=spread,width=textwidth]{This is an evenly spread sentence.} or even better \setupcommand[align=r2l,key=spread,width=textwidth] \ctxcommand{This is an evenly spread sentence.} [need lots of 'em] Played a bit with framed but could not get the linespacing to remain constant... ideas? Thnx in advance and Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
Am 11.10.2009 um 16:00 schrieb Idris Samawi Hamid ادريس سماوي حامد:
Dear gang,
Can one of you remind me if ConTeXt has a command for the following [or even if there is a better Plain TeX command]:
\line{This \hfill is \hfill an \hfill evenly \hfill spread \hfill sentence.}
Is there a command a la
\ctxcommand[align=r2l,key=spread,width=textwidth]{This is an evenly spread sentence.}
%\showframe \starttext \startsetups stretchline \spaceskip=0pt plus 1 fill\relax \stopsetups \framed[frame=off,width=\textwidth,setups=stretchline]{This is an evenly spread sentence.} \stoptext Wolfgang
Ah, gangster-in-chief Wolfgang to the rescue!
On Sun, 11 Oct 2009 10:24:03 -0600, Wolfgang Schuster
\starttext
\startsetups stretchline
\spaceskip=0pt plus 1 fill\relax
\stopsetups
\framed[frame=off,width=\textwidth,setups=stretchline]{This is an evenly spread sentence.}
\stoptext
To get proper interline spacing, we have to add a couple of params: \starttext \startsetups stretchline \spaceskip=0pt plus 1 fill\relax \stopsetups \setupframed[frame=off,width=\textwidth,setups=stretchline,offset=none,location=depth] \framed{This is an evenly spread sentence.} \framed{This is an evenly spread sentence.} {This is an evenly spread sentence.} {This is an evenly spread sentence.} \stoptext Thanks a million! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
participants (2)
-
Idris Samawi Hamid ادريس سماوي حامد
-
Wolfgang Schuster