Re: [NTG-context] Split Table, don't repeat caption

2020-10-07 Thread Denis Maier

Am 07.10.2020 um 17:46 schrieb Wolfgang Schuster:

Denis Maier schrieb am 07.10.2020 um 17:39:

Hi,

is there a way not to repeat the caption of a multipage natural 
table? I've searched the list archive and it looks the question came 
up a couple of times, but I couldn't find an answer.


If this doesn't help you have to provide a example.
[...]



Ok:

=
\setupcaption[table]
    [location=top]
\starttext

\startplacetable[location=split,title={Title\footnote{footnote}}]
    \bTABLE[split=yes]
    \bTABLEhead
    \bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR
    \eTABLEhead
    \bTABLEbody
    \dorecurse{100}{\bTR \bTD Column 1 \eTD \bTD Column 2 \eTD \eTR}
    \eTABLEbody
    \eTABLE
\stopplacetable
\stoptext


So, the caption appears on each page, and the footnote is attached to 
the last caption. Ideally, the footnote should be attached to the first 
caption. (And, actually, I want the caption only once.)


Best,
Denis
___
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] Sections in content: macros v text

2020-10-07 Thread Tomas Hala
Thank you, Wolfgang, that's it!

Tomáš

Wed, Oct 07, 2020 ve 05:12:42PM +0200 Wolfgang Schuster napsal(a):
# Tomas Hala schrieb am 05.10.2020 um 20:20:
# >Hi all,
# >
# >the content generated by the MWE below contains
# >1 bb ... 1
# >2 bb ... 1
# >instead of
# >1 aa ... 1
# >2 bb ... 1
# >because the content structure refers to the macro name \name in both 
sections instead of to work with the text.
# >
# >Maybe it was already discussed by I am not able to find any solution how to 
send the text "aa" to the content in this case.
# >
# >Thanks in advance for any hint.
# >
# >Best wishes,
# >
# >Tomáš
# >
# >MWE (TL2020):
# >\starttext
# >\define\name{aa} \startsection[title=\name,list=\name] \stopsection
# >\define\name{bb} \startsection[title=\name,list=\name] \stopsection
# >\completecontent
# >\stoptext
# 
# Variant 1:
# 
# \setuphead[section][expansion=yes]
# 
# \starttext
# 
# \defineexpandable\name{aa}
# 
# \startsection[title=\name,list=\name] \stopsection
# 
# \defineexpandable\name{bb}
# 
# \startsection[title=\name,list=\name] \stopsection
# 
# \completecontent
# 
# \stoptext
# 
# 
# Variant 2:
# 
# \starttext
# 
# \defineexpandable\name{aa}
# 
# \expanded{\startsection[title=\name,list=\name]} \stopsection
# 
# \defineexpandable\name{bb}
# 
# \expanded{\startsection[title=\name,list=\name]} \stopsection
# 
# \completecontent
# 
# \stoptext
# 
# 
# Wolfgang

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] playing with Windows drag & drop

2020-10-07 Thread context

Hello Pablo,

slight correction:

 .bat
call lua.exe -e "os.execute('echo context --purgeall 
--arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"



"echo" should be omitted, of course, or be placed just for debugging 
purposes.


Best regards,

Lukas


On 2020-10-07 16:23, cont...@vivaldi.net wrote:

Hello Pablo,

sometimes I do something hacky like the following in similar
situations (not tested now):

 .bat
call lua.exe -e "os.execute('echo context --purgeall
--arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"


Best regards,

Lukas


On 2020-10-06 16:18, Pablo Rodriguez wrote:

Dear list,

I have a minimal sample file:

  \starttext
\insertpages[\env{PDFdocument}]
  \stoptext

I invoke it in Windows, using the following batch file:

  @echo off
  REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex

I’m afraid it only works if the batch file and the PDF document are on
the same directory.

I guess this is related to "\" in Windows paths. Is there a way to 
make

it work with the sample above?

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://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] playing with Windows drag & drop

2020-10-07 Thread context

Hello Pablo,

sometimes I do something hacky like the following in similar situations 
(not tested now):


 .bat
call lua.exe -e "os.execute('echo context --purgeall 
--arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"



