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
* 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);}
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