[NTG-context] \xmlfirst broken?

2017-07-16 Thread Henri Menke
Dear list,

A recent question on TeX.SX is asking about XML processing.
https://tex.stackexchange.com/questions/380935

To reproduce the error from the question I copied the demo from the XML manual. 
 First of all we
have demo.xml:




  
Some title

  a paragraph of text
  another paragraph of text

  



And then we have a ConTeXt document:


\startxmlsetups xml:demo:base
  \xmlsetsetup{#1}{*}{-}
  \xmlsetsetup{#1}{document|section|p}{xml:demo:*}
\stopxmlsetups

\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:document
  \starttitle[title={Contents}]
\placelist[chapter]
  \stoptitle
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:demo:section
  \startchapter[title=\xmlfirst{#1}{/title}]
\xmlfirst{#1}{/content}
  \stopchapter
\stopxmlsetups

\startxmlsetups xml:demo:p
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
\xmlprocessfile{demo}{demo.xml}{}
\stoptext


This works partially.  Some entities are printed fine but stuff in \xmlfirst is 
missing.  I can
reproduce this in TL2017 and latest beta.  In the attached PDF you can see that 
the section has no
title and no content (exactly the stuff \xmlfirst was supposed to get).

Cheers, Henri

test.pdf
Description: Adobe PDF 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
___

Re: [NTG-context] Error with Libertinus Semibold and new standalone beta

2017-07-16 Thread Rik Kabel

On 2017-07-16 06:15, Hans Hagen wrote:

On 7/16/2017 1:43 AM, Rik Kabel wrote:
With the example below and the latest beta (2017.07.14 19:35), I get 
the following error whenever a bold face is requested:


lua error   > lua error on line 44 in file
C:/Users/rik/Desktop/test/prod_quotation.tex:
...ext/tex/texmf-context/tex/context/base/mkiv/font-ots.lua:5336:
attempt to index local 'one' (a boolean value)

The typescript in the example is based on the delivered typescript 
with the replacement of bold fonts by semibold. This has worked in 
the past with no problems.


(Is there a way to accomplish this without replicating the whole of 
the typescript?)

  \definefontsynonym
 [file:libertinusserif-bold]
 [file:libertinusserif-semibold]


Thank you very much, and also thank you for the quick turnaround on the fix.

I had tried
\definefontsynonym [LibertinusSerif-Bold] 
[file:libertinusserif-semibold]

but never thought to try what clearly works.

--
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] Error with Libertinus Semibold and new standalone beta

2017-07-16 Thread Hans Hagen

On 7/16/2017 1:43 AM, Rik Kabel wrote:
With the example below and the latest beta (2017.07.14 19:35), I get the 
following error whenever a bold face is requested:


lua error   > lua error on line 44 in file
C:/Users/rik/Desktop/test/prod_quotation.tex:
...ext/tex/texmf-context/tex/context/base/mkiv/font-ots.lua:5336:
attempt to index local 'one' (a boolean value)

The typescript in the example is based on the delivered typescript with 
the replacement of bold fonts by semibold. This has worked in the past 
with no problems.


(Is there a way to accomplish this without replicating the whole of the 
typescript?)

  \definefontsynonym
 [file:libertinusserif-bold]
 [file:libertinusserif-semibold]



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

2017-07-16 Thread Mathias Schickel

> Am 15.07.2017 um 21:55 schrieb Hans Hagen :
> 
> On 7/15/2017 9:11 PM, Alan Braslau wrote:
>> On Wed, 12 Jul 2017 19:05:26 +0200
>> Hans Hagen  wrote:
>>> best play with textbackgrounds
>>> 
>>> \starttext
>>> 
>>> \starttextbackground
>>> \dorecurse{10}{test\footnote{tufte}: \input tufte\par}
>>> \stoptextbackground
>>> 
>>> \stoptext
>>> 
>> I have found the following to be necessary when using textbackground,
>> especially when backgrounds cross page boundaries:
>> \setnewconstant\kindofpagetextareas\plusone
>> % partial page. HH: low level, no high level switch (yet)
>> Maybe Hans can explain this?
> Because it's an option (with no parameter yet .. not sure where/how to 
> configure it; for floats one can do it per float)
> 

\setnewconstant\kindofpagetextareas\plusone

That indeed solves the problem of the textbackground extended over footnotes. 
Is that anywhere documented? I did not find that anywhere. And what exactly 
does that command do?

Would it not be a good idea to add this as an option in the definition of a 
textbackground?

Mathias

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

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