Re: [NTG-context] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-14 Thread Ulrike Fischer
Am Fri, 14 Jul 2017 20:56:15 +0200 schrieb Hans Hagen:

>> And what I should do about the "return new_kern(kern)"?
> 
> local g = new("kern")
> setfield(g,"kern",kern)

Ah. This here now worked 

-- UF changed 2017-07-14
local newUF = node.direct.new

local kern_injector = function (fillup, kern)
 if fillup then
   local g = newUF("glue")
   setfield(g, "stretch", kern)
   setfield(g, "stretch_order", 1)
   return g
 end
   local g = newUF("kern")
   setfield(g,"kern",kern)
--   return g
end
-- /UF

Is is correct? (I'm wondering if there should be return value at the
end, it worked with and without and I have no idea if it makes a
difference).



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Extensible arrows in ConTeXT

2017-07-14 Thread Alan Braslau
On Fri, 14 Jul 2017 11:33:14 +0200
Mathias Schickel  wrote:

> Dear list,
> 
> I want to typeset an extensible arrow as described in this document:
> http://dl.contextgarden.net/myway/matharrows.pdf
>  Sadly I get errors
> if I use \xrightarrow (even this simple command does not work).
> 
> Do extensible arrows still exists in ConTeXT and how can I use them?
> 
> Best
> Mathias

$\xrightarrow{}{}$
$\xrightoverleftarrow{}{33°C}$
etc.

Alan
___
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] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-14 Thread Hans Hagen

On 7/14/2017 8:26 PM, Ulrike Fischer wrote:

Am Fri, 14 Jul 2017 19:20:38 +0200 schrieb Hans Hagen:



local kern_injector = function (fillup, kern)
if fillup then
  local g = new_glue(kern)
  local s = getfield(g, "spec")
  setfield(s, "stretch", kern)
  setfield(s, "stretch_order", 1)
  return g
end
return new_kern(kern)
end


yes, i decided to limit the dependencies ... (also because the kern
allocator was a plug outside context)

you can use:

local new = node.direct.new

local g = new("glue")
setfield(g, "stretch", kern)
setfield(g, "stretch_order", 1)


And what I should do about the "return new_kern(kern)"?


local g = new("kern")
setfield(g,"kern",kern)


I tried various variants and got results from no letterspacing to
"invalid node type id" to " This can't happen (invalid node found in
discretionary)." to a luatex crash:


you can't put glue in discs so your letterspacing code should use kerns, 
not glue



-- UF changed 2017-07-14
local new = node.direct.new

local kern_injector = function (fillup, kern)
  if fillup then
local g = new("glue")
setfield(g, "stretch", kern)
setfield(g, "stretch_order", 1)
return g
  end
  --return new_kern(kern) --??
  --
end
--





--

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

Re: [NTG-context] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-14 Thread Ulrike Fischer
Am Fri, 14 Jul 2017 19:20:38 +0200 schrieb Hans Hagen:

>> 
>> local kern_injector = function (fillup, kern)
>>if fillup then
>>  local g = new_glue(kern)
>>  local s = getfield(g, "spec")
>>  setfield(s, "stretch", kern)
>>  setfield(s, "stretch_order", 1)
>>  return g
>>end
>>return new_kern(kern)
>> end
> 
> yes, i decided to limit the dependencies ... (also because the kern 
> allocator was a plug outside context)
> 
> you can use:
> 
>local new = node.direct.new
> 
>local g = new("glue")
>setfield(g, "stretch", kern)
>setfield(g, "stretch_order", 1)

And what I should do about the "return new_kern(kern)"?

I tried various variants and got results from no letterspacing to
"invalid node type id" to " This can't happen (invalid node found in
discretionary)." to a luatex crash:

-- UF changed 2017-07-14
local new = node.direct.new

local kern_injector = function (fillup, kern)
 if fillup then
   local g = new("glue")
   setfield(g, "stretch", kern)
   setfield(g, "stretch_order", 1)
   return g
 end
 --return new_kern(kern) --??
 --
end
--


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] +ssty leads to wrong parentheses with stix2math fonts.

2017-07-14 Thread Hans Hagen

On 7/14/2017 7:18 PM, Ulrike Fischer wrote:

Am Wed, 12 Jul 2017 11:33:22 +0200 schrieb Hans Hagen:


Anyway, the previous mail with the patch checks for al three
'missing' fields so this is basically the same issue. If not, let
me know.


As far as I can the patch works fine. I even was able to include it
in the latex fontloaders (with a small glitch, so my earlier post).