Best regards,

Lukas


On 2020-10-06 16:18, Pablo Rodriguez wrote:

Dear list,

I have a minimal sample file:

  \starttext
\insertpages[\env{PDFdocument}]
  \stoptext

I invoke it in Windows, using the following batch file:

  @echo off
  REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex

I’m afraid it only works if the batch file and the PDF document are on
the same directory.

I guess this is related to "\" in Windows paths. Is there a way to make
it work with the sample above?

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://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] playing with Windows drag & drop

2020-10-07 Thread Pablo Rodriguez
On 10/7/20 4:45 PM, cont...@vivaldi.net wrote:
> Hello Pablo,
>
> slight correction:
>
>  .bat
> call lua.exe -e "os.execute('echo context --purgeall
> --arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"
> 

Many thanks for your reply, Lukas.

I found another workaround at the ConTeXt file (b.tex).

  \cldcontext{string.gsub([[\env{PDFdocument}]], "", "/")}

I don’t know why I needed to add "" instead of "\\". (otherwise, I
kept getting "C://Users//username//Desktop//document.pdf" and similar ones).

Many thanks for your help,

Pablo


> On 2020-10-07 16:23, cont...@vivaldi.net wrote:
>> Hello Pablo,
>>
>> sometimes I do something hacky like the following in similar
>> situations (not tested now):
>>
>>  .bat
>> call lua.exe -e "os.execute('echo context --purgeall
>> --arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"
>> 
>>
>> Best regards,
>>
>> Lukas
>>
>>
>> On 2020-10-06 16:18, Pablo Rodriguez wrote:
>>> Dear list,
>>>
>>> I have a minimal sample file:
>>>
>>>   \starttext
>>> \insertpages[\env{PDFdocument}]
>>>   \stoptext
>>>
>>> I invoke it in Windows, using the following batch file:
>>>
>>>   @echo off
>>>   REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex
>>>
>>> I’m afraid it only works if the batch file and the PDF document are on
>>> the same directory.
>>>
>>> I guess this is related to "\" in Windows paths. Is there a way to
>>> make
>>> it work with the sample above?
>>>
>>> Many thanks for your help,
>>>
>>> Pablo
>>> --
>>> http://www.ousia.tk

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


Re: [NTG-context] xml bookmarks + chapter no. in header

2020-10-07 Thread Pablo Rodriguez
On 10/7/20 5:06 PM, Tomas Hala wrote:
> Hi,
>
> I tried
> \setuphead[section][expansion=yes]
> with no effect before I wrote my question to the list here.
>
> With the \setuphead, the .tuc file still contains macro names instead of the 
> text:
>  ["title"]="\\expanded \\name ",
> whereas without it only:
>  ["title"]=" \\name ",
>
> So is there any way how to solve it?

Sorry, Tomáš, for not giving a reply to you.

I noticed that your case didn’t work with my approach.

But the problem is different in that case, I think (Wolfgang may correct
me [or explain this better]).

Expansion in list and bookmarks seems to be different:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmarks]
\placebookmarks[section][section]
\setuphead[title][page=no]
\starttext

%~ \placelist[section] % this doesn’t work
\def\name{aa}
\placelist[section]
 \startsection[title=\name, list=\expanded\name] \stopsection
\def\name{bb}
\startsection[title=\name, list=\expanded\name] \stopsection
\completecontent

\stoptext

I’m afraid I don’t know why.

Sorry not helping,

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] wrong url border (LMTX only)

