Re: [NTG-context] extra space in footnotes (XML)
On 03/28/2015 10:41 PM, Hans Hagen wrote: On 3/28/2015 9:50 PM, Pablo Rodriguez wrote: Hi Hans, the issue I described in a previous message with extra space with footnote is related to XML handling: more to the \par which also affected tex input .. fixed Many thanks for the fast fix, Hans. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] extra space in footnotes (XML)
Hi Hans, the issue I described in a previous message with extra space with footnote is related to XML handling: \startbuffer[demo] doc pText a href=#fn1 class=footnoteRef id=fnref1sup1/sup/a and a href=#fn2 class=footnoteRef id=fnref2sup2/sup/a /p div class=footnotes hr / ol li id=fn1pthis is a footnote/p pthis is a footnote/p pthis is a footnote/p a class=footnoteBack href=#fnref1↩/a/li li id=fn2pA second footnote.a class=footnoteBack href=#fnref2↩/a/p/li /ol /div /doc \stopbuffer \starttext \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|p}{xml:*} \xmlsetsetup{\xmldocument}{a[@class='footnoteRef']}{xml:footnote:ref} \xmlsetsetup{\xmldocument}{div[@class='footnotes']}{} \xmlsetsetup{\xmldocument}{a[@class='uri']}{xml:autolink} \xmlsetsetup{\xmldocument}{a[@class='footnoteBack']}{} \xmlsetsetup{\xmldocument}{a[text()='↩']}{} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \setuppapersize[A8] \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmldoifnotselfempty {#1} { \dontleavehmode \ignorespaces \xmlflush{#1} \removeunwantedspaces } \par \stopxmlsetups \startxmlsetups xml:footnote:set \startfootnote \xmlflush{#1} \stopfootnote \stopxmlsetups \startluacode local gsub = string.gsub function xml.expressions.idstring(str) return type(str) == string and gsub(str,^#,) or end \stopluacode \startxmlsetups xml:footnote:ref \xmlfilter{main}{div[@class='footnotes']/ol/li[@id=idstring('\xmlatt{#1}{href}')]/command(xml:footnote:set)} \stopxmlsetups \xmlprocessbuffer{main}{demo}{} \stoptext Beta from 2015.03.28 16:30 adds an unwanted empty paragraph after each footnote. Previous beta from 2015.03.25 22:13 added no extra space. Is this a bug or how should I change my definition of xml:p? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] extra space in footnotes (XML)
On 3/28/2015 9:50 PM, Pablo Rodriguez wrote: Hi Hans, the issue I described in a previous message with extra space with footnote is related to XML handling: more to the \par which also affected tex input .. fixed - 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 ___