Will it be part of the next beta?

The patch I sent you? Sure.

In fact there have been some changes last weeks that will be in there 
too. I'm testing some complex issues with idris so in the process there 
have been some performance improvements for the more extreme complex 
fonts - which is sort of tricky to test - and a few obscure fixes due to 
the fact that we check the current and upcoming husayni fonts against 
uniscribe and so. But best let the context users (and Idris) suffer from 
possible issues first (a bit faster update/fix cycle for such cases).


(Often performance improvements are mostly obscured by the rest of what 
happens.)


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
___

Re: [NTG-context] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-14 Thread Hans Hagen

On 7/14/2017 4:39 PM, Ulrike Fischer wrote:

I have been trying to use the newest generic font loader
(luatex-fonts-merged.lua) in the context minimals with luaotfload
in latex.

This mostly worked with one exception: luaotfload-letterspace.lua
reference a value that no longer exists:

"...mf-dist/tex/luatex/luaotfload/luaotfload-letterspace.lua:73:
attempt to index local 'nodepool' (a nil value)".

luaotfload does

local nodedirect = nodes.nuts
local nodepool   = nodedirect.pool
local new_kern   = nodepool.kern

and uses new_kern here

local kern_injector = function (fillup, kern)
   if fillup then
 local g = new_glue(kern)
 local s = getfield(g, "spec")
 setfield(s, "stretch", kern)
 setfield(s, "stretch_order", 1)
 return g
   end
   return new_kern(kern)
end


yes, i decided to limit the dependencies ... (also because the kern 
allocator was a plug outside context)


you can use:

  local new = node.direct.new

  local g = new("glue")
  setfield(g, "stretch", kern)
  setfield(g, "stretch_order", 1)

and forget about the spec subnode which is gone for a while now (but 
still faked)



The error goes away when I add this to the fontloader (from an older
version):

nuts.new=direct.new
-- new UF
nuts.pool={}
function nuts.pool.kern(k)
local n=nuts.new("kern",1)
setfield(n,"kern",k)
return n
end
-- end UF
nuts.getprop=nuts.getattr

But I would prefer to change luaotfload-letterspace.lua to use
whatever should be used to get the correct effect. Can someone tell
me how to do it??






--

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

Re: [NTG-context] +ssty leads to wrong parentheses with stix2math fonts.

2017-07-14 Thread Ulrike Fischer
Am Wed, 12 Jul 2017 11:33:22 +0200 schrieb Hans Hagen:

> Anyway, the previous mail with the patch checks for al three
> 'missing' fields so this is basically the same issue. If not, let
> me know.

As far as I can the patch works fine. I even was able to include it
in the latex fontloaders (with a small glitch, so my earlier post).

Will it be part of the next beta? 
 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] confusing columns balancing results

2017-07-14 Thread Floris van Manen

> On 14 Jul 2017, at 17:28, Rik Kabel  wrote:
> 
> Henri’s example fails for me in the same way that Floris describes. However, 
> when I remove either or both of the following lines from the first 
> \setuplayout directive, all is well.
> header=0mm,
> footer=0mm,
> 
> In this example, the complete unnamed layout can simply be removed.
> 
> It is not clear why Floris has two layouts defined and active. One is 
> stepping on the other. I do not know if the results of applying multiple 
> layouts should be additive like this, or not, but I would think that they 
> should not be.

but removing the

header=0mm,
footer=0mm,

will redefine the page surface.

What i tried was to specify a margin of 10mm around the text block which has 5 
columns.
This works only if the column balance is set to no.
There is probably a good reason for, but i don’t understand it (yet)

What is the correct way to define it?


.F


\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]
\setupfootertexts[][]

\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
location={duplex},
grid=no,
topspace=1cm,
% height=19cm,
height=fit,
backspace=1cm,
cutspace=0cm,
leftmargin=0cm,
leftmargindistance=0.4cm,
width=fit,
rightmargindistance=0cm,
rightmargin=0cm,
header=0mm,
top=0mm,
footer=0mm,
bottom=0mm
]
 \setuplayout[WithoutMarginnotes]






signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
Exactly what I was looking for. Thanks!

Hans van der Meer




