[NTG-context] Page building and vertical stretching

2021-04-22 Thread denis.maier
Hi,

in addition to my previous mails about \setupalign[height], a further question 
related to page building :
I'm trying to understand how ConTeXt builds pages, and how this can be 
influenced. Regarding the example below, the aim is to have pages that always 
end at the same place.
Now, how will ConTeXt use stretching? Blanks are set to flexible, and the 
interlinespacing is set to stretch. (But different values for blockquotes.)
In which order will ConTeXt proceed? Interlinespacing first, then blanks? Or 
the other way round? Or both at the same time?
And, can this be influenced somehow?

Best,
Denis


\setuppapersize[A5][A5]
\showframe

\setupblank[big,flexible]

\setupinterlinespace[stretch=0.03]
\setuptolerance[vertical,stretch]
\setupalign[height]

\setuphead
[section,subject]
[
before={\blank[2*big,flexible]},
after={\blank[big,flexible]},
]

\setupdelimitedtext[blockquote]
   [
   
before={\tfx\setupinterlinespace[stretch=0.05]},
   
spacebefore={medium,flexible},
   left=
   ]

\starttext

\input knuth

\section{A section heading}

\input knuth\par
\blank
\input knuth\par

\startblockquote
\input knuth\par
\stopblockquote

\input knuth\par

\startblockquote
\input knuth\par
\stopblockquote

\input knuth\par

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Style options and setupinterlinespace

2021-04-22 Thread denis.maier
Hi,

the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:


> These quick font switches are meant for changing the font style, alternative, 
> or size of a few words: they do not change the bodyfont, so they don't affect 
> interline spacing or math font sizes. So, if you want to change the font size 
> of an entire paragraph, use 
> \switchtobodyfont 
> described below in Complete Font 
> Change. 
> However, it is fine to use them as style directives in setup commands, that 
> is, using them as an option for 
> style=... in any 
> setup command that accepts style option

>From this, I'd infer that a  or  should change the 
>interline spacing as well. But it does not seem to be the case as the example 
>below shows.

Best,
Denis

--
\definedelimitedtext[blockquoteA]
\setupdelimitedtext[blockquoteA]
   [
   style=tfx,
   
spacebefore=medium,
   ]

\definedelimitedtext[blockquoteB]
\setupdelimitedtext[blockquoteB]
   [
   
before={\tfx\setupinterlinespace},
   
spacebefore=medium,
   ]

\starttext

\input knuth

\startblockquoteA
\input knuth
\stopblockquoteA

\input knuth

\startblockquoteB
\input knuth
\stopblockquoteB

\input knuth

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \setupalign[height] and \setupalign[line] in LMTX

2021-04-22 Thread denis.maier
Hi,

\setupalign[height] and \setupalign[line] seem to have no effect in a  LMTX. Do 
I need to change something?

Best,
Denis


```
\setuppapersize[A5][A5]
\showframe
%\setupalign[line]
\setupalign[height]

\setupdelimitedtext[blockquote]
   [
   
before={\setupindenting[yes]\tfx\setupinterlinespace},
   
spacebefore=medium,
   indentnext=no,
   leftmargin=no,
   rightmargin=no,
   ]


\starttext

\dorecurse{10}{
\input knuth

\startblockquote
\input knuth
\stopblockquote

\input knuth
}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] nbsp in XML (S01E01)

2021-04-22 Thread Hans Hagen

On 4/21/2021 8:17 PM, Jano Kula wrote:


Does unicode nbsp have fixed with in ctx?


sometimes ... but you just uncovered an old bug

if attr >= 1 or attr <= 3 then -- flushright

someplace should be

if attr >= 1 and attr <= 3 then -- flushright

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___