On 7/17/06, Hans Hagen wrote:
Mojca Miklavec wrote:
Hello,
I urgently need to have my \framed texts left-justified (no hyphenation and nothing may go over the right border)
I know that it must be trivial, but I assume that explicit \exhyphenpenalty=10000 \hyphenpenalty=10000 are replaced inside \framed anyway.
align={flushleft,nothyphenated,verytolerant}
I tested a bit and \framed seems to work OK, but I have no idea how to prevent the name to extend outside of the frame in the next example: \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 ̣(All those people Withextremelylongnames are already leaving today, so one problem less now: I had to improvise a bit to get the names approximately OK on the slides, but I still wonder how to handle the problem in the future if it arises again.) Would it be possible to add those definitions somewhere to cont-en.xml? Thank you, Mojca