> On 14 Jul 2017, at 17:07, Pablo Rodriguez  wrote:
> 
> On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
>> \placenotes[endnote] puts a list of endnotes spaced out with the
>> setting of \setupwhitespace. Is there a means to keep
>> \setupwhitespace undisturbed but changing this for the endnotes
>> alone? Some parameter to be specified in \setupnote, \setupnotation
>> or one of its friends perhaps?
> Hans,
> 
> I guess this is what you need:
> 
>\startsetups[setups:endnotes]
>\setupwhitespace[5em]
>\stopsetups
> 
>\setupnote
>[endnote]
>[before=\directsetup{setups:endnotes}]
> 
>\starttext
>\dorecurse{5}{\input zapf\endnote{\input knuth}}
>\placenotes[endnote]
>\stoptext
> 
> I hope it helps,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

___
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] confusing columns balancing results

2017-07-14 Thread Rik Kabel

On 2017-07-13 20:05, Henri Menke wrote:

On Fri, 2017-07-14 at 01:08 +0200, Floris van Manen wrote:

When i try to use five balanced columns on a landscape page, i get unexpected 
results.


\setuppapersize[A4, landscape]
\setupbodyfont[8pt]
\language[fr]
\setupcolumns[
 n=5,
 distance=4mm,
 balance=yes,
 tolerance=tolerant]
\setupfootertexts[][]
\setuplayout[
 backspace=10mm,
 width=277mm,
 height=fit,
 topspace=10mm,
 header=0mm,
 top=0mm,
 footer=0mm,
 bottom=0mm]
\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
 location={duplex},
 grid=no,
 topspace=1cm,
 height=19cm,
 backspace=1cm,
 cutspace=0cm,
 leftmargin=0cm,
 leftmargindistance=0.4cm,
 width=fit,
 rightmargindistance=0cm,
 rightmargin=0cm]
  \setuplayout[WithoutMarginnotes]

\setuphead[section][
 align=normal,
 style=\tfa\ss,
 before={\blank},
 after={\blank[2pt]}]



No problems here with latest beta.  Post a full MWE which reproduces the 
problem instead of
snippets.


\setuppapersize[A4, landscape]
\setupbodyfont[8pt]
\language[fr]
\setupcolumns[
 n=5,
 distance=4mm,
 balance=yes,
 tolerance=tolerant]
\setupfootertexts[][]
\setuplayout[
 backspace=10mm,
 width=277mm,
 height=fit,
 topspace=10mm,
 header=0mm,
 top=0mm,
 footer=0mm,
 bottom=0mm]
\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
 location={duplex},
 grid=no,
 topspace=1cm,
 height=19cm,
 backspace=1cm,
 cutspace=0cm,
 leftmargin=0cm,
 leftmargindistance=0.4cm,
 width=fit,
 rightmargindistance=0cm,
 rightmargin=0cm]
  \setuplayout[WithoutMarginnotes]

\setuphead[section][
 align=normal,
 style=\tfa\ss,
 before={\blank},
 after={\blank[2pt]}]

\starttext

\startcolumns
   \dorecurse{20}{\input knuth }
\stopcolumns

\stoptext








When using balance=no
the page is properly typeset

\setupcolumns[
 n=5,
 distance=4mm,
 balance=no,
 tolerance=tolerant]




When using balance=yes
It looks as if the page orientation became portrait mode, as the text 
disappears at the bottom of
the page.



\setupcolumns[
 n=5,
 distance=4mm,
 balance=yes,
 tolerance=tolerant]







Some hints as how to proceed?
Thanks
.Floris van Manen





Henri’s example fails for me in the same way that Floris describes. 
However, when I remove either or both of the following lines from the 
first \setuplayout directive, all is well.


   header=0mm,
   footer=0mm,

In this example, the complete unnamed layout can simply be removed.

It is not clear why Floris has two layouts defined and active. One is 
stepping on the other. I do not know if the results of applying multiple 
layouts should be additive like this, or not, but I would think that 
they should not be.


--
Rik
___
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] Footnote in TABLE isn't rendered anywhere

2017-07-14 Thread Mathias Schickel

> Am 13.07.2017 um 01:18 schrieb Aditya Mahajan :
> 
> On Wed, 12 Jul 2017, Mathias Schickel wrote:
> 
>> Does no-one know what I can do to settle the problem?
>> [...]
>> So what can I do to get the footnotes in a background environment displayed?
> 
> \automigrateinserts
> \starttext
> \startbackground
>  This is a test\footnote{Footnote} continue
> \stopbackground
> \stoptext
> 
> According to node-mig.mkiv, this might cause problems with notes inside 
> captions.
> 
> Aditya

