![](https://secure.gravatar.com/avatar/c83fb4134167a11422c23048fb8a85e3.jpg?s=120&d=mm&r=g)
I tried to get one piece in a justified text to behave as follows: right aligned and with a jagged left edge. But what I tried influenced my entire document. Can someone explain me how to do this? G
![](https://secure.gravatar.com/avatar/de231c8f10866e1ade625f00d831d359.jpg?s=120&d=mm&r=g)
* Gerben Wierda (Mar 13, 2005 00:50):
I tried to get one piece in a justified text to behave as follows: right aligned and with a jagged left edge. But what I tried influenced my entire document.
\starttext \startalignment[left] Blah blah blah \stopalignment \stoptext Don't ask why the parameter to \startalignment is left, not right. Look at the context wiki [1] for information on why this is so, nikolai [1] http://contextgarden.net/Main_Page -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi Gerben, with \raggedright one needs to use {}. May be a better approach is to use \framedtext[align=left,width=xxcm,frame=off]{your text} Pease refer to the attached file. Kind regards Willi Gerben Wierda wrote:
I tried to get one piece in a justified text to behave as follows: right aligned and with a jagged left edge. But what I tried influenced my entire document.
Can someone explain me how to do this?
G
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
% Ragged right text % Gerben Wierda % Context file % filename: ragged-Wierda.ex % Willi Egger % 13-03-2005 \setupoutput[pdftex] \mainlanguage[en] \setuptolerance[tolerant,stretch] \startbuffer[Ward] \input ward \stopbuffer \startbuffer[Knuth] \input knuth \stopbuffer \startbuffer[Zapf] \input zapf \stopbuffer \starttext {\raggedright{ \getbuffer[Knuth]}} \blank[2*big] {\raggedleft {\getbuffer[Ward]}} \blank[2*big] {\raggedright {\getbuffer[Zapf]}} \framedtext[align=left,width=9cm,fram=on,offset=.5cm]{ \getbuffer[Zapf]} \stoptext
participants (4)
-
Gerben Wierda
-
Nikolai Weibull
-
Taco Hoekwater
-
Willi Egger