Am 01.05.2012 um 19:35 schrieb Aditya Mahajan:

> On Tue, 1 May 2012, Aditya Mahajan wrote:
> 
>> On Tue, 1 May 2012, Xenia wrote:
>> 
>>>> Use \definetextbackground for the frame, framedtext’s are unbreakable 
>>>> boxes.
>>> Thanks, that works, but now the linewrapping does not work correctly
>>> (after the frame)
>> 
>> The bad linebreaks also happen if you remove the background. I'll look into 
>> it (in any case, hypenation should be disabled, so there is a bug somewhere).
> 
> Add:
> 
> \startsetups linebreak
>  \language\minusone %disable hypenation
>  \raggedright       %avoid overflow lines \stopsetups
> 
> \unprotect
> \setupsyntaxhighlighting
>  [setups={syntaxhighlighting@setup,linebreak}]
> \protect
> 
> I'll add these to the main module and release a new version.

Why don’t you add a align key and use “align={flushleft,nothyphenated}” as 
default.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to