This indeed does the trick! Thank you very much! Maybe I will take use of Hans’ 
suggestion about textbackgrounds, but as I remember I have switched from those 
to backgrounds because they sometimes showed strange behaviour at page breaks 
if formulas are involved (leaving far too much space at the bottom of a page 
that could be used if I used backgrounds). Maybe I will be able to write a 
minimal example showing this effect of textbackgrounds.

However, I have met some issues using your solution, Aditya, with 
\automigrateinserts. I got one text in background containing a footnote that 
has been rendered onto the footnote. Of course this can only happen if the 
backgrounded text appears at the bottom of a page. It is a little hard to get a 
minimal example showing this. But I think everyone can imagine what I mean.

Maybe I will be able to produce minimal examples of both issues and then I will 
send it to the list and maybe Hans or someone with similar skills can take care 
of that effects.

Best and many thanks for the help
Mathias


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

___
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] Extensible arrows in ConTeXT

2017-07-14 Thread Mathias Schickel

> Am 14.07.2017 um 11:33 schrieb Mathias Schickel :
> 
> Dear list,
> 
> I want to typeset an extensible arrow as described in this document: 
> http://dl.contextgarden.net/myway/matharrows.pdf 
>  
> Sadly I get errors if I use \xrightarrow (even this simple command does not 
> work).
> 
> Do extensible arrows still exists in ConTeXT and how can I use them?
> 

Does no-one know if ConTeXt has extensible arrows? It would be great if at 
least someone could tell where I can get information about topics like that. 
Does a written compendium of all mathematical symbols in ConTeXt exist?


> Best
> Mathias
> ___
> 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
> ___

___
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] whitespace between endnotes

2017-07-14 Thread Pablo Rodriguez
On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
> \placenotes[endnote] puts a list of endnotes spaced out with the
> setting of \setupwhitespace. Is there a means to keep
> \setupwhitespace undisturbed but changing this for the endnotes
> alone? Some parameter to be specified in \setupnote, \setupnotation
> or one of its friends perhaps?
Hans,

I guess this is what you need:

\startsetups[setups:endnotes]
\setupwhitespace[5em]
\stopsetups

\setupnote
[endnote]
[before=\directsetup{setups:endnotes}]

\starttext
\dorecurse{5}{\input zapf\endnote{\input knuth}}
\placenotes[endnote]
\stoptext

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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] generic font loader + luaotfload: 'nodepool' (a nil value)"

2017-07-14 Thread Ulrike Fischer
I have been trying to use the newest generic font loader
(luatex-fonts-merged.lua) in the context minimals with luaotfload
in latex. 

This mostly worked with one exception: luaotfload-letterspace.lua
reference a value that no longer exists:

"...mf-dist/tex/luatex/luaotfload/luaotfload-letterspace.lua:73:
attempt to index local 'nodepool' (a nil value)".

luaotfload does

local nodedirect = nodes.nuts
local nodepool   = nodedirect.pool
local new_kern   = nodepool.kern

and uses new_kern here

local kern_injector = function (fillup, kern)
  if fillup then
local g = new_glue(kern)
local s = getfield(g, "spec")
setfield(s, "stretch", kern)
setfield(s, "stretch_order", 1)
return g
  end
  return new_kern(kern)
end

The error goes away when I add this to the fontloader (from an older
version):

nuts.new=direct.new
-- new UF
   nuts.pool={}
   function nuts.pool.kern(k)
   local n=nuts.new("kern",1)
   setfield(n,"kern",k)
   return n
   end
-- end UF
nuts.getprop=nuts.getattr

But I would prefer to change luaotfload-letterspace.lua to use
whatever should be used to get the correct effect. Can someone tell
me how to do it??



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
\placenotes[endnote] puts a list of endnotes spaced out with the setting of 
\setupwhitespace. Is there a means to keep  \setupwhitespace undisturbed 
but changing this for the endnotes alone? Some parameter to be specified in 
\setupnote, \setupnotation or one of its friends perhaps?


Hans van der Meer




___
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] Breaking formulas

2017-07-14 Thread Hans Hagen

On 7/14/2017 11:37 AM, Mathias Schickel wrote:


I am not sure if the file that I have prepared to sum up some of the problems 
of the actual implementation of auto breaking of formulas has reached the list. 
This time I will send only the context file to avoid too large files.
this autobreaking is just driven by penalties and then done by the 
engine as if it were inline math .. what you want is something more 
complex (doable but not trivial as decisions that are made then also 
need to be configureable etc as fighting heuristics is a pain) ... so 
this feature is rather non-intrusive


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
___

[NTG-context] Breaking formulas

2017-07-14 Thread Mathias Schickel
Dear List,

