* Re: Line wrapping inconsistency with tolerance, alignment and framed
[not found] <mailman.1.1434708001.30365.ntg-context@ntg.nl>
@ 2015-06-19 14:37 ` Christoph Reller
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Reller @ 2015-06-19 14:37 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 990 bytes --]
On Thu, 18 Jun 2015 17:04:33 +0200 <schuster.wolfgang@gmail.com> wrote:
> The frame resets the tolerance settings and you have to set the values
> again for it.
>
>
> \defineframed[myframe][align={flushleft,stretch,verytolerant},offset=0pt]
>
>
> BTW: You can also disable hyphentation with the “nothyphenated” keyword
> for \setupalign (and the align key).
>
> \starttext
>
> \startalignment[flushleft,stretch,verytolerant,nothyphenated]
> supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +
> supercalifragilisticexpialidoc + supercalifragilisticexpialidoc
> \stopalignment
>
> \startframed[align={flushleft,stretch,verytolerant,nothyphenated}]
> supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +
> supercalifragilisticexpialidoc + supercalifragilisticexpialidoc
> \stopframed
>
> \stoptext
>
> Wolfgang
>
Thank you Wolfgang! This is very valuable information to me - and it solves
the problem.
Christoph
[-- Attachment #1.2: Type: text/html, Size: 1355 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Line wrapping inconsistency with tolerance, alignment and framed
2015-06-18 14:25 Christoph Reller
2015-06-18 15:04 ` Wolfgang Schuster
@ 2015-07-24 12:21 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2015-07-24 12:21 UTC (permalink / raw)
To: ntg-context
On 6/18/2015 4:25 PM, Christoph Reller wrote:
> Hi,
>
> I have an (admittedly carefully crafted) example, see below. My question:
> Why is the line wrapping different for this case within a framed and
> outside of a framed?
> How can I control the amount of space left on a line before breaking the
> line within and without a framed consistently?
>
> Any insight is welcome.
alignment settings are local in a framed (and similar cases)
\defineframed[myframe][align={flushleft,horizontal,stretch,verytolerant},frame=off,offset=overlay]
> Christoph
>
> MWE:
>
> \setuptolerance[horizontal,stretch,verytolerant]
> \defineframed[myframe][align=flushleft,frame=off,offset=0pt]
>
> \starttext
>
> \def\super{supercalifragilisticexpialidoc}
> \startalignment[flushleft]
> \unhyphenated{\super\ + \super\ + \super\ + \super}
> \stopalignment
>
> \myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}
>
> \stoptext
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Line wrapping inconsistency with tolerance, alignment and framed
2015-06-18 14:25 Christoph Reller
@ 2015-06-18 15:04 ` Wolfgang Schuster
2015-07-24 12:21 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2015-06-18 15:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1588 bytes --]
> Christoph Reller <mailto:christoph.reller@gmail.com>
> 18. Juni 2015 16:25
> Hi,
>
> I have an (admittedly carefully crafted) example, see below. My question:
> Why is the line wrapping different for this case within a framed and
> outside of a framed?
> How can I control the amount of space left on a line before breaking
> the line within and without a framed consistently?
>
> Any insight is welcome.
>
> Christoph
>
> MWE:
>
> \setuptolerance[horizontal,stretch,verytolerant]
> \defineframed[myframe][align=flushleft,frame=off,offset=0pt]
>
> \starttext
>
> \def\super{supercalifragilisticexpialidoc}
> \startalignment[flushleft]
> \unhyphenated{\super\ + \super\ + \super\ + \super}
> \stopalignment
>
> \myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}
>
> \stoptext
The frame resets the tolerance settings and you have to set the values
again for it.
\defineframed[myframe][align={flushleft,stretch,verytolerant},offset=0pt]
BTW: You can also disable hyphentation with the “nothyphenated” keyword
for \setupalign (and the align key).
\starttext
\startalignment[flushleft,stretch,verytolerant,nothyphenated]
supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +
supercalifragilisticexpialidoc + supercalifragilisticexpialidoc
\stopalignment
\startframed[align={flushleft,stretch,verytolerant,nothyphenated}]
supercalifragilisticexpialidoc + supercalifragilisticexpialidoc +
supercalifragilisticexpialidoc + supercalifragilisticexpialidoc
\stopframed
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2981 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Line wrapping inconsistency with tolerance, alignment and framed
@ 2015-06-18 14:25 Christoph Reller
2015-06-18 15:04 ` Wolfgang Schuster
2015-07-24 12:21 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Reller @ 2015-06-18 14:25 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 668 bytes --]
Hi,
I have an (admittedly carefully crafted) example, see below. My question:
Why is the line wrapping different for this case within a framed and
outside of a framed?
How can I control the amount of space left on a line before breaking the
line within and without a framed consistently?
Any insight is welcome.
Christoph
MWE:
\setuptolerance[horizontal,stretch,verytolerant]
\defineframed[myframe][align=flushleft,frame=off,offset=0pt]
\starttext
\def\super{supercalifragilisticexpialidoc}
\startalignment[flushleft]
\unhyphenated{\super\ + \super\ + \super\ + \super}
\stopalignment
\myframe{\unhyphenated{\super\ + \super\ + \super\ + \super}}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 978 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-24 12:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1434708001.30365.ntg-context@ntg.nl>
2015-06-19 14:37 ` Line wrapping inconsistency with tolerance, alignment and framed Christoph Reller
2015-06-18 14:25 Christoph Reller
2015-06-18 15:04 ` Wolfgang Schuster
2015-07-24 12:21 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).