Re: [NTG-context] Line wrapping inconsistency with tolerance, alignment and framed

2015-06-18 Thread Wolfgang Schuster

Christoph Reller 
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
___
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
___

[NTG-context] Line wrapping inconsistency with tolerance, alignment and framed

2015-06-18 Thread Christoph Reller
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
___
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
___

[NTG-context] OT: sumatrapdfreader...

2015-06-18 Thread luigi scarso
http://www.sumatrapdfreader.org/free-pdf-reader.html

watch the image ... there is a book made with context...

-- 
luigi
___
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
___

[NTG-context] Component of a product (correction!)

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose the following case:

 Book.mkiv
\startproduct *
   \component A.mkiv
   \component B.mkiv
\stopproduct


 A.mkiv
\startcomponent *
   \section{A}
\stopcomponent


 B.mkiv
\startcomponent *
   \section{B}
\stopcomponent


When compiling "Book.mkiv", I'm getting the following sections (obviously):
1. A
2. B

Similarly, when compiling "A.mkiv", I'm getting:
1. A

and for "B.mkiv":
1. B

But: is there a way to say to ConTeXt - when compiling just B.mkiv - that 
B.mkiv is supposed to be a part of a product (Book.mkiv) and so that the 
chapter should be numbered from 2, so to get:
2. B... <<<--- Correction here compared with the previous mail
?

I supposed that project/product/component abilities of ConTeXt were mentioned 
for this, but...?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Book.mkiv
Description: Binary data


B.mkiv
Description: Binary data


A.mkiv
Description: Binary data
___
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
___

[NTG-context] Component of a product

2015-06-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

suppose the following case:

 Book.mkiv
\startproduct *
  \component A.mkiv
  \component B.mkiv
\stopproduct


 A.mkiv
\startcomponent *
  \section{A}
\stopcomponent


 B.mkiv
\startcomponent *
  \section{B}
\stopcomponent


When compiling "Book.mkiv", I'm getting the following sections (obviously):
1. A
2. B

Similarly, when compiling "A.mkiv", I'm getting:
1. A

and for "B.mkiv":
1. B

But: is there a way to say to ConTeXt - when compiling just B.mkiv - that 
B.mkiv is supposed to be a part of a product (Book.mkiv) and so that the 
chapter should be numbered from 2, so to get:
1. B
?

I supposed that project/product/component abilities of ConTeXt were mentioned 
for this, but...?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

A.mkiv
Description: Binary data


B.mkiv
Description: Binary data


Book.mkiv
Description: Binary data
___
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
___