* spread lines
@ 2009-10-11 14:00 Idris Samawi Hamid ادريس سماوي حامد
2009-10-11 16:24 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-10-11 14:00 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: spread lines
2009-10-11 14:00 spread lines Idris Samawi Hamid ادريس سماوي حامد
@ 2009-10-11 16:24 ` Wolfgang Schuster
2009-10-11 23:46 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2009-10-11 16:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: spread lines
2009-10-11 16:24 ` Wolfgang Schuster
@ 2009-10-11 23:46 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 3+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-10-11 23:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Ah, gangster-in-chief Wolfgang to the rescue!
On Sun, 11 Oct 2009 10:24:03 -0600, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> \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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-11 23:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-11 14:00 spread lines Idris Samawi Hamid ادريس سماوي حامد
2009-10-11 16:24 ` Wolfgang Schuster
2009-10-11 23:46 ` Idris Samawi Hamid ادريس سماوي حامد
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).