[NTG-context] prevent hyphenation (flush left)

Otared Kavian otared at gmail.com
Tue Jul 18 17:38:12 CEST 2006


On 18 juil. 2006, at 17:27, Mojca Miklavec wrote:

> \setuppapersize
> 	[S6][S6]
>
> %\definetypeface [iwona] [ss] [sans] [iwona] [default] [encoding=ec]
> %\setupbodyfont [iwona,12pt,ss]
>
> \setupbackgrounds
> 	[page]
> 	[background=page]
> \definelayer
> 	[page]
> 	[width=\paperwidth,
> 	 height=\paperheight]
>
> \def\contestant#1#2#3{\page
> 	\setlayerframed
> 		[page]
> 		[voffset=3cm,
> 		 hoffset=3cm,
> 		 preset=lefttop]
> 		[height=6cm,
> 		 width=9cm,
> 		 align={flushleft,lohi,nothyphenated,verytolerant},
> 		 frame=on,
> 		]{{\switchtobodyfont[35pt]\bf #1
> #2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut}
>
> \starttext
> \contestant{Someone}{Withavery long Surname}{Country}
> \stoptext

Does adding the keyword stretch in align={...} give what you want:
		
\def\contestant#1#2#3{\page
	\setlayerframed
		[page]
		[voffset=3cm,
		 hoffset=3cm,
		 preset=lefttop]
		[height=6cm,
		 width=9cm,
		 align={flushleft,lohi,nothyphenated,stretch,verytolerant},
		 frame=on,
		]{{\switchtobodyfont[35pt]\bf #1
#2\crlf}\crlf\switchtobodyfont[30pt]#3}\strut}

Best regards: OK


More information about the ntg-context mailing list