I am not sure if the file that I have prepared to sum up some of the problems 
of the actual implementation of auto breaking of formulas has reached the list. 
This time I will send only the context file to avoid too large files.

Best
Mathias



formula-breaking.tex
Description: TeX document
___
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] Extensible arrows in ConTeXT

2017-07-14 Thread Mathias Schickel
Dear list,

I want to typeset an extensible arrow as described in this document: 
http://dl.contextgarden.net/myway/matharrows.pdf 
 
Sadly I get errors if I use \xrightarrow (even this simple command does not 
work).

Do extensible arrows still exists in ConTeXT and how can I use them?

Best
Mathias___
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] test on front/body/backmatter

2017-07-14 Thread Hans Hagen

On 7/14/2017 10:42 AM, Meer, Hans van der wrote:

Is there a test usable in a macro to determine if one is inside frontmatter, 
bodymatter, backmatter?

\starttext

\startfrontmatter

\doifelsemode{*frontpart}{yes}{no}
\doifelsemode{*backpart} {yes}{no}

\stopfrontmatter

\startbackmatter

\doifelsemode{*frontpart}{yes}{no}
\doifelsemode{*backpart} {yes}{no}

\stopbackmatter

\stoptext



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

[NTG-context] test on front/body/backmatter

2017-07-14 Thread Meer, Hans van der
Is there a test usable in a macro to determine if one is inside frontmatter, 
bodymatter, backmatter?

Hans van der Meer




___
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] lua error when --synctex is used

2017-07-14 Thread Hans Hagen

On 7/13/2017 11:40 PM, Ulrike Fischer wrote:

When I run a minimal context file with the -synctex-switch

context --synctex context-test.tex

then I get a lua error:

lua error   > lua error on line 1 in file
C:/Users/XXX/Documents/tests/contexttext/context-test.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:490:
attempt to call upvalue 'collect' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:490: in
function 'luatex_synctex_collect'
[string "local nodes_references_handler = nodes.refere..."]:14: in
function <[string "local nodes_references_handler =
nodes.refere..."]:7>
(...tail calls...)

1 >>  \starttext
2 context text
3 \stoptext


Without the synctex switch there is no problem.
wil be fixed in next beta (no upload yet as i'm playing with some font 
code)



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

Re: [NTG-context] confusing columns balancing results

2017-07-14 Thread Floris van Manen
Here too, your example does renders correctly.
Now try this:

===
\setuppapersize[A4, landscape]
\setupbodyfont[8pt]
\language[fr]
\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]
\setupfootertexts[][]
\setuplayout[
backspace=10mm,
width=277mm,
height=fit,
topspace=10mm,
header=0mm,
top=0mm,
footer=0mm,
bottom=0mm]
\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
location={duplex},
grid=no,
topspace=1cm,
height=19cm,
backspace=1cm,
cutspace=0cm,
leftmargin=0cm,
leftmargindistance=0.4cm,
width=fit,
rightmargindistance=0cm,
rightmargin=0cm]
 \setuplayout[WithoutMarginnotes]

\setuphead[subject][
align=normal,
style=\tfa\ss,
before={\blank},
after={\blank[2pt]}]

\starttext

\startcolumns


Lorem Ipsum Dolor
\blank

% {\tfc\ss Lastage Koor}
%
% \blank[big]
%
% 7 juli 2017

\blank[20.6mm]
{\ss
\startitemize[n]
\item A la Claire Fontaine
\item Sous le ciel de Paris
\item Vois Sur Ton Chemin\\
% {\em uit Les Choristes}
\item Si la pluie te mouille
\item Samson et Dalila
\item La Vierge à la Crèche
% \item Hiob 2
\item Alt Rhapsodie\\
% {\em J. Brahms\\
% solo Jos}
\item Dis, Quand Reviendras-tu?
\item Chaque Fois\\
% {\em solo Lia en Rik}
\item Caresse sur l’Océan\\
% {\em uit Les Choristes\\
% solo Anne en Jaap}
\item Les Feuilles Mortes\\
% {\em solo Carol}
\item Toréador\\
% {\em solo Ab en Kees}
\stopitemize
}
\column


\subject{1. A la Claire Fontaine}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit 
amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore 
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla 
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui 
officia deserunt mollit anim id est laborum.

\subject{2. Sous le Ciel de Paris}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.


\subject{3. Vois Sur Ton Chemin}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit 
amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore 
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
in. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat. Duis aute irure dolor in.



\subject{4. Si la Pluie te Mouille}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim