[NTG-context] \raggedright?

Willi Egger w.egger at boede.nl
Sun Mar 13 12:02:03 CET 2005


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 at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
-------------- next part --------------
% 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


More information about the ntg-context mailing list