2020-10-07 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]
\enabledirectives[references.border]
\definemakeup[slide]
\define[1]\newurl{\goto{\tt\hyphenatedurl{#1}}[url(#1)]}

\starttext
\startmakeup[slide]\newurl{a}\stopmakeup
\stoptext

LMTX (latest from LuaTeX 2.07 20200920 + ConTeXt MkIV 2020.09.20 23:02)
generates a link border that goes to the end of the text width.

I have found this issue not only with makeups. Also some footnotes in my
documents, but I couldn’t provide a minimal sample that displays the
problem with those.

Could anyone confirm this issue?

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


Re: [NTG-context] Split Table, don't repeat caption

2020-10-07 Thread Wolfgang Schuster

Denis Maier schrieb am 07.10.2020 um 17:39:

Hi,

is there a way not to repeat the caption of a multipage natural table? 
I've searched the list archive and it looks the question came up a 
couple of times, but I couldn't find an answer.


If this doesn't help you have to provide a example.

\starttext

\bTABLE[split=yes]
    \bTABLEhead
    \bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR
    \eTABLEhead
    \bTABLEbody
    \dorecurse{100}{\bTR \bTD Column 1 \eTD \bTD Column 2 \eTD \eTR}
    \eTABLEbody
\eTABLE

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


[NTG-context] Split Table, don't repeat caption

2020-10-07 Thread Denis Maier

Hi,

is there a way not to repeat the caption of a multipage natural table? 
I've searched the list archive and it looks the question came up a 
couple of times, but I couldn't find an answer.


Also, if I add a footnote to a caption of a split table, this note 
always appears when the caption appears for the last time. Can that be 
changed?


Best,
Denis
___
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] URLs in XML, escaping special characters

2020-10-07 Thread Denis Maier

Am 07.10.2020 um 17:19 schrieb Wolfgang Schuster:

Denis Maier schrieb am 07.10.2020 um 17:16:

Am 07.10.2020 um 16:47 schrieb Wolfgang Schuster:
Denis Maier schrieb am 07.10.2020 um 15:42: 
[...]


Unfortunately, the clickable link is still not correct. What am I 
doing wrong?


Add

\setupinteraction[state=start]

to your document.



Ouch... I have that in my real document, but forgot to include it in my 
MWE. Thanks.


Denis

___
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] URLs in XML, escaping special characters

2020-10-07 Thread Wolfgang Schuster

Denis Maier schrieb am 07.10.2020 um 17:16:

Am 07.10.2020 um 16:47 schrieb Wolfgang Schuster:

Denis Maier schrieb am 07.10.2020 um 15:42:

Hi,

I'm struggling with getting hyphenated URLs to work from XML input.
How do you enter ampersands and percent signs correctly so that they 
can be used in links?


This here doesn't really works:


\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    % Hauptgruppen
    \xmlsetsetup{#1}{article|ext-link}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:ext-link
    \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]
\stopxmlsetups


\startxmlsetups xml:ext-link
    \begingroup
    \expandUx
\expanded{\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]}
    \endgroup
\stopxmlsetups

Wolfgang


Thanks, Wolfgang.

Unfortunately, the clickable link is still not correct. What am I doing 
wrong?


Add

\setupinteraction[state=start]

to your document.

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


Re: [NTG-context] URLs in XML, escaping special characters

2020-10-07 Thread Denis Maier

Am 07.10.2020 um 16:47 schrieb Wolfgang Schuster:

Denis Maier schrieb am 07.10.2020 um 15:42:

Hi,

I'm struggling with getting hyphenated URLs to work from XML input.
How do you enter ampersands and percent signs correctly so that they 
can be used in links?


This here doesn't really works:


\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    % Hauptgruppen
    \xmlsetsetup{#1}{article|ext-link}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:ext-link
    \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]
\stopxmlsetups


\startxmlsetups xml:ext-link
    \begingroup
    \expandUx
\expanded{\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]}
    \endgroup
\stopxmlsetups

Wolfgang


Thanks, Wolfgang.

Unfortunately, the clickable link is still not correct. What am I doing 
wrong?


Best,
Denis

___
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] Sections in content: macros v text

2020-10-07 Thread Wolfgang Schuster

Tomas Hala schrieb am 05.10.2020 um 20:20:

Hi all,

the content generated by the MWE below contains
1 bb ... 1
2 bb ... 1
instead of
1 aa ... 1
2 bb ... 1
because the content structure refers to the macro name \name in both sections 
instead of to work with the text.

Maybe it was already discussed by I am not able to find any solution how to send the text 
"aa" to the content in this case.

Thanks in advance for any hint.

Best wishes,

Tomáš

MWE (TL2020):
\starttext
\define\name{aa} \startsection[title=\name,list=\name] \stopsection
\define\name{bb} \startsection[title=\name,list=\name] \stopsection
\completecontent
\stoptext


Variant 1:

\setuphead[section][expansion=yes]

\starttext

\defineexpandable\name{aa}

\startsection[title=\name,list=\name] \stopsection

\defineexpandable\name{bb}

\startsection[title=\name,list=\name] \stopsection

\completecontent

\stoptext


Variant 2:

\starttext

\defineexpandable\name{aa}

\expanded{\startsection[title=\name,list=\name]} \stopsection

\defineexpandable\name{bb}

\expanded{\startsection[title=\name,list=\name]} \stopsection

\completecontent

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


Re: [NTG-context] xml bookmarks + chapter no. in header

2020-10-07 Thread Tomas Hala
Hi,

I tried 
\setuphead[section][expansion=yes]
with no effect before I wrote my question to the list here.

With the \setuphead, the .tuc file still contains macro names instead of the 
text:
 ["title"]="\\expanded \\name ",
whereas without it only:
 ["title"]=" \\name ",

So is there any way how to solve it?

Best wishes,

Tomáš 

Wed, Oct 07, 2020 ve 04:36:48PM +0200 Jano Kula napsal(a):
#On Wed, 7 Oct 2020 at 15:04, Pablo Rodriguez <[1]oi...@gmx.es> wrote:
# 
#  On 10/7/20 1:28 PM, Jano Kula wrote:
#  > Hello to everybody!
#  >
#  > I have a similar problem as Tomas two days ago. When inserting
#  bookmarks
#  > from XML the reference to the node is stored in TUC file
#  >
#  >   ["titledata"]={
#  >    ["label"]="section",
#  >    ["title"]="\\xmlatt {xml:name::4}{title}"
#  >
#  > and this reference ends up in bookmarks. Any advice on how to change
#  it
#  > to text in bookmarks?
# 
#  Hi Jano,
# 
#  I think I had a similar problem.
# 
#  You may try:
# 
#    \setuphead
#      [section]
#      [expansion=yes]
# 
#  As I reported before "expansion=xml" was problematic for me (but it may
#  work for you, if "expansion=yes" doesn’t).
# 
#  Just in case it helps,
# 
#  Pablo
#  [2]http://www.ousia.tk
# 
#Hi Pablo,
#That's likely the problem of Tomas, too: when and how to do the expansion
#(his use case is different). Thank you, problem solved and [3]wikified.
#Jano
# 
# References
# 
#Visible links
#1. mailto:oi...@gmx.es
#2. http://www.ousia.tk/
#3. https://wiki.contextgarden.net/Interaction#XML_source

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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] URLs in XML, escaping special characters

2020-10-07 Thread Wolfgang Schuster

Denis Maier schrieb am 07.10.2020 um 15:42:

Hi,

I'm struggling with getting hyphenated URLs to work from XML input.
How do you enter ampersands and percent signs correctly so that they 
can be used in links?


This here doesn't really works:


\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    % Hauptgruppen
    \xmlsetsetup{#1}{article|ext-link}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:ext-link
    \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]
\stopxmlsetups


\startxmlsetups xml:ext-link
    \begingroup
    \expandUx
\expanded{\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]}
    \endgroup
\stopxmlsetups

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


Re: [NTG-context] xml bookmarks

2020-10-07 Thread Jano Kula
On Wed, 7 Oct 2020 at 15:04, Pablo Rodriguez  wrote:

> On 10/7/20 1:28 PM, Jano Kula wrote:
> > Hello to everybody!
> >
> > I have a similar problem as Tomas two days ago. When inserting bookmarks
> > from XML the reference to the node is stored in TUC file
> >
> >   ["titledata"]={
> >["label"]="section",
> >["title"]="\\xmlatt {xml:name::4}{title}"
> >
> > and this reference ends up in bookmarks. Any advice on how to change it
> > to text in bookmarks?
>
> Hi Jano,
>
> I think I had a similar problem.
>
> You may try:
>
>   \setuphead
> [section]
> [expansion=yes]
>
> As I reported before "expansion=xml" was problematic for me (but it may
> work for you, if "expansion=yes" doesn’t).
>
> Just in case it helps,
>
> Pablo
> http://www.ousia.tk
>

Hi Pablo,

That's likely the problem of Tomas, too: when and how to do the expansion
(his use case is different). Thank you, problem solved and wikified
.

Jano
___
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] URLs in XML, escaping special characters

2020-10-07 Thread Denis Maier

Hi,

I'm struggling with getting hyphenated URLs to work from XML input.
How do you enter ampersands and percent signs correctly so that they can 
be used in links?


This here doesn't really works:


\startxmlsetups xml:test
    \xmlsetsetup{#1}{*}{-}
    % Hauptgruppen
    \xmlsetsetup{#1}{article|ext-link}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
    \xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:ext-link
    \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]
\stopxmlsetups


\startbuffer[test]


xlink:href="http://merhav.nli.org.il/primo-explore/search?query=any,contains,Glikltab=default_tabsearch_scope=RAMBIvid=NLI_Rambimfacet=topic,include,Court%20Jews,1mfacet=topic,include,Glueckel,%20of%20Hameln,%201646-1724,1lang=en_USoffset=0;>http://merhav.nli.org.il/primo-explore/search?query=any,contains,Glikltab=default_tabsearch_scope=RAMBIvid=NLI_Rambimfacet=topic,include,Court%20Jews,1mfacet=topic,include,Glueckel,%20of%20Hameln,%201646-1724,1lang=en_USoffset=0


\stopbuffer

\xmlprocessbuffer{test}{test}{}
=

Visual output is ok, but the clickable link contains only the text until 
the end of the line.


Best,
Denis
___
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] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm

> Am 07.10.2020 um 14:30 schrieb Tomas Hala :
> 
> Hi Hraban,
> 
> \setupheadertexts
>  [{\getmarking[sectionnumber]\getmarking[section]}]
>  [{\pagenumber}]
>  [{\pagenumber}]
>  [{\getmarking[chapternumber]\getmarking[chapter]}]

Thank you! I could have just tried that...

Hraban
___
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] xml bookmarks

2020-10-07 Thread Pablo Rodriguez
On 10/7/20 1:28 PM, Jano Kula wrote:
> Hello to everybody!
>
> I have a similar problem as Tomas two days ago. When inserting bookmarks
> from XML the reference to the node is stored in TUC file
>
>   ["titledata"]={
>    ["label"]="section",
>    ["title"]="\\xmlatt {xml:name::4}{title}"
>
> and this reference ends up in bookmarks. Any advice on how to change it
> to text in bookmarks?

Hi Jano,

I think I had a similar problem.

You may try:

  \setuphead
[section]
[expansion=yes]

As I reported before "expansion=xml" was problematic for me (but it may
work for you, if "expansion=yes" doesn’t).

Just in case 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
___


Re: [NTG-context] chapter no. in header

2020-10-07 Thread Tomas Hala
Hi Hraban,

\setupheadertexts
  [{\getmarking[sectionnumber]\getmarking[section]}]
  [{\pagenumber}]
  [{\pagenumber}]
  [{\getmarking[chapternumber]\getmarking[chapter]}]

Best wishes,

Tomáš 

Wed, Oct 07, 2020 ve 01:45:46PM +0200 Henning Hraban Ramm napsal(a):
# This should be simple, but I can’t find it:
# I need not only the chapter title, but also the chapter number in my 
headertext.
# 
# ATM I have (minus formatting):
# 
# \setupheadertexts
#   [{\getmarking[section]}]
#   [{\pagenumber}]
#   [{\pagenumber}]
#   [{\getmarking[chapter]}]
# 
# 
# 
# Hraban
# 
___
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm
This should be simple, but I can’t find it:
I need not only the chapter title, but also the chapter number in my headertext.

ATM I have (minus formatting):

\setupheadertexts
  [{\getmarking[section]}]
  [{\pagenumber}]
  [{\pagenumber}]
  [{\getmarking[chapter]}]



Hraban
___
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] xml bookmarks

2020-10-07 Thread Jano Kula
Hello to everybody!

I have a similar problem as Tomas two days ago. When inserting bookmarks
from XML the reference to the node is stored in TUC file

  ["titledata"]={
   ["label"]="section",
   ["title"]="\\xmlatt {xml:name::4}{title}"

and this reference ends up in bookmarks. Any advice on how to change it to
text in bookmarks?

Find attached MWE (mkiv, current beta), third section is inserted manually.

Thank you,
Jano


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


Re: [NTG-context] Citeproc

2020-10-07 Thread Denis Maier

Am 07.10.2020 um 12:01 schrieb Hans Hagen:

On 10/6/2020 10:50 AM, denis.maier.li...@mailbox.org wrote:
Taco Hoekwater mailto:t...@elvenkind.com>> hat 
am 06.10.2020 09:25 geschrieben:


I recall discussing this idea with Bruce D’Arcus a long time ago 
(somewhere in the early 00-es, maybe).


The CSL files look like XML, but really they are more like a macro 
processing language. Parsing and interpreting that should not be all 
that hard, I expect. If I had to do this, I would convert the XML 
 tags into actual lua functions while parsing the XML. The 
implied processing language is quite straightforward (unlike the 
stack-based postfix language in bibtex bst files). I don’t have time 
right now, but if someone reminds me in two months or so, I might 
have a go at it.



That would be great. I'll remind you, be sure.

I agree the whole endeavour should be not to hard although there are 
some pitfalls, especially regarding disambiguation and so. Anyway, 
let's discuss details later, and let me know if I can be of any help, 
even if it's just cheerleading.


i was thinking of a mid winter cold evenings project -)

(so we can pick up this thread later)


Cool, so let's talk again in a couple of months then.

Best,
Denis
___
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] Citeproc

2020-10-07 Thread Hans Hagen

On 10/6/2020 10:50 AM, denis.maier.li...@mailbox.org wrote:
Taco Hoekwater mailto:t...@elvenkind.com>> hat am 
06.10.2020 09:25 geschrieben:


I recall discussing this idea with Bruce D’Arcus a long time ago 
(somewhere in the early 00-es, maybe).


The CSL files look like XML, but really they are more like a macro 
processing language. Parsing and interpreting that should not be all 
that hard, I expect. If I had to do this, I would convert the XML 
 tags into actual lua functions while parsing the XML. The 
implied processing language is quite straightforward (unlike the 
stack-based postfix language in bibtex bst files). I don’t have time 
right now, but if someone reminds me in two months or so, I might have 
a go at it.


that was indeed what stroke me when i saw the code: it's just some 
simple language wrapped in angle bracked ... straightforward conversion 
to lua seems not that hard (if statements mixed with some funcition calls)



That would be great. I'll remind you, be sure.

I agree the whole endeavour should be not to hard although there are 
some pitfalls, especially regarding disambiguation and so. Anyway, let's 
discuss details later, and let me know if I can be of any help, even if 
it's just cheerleading.


i was thinking of a mid winter cold evenings project -)

(so we can pick up this thread later)

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] Keep postponed footnotes on page where called

2020-10-07 Thread Denis Maier

Am 02.10.2020 um 13:00 schrieb Denis Maier:

Am 30.09.2020 um 19:03 schrieb Pablo Rodriguez:

On 9/30/20 5:52 PM, Denis Maier wrote:

Hi,

postponing footnotes when using tables causes the footnote often to
appear on the next page, which may not always be wanted. Is there a way
to keep the footnote on the same page in these situations?


Hi Denis,

this options might help:

   \setupnote
   [footnote]
   [split=verystrict,
    scope=text]


Thanks, I'll try. The problem is that I have multiplage tables, and I 
want the notes on the appropriate pages. I think postponed footnotes are 
cactually alled after the table is already finished so the notes always 
appear at the last page of the table, which in many cases is not what 
you'd want.


Ok, no luck.

With this example, the notes always appear after the table. (Pablo's 
settings from above make no difference.)



```
\setuppapersize[A6][A6]
\starttext

\startpostponingnotes
\bTABLE[split=yes]
\dorecurse{20}{
\bTR \bTD a\footnote{A footnote} \eTD \eTR
}
\eTABLE
\stoppostponingnotes

\stoptext
```

Is there anything else I can try? Or is that simply not possible? The 
problem is that I have a table where it is really awkward to have the 
notes after the table. (I think with localfootnotes it will be more or 
less the same as they appear where flushed, i.e. also after the table.)


Best,
Denis
___
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
___