Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread mf
My 2 cents:

local xmlflush = lxml.flush

local function text_or_xml(...)
  for i,v in ipairs(arg) do
if "table" == type(v) then
  xmlflush(v)
else
  context(v)
end
  end
end

function xml.functions.heading(t)
  text_or_xml( "\\section{" , t , "}" )
end

Massimiliano

Il giorno mer, 19/09/2018 alle 15.56 +0200, Hans Hagen ha scritto:
> On 9/19/2018 2:50 PM, Taco Hoekwater wrote:
> > Hi,
> > 
> > Is there a more elegant way to feed an xml tree into a context()
> > command
> > that what I have below?
> > 
> > 
> > \startluacode
> > function xml.functions.heading(t)
> > context.section("{")
> > lxml.flush(t)
> > context("}")
> > end
> > \stopluacode
> > 
> > The subtree in ’t’ could have embedded xml tags that should be
> > processed,
> > so just stripping it clean will not do.
> > 
> > (this is not about \section as such, I just needed an example.
> > \startsection
> > would be more modern, but it would not help fix the issue )
> 
> it actually depends on what you do ... anyway here is some insight
> (as 
> xml-tex old-timer you'll probably recognize the madness)
> 
> % \enabletrackers[context*]
> 
> \starttext
> 
> % here is your missing mwe
> 
> \startbuffer[test]
> 
>  some bold title
> 
> \stopbuffer
> 
> % this will assume xml and relate some handlers
> 
> \setuphead[section]
>[coding=xml,
>     xmlsetup=xml:flush]
> 
> \startxmlsetups xml:flush
>  \xmlflush{#1}
> \stopxmlsetups
> 
> % comment this one for your amusement
> 
> \startxmlsetups xml:b
>  {\bf \xmlflush{#1}}
> \stopxmlsetups
> 
> % here is the magic: you pass a reference
> 
> \startluacode
> function xml.finalizers.heading(t)
>  context.formatted.section("main::%i",t[1].ix)
> end
> \stopluacode
> 
> % this loads only (can happen at the lua end ... you can sort that
> out)
> 
> \xmlloadbuffer{main}{test}{}
> 
> % this indexes the nodes (the ix keys, basically all these #1
> argumehnts 
> in setups use that trickery)
> 
> \xmladdindex{main}
> 
> % to be sure
> 
> \xmlsetsetup{main}{b}{xml:b}
> 
> % now we filter / apply your finalizer
> 
> \xmlfilter{main}{section/heading()}
> 
> % done
> 
> \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
> _
> __

___
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 in lua advice ?

2018-09-19 Thread Hans Hagen

On 9/19/2018 2:50 PM, Taco Hoekwater wrote:

Hi,

Is there a more elegant way to feed an xml tree into a context() command
that what I have below?


\startluacode
function xml.functions.heading(t)
context.section("{")
lxml.flush(t)
context("}")
end
\stopluacode

The subtree in ’t’ could have embedded xml tags that should be processed,
so just stripping it clean will not do.

(this is not about \section as such, I just needed an example. \startsection
would be more modern, but it would not help fix the issue )
it actually depends on what you do ... anyway here is some insight (as 
xml-tex old-timer you'll probably recognize the madness)


% \enabletrackers[context*]

\starttext

% here is your missing mwe

\startbuffer[test]

some bold title

\stopbuffer

% this will assume xml and relate some handlers

\setuphead[section]
  [coding=xml,
   xmlsetup=xml:flush]

\startxmlsetups xml:flush
\xmlflush{#1}
\stopxmlsetups

% comment this one for your amusement

\startxmlsetups xml:b
{\bf \xmlflush{#1}}
\stopxmlsetups

% here is the magic: you pass a reference

\startluacode
function xml.finalizers.heading(t)
context.formatted.section("main::%i",t[1].ix)
end
\stopluacode

% this loads only (can happen at the lua end ... you can sort that out)

\xmlloadbuffer{main}{test}{}

% this indexes the nodes (the ix keys, basically all these #1 argumehnts 
in setups use that trickery)


\xmladdindex{main}

% to be sure

\xmlsetsetup{main}{b}{xml:b}

% now we filter / apply your finalizer

\xmlfilter{main}{section/heading()}

% done

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

Re: [NTG-context] reference manual

2018-09-17 Thread Henri Menke
On 09/17/2018 09:12 PM, Hans van der Meer wrote:
> My most recent version of the "ConTeXt reference manual” is Hans Hagen,
> Taco Hoekwater September 27, 2013.
> Is there a newer edition available? I could not find one in the (beta)
> distribution in texmf-context/doc.

The ConTeXt reference manual is outdated.  Please see my documentation
guide on https://github.com/hmenke/context-examples/blob/master/GUIDE.md
for where to find documentation.

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

___
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] reference manual

2018-09-17 Thread Hans van der Meer
My most recent version of the "ConTeXt reference manual” is Hans Hagen, Taco 
Hoekwater September 27, 2013.
Is there a newer edition available? I could not find one in the (beta) 
distribution in texmf-context/doc.

dr. 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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
If I connect in the browser to contextgarden.net/minimals/setup/$platform/bin 
<http://contextgarden.net/minimals/setup/$platform/bin> (platform set to my 
osx-64) it gives an empty page with text as below. Shouldn’t there be something 
to download?
minimals/setup/osx-64/bin

There is currently no text in this page. You can search for this page title 
<http://wiki.contextgarden.net/Special:Search/minimals/setup/osx-64/bin> in 
other pages, or search the related logs 
<http://wiki.contextgarden.net/index.php?title=Special:Log=minimals/setup/osx-64/bin>
 


> On 7 Sep 2018, at 16:42, Hans van der Meer  wrote:
> 
> Not here. I copied your call into Terminal and it gave the same timeout as 
> before. 
> 
> My system is a MacPro (2017), could it have a special setting in the tailored 
> software? Anywhere someone with the same machine who can test this?
> 
> Otherwise, can I download ‘manually’ a package and then install (howto?).
> 
>> On 7 Sep 2018, at 16:34, Wolfgang Schuster 
>> > <mailto:wolfgang.schuster.li...@gmail.com>> wrote:
>> 
>> Hi Hans,
>> 
>> I can download first-setup.sh without problems.
>> 
>> 
>> $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>  .
>> first-setup.sh
>> 
>> sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
>> total size is 4715  speedup is 0.97
>> 
>> 
>> Wolfgang
>> 
>> 
>> Hans van der Meer schrieb am 07.09.18 um 16:25:
>>> Clicking on  contextgarden.net <http://contextgarden.net/> brings up the 
>>> garden in the browser. The site therefore is reachable from here.
>>> 
>>> I guess then, the problem is in the rsync. I am afraid I known next to 
>>> nothing about rsync. 
>>> 
>>> It would be nice if someone with an Apple Macintosh will try the same. 
>>> Maybe it is something in the system here (running MacOSX High Sierra 
>>> 10.13.6) and I would be glad/unhappy to know if that is the case.
>>> 
>>>> On 7 Sep 2018, at 15:37, Taco Hoekwater >>> <mailto:t...@elvenkind.com>> wrote:
>>>> 
>>>> Hi Hans,
>>>> 
>>>> The garden server is working for me as well, but I am on the same IP as 
>>>> Mojca 
>>>> at the moment, so that is probably to be expected.
>>>> 
>>>> Can you connect to contextgarden.net <http://contextgarden.net/> in *any* 
>>>> way from where you are?
>>>> There could be some issue with the internet routing from your machine
>>>> to contextgarden.net <http://contextgarden.net/>, or it could be a 
>>>> firewall blockade somewhere
>>>> in between. The machine itself is definitely running.
>>>> 
>>>> Best wishes,
>>>> Taco
>>>> 
>>>>> On 7 Sep 2018, at 13:13, Hans van der Meer >>>> <mailto:havdm...@ziggo.nl>> wrote:
>>>>> 
>>>>> Still not working. this is the full script, I didn’t change the rsync 
>>>>> line since last time it ran ok:
>>>>> 
>>>>> echo "start download and install of contextbeta"
>>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>>>>  .
>>>>> chmod a+x first-setup.sh
>>>>> mkdir tex
>>>>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>>>>> #sh ./first-setup.sh --context=current >first-setup.log
>>>>> #sh ./first-setup.sh --context=date >first-setup.log
>>>>> 
>>>>> # link to command reference
>>>>> cp -p -v 
>>>>> tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>>>>> ~/Desktop/Context\ Commands.pdf
>>>>> rm ~/Desktop/Context\ Manuals
>>>>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals 
>>>>> Context\ Manuals
>>>>> mv Context\ Manuals ..
>>>>> 
>>>>> # link to mkiv source
>>>>> rm mkiv_base
>>>>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>>>>> 
>>>>> exit
>>>>> 
>>>>> And this is the full output of a run, put the rsync data in red:
>>>>> 
>>>>> 4 context-47: contextbeta
>>>>> start download and install of contextbeta
>>>>> rsync: failed to connect to contextgarden.net 
>>>>> <http://contextgarden.net/>: Operation timed out (60)
>>>

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Mohammad Hossein Bateni
works for me.  I have macbook pro (mid 2015) running High Sierra 10.13.6.
I guess, you should try to ping or traceroute to contextgarden.net from
terminal.  the IP is different for www.contextgarden.net, which is probably
what the browser looks for.

On Fri, Sep 7, 2018 at 10:43 AM Hans van der Meer  wrote:

> Not here. I copied your call into Terminal and it gave the same timeout as
> before.
>
> My system is a MacPro (2017), could it have a special setting in the
> tailored software? Anywhere someone with the same machine who can test this?
>
> Otherwise, can I download ‘manually’ a package and then install (howto?).
>
> On 7 Sep 2018, at 16:34, Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
>
> Hi Hans,
>
> I can download first-setup.sh without problems.
>
>
> $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> first-setup.sh
>
> sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
> total size is 4715  speedup is 0.97
>
>
> Wolfgang
>
>
> Hans van der Meer schrieb am 07.09.18 um 16:25:
>
> Clicking on  contextgarden.net brings up the garden in the browser. The
> site therefore is reachable from here.
>
> I guess then, the problem is in the rsync. I am afraid I known next to
> nothing about rsync.
>
> It would be nice if someone with an Apple Macintosh will try the same.
> Maybe it is something in the system here (running MacOSX High Sierra
> 10.13.6) and I would be glad/unhappy to know if that is the case.
>
> On 7 Sep 2018, at 15:37, Taco Hoekwater  wrote:
>
> Hi Hans,
>
> The garden server is working for me as well, but I am on the same IP as
> Mojca
> at the moment, so that is probably to be expected.
>
> Can you connect to contextgarden.net in *any* way from where you are?
> There could be some issue with the internet routing from your machine
> to contextgarden.net, or it could be a firewall blockade somewhere
> in between. The machine itself is definitely running.
>
> Best wishes,
> Taco
>
> On 7 Sep 2018, at 13:13, Hans van der Meer  wrote:
>
> Still not working. this is the full script, I didn’t change the rsync line
> since last time it ran ok:
>
> echo "start download and install of contextbeta"
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> chmod a+x first-setup.sh
> mkdir tex
> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
> #sh ./first-setup.sh --context=current >first-setup.log
> #sh ./first-setup.sh --context=date >first-setup.log
>
> # link to command reference
> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf
> ~/Desktop/Context\ Commands.pdf
> rm ~/Desktop/Context\ Manuals
> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\
> Manuals
> mv Context\ Manuals ..
>
> # link to mkiv source
> rm mkiv_base
> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>
> exit
>
> And this is the full output of a run, put the rsync data in red:
>
> 4 context-47: contextbeta
> start download and install of contextbeta
> rsync: failed to connect to contextgarden.net: Operation timed out (60)
> rsync error: error in socket IO (code 10) at
> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
> [receiver=2.6.9]
> chmod: first-setup.sh: No such file or directory
> mkdir: tex: File exists
> sh: ./first-setup.sh: No such file or directory
> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No
> such file or directory
> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
> 4 context-47:
>
>
> On 7 Sep 2018, at 11:50, Mojca Miklavec 
> wrote:
>
> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>
>
> This used to give me the latest contextbeta:
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>
> Today I get this error
> start download and iinstall of contextbeta
> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>
> Is the garden down or have the sources been moved since my last access
> this June?
> At least this link is still active at the moment:
> http://wiki.contextgarden.net
>
>
> While wiki.contextgarden.net is running on a different server than the
> distribution, there hasn't been any change recently and the
> installation works for me.
>
> Mojca
>
> ___
> If your question is of interest to others as well, please add

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Not here. I copied your call into Terminal and it gave the same timeout as 
before. 

My system is a MacPro (2017), could it have a special setting in the tailored 
software? Anywhere someone with the same machine who can test this?

Otherwise, can I download ‘manually’ a package and then install (howto?).

> On 7 Sep 2018, at 16:34, Wolfgang Schuster 
>  wrote:
> 
> Hi Hans,
> 
> I can download first-setup.sh without problems.
> 
> 
> $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> first-setup.sh
> 
> sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
> total size is 4715  speedup is 0.97
> 
> 
> Wolfgang
> 
> 
> Hans van der Meer schrieb am 07.09.18 um 16:25:
>> Clicking on  contextgarden.net <http://contextgarden.net/> brings up the 
>> garden in the browser. The site therefore is reachable from here.
>> 
>> I guess then, the problem is in the rsync. I am afraid I known next to 
>> nothing about rsync. 
>> 
>> It would be nice if someone with an Apple Macintosh will try the same. Maybe 
>> it is something in the system here (running MacOSX High Sierra 10.13.6) and 
>> I would be glad/unhappy to know if that is the case.
>> 
>>> On 7 Sep 2018, at 15:37, Taco Hoekwater >> <mailto:t...@elvenkind.com>> wrote:
>>> 
>>> Hi Hans,
>>> 
>>> The garden server is working for me as well, but I am on the same IP as 
>>> Mojca 
>>> at the moment, so that is probably to be expected.
>>> 
>>> Can you connect to contextgarden.net <http://contextgarden.net/> in *any* 
>>> way from where you are?
>>> There could be some issue with the internet routing from your machine
>>> to contextgarden.net <http://contextgarden.net/>, or it could be a firewall 
>>> blockade somewhere
>>> in between. The machine itself is definitely running.
>>> 
>>> Best wishes,
>>> Taco
>>> 
>>>> On 7 Sep 2018, at 13:13, Hans van der Meer >>> <mailto:havdm...@ziggo.nl>> wrote:
>>>> 
>>>> Still not working. this is the full script, I didn’t change the rsync line 
>>>> since last time it ran ok:
>>>> 
>>>> echo "start download and install of contextbeta"
>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>>>  .
>>>> chmod a+x first-setup.sh
>>>> mkdir tex
>>>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>>>> #sh ./first-setup.sh --context=current >first-setup.log
>>>> #sh ./first-setup.sh --context=date >first-setup.log
>>>> 
>>>> # link to command reference
>>>> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>>>> ~/Desktop/Context\ Commands.pdf
>>>> rm ~/Desktop/Context\ Manuals
>>>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
>>>> Manuals
>>>> mv Context\ Manuals ..
>>>> 
>>>> # link to mkiv source
>>>> rm mkiv_base
>>>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>>>> 
>>>> exit
>>>> 
>>>> And this is the full output of a run, put the rsync data in red:
>>>> 
>>>> 4 context-47: contextbeta
>>>> start download and install of contextbeta
>>>> rsync: failed to connect to contextgarden.net <http://contextgarden.net/>: 
>>>> Operation timed out (60)
>>>> rsync error: error in socket IO (code 10) at 
>>>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
>>>>  [receiver=2.6.9]
>>>> chmod: first-setup.sh: No such file or directory
>>>> mkdir: tex: File exists
>>>> sh: ./first-setup.sh: No such file or directory
>>>> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No 
>>>> such file or directory
>>>> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
>>>> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
>>>> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
>>>> 4 context-47: 
>>>> 
>>>> 
>>>>> On 7 Sep 2018, at 11:50, Mojca Miklavec >>>> <mailto:mojca.miklavec.li...@gmail.com>> wrote:
>>>>> 
>>>>> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer >>>> <mailto:havdm...@ziggo.nl>> wrote:
>>>&

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Wolfgang Schuster

Hi Hans,

I can download first-setup.sh without problems.


$ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
first-setup.sh

sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
total size is 4715  speedup is 0.97


Wolfgang


Hans van der Meer schrieb am 07.09.18 um 16:25:
Clicking on contextgarden.net <http://contextgarden.net> brings up the 
garden in the browser. The site therefore is reachable from here.


I guess then, the problem is in the rsync. I am afraid I known next to 
nothing about rsync.


It would be nice if someone with an Apple Macintosh will try the same. 
Maybe it is something in the system here (running MacOSX High Sierra 
10.13.6) and I would be glad/unhappy to know if that is the case.


On 7 Sep 2018, at 15:37, Taco Hoekwater <mailto:t...@elvenkind.com>> wrote:


Hi Hans,

The garden server is working for me as well, but I am on the same IP 
as Mojca

at the moment, so that is probably to be expected.

Can you connect to contextgarden.net <http://contextgarden.net> in 
*any* way from where you are?

There could be some issue with the internet routing from your machine
to contextgarden.net <http://contextgarden.net>, or it could be a 
firewall blockade somewhere

in between. The machine itself is definitely running.

Best wishes,
Taco

On 7 Sep 2018, at 13:13, Hans van der Meer <mailto:havdm...@ziggo.nl>> wrote:


Still not working. this is the full script, I didn’t change the 
rsync line since last time it ran ok:


echo "start download and install of contextbeta"
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
chmod a+x first-setup.sh
mkdir tex
sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
#sh ./first-setup.sh --context=current >first-setup.log
#sh ./first-setup.sh --context=date >first-setup.log

# link to command reference
cp -p -v 
tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
~/Desktop/Context\ Commands.pdf

rm ~/Desktop/Context\ Manuals
ln -s -v /tex/texmf-context/doc/context/documents/general/manuals 
Context\ Manuals

mv Context\ Manuals ..

# link to mkiv source
rm mkiv_base
ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base

exit

And this is the full output of a run, put the rsync data in red:

4 context-47: contextbeta
start download and install of contextbeta
rsync: failed to connect to contextgarden.net 
<http://contextgarden.net>: Operation timed out (60)
rsync error: error in socket IO (code 10) at 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106) 
[receiver=2.6.9]

chmod: first-setup.sh: No such file or directory
mkdir: tex: File exists
sh: ./first-setup.sh: No such file or directory
cp: 
tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: 
No such file or directory

rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
Context Manuals -> 
/tex/texmf-context/doc/context/documents/general/manuals

mkiv_base -> tex/texmf-context/tex/context/base/mkiv
4 context-47:


On 7 Sep 2018, at 11:50, Mojca Miklavec 
<mailto:mojca.miklavec.li...@gmail.com>> wrote:


On Fri, 7 Sep 2018 at 11:11, Hans van der Meer <mailto:havdm...@ziggo.nl>> wrote:


This used to give me the latest contextbeta:
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .

Today I get this error
start download and iinstall of contextbeta
rsync: failed to connect to contextgarden.net 
<http://contextgarden.net>: Operation timed out (60)


Is the garden down or have the sources been moved since my last 
access this June?
At least this link is still active at the moment: 
http://wiki.contextgarden.net


While wiki.contextgarden.net <http://wiki.contextgarden.net> is 
running on a different server than the

distribution, there hasn't been any change recently and the
installation works for me.

Mojca
___
If your question is of interest to others as well, please add an 
entry to the Wiki!


maillist : ntg-context@ntg.nl <mailto: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
___


met vriendelijke groet
dr. 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 <mailto: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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Clicking on  contextgarden.net <http://contextgarden.net/> brings up the garden 
in the browser. The site therefore is reachable from here.

I guess then, the problem is in the rsync. I am afraid I known next to nothing 
about rsync. 

It would be nice if someone with an Apple Macintosh will try the same. Maybe it 
is something in the system here (running MacOSX High Sierra 10.13.6) and I 
would be glad/unhappy to know if that is the case.

> On 7 Sep 2018, at 15:37, Taco Hoekwater  wrote:
> 
> Hi Hans,
> 
> The garden server is working for me as well, but I am on the same IP as Mojca 
> at the moment, so that is probably to be expected.
> 
> Can you connect to contextgarden.net in *any* way from where you are?
> There could be some issue with the internet routing from your machine
> to contextgarden.net, or it could be a firewall blockade somewhere
> in between. The machine itself is definitely running.
> 
> Best wishes,
> Taco
> 
>> On 7 Sep 2018, at 13:13, Hans van der Meer  wrote:
>> 
>> Still not working. this is the full script, I didn’t change the rsync line 
>> since last time it ran ok:
>> 
>> echo "start download and install of contextbeta"
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>> chmod a+x first-setup.sh
>> mkdir tex
>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>> #sh ./first-setup.sh --context=current >first-setup.log
>> #sh ./first-setup.sh --context=date >first-setup.log
>> 
>> # link to command reference
>> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>> ~/Desktop/Context\ Commands.pdf
>> rm ~/Desktop/Context\ Manuals
>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
>> Manuals
>> mv Context\ Manuals ..
>> 
>> # link to mkiv source
>> rm mkiv_base
>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>> 
>> exit
>> 
>> And this is the full output of a run, put the rsync data in red:
>> 
>> 4 context-47: contextbeta
>> start download and install of contextbeta
>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>> rsync error: error in socket IO (code 10) at 
>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
>>  [receiver=2.6.9]
>> chmod: first-setup.sh: No such file or directory
>> mkdir: tex: File exists
>> sh: ./first-setup.sh: No such file or directory
>> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No 
>> such file or directory
>> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
>> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
>> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
>> 4 context-47: 
>> 
>> 
>>> On 7 Sep 2018, at 11:50, Mojca Miklavec  
>>> wrote:
>>> 
>>> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>>>> 
>>>> This used to give me the latest contextbeta:
>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>>>> 
>>>> Today I get this error
>>>> start download and iinstall of contextbeta
>>>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>>>> 
>>>> Is the garden down or have the sources been moved since my last access 
>>>> this June?
>>>> At least this link is still active at the moment: 
>>>> http://wiki.contextgarden.net
>>> 
>>> While wiki.contextgarden.net is running on a different server than the
>>> distribution, there hasn't been any change recently and the
>>> installation works for me.
>>> 
>>> Mojca
>>> ___
>>> 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
>>> ___
>> 
>> met vriendelijke groet
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please ad

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Taco Hoekwater
Hi Hans,

The garden server is working for me as well, but I am on the same IP as Mojca 
at the moment, so that is probably to be expected.

Can you connect to contextgarden.net in *any* way from where you are?
There could be some issue with the internet routing from your machine
to contextgarden.net, or it could be a firewall blockade somewhere
in between. The machine itself is definitely running.

Best wishes,
Taco

> On 7 Sep 2018, at 13:13, Hans van der Meer  wrote:
> 
> Still not working. this is the full script, I didn’t change the rsync line 
> since last time it ran ok:
> 
> echo "start download and install of contextbeta"
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> chmod a+x first-setup.sh
> mkdir tex
> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
> #sh ./first-setup.sh --context=current >first-setup.log
> #sh ./first-setup.sh --context=date >first-setup.log
> 
> # link to command reference
> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
> ~/Desktop/Context\ Commands.pdf
> rm ~/Desktop/Context\ Manuals
> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
> Manuals
> mv Context\ Manuals ..
> 
> # link to mkiv source
> rm mkiv_base
> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
> 
> exit
> 
> And this is the full output of a run, put the rsync data in red:
> 
> 4 context-47: contextbeta
> start download and install of contextbeta
> rsync: failed to connect to contextgarden.net: Operation timed out (60)
> rsync error: error in socket IO (code 10) at 
> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
>  [receiver=2.6.9]
> chmod: first-setup.sh: No such file or directory
> mkdir: tex: File exists
> sh: ./first-setup.sh: No such file or directory
> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No 
> such file or directory
> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
> 4 context-47: 
> 
> 
>> On 7 Sep 2018, at 11:50, Mojca Miklavec  
>> wrote:
>> 
>> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>>> 
>>> This used to give me the latest contextbeta:
>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>>> 
>>> Today I get this error
>>> start download and iinstall of contextbeta
>>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>>> 
>>> Is the garden down or have the sources been moved since my last access this 
>>> June?
>>> At least this link is still active at the moment: 
>>> http://wiki.contextgarden.net
>> 
>> While wiki.contextgarden.net is running on a different server than the
>> distribution, there hasn't been any change recently and the
>> installation works for me.
>> 
>> Mojca
>> ___
>> 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
>> ___
> 
> met vriendelijke groet
> dr. 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Still not working. this is the full script, I didn’t change the rsync line 
since last time it ran ok:

echo "start download and install of contextbeta"
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
chmod a+x first-setup.sh
mkdir tex
sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
#sh ./first-setup.sh --context=current >first-setup.log
#sh ./first-setup.sh --context=date >first-setup.log

# link to command reference
cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
~/Desktop/Context\ Commands.pdf
rm ~/Desktop/Context\ Manuals
ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
Manuals
mv Context\ Manuals ..

# link to mkiv source
rm mkiv_base
ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base

exit

And this is the full output of a run, put the rsync data in red:

4 context-47: contextbeta
start download and install of contextbeta
rsync: failed to connect to contextgarden.net: Operation timed out (60)
rsync error: error in socket IO (code 10) at 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
 [receiver=2.6.9]
chmod: first-setup.sh: No such file or directory
mkdir: tex: File exists
sh: ./first-setup.sh: No such file or directory
cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No such 
file or directory
rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
mkiv_base -> tex/texmf-context/tex/context/base/mkiv
4 context-47: 


> On 7 Sep 2018, at 11:50, Mojca Miklavec  
> wrote:
> 
> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>> 
>> This used to give me the latest contextbeta:
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>> 
>> Today I get this error
>> start download and iinstall of contextbeta
>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>> 
>> Is the garden down or have the sources been moved since my last access this 
>> June?
>> At least this link is still active at the moment: 
>> http://wiki.contextgarden.net
> 
> While wiki.contextgarden.net is running on a different server than the
> distribution, there hasn't been any change recently and the
> installation works for me.
> 
> Mojca
> ___
> 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
> ___

met vriendelijke groet
dr. 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] Textadept with ConTeXt

2018-08-21 Thread Hans Hagen

On 8/21/2018 10:33 AM, cryo shock wrote:

You mentioned that before at some point, and I wouldn't argue with that, 
as you surely know best how to use an editor that helps you with your 
work. I don't know enough about Lua programming, so it's hard for me to 
tell whether the realtime console pane is realisable within TA. But I 
will ask Mitchell on TA mailing list what he thinks about it. I think it 
would be great if he could make a console pane possible, as I think that 
there is nothing worse than having to switch between programs because of 
the lack of features.


I must admit that I'm not looking at more advanced editing as normally 
one uses a small subset of what an editor provides anyway. In that sense 
I have no real reason to switch (apart from cross platform editing).


One month or so ago Mitchell released Textadept 10 which comes with some 
API changes. He wrote a Migration Guide from TA9 to 10 which can be 
found in the appendix of the TA online manual:


Hm, I don't look forward to that. Especially because it's kind of hard 
to intercept error messages (on windows) when tweaking.



https://foicica.com/textadept/manual.html#Migration.Guides

So when using the ConTeXt TA package with TA10, TA pops up with many 
errors and is unusable until one deletes the files again. The files work 
with TA v9 without a problem though. Still I'd suggest to users who want 
to use the package to rename the init.lua that comes with CTX and then 
bind it within their own init.lua with


require('context_init')      -- exemplary file name

If anything goes wrong then, users simply have to comment the line with 
Notepad and TA should work again.


I am pretty sure that you know that already, but unexperienced readers 
might want to know that there is a Spell Checking module for TA which 
can be found under Modules in the TA wiki (it comes with only an english 
dictionary though):


I don't now as I don't follow discussions (I'm only on a few context 
related mailing lists). And we need checking for more than english (as 
well as our own lists) + a bit more subtle indication of issues.


True indeed. I like your config settings when it comes to highlighting 
etc. Also they come with a lot of keywords. That's a big plus as well. 
But since the settings change a lot in TA, for example tabulation width, 
they are pretty unfriendly to non-programmers. For example I tried to 
change the behaviour of TA9 to wrap lines when a CTX file is loaded. I 
don't remember in which file I changed the setting, but it didn't make a 
difference. Lines didn't wrap, so I always had to change it manually. In 
the same file I changed tab width, this change on the other hand worked. 
And there comes the next tripping stone. The CTX settings come within 
many files with a strict hierarchy, so that beginners will have a hard 
time to achieve changes. The changes are overwhelming really, but it's 
worth getting used to them.
So please don't get me wrong. I am thankful that CTX comes with settings 
for TA at all. It's ofc better than nothing.


Hm, I never wrap (i.e. I have my sources wrapped already) so I can't 
comment on that.


I just think that Lua makes it worthwhile for users to change settings 
by themselves, so they know how TA works in it's core. I'd love to add, 
that right now I am using one skin file, one custom CTX lexer (mod of 
the original TA lexer), a snippets file and two init.luas of which one I 
only load on my tablet to add some basic functionality to it's digital 
keyboard (which wasn't necessary in SciTE btw.) I think it looks great 
so far, although it surely could use some adjustments.

TAlexed.jpg


All a matter of taste I guess. I mostly ship the lexers because they are 
sort of a reference for how i expect files to be highlighted. Also, the 
same highlighting can be used in typeset form. But every user has 
her/his own preference and "which is the best editor debates" are not 
something I'm interested in.


And I really miss your snippets amongst some other small things, but the 
longer one tries, the further he comes with adjusting TA to his likings.


I never use snippets (assuming they are what i think they are) because i 
can't remember shortcuts and keying in the few commands needed for 
structure can (in my case) be neglected compared to keying in content


Maybe in the future you'll have on horse that you can fully rely on. I 
wish it'd be TA IMHO. :)


Too much a moving (upward imcompatible) target I fear. I can't risk that 
for workflows where authors have to 'just install and run'.


Just wanted to add my ideas to yours. Thanks for CTX, the TA settings 
and for reading this mail.

No problem.

(Maybe you can make a list of relevant differnces between TA 9 and 10 
because otherwise I need a new stack of cd's to motivate me get me 
through the trial and error process (due to lack of lua console output

[NTG-context] definelabel not working as previously on ConTeXt ver: 2018.08.19 12:52

2018-08-19 Thread Rik Kabel

With the latest beta, labels do not work for me.

With the following code:

   \definelabel[Q]
   \starttext
   Label: \Q[abc]

   Label: see \in[abc].

   Reference: \reference[def]{2}

   Reference: see \in[def].
   \stoptext

I get:

and the log states:

   references  > unknown reference '[][abc]'

while with tl18, I get the expected:

--
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] embedded sounds aren’t played

2018-08-14 Thread Hans Hagen

On 8/14/2018 5:38 PM, Pablo Rodriguez wrote:

Dear list,

this is sounds-001.tex from the examples:

 \definerenderingwindow
   [example]
   [width=0pt,height=0pt,frame=off]

 \setupinteraction[state=start]

 \useexternalrendering
   [mysound]
   [audio/mpeg] % audio/x-mp3
   [akkerman.mp3]
   [embed]

 \definereference [StartSoundTrack] [StartRendering{mysound}]
 \definereference [StopSoundTrack]  [StopRendering{mysound}]

 \definelayer[resources][width=\paperwidth,height=\paperheight]

 \setupbackgrounds[page][background=resources]

 \starttext
 \setlayer[resources]{\placerenderingwindow[example][mysound]}
 \startTEXpage
 \button{start}[StartSoundTrack]
 \button{stop}[StopSoundTrack]
 \stopTEXpage
 \startTEXpage
 \button{start}[StartSoundTrack]
 \button{stop}[StopSoundTrack]
 \stopTEXpage
 \stoptext

I added the option to embed the file. I’m attaching the result.

As I cannot check it myself with Acrobat for Linux (it seems to lack a
player for MP3 files), I asked at the Spanish TeX mailing list whether
they can play the MP3 file embedded in the PDF file.


I have no clue. But these interactive media features in pdf are such a 
mess. Embedding a simple sound file or video has become a pain and 
changed over time. I think that the modern way is to create a bunch of 
useless objects, embed a shockwave (soon obsolete flash) player etc etc 
and who knows what in a few years.


While all we want is to embed a sound file (afaik the old easy ways are 
obsolete).


One can only use acrobat to check. My most recent version is 10.1 and 
i'm not going to subscribe to some lock-in pro version for 20 euro per 
month in order to check if code still works. Having the file in the sam 
epaths seems to work so maybe something is missing. One problem i 
remember is that when one adds too many key/values one suddenly gets 
sounds mentioned in side bars and so.


If you need it you can spend some time on deciphering the latest spec 
and tell me what is missing.



A MacOS X user (with Acrobat 9.5) told me that the program reports that
the file "akkerman.mp3" is missing. Although the file is indeed
embedded, the /Filespec points to the external file.

Decompressing the PDF file, I see that there are two similar objects:


\nopdfcompression save you that step



 8 0 obj
 <<
   /EF <<
 /F 7 0 R
   >>
   /F (akkerman.mp3)
   /Type /Filespec
   /UF
(\376\377\000a\000k\000k\000e\000r\000m\000a\000n\000.\000m\000p\0003)
 >>
 endobj

 10 0 obj
 <<
   /EF 8 0 R
   /F (akkerman.mp3)
   /Type /Filespec
 >>
 endobj

This object contains a strange dictionary (an indirect reference to the
same object it contains it?):

 13 0 obj
 <<
   /Type /Annot
   /A <<
 /AN 13 0 R
 /OP 0
 /R 12 0 R
 /S /Rendition
   >>
   /Border [ 0 0 0 ]
   /P 14 0 R
   /Subtype /Screen
   /Rect [ 0 14.416 0 14.416 ]
 >>
 endobj

I mean, the object already exists:

 15 0 obj
 <<
   /AN 13 0 R
   /OP 0
   /R 12 0 R
   /S /Rendition
 >>
 endobj

Could anyone tell me what I’m doing wrong so that the embedded file
isn’t played?

Many thanks for your help,

Pablo



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




--

-
  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] embedded sounds aren’t played

2018-08-14 Thread Pablo Rodriguez
Dear list,

this is sounds-001.tex from the examples:

\definerenderingwindow
  [example]
  [width=0pt,height=0pt,frame=off]

\setupinteraction[state=start]

\useexternalrendering
  [mysound]
  [audio/mpeg] % audio/x-mp3
  [akkerman.mp3]
  [embed]

\definereference [StartSoundTrack] [StartRendering{mysound}]
\definereference [StopSoundTrack]  [StopRendering{mysound}]

\definelayer[resources][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=resources]

\starttext
\setlayer[resources]{\placerenderingwindow[example][mysound]}
\startTEXpage
\button{start}[StartSoundTrack]
\button{stop}[StopSoundTrack]
\stopTEXpage
\startTEXpage
\button{start}[StartSoundTrack]
\button{stop}[StopSoundTrack]
\stopTEXpage
\stoptext

I added the option to embed the file. I’m attaching the result.

As I cannot check it myself with Acrobat for Linux (it seems to lack a
player for MP3 files), I asked at the Spanish TeX mailing list whether
they can play the MP3 file embedded in the PDF file.

A MacOS X user (with Acrobat 9.5) told me that the program reports that
the file "akkerman.mp3" is missing. Although the file is indeed
embedded, the /Filespec points to the external file.

Decompressing the PDF file, I see that there are two similar objects:

8 0 obj
<<
  /EF <<
/F 7 0 R
  >>
  /F (akkerman.mp3)
  /Type /Filespec
  /UF
(\376\377\000a\000k\000k\000e\000r\000m\000a\000n\000.\000m\000p\0003)
>>
endobj

10 0 obj
<<
  /EF 8 0 R
  /F (akkerman.mp3)
  /Type /Filespec
>>
endobj

This object contains a strange dictionary (an indirect reference to the
same object it contains it?):

13 0 obj
<<
  /Type /Annot
  /A <<
/AN 13 0 R
/OP 0
/R 12 0 R
/S /Rendition
  >>
  /Border [ 0 0 0 ]
  /P 14 0 R
  /Subtype /Screen
  /Rect [ 0 14.416 0 14.416 ]
>>
endobj

I mean, the object already exists:

15 0 obj
<<
  /AN 13 0 R
  /OP 0
  /R 12 0 R
  /S /Rendition
>>
endobj

Could anyone tell me what I’m doing wrong so that the embedded file
isn’t played?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk


mediaclip-sound.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] referencing a footnote (and getting the right number)

2018-08-12 Thread Robert Zydenbos

> On 12. Aug 2018, at 17:38, Pablo Rodriguez  wrote:
> 
> Hi Robert,
> 
> the reference command in notes is \in (for both MkII and MkIV), such as in:
> 
>\starttext
>\dorecurse{30}{\footnote{Footnote}}
>\footnote[uvu-avu]{These two suffixes […]}
>\dorecurse{30}{\footnote{Footnote}}
>…
>\footnote{See n.~\in[uvu-avu].}
>\stoptext

Aha. I didn’t find that in contextref.pdf (2013 edition). But it works!

What does disturb me, however, is that I have this one chapter where the wrong 
note number is indicated (note 19 is referred to as note '18'), and I do not 
know why. Could it be that this is because earlier in the chapter I have also 
used

\setupnote [localnote] [location=none]
…
\startlocalfootnotes[conversion=characters,n=0]
…
\placenotes [localnote]
\stoplocalfootnotes

and that this somehow interferes with the referencing of other footnotes? That 
is the only difference I see between this chapter and the others.

Robert
___
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] referencing a footnote

2018-08-12 Thread Pablo Rodriguez
On 08/12/2018 05:38 PM, Pablo Rodriguez wrote:
>> On 08/12/2018 04:34 PM, Robert Zydenbos wrote:
>> [..]
>> …
>> \footnote[uvu-avu]{These two suffixes […]}
>> …
>> \footnote{See n.~\note[uvu-avu].}
>> …
> 
> Hi Robert,
> 
> the reference command in notes is \in (for both MkII and MkIV), such
> as in: [...]

Sorry, Robert, I almost forgot it.

If you reset the footnote numbers in each chapter, I’d rather suggest
something similar to:

  \footnote{See n.~\in[uvu-avu] on p.~\at[uvu-avu].}

Since footnote numbers aren’t unique, consider providing the page or the
chapter number.

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] referencing a footnote

2018-08-12 Thread Pablo Rodriguez
On 08/12/2018 04:34 PM, Robert Zydenbos wrote:
> Another footnote question for the experts. I want to refer to a note
> from within another, later note. I thought I could do this in
> the following way:
> 
> …
> \footnote[uvu-avu]{These two suffixes […]}
> …
> \footnote{See n.~\note[uvu-avu].}
> …

Hi Robert,

the reference command in notes is \in (for both MkII and MkIV), such as in:

\starttext
\dorecurse{30}{\footnote{Footnote}}
\footnote[uvu-avu]{These two suffixes […]}
\dorecurse{30}{\footnote{Footnote}}
…
\footnote{See n.~\in[uvu-avu].}
\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] referencing a footnote

2018-08-12 Thread Robert Zydenbos
Another footnote question for the experts. I want to refer to a note from 
within another, later note. I thought I could do this in the following way:

…
\footnote[uvu-avu]{These two suffixes […]
…
\footnote{See n.~\note[uvu-avu].}
…

But I get this result:



There are two things wrong:

(1) I want to get a result that looks like “See n. 18.”, with a number that is 
not superscript. (This happens when I try such referencing in other notes as 
well as in the main text.)
(2) The number is wrong: it is footnote #19, not 18.

I *could* work around this problem by totally different means – but I would 
much prefer to reference notes more or less in the manner I tried above. What 
could I improve in my code?

Robert___
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] general suggestion for ConTeXt documentation

2018-08-10 Thread Jan U. Hasecke
Hi Hraban,

On 08.08.2018 08:50, Henning Hraban Ramm wrote:
> I’m also writing a (beginners) book on ConTeXt in German, and I find it 
> really hard to decide what I should include. It can’t become a reference, a 
> complete one is impossible anyway. You can’t do serious work with ConTeXt 
> without using manuals, wiki, mailing list and the sources. There are just too 
> many possibilities and different needs.

if I can be of any help, let me know.

I wrote books about the Python Documentation System Sphinx and Pandoc.

And I would really love to see a beginners book of ConTeXt in German.

juh

-- 
Hostsharing eG – die Hosting-Genossenschaft
Souveränität – Nachhaltigkeit – Exzellenz
https://www.hostsharing.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] general suggestion for ConTeXt documentation

2018-08-10 Thread Henning Hraban Ramm
Am 2018-08-08 um 18:31 schrieb Pablo Rodriguez :

> Hi Hraban,
> your book will be an important reference, althought it won’t be “the
> reference” (I doubt such a thing might exist).

Thank you for the encouragement!

>> E.g. I wanted margin notes. Like footnotes, but in the margin. No
>> problem if you want them at the bottom. Very hard if you want them like
>> marginals, starting in the line of the marker... Is this common enough
>> to include it in my book?
> 
> I would say this is too specific. But I would provide the explanation in
> the wiki.

They are, even if not exactly in the same way as I’m using them, because this 
is influenced by other design choices (not even mine; I must adhere to the 
somewhat strange ideas of a designer).

Nearly everything that appears in my book is somewhere in the wiki, also since 
I often add things that were missing.

But sometimes the order matters or you can find things on the wiki only if you 
know where to look for what.


>> As a media designer, who’s also working with InDesign, my focus is of
>> course different from a scientist who just wants her thesis
>> readable...
> 
> I think it is essential to have a wider range of explanations on how to
> do things with ConTeXt (or even with computers, but this is a different
> topic).
> I’m not saying that other approaches are wrong. Just only not everyone
> may understand things the same way.

Of course. Everyone needs a different approach to things – I often experienced 
teachers who knew only one approach, e.g. in math, and couldn’t explain their 
stuff so that at least a few more students could understand the matter. 
Probably because they didn’t really understood themselves what they were 
teaching.

In engineering school I coached a few colleagues who had difficulties with 
math, and I like to remember the one (who "only" had a CSE, 
Hauptschulabschluss, and used to work as a printer) who looked astonished at me 
in one session and said "It’s really that simple!?", when I managed to find an 
approach to functions that worked for him. :)

And I still could smash my primary school teacher: When I asked "what happens 
if we subtract a bigger number from a smaller?", she answered "that’s not 
possible". :(
She could have easily told me "you will learn that later" or just show me at 
the thermometer "look, we will get below zero"...
But noo, better keep children dumb, otherwise they could outwit you.

Sorry for ranting ;)


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] referencing the equation

2018-08-09 Thread Henri Menke
I usually define my own reference formats, “ineq” for equations, “infig” 
for figures:


\definereferenceformat[ineq][left=(,right=)]
\definereferenceformat[infig][left=\labeltext{figure}]

\starttext

\starttext

\placeformula
\startformula \startalign
 \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
 \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula

As seen from \ineq[eq:1] and \ineq[eq:2], referring equations is 
straight forward.


\stoptext

\stoptext

On 10/08/18 10:00, Jeong Dal wrote:

Dear Wolfgang,

Although there is an answer in the manual, I didn’t read it carefully.

Sometimes, I used “\in{word}[reference]” like “\in{equation}[eq:1]".
But I have to change it to “equation (\in[eq:1])”.

Thank you so much.

Best regards,

Dalyoung


2018. 8. 10. 오전 12:21, Wolfgang Schuster  작성:

When you look at the first example in section 4.1 you can see that the 
parentheses are inserted by hand.

%%
\starttext

\placeformula
\startformula \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula

As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight 
forward.

\stoptext
%%

Wolfgang



Jeong Dal schrieb am 09.08.18 um 17:12:

Dear,

The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
equation.
The numbers for the equation is written as (1.1), and in the text, it is 
written as (1.1).
That is the numbers are  always surrounded by ( , ).

In the output of the following code, the equations are numbered surrounded by 
().
But there is no (), when we referece it.

What is the difference between MWE and mathalign.pdf.

Thank you for reading.

Best regards,

Dalyoung

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


___
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] referencing the equation

2018-08-09 Thread Jeong Dal
Dear Wolfgang,

Although there is an answer in the manual, I didn’t read it carefully.

Sometimes, I used “\in{word}[reference]” like “\in{equation}[eq:1]". 
But I have to change it to “equation (\in[eq:1])”. 

Thank you so much.

Best regards,

Dalyoung

> 2018. 8. 10. 오전 12:21, Wolfgang Schuster  
> 작성:
> 
> When you look at the first example in section 4.1 you can see that the 
> parentheses are inserted by hand.
> 
> %%
> \starttext
> 
> \placeformula
> \startformula \startalign
>  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
>  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
> \stopalign \stopformula
> 
> As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight 
> forward.
> 
> \stoptext
> %%
> 
> Wolfgang
> 
> 
> 
> Jeong Dal schrieb am 09.08.18 um 17:12:
>> Dear,
>> 
>> The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
>> equation.
>> The numbers for the equation is written as (1.1), and in the text, it is 
>> written as (1.1).
>> That is the numbers are  always surrounded by ( , ).
>> 
>> In the output of the following code, the equations are numbered surrounded 
>> by ().
>> But there is no (), when we referece it.
>> 
>> What is the difference between MWE and mathalign.pdf.
>> 
>> Thank you for reading.
>> 
>> Best regards,
>> 
>> Dalyoung
>> 
>> ___
>> 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] integer displayed as .0 float in Lua-5.3

2018-08-09 Thread Alan Braslau
The lua manual also states that one should NOT rely on the implicit conversion 
of a string to its numerical value, and suggests the systematic use of 
tonumber().

Alan


On Thu, 9 Aug 2018 21:20:54 +0200
Pablo Rodriguez  wrote:

> On 08/09/2018 08:12 PM, Wolfgang Schuster wrote:
> > Use tonumber.  
> 
> Many thanks for your reply, Wolfgang.
> 
> The issue is in Lua itself:
> 
>   print(5+"5")
> 
> In versions prior to 5.3, result is "10".
> 
> From version 5.3, result is "10.0",
> 
> I would say this might be a bug. According to the “Lua 5.3 Reference
> Manual" (https://www.lua.org/manual/5.3/manual.html#3.1):
> 
>   A numeric constant with a radix point or an exponent denotes a
>   float; otherwise, if its value fits in an integer, it denotes an
>   integer.
> 
> Well, "10.0" contains the radix point, but with no arithmetical relevance.
> 
> My background is in humanities and I don’t understand the exponent for
> being a float ("10²" contains an exponent
> [https://www.m-w.com/dictionary/exponent], but I would say is an integer
> in all possible worlds [or all the worlds I know ]).
> 
> Could anyone explain me what am I missing here or confirm whether this
> is a bug?
> 
> Many thanks for your help,
> 
> Pablo

___
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] integer displayed as .0 float in Lua-5.3

2018-08-09 Thread Pablo Rodriguez
On 08/09/2018 08:12 PM, Wolfgang Schuster wrote:
> Use tonumber.

Many thanks for your reply, Wolfgang.

The issue is in Lua itself:

  print(5+"5")

In versions prior to 5.3, result is "10".

From version 5.3, result is "10.0",

I would say this might be a bug. According to the “Lua 5.3 Reference
Manual" (https://www.lua.org/manual/5.3/manual.html#3.1):

  A numeric constant with a radix point or an exponent denotes a
  float; otherwise, if its value fits in an integer, it denotes an
  integer.

Well, "10.0" contains the radix point, but with no arithmetical relevance.

My background is in humanities and I don’t understand the exponent for
being a float ("10²" contains an exponent
[https://www.m-w.com/dictionary/exponent], but I would say is an integer
in all possible worlds [or all the worlds I know ]).

Could anyone explain me what am I missing here or confirm whether this
is a bug?

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] general suggestion for ConTeXt documentation

2018-08-08 Thread Pablo Rodriguez
On 08/08/2018 08:50 AM, Henning Hraban Ramm wrote:
> [...]
> I’m also writing a (beginners) book on ConTeXt in German, and I find
> it really hard to decide what I should include. It can’t become a
> reference, a complete one is impossible anyway.

Hi Hraban,

your book will be an important reference, althought it won’t be “the
reference” (I doubt such a thing might exist).

> E.g. I wanted margin notes. Like footnotes, but in the margin. No
> problem if you want them at the bottom. Very hard if you want them like
> marginals, starting in the line of the marker... Is this common enough
> to include it in my book?

I would say this is too specific. But I would provide the explanation in
the wiki.

> As a media designer, who’s also working with InDesign, my focus is of
> course different from a scientist who just wants her thesis
> readable...

I think it is essential to have a wider range of explanations on how to
do things with ConTeXt (or even with computers, but this is a different
topic).

I’m not saying that other approaches are wrong. Just only not everyone
may understand things the same way.

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] general suggestion for ConTeXt documentation

2018-08-08 Thread Henning Hraban Ramm
Hi,

I won’t reply to single points, thus I don’t quote previous mails.

I’m one of the few who work a lot on the wiki. But that means: if I find the 
time and if I find issues that I’m able to address.
Often it needs an hour of research to just explain one parameter properly. 
Don’t ask about all of them.

I’m fading out MkII documentation in the Wiki (I guess we somehow agreed on 
that).
I won’t delete it, but move it to the bottom, mark it as MkII/obsolete and 
never test it.

Indian scripts are the one thing that you can do with MkII but not with MkIV. 
And I know nothing about them and will probably never use them...

I’m also writing a (beginners) book on ConTeXt in German, and I find it really 
hard to decide what I should include. It can’t become a reference, a complete 
one is impossible anyway. You can’t do serious work with ConTeXt without using 
manuals, wiki, mailing list and the sources. There are just too many 
possibilities and different needs.

E.g. I wanted margin notes. Like footnotes, but in the margin. No problem if 
you want them at the bottom. Very hard if you want them like marginals, 
starting in the line of the marker... Is this common enough to include it in my 
book?

As a media designer, wo’s also working with InDesign, my focus is of course 
different from a scientist who just wants her thesis readable...

XML processing is an important "USP" for ConTeXt, but I never used it – I write 
my own XML-to-ConTeXt conversions in Python, since I’ll refine the ConTeXt code 
anyway.

etc. etc. yadda yadda

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Modifying bibliography entries using lua

2018-07-24 Thread Stanislav Sokolenko

That's perfect, thank you!

On 2018-07-23 06:32 PM, Hans Hagen wrote:

\startsetups btx:list:author:normalshort
    \fastsetup{btx:list:author:concat}
    \begingroup

\ctxluacode{document.CheckMeB("\currentbtxdataset","\currentbtxtag",\number\currentbtxauthorindex)} 


    \ifx\currentbtxinitials\empty \else
    \currentbtxinitials
    \btxparameter{separator:initials}
    \fi
    \ifx\currentbtxvons\empty \else
    \currentbtxvons
    \ifx\currentbtxsurnames\empty \else
    \btxparameter{separator:vons}
    \fi
    \fi
    \ifx\currentbtxsurnames\empty \else
    \currentbtxsurnames
    \ifx\currentbtxjuniors\empty \else
    \btxparameter{separator:juniors}
    \currentbtxjuniors
    \fi
    \fi
    \endgroup
    \fastsetup{btx:list:author:others}
\stopsetups 


I went with the following little extension to match and make bold 
multiple names:


|\startbuffer[ref]@article{solo, author ={MyLast, MyFirst}, title ={Solo 
work}, journal ={Journal}, year ={2000}, month ={1}, volume 
={1}}@article{co, author ={OtherLast, OtherFirst and MyLast, MyFirst and 
CoLast, CoFirst}, title ={Joint work}, journal ={Journal}, month ={1}, 
year ={2000}, volume 
={1}}\stopbuffer\usebtxdataset[ref][ref.buffer]\setupbtx[dataset=ref]\definebtxrendering[ref][dataset=ref]\setupbtx[default:cite][alternative=authoryear, 
etallimit=1, authorconversion=normalshort]\startluacodeBoldNames 
={{firstnames ="MyFirst", surnames ="MyLast"}, {initials ="C", surnames 
="CoLast"}, }function document.CompareNames(reference, targets)-- Loop 
over targets for _, target in pairs(targets)do -- Loop over fields for 
key, value in pairs(target)do if reference[key]==nil then break end 
full_entry ='' for _, part in ipairs(reference[key])do full_entry 
=full_entry .. ' ' .. part end full_entry =string.sub(full_entry, 2)if 
full_entry ==value then return(true)end end end return(false)end 
function document.BoldNames(set, tag, aut)local c 
=publications.getcasted(set, tag, "author")if 
document.CompareNames(c[aut], BoldNames)then context("\\bf")end end 
\stopluacode\startsetupsbtx:list:author:normalshort 
\fastsetup{btx:list:author:concat}\begingroup\ctxluacode{document.BoldNames("\currentbtxdataset","\currentbtxtag",\number\currentbtxauthorindex)}\ifx\currentbtxinitials\empty\else\currentbtxinitials\btxparameter{separator:initials}\fi\ifx\currentbtxvons\empty\else\currentbtxvons\ifx\currentbtxsurnames\empty\else\btxparameter{separator:vons}\fi\fi\ifx\currentbtxsurnames\empty\else\currentbtxsurnames\ifx\currentbtxjuniors\empty\else\btxparameter{separator:juniors}\currentbtxjuniors\fi\fi\endgroup\fastsetup{btx:list:author:others}\stopsetups\starttextCitations: 
\cite[solo]\cite[co]\startsubject[title=Bibliography]\placelistofpublications[ref][method=dataset]\stopsection\stoptext|



Cheers,

Stan

___
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] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen

On 7/23/2018 10:17 PM, Stanislav Sokolenko wrote:

Thanks Hans, that's really helpful!


This is not for the fainthearted so here we go

\startluacode
    function document.MyBoldPub(set,tag)
 -- local a = publications.getfield(set,tag,"author")
 -- inspect(a)
 -- local c = publications.getcasted(set,tag,"author")
 -- inspect(c)
    if c[1].surnames[1] == "Myname" then
    context.bold(function()
    context.btxflush('author')
    end )
    else
    context.btxflush('author')
    end
    end
\stopluacode


So if I wanted to bold one specific author in a reference of many, I can 
just loop over publications.getcasted(...), and print the appropriate 
names, initials, etc...


That said -- is there any way to call the appropriate authorconversion 
routine based on the \setupbtx settings? I found the 
publications.authorhashers method table, which seems to do most of this 
work, but I'm not sure how to pick the appropriate method and ensure 
that the correct separators are used.

Best use the setups provided than reinvent the logic.

\startluacode
function document.CheckMeB(set,tag,aut)
local c = publications.getcasted(set,tag,"author")
if c[aut].surnames[1] == "Foo" then
context("\\bf")
end
end
\stopluacode


\startsetups btx:list:author:normalshort
\fastsetup{btx:list:author:concat}
\begingroup

\ctxluacode{document.CheckMeB("\currentbtxdataset","\currentbtxtag",\number\currentbtxauthorindex)}
\ifx\currentbtxinitials\empty \else
\currentbtxinitials
\btxparameter{separator:initials}
\fi
\ifx\currentbtxvons\empty \else
\currentbtxvons
\ifx\currentbtxsurnames\empty \else
\btxparameter{separator:vons}
\fi
\fi
\ifx\currentbtxsurnames\empty \else
\currentbtxsurnames
\ifx\currentbtxjuniors\empty \else
\btxparameter{separator:juniors}
\currentbtxjuniors
\fi
\fi
\endgroup
\fastsetup{btx:list:author:others}
\stopsetups

Or something similar (there are several wasy to do this).

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] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko

Thanks Hans, that's really helpful!


This is not for the fainthearted so here we go

\startluacode
    function document.MyBoldPub(set,tag)
 -- local a = publications.getfield(set,tag,"author")
 -- inspect(a)
 -- local c = publications.getcasted(set,tag,"author")
 -- inspect(c)
    if c[1].surnames[1] == "Myname" then
    context.bold(function()
    context.btxflush('author')
    end )
    else
    context.btxflush('author')
    end
    end
\stopluacode


So if I wanted to bold one specific author in a reference of many, I can 
just loop over publications.getcasted(...), and print the appropriate 
names, initials, etc...


That said -- is there any way to call the appropriate authorconversion 
routine based on the \setupbtx settings? I found the 
publications.authorhashers method table, which seems to do most of this 
work, but I'm not sure how to pick the appropriate method and ensure 
that the correct separators are used.


Stan


___
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] Shading and transparency

2018-07-12 Thread Marco Patzer
On Thu, 12 Jul 2018 22:59:05 +0200
Hans Hagen  wrote:

> hm, I'm puzzled as a shade doesn't go between colors + transparent
> but from one color to another (in the same color space) and
> transparency is just a different mechanism
> 
> maybe it was some side effect of chosen values / vectors that gave
> the combined impression (which is why i want to see the pdf made by
> context that you use as reference)

I just checked some older projects and the older versions. I used a
mix between

- linear_shade…
- withshading("linear"…
- withshademethod "linear" …

depending on the age of the project. And I fail to find a project
using transparent shading where the transparency is done in context.
I could not get it working now on the older versions. Maybe you're
right and it has never worked the way I thought it had. Sorry for
the noise.

> \setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
> 
> \starttext
> 
> \startuseMPgraphic{test}
>  graycolor white; white := 1 ;
>  fill OverlayBox
>  withshademethod "linear"
>  withshadedirection shadedup
>  withshadefactor 1.5
>  withshadecolors (.85white,white)
>% withtransparency (multiplytransparent,.7)
>  withtransparency (normaltransparent,.7)
> \stopuseMPgraphic
> 
> \defineoverlay[test][\useMPgraphic{test}]
> 
> \framed
>[align=middle,background={foreground,test}]
>{\samplefile{sapolsky}}
> 
> \stoptext

That's basically shading to the background colour, which gives the
impression of transparency. I've been using that. Works most of the
time. But it's not the same. See the attached file and compare.

I guess I'll keep using the external file overlay then.

> > Just run the first example with an old context version. The file
> > gradient-t from my last mail was created using inkscape as I don't
> > want a single project to depend on two different context versions.  
> you're kidding ... i have no old context on my machine

Silly me :)

Marco


0nC.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] Shading and transparency

2018-07-12 Thread Hans Hagen

On 7/12/2018 10:08 PM, Marco Patzer wrote:

On Thu, 12 Jul 2018 11:21:45 +0200
Hans Hagen  wrote:


For the old implementation (pre 2016-ish) I had a working solution
because shading to transparent colours just worked (at least in my
case of a simple transparent shade, nothing fancy), but not so any
longer. With the new implementation I couldn't get it working. But
we discussed that at some point in the past. I believe the gist of
it was “shade-to-transparent is gone”.


i'm not ssure what shade to transparency means


I mean a shade from a colour (e.g. black) to transparent. For
instance this used to work pre 2016:

\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
\definecolor [trans] [a=multiply, t=1, s=1]
\starttext
\startMPcode
   path p; p:=fullsquare xyscaled (5cm, 5cm);
   fill p
 withshading("linear", ulcorner p, llcorner p)
 withfromshadecolor \MPcolor{white}
 withtoshadecolor   \MPcolor{trans};
\stopMPcode
\stoptext

The shade goes from white to transparent (here lightgray, that's the
page colour). I assume you have an older context laying around to
run the example above.


... shades can be transparent currently


Yes, but the *whole* shade is made transparent. Currently I don't
know a way to shade from e.g. black to transparent (no colour). The
colour involved in the shading can't have transparency, or if they
do one has to use \MPcoloronly to get rid of the transparency part.


hm, I'm puzzled as a shade doesn't go between colors + transparent but 
from one color to another (in the same color space) and transparency is 
just a different mechanism


maybe it was some side effect of chosen values / vectors that gave the 
combined impression (which is why i want to see the pdf made by context 
that you use as reference)


anyway, it helps to be in the same color space

\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]

\starttext

\startuseMPgraphic{test}
graycolor white; white := 1 ;
fill OverlayBox
withshademethod "linear"
withshadedirection shadedup
withshadefactor 1.5
withshadecolors (.85white,white)
  % withtransparency (multiplytransparent,.7)
withtransparency (normaltransparent,.7)
\stopuseMPgraphic

\defineoverlay[test][\useMPgraphic{test}]

\framed
  [align=middle,background={foreground,test}]
  {\samplefile{sapolsky}}

\stoptext



So the above old syntax roughly translated to the current
implementation:

\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
\definecolor [trans] [a=multiply, t=1, s=1]
\starttext
\startMPcode
   path p; p:=fullsquare xyscaled (5cm, 5cm);
 fill p
   withshademethod "linear"
   withshadevector (3, 0)
   %% since "trans" contains transparency, one has to use
\MPcoloronly withshadecolors (white, \MPcoloronly{trans})
   withtransparency (.5, .5)
   %% withtransparency \MPtransparency{trans}
   ;
   \stopMPcode
\stoptext


.. so how did that old file (uncompressed pdf) look like then


Just run the first example with an old context version. The file
gradient-t from my last mail was created using inkscape as I don't
want a single project to depend on two different context versions.

you're kidding ... i have no old context on my machine

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] Epub broken

2018-07-06 Thread Hans Hagen

On 7/6/2018 12:45 AM, Rik Kabel wrote:

On 7/5/2018 17:18, Hans Hagen wrote:

On 7/5/2018 4:47 PM, Rik Kabel wrote:

On 7/5/2018 10:27, Hans Hagen wrote:

On 7/4/2018 3:17 PM, Rik Kabel wrote:

The following example fails with recent betas, but not with TL18:

define fails


Sorry to be so terse in the original note. By failure, I mean that 
the generated .epub document is incorrect; parts are out of order, as:

new beta


Thank you, Hans, for the quick repair.

I understand that ePub is not a priority 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg87829.html) but I 
would like to make a request to put into the queue. Currently references 
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms 
as well) do not generate ID attributes where they are created, and so 
references to them (which do generate href=#...) link to nothing. Even 
creating an empty div with an appropriate class (labelname, 
enumerationname, reference?) and the id attribute would help. Currently 
there is no placeholder in the html file to locate the proper place to 
insert this information with an external filter.


i can add something for a reference (the problem with such things is 
that there is no real anchor for it and i don't want such features to 
(1) interfere with regular typesetting and (2) have even the least 
impact on performance of regular runs



Of course, once that is done, there are lots more. So it goes.

hm, lots sounds bad ...

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] Epub broken

2018-07-05 Thread Rik Kabel

On 7/5/2018 17:18, Hans Hagen wrote:

On 7/5/2018 4:47 PM, Rik Kabel wrote:

On 7/5/2018 10:27, Hans Hagen wrote:

On 7/4/2018 3:17 PM, Rik Kabel wrote:

The following example fails with recent betas, but not with TL18:

define fails


Sorry to be so terse in the original note. By failure, I mean that 
the generated .epub document is incorrect; parts are out of order, as:

new beta


Thank you, Hans, for the quick repair.

I understand that ePub is not a priority 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg87829.html) but I 
would like to make a request to put into the queue. Currently references 
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms 
as well) do not generate ID attributes where they are created, and so 
references to them (which do generate href=#...) link to nothing. Even 
creating an empty div with an appropriate class (labelname, 
enumerationname, reference?) and the id attribute would help. Currently 
there is no placeholder in the html file to locate the proper place to 
insert this information with an external filter.


Of course, once that is done, there are lots more. So it goes.

--
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] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 02 Jul 2018 07:21:19 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster
 wrote:


Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header    - 1
reference - II.1

The prefix in the main-text marker and in the footnote header are
superfluous, e.g., the reader already knows which chapter one is
reading. But to reference a footnote from a later chapter, a prefix is
needed to let the reader know which chapter.

So the question is: Can the prefix be made to apply only to the
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries
and the references.


\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
   [sectionconversionset=OLIE]

\setupnotation
   [footnote]
   [prefix=yes,
prefixset=none]

\setupreferencestructureprefix
   [footnote]
   [default]
   [prefixsegments=chapter,
prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext


Excellent; this is a big help. Many thanks!


==
Observation:

For endnotes at the end of a book having the prefix in the header is
also useful, i.e.,

marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three
would be useful.

If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same
counter setups.


Ok, that makes sense. As always, thank you for your pointers and  
explanations!


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster 
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header    - 1
reference - II.1

The prefix in the main-text marker and in the footnote header are 
superfluous, e.g., the reader already knows which chapter one is 
reading. But to reference a footnote from a later chapter, a prefix is 
needed to let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the 
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries 
and the references.



\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
  [sectionconversionset=OLIE]

\setupnotation
  [footnote]
  [prefix=yes,
   prefixset=none]

\setupreferencestructureprefix
  [footnote]
  [default]
  [prefixsegments=chapter,
   prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext



==
Observation:

For endnotes at the end of a book having the prefix in the header is 
also useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three 
would be useful.


If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same 
counter setups.


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] \setupreferencestructureprefix and numberconversionset

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Mon, 02 Jul 2018 01:08:23 -0600, Wolfgang Schuster  
 wrote:



Hi Idris,

you get the correct reference numbers when you apply the conversion of
the section numbers
with the sectionconversionset-key, this does also mean you have to
remove “conversion=R”
from chapter setup.

==
\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead[sectionconversionset=OLIE]
==


Amazing and elegant. Many thanks!

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
30. Juni 2018 um 22:42
Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all
subsectioning by decimal numerals. See attached and below:

===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
   % [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
___
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
___





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster  
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are  
superfluous, e.g., the reader already knows which chapter one is reading.  
But to reference a footnote from a later chapter, a prefix is needed to  
let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the reference  
and not the marker or notation header?


==
Observation:

For endnotes at the end of a book having the prefix in the header is also  
useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three would  
be useful.


If not currently supported, would like to make this a feature request.
==

Thank you again, Wolfgang.

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to
include the chapter information? See attached and below:

===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an
ambiguity: Both references give back

 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the
reference-numberconversionset issue of the other thread, where

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

reference-footnotes.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] \setupreferencestructureprefix and numberconversionset

2018-07-02 Thread Wolfgang Schuster

Hi Idris,

you get the correct reference numbers when you apply the conversion of 
the section numbers
with the sectionconversionset-key, this does also mean you have to 
remove “conversion=R”

from chapter setup.

==
\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead[sectionconversionset=OLIE]
==

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
30. Juni 2018 um 22:42
Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all 
subsectioning by decimal numerals. See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
   % [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
___
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] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster

Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
  [footnote]
  [prefix=yes,
  %prefixsegments=chapter,
   way=bychapter]

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to 
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an 
ambiguity: Both references give back


 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the 
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris


___
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] Referencing footnotes by SECTION

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Attached!

On Sat, 30 Jun 2018 15:04:02 -0600, Idris Samawi Hamid ادريس سماوي حامد  
 wrote:



Dear gang,

When referencing footnotes that reset each chapter, is there a way to  
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
textdistance=0.7em,
sectionstopper=.,
criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an  
ambiguity: Both references give back


  "Footnote 1"

Whereas what we would like is something like this:

  Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

  Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the  
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace,
 numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris



--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document


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

[NTG-context] Referencing footnotes by SECTION

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

When referencing footnotes that reset each chapter, is there a way to  
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an ambiguity:  
Both references give back


 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the  
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] \setupreferencestructureprefix and numberconversionset

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Chapter numbers are indicated roman numerals (conversion=R), all  
subsectioning by decimal numerals. See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

% \setupreferencestructureprefix [chapter] [default]
   % [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsubsection[title={},reference={reference4}]
\input ward
\stopsubsubsection
\startsubsection[title={},reference={reference5}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

So, e.g., Chapter II, Subsection 1, Subsubsection 1

In the references we get

2.1.1

But what we want is

II.1.1

Adding the following to the preamble doesn't appear to work:

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]
What am I missing? Thanks in advance for any guidance.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document


scratch.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] referencing and stoppers

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 30 Jun 2018 04:20:57 -0600, Wolfgang Schuster  
 wrote:



You can use the \setupreferencestructureprefix command set a different
value for
the stopper but you have to ensure the key takes a value because a empty
argument is ignored. Instead of the argument I used in my example
(\symbol[none])
you can also use a unicode character without width, e.g. \zerowidthspace.


\setupreferencestructureprefix [section] [default]
[prefixstopper={\symbol[none]}]
%\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace]

   1. Argument: section name -> section == \section / \startsection
   2. Argument: reference type -> default == \in
   3. Argument: settings which differ from \setuphead


Many thanks, this is exactly what was needed!

Your replies and pointers are appreciated and not taken for granted.

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
29. Juni 2018 um 16:22
Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the
stopper to appear in the main text sectioning but not in the
references to those sections. For example (attached and below):

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in
reference while maintaining it in the main sectioning but removing it
in the referencing?

If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there
is no straightforward way, would like to make it a feature request.

Thank you in advance for your help.

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





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] referencing and stoppers

2018-06-30 Thread Wolfgang Schuster
You can use the \setupreferencestructureprefix command set a different 
value for

the stopper but you have to ensure the key takes a value because a empty
argument is ignored. Instead of the argument I used in my example 
(\symbol[none])

you can also use a unicode character without width, e.g. \zerowidthspace.


\setupreferencestructureprefix [section] [default] 
[prefixstopper={\symbol[none]}]
%\setupreferencestructureprefix [section] [default] 
[prefixstopper=\zerowidthspace]


  1. Argument: section name -> section == \section / \startsection
  2. Argument: reference type -> default == \in
  3. Argument: settings which differ from \setuphead


Wolfgang

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
29. Juni 2018 um 16:22
Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the 
stopper to appear in the main text sectioning but not in the 
references to those sections. For example (attached and below):


===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in 
reference while maintaining it in the main sectioning but removing it 
in the referencing?


If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there 
is no straightforward way, would like to make it a feature request.


Thank you in advance for your help.

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

[NTG-context] referencing and stoppers

2018-06-29 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the stopper  
to appear in the main text sectioning but not in the references to those  
sections. For example (attached and below):


===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in  
reference while maintaining it in the main sectioning but removing it in  
the referencing?


If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there is  
no straightforward way, would like to make it a feature request.


Thank you in advance for your help.

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

section-space-text.pdf
Description: Adobe PDF document


section-space-text.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
___

Re: [NTG-context] space sectioning control

2018-06-26 Thread Procházka Lukáš Ing .

Hello,

there was no key "textdistance" described on wiki, so I added the option into 
key-value list:

http://wiki.contextgarden.net/Command/setuphead

Lukas


On Mon, 25 Jun 2018 15:20:43 +0200, Wolfgang Schuster 
 wrote:


You have to change the value of textdistance.

\setuphead
   [subsubsection]
   [alternative=text,
distance=0pt,
textdistance=.5em]

\starttext

\startchapter[title={First}]

\startsubsubsection
\input ward
\stopsubsubsection

\stopchapter

\stoptext

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection
numeral and the text is too large, even with

distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank
you in advance.

Best wishes
Idris
___
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
___
Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
25. Juni 2018 um 13:41
To number paragraphs you can create a counter with \definelabel.


\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ 
}]

\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 14:58
On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster
 wrote:


To number paragraphs you can create a counter with \definelabel.


Yes - and tested some paragraph options yesterday. Many thanks for the
sample below.

But this particular project is very large with countless
cross-references already in place that depend on the subsectioning
mechanism. Is there a workaround that will avoid major surgery to the
main text?

Also, subsubsections and subsubsubsections are still needed, as well
as resetting the counters after each chapter etc..

In other words, what's needed is all the features of subsection
without the titling. Just as

\start|stoptitle \start|stopsubject [etc.]

give titling without sectioning numerals, we need something like

\start|stoplabeling \start|stopsublabeling

to get sectioning numerals without titling.

(This is usually not a big deal except in cases like [alternative=text])

(And on a very tight deadline so there is little (‍= no) time to
rebuild structure from scratch. Better to configure subsection to do
what's needed, and perhaps use a different method for the next big
project.)

So is there a way this can be done? Many thanks for your insights and
help.

Idris


\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{
}]

\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Can this be made into


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection
numeral and the text is too large, even with

distance=0em

Negative distances don't behave well

Re: [NTG-context] Overriding / redefining / disabling standard commands

2018-06-25 Thread Rik Kabel

On 6/25/2018 22:00, Alan Braslau wrote:

On Mon, 25 Jun 2018 20:50:51 -0400
Rik Kabel  wrote:


On 6/25/2018 20:11, Alan Braslau wrote:

On Mon, 25 Jun 2018 19:11:30 -0400
Rik  wrote:


On 6/25/2018 17:52, Wolfgang Schuster wrote:

\startmode[ebook]
\setupbackend[export=yes]
\stopmode

\starttext

\index{Knuth}\input knuth

\index{Ward}\input ward

\index{Zapf}\input zapf

\startnotmode[*export]
\completeregister[index]
\stopnotmode

\stoptext

Unfortunately, this does not suppress generation of index
references in the exported output. Here is a snippet of the
-div.html file generated by the example you provided:

  Thus,
I came to the conclusion that the designer of a new system must not
  only be the implementer and first large--scale user; the
designer should also write the first user manual.

and a snip of the output with the default css:

Thus the request for a (simple) mechanism to redefine or disable
standard commands. There are commands other than \index that might
also benefit from similar treatment.


\def\MyIndex#1{\index{#1}}

is one route.

Another might be

\let\index\gobbleoneargument

(use at your risk)

Alan


This would work if \index took one argument, but it takes as well an
optional argument preceding the required argument, and so these fail.

The best solution would seem to be one which does not require
knowledge of the number of required and optional arguments, but that
might be a stretch.

That is why I asked for help.

\setupregister[index][referencing=off]

Besides, if you use \index, why object to index reference tags in the
export?

Alan


Alan (and list),

This option still leaves the registerlocation entries in the html file, 
and so accomplishes nothing that Wolfgang's suggestion did. Being 
implemented in the environment file, it does have the advantage of not 
requiring changes to the content source file.


As to why I object to index reference tags in the export: There are a 
few constructs beyond indexes that I wish to exclude in export output -- 
indices are one and the problem is easily demonstrated. Referencetags 
themselves are not a significant problem -- a little css will hide them. 
I have not explored the other constructs yet (among them margin notes 
and cross-references) but was hoping for a generic solution, or at least 
an easily adapted per command solution.


There are a few options I can see. In order of least to most preferred, 
I can maintain separate sources; I can invoke a filter in my makefile to 
preprocess the source, removing \index commands (or margin notes, or 
...); I can redefine \index (or margin notes, or ...) to be no-ops.


As much as possible I would like to use the same content source files 
for different output formats with some unique environment files. Filters 
are an added step and fragile, depending on correctly identifying the 
target constructs. So, I have been looking at redefinition.


I thought that the ability to override a command like \index might be 
generally useful, and so brought it up to the list when I could not find 
a way to do it.


--
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] Overriding / redefining / disabling standard commands

2018-06-25 Thread Alan Braslau
On Mon, 25 Jun 2018 20:50:51 -0400
Rik Kabel  wrote:

> On 6/25/2018 20:11, Alan Braslau wrote:
> > On Mon, 25 Jun 2018 19:11:30 -0400
> > Rik  wrote:
> >
> >> On 6/25/2018 17:52, Wolfgang Schuster wrote:
> >>> \startmode[ebook]
> >>> \setupbackend[export=yes]
> >>> \stopmode
> >>>
> >>> \starttext
> >>>
> >>> \index{Knuth}\input knuth
> >>>
> >>> \index{Ward}\input ward
> >>>
> >>> \index{Zapf}\input zapf
> >>>
> >>> \startnotmode[*export]
> >>> \completeregister[index]
> >>> \stopnotmode
> >>>
> >>> \stoptext
> >> Unfortunately, this does not suppress generation of index
> >> references in the exported output. Here is a snippet of the
> >> -div.html file generated by the example you provided:
> >>
> >>   >>  onclick="location.href=#aut-1">Thus,
> >> I came to the conclusion that the designer of a new system must not
> >>  only be the implementer and first large--scale user; the
> >> designer should also write the first user manual.
> >>
> >> and a snip of the output with the default css:
> >>
> >> Thus the request for a (simple) mechanism to redefine or disable
> >> standard commands. There are commands other than \index that might
> >> also benefit from similar treatment.
> >>
> > \def\MyIndex#1{\index{#1}}
> >
> > is one route.
> >
> > Another might be
> >
> > \let\index\gobbleoneargument
> >
> > (use at your risk)
> >
> > Alan
> >
> This would work if \index took one argument, but it takes as well an 
> optional argument preceding the required argument, and so these fail.
> 
> The best solution would seem to be one which does not require
> knowledge of the number of required and optional arguments, but that
> might be a stretch.
> 
> That is why I asked for help.

\setupregister[index][referencing=off]

Besides, if you use \index, why object to index reference tags in the
export?

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
___

[NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Trying to get the sectioning numerals in the left margin of the TOC to be
fushright; by default they are flushleft; see attached and below:

===
\setuphead[chapter]   [conversion=R]

\setuplist[chapter][width=2.8em]

\definecombinedlist
[content]
[chapter]
[level=chapter,
alternative=c,
numberalign=flushright]

\starttext
\placecontent[conversion=R]
\startchapter[title={First},reference={}]   \input ward \stopchapter
\startchapter[title={Second},reference={}]  \input ward \stopchapter
\startchapter[title={Third},reference={}]   \input ward \stopchapter
\startchapter[title={Fourth},reference={}]  \input ward \stopchapter
\startchapter[title={Fifth},reference={}]   \input ward \stopchapter
\startchapter[title={Sixth},reference={}]   \input ward \stopchapter
\startchapter[title={Seventh},reference={}] \input ward \stopchapter
\startchapter[title={Eighth},reference={}]  \input ward \stopchapter
\stoptext
===

numberalign=flushright would seem to be the governing keyword+value, but
that has no effect here.

For the form of the desired result, see toc-margin_numerals-MURE.pdf:

https://www.dropbox.com/s/j0etnkt54zji6h5/toc-margin_numerals-MURE.pdf?dl=0

(note the stopper after each margin numeral!). Thank you in
advance.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.pdf
Description: Adobe PDF document


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

Re: [NTG-context] letter: How to customize reference line?

2018-06-25 Thread Wolfgang Schuster

Hi Paul,

you have to use the \setupletterlayer command to change the entries in 
the reference line.


\usemodule[letter]

\setupletter
  [name={Joe User}]

\setupletterlayer
  [reference]
  [list={name,date}]

\startletter
...
\stopletter


If you don’t get a title for your entry you can add it with the 
\setuplettertext command.


\setuplettertext[de][mobile=Mobilfunknummer]


Wolfgang


Paul Menzel <mailto:pmenzel+ntg-cont...@molgen.mpg.de>
24. Juni 2018 um 15:40
Dear ConTeXt folks,


I am trying to customize the reference line in a letter.

```
$ context --version

mtx-context | ConTeXt Process Management 1.01
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2017.05.15 21:48
```

The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me.

```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletter
  [list={name,date}]
```

Only the date is shown in the reference line.

The solution from chapter 9 also does not work. Still only the date is 
shown.


```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletterstyle[reference][list={name,date}]
```

Do I need to create a new customized reference line to add other 
fields next to the date to the reference line?



Kind regards,

Paul


[1]: https://bitbucket.org/wolfs/correspondence/downloads/
___
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
___

[NTG-context] letter: How to customize reference line?

2018-06-25 Thread Paul Menzel

Dear ConTeXt folks,


I am trying to customize the reference line in a letter.

```
$ context --version

mtx-context | ConTeXt Process Management 1.01
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2017.05.15 21:48
```

The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me.

```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletter
  [list={name,date}]
```

Only the date is shown in the reference line.

The solution from chapter 9 also does not work. Still only the date is 
shown.


```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletterstyle[reference][list={name,date}]
```

Do I need to create a new customized reference line to add other fields 
next to the date to the reference line?



Kind regards,

Paul


[1]: https://bitbucket.org/wolfs/correspondence/downloads/
\usemodule[letter][extension=optimize]

\mainlanguage[de]

\setupletterstyle
  [option]
  [whitespace=line,
   optimize=yes,
   ]

\setupletter
  [toname={Vodafone Kabel Deutschland GmbH},
   toaddress={Kundenservice\\99116 Erfurt}]

\setupletter
  [fromname={Hanna Musterfrau},
   fromaddress={Irgendwostr. 18\\9 Nirgendwo}]

\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletterstyle[reference][list={name,date}]

\starttext

\setupletter
  [subject={Reason},
   opening={Sehr geehrte Damen und Herren,},
   closing={Freundliche Grüße},
   signature={Paul Menzel}]

\startletter\relax
\dorecurse{4}{\input ward\par}
\stopletter

\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] space sectioning control

2018-06-25 Thread Wolfgang Schuster

You have to change the value of textdistance.

\setuphead
  [subsubsection]
  [alternative=text,
   distance=0pt,
   textdistance=.5em]

\starttext

\startchapter[title={First}]

\startsubsubsection
\input ward
\stopsubsubsection

\stopchapter

\stoptext

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection 
numeral and the text is too large, even with


distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank 
you in advance.


Best wishes
Idris
___
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
___
Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
25. Juni 2018 um 13:41
To number paragraphs you can create a counter with \definelabel.


\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ 
}]

\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 14:58
On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster 
 wrote:



To number paragraphs you can create a counter with \definelabel.


Yes - and tested some paragraph options yesterday. Many thanks for the 
sample below.


But this particular project is very large with countless 
cross-references already in place that depend on the subsectioning 
mechanism. Is there a workaround that will avoid major surgery to the 
main text?


Also, subsubsections and subsubsubsections are still needed, as well 
as resetting the counters after each chapter etc..


In other words, what's needed is all the features of subsection 
without the titling. Just as


\start|stoptitle \start|stopsubject [etc.]

give titling without sectioning numerals, we need something like

\start|stoplabeling \start|stopsublabeling

to get sectioning numerals without titling.

(This is usually not a big deal except in cases like [alternative=text])

(And on a very tight deadline so there is little (‍= no) time to 
rebuild structure from scratch. Better to configure subsection to do 
what's needed, and perhaps use a different method for the next big 
project.)


So is there a way this can be done? Many thanks for your insights and 
help.


Idris

\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ 
}]


\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Can this be made into


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection
numeral and the text is too large, even with

distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank
you in advance.




___
If your question 

Re: [NTG-context] space sectioning control

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster  
 wrote:



To number paragraphs you can create a counter with \definelabel.


Yes - and tested some paragraph options yesterday. Many thanks for the  
sample below.


But this particular project is very large with countless cross-references  
already in place that depend on the subsectioning mechanism. Is there a  
workaround that will avoid major surgery to the main text?


Also, subsubsections and subsubsubsections are still needed, as well as  
resetting the counters after each chapter etc..


In other words, what's needed is all the features of subsection without  
the titling. Just as


\start|stoptitle \start|stopsubject [etc.]

give titling without sectioning numerals, we need something like

\start|stoplabeling \start|stopsublabeling

to get sectioning numerals without titling.

(This is usually not a big deal except in cases like [alternative=text])

(And on a very tight deadline so there is little (‍= no) time to rebuild  
structure from scratch. Better to configure subsection to do what's  
needed, and perhaps use a different method for the next big project.)


So is there a way this can be done? Many thanks for your insights and help.

Idris

\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{  
}]


\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Can this be made into


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection
numeral and the text is too large, even with

distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank
you in advance.


--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] space sectioning control

2018-06-25 Thread Wolfgang Schuster

To number paragraphs you can create a counter with \definelabel.


\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ 
}]

\starttext

\startchapter[title={First},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\startchapter[title={Second},reference={}]

\Paragraph\input ward

\Paragraph\input ward

\stopchapter

\stoptext


Wolfgang


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 04:45
Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection 
numeral and the text is too large, even with


distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank 
you in advance.


Best wishes
Idris
___
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
___

[NTG-context] \reference not working with reference prefix and focus=standard

2018-06-25 Thread Christoph Reller
Hi,

Thank you, Hans, for supporting the focus=standard option in interactive PDFs.

I stumbled over the following problem:

\setupinteraction[state=start, focus=standard]
\starttext
\pushreferenceprefix{parent}
\reference[label]{Text}Bla
\page
\about[label]
\popreferenceprefix
\stoptext

The link's visual appearance is generated correctly and the PDF link
annotation correctly references a named destination "parent:label". In
the PDF's catalog, however, the only named destination has a name
"label", lacking the prefix.

Could you please consider fixing this issue?

Kind regards,

Christoph
___
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] space sectioning control

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Here's an interesting one, attached and below:

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]

\starttext

\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsection%[title={}]
\input ward
\stopsubsection
\stopchapter
\stoptext
===

Our subsections do not have titles. The space between the subsection  
numeral and the text is too large, even with


distance=0em

Negative distances don't behave well - toggle lines 4 and 5.

What can we do to control the space between numeral and text? Thank you in  
advance.


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document


scratch.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 in seeindex sorting

2018-06-15 Thread Alan Bowen
The MWE

\index{sample}
\index{fun+games}\index{fun+stuff}
\index{fun}

\seeindex{fun}{sample} % with first subheading, not heading
\seeindex{fun}{blah} % shown with heading (as it should be) ONLY if
\index{fun} is commented out; otherwise it is not shown
\seeindex{fun}{humbug} % not shown
\seeindex{fun}{bug} % not shown

\seeindex{fun+games}{entertainment}  % not shown

\placeindex[n=1]

shows several problems in \seeindex.

What is needed is

fun   1 *see blah, bug, humbug, and sample*
games 1 *see entertainment*
stuff1

As Hraban has indicated, there is some urgency here. For my part, I need
x-refs for a book that I am trying to get off my plate and onto the
publisher’s; so any thoughts on this or suggestions will be greatly
appreciated.

Alan






On Wed, Jun 13, 2018 at 10:46 AM Henning Hraban Ramm  wrote:

> In latest beta, the error got bigger:
>
> \starttext
> \index{sample}
> \index{Fun+games}\index{Fun+stuff}
> \seeindex{Fun}{sample}
> \seeindex{Fun}{bug} % missing!
> \seeindex{Fun}{blah}
> \placeindex[n=1]
> \stoptext
>
> now gives
>
> f
> Fun see blah
>   games , see sample
>   stuff
> s
> sample
>
> i.e.
> * multiple seeindex references from the same point are incomplete
> * wrong "root" as before
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
> Am 2018-06-11 um 21:05 schrieb Henning Hraban Ramm :
>
> > Me again on registers.
> >
> > If you have an entry with just subentries and a reference (seeindex)
> from the main entry to an *existing* other entry, the reference is sorted
> at one of the subentries.
> > I.e. in the MWE we get
> >
> > Fun
> >  games 1, see sample
> >  stuff 1
> >
> > instead of
> >
> > Fun see sample
> >  games 1
> >  stuff 1
> >
> >
> > \starttext
> > \index{sample}
> > \index{Fun+games}\index{Fun+stuff}
> > \seeindex{Fun}{sample}
> > \placeindex[n=1]
> > \stoptext
> >
> >
> > This prevents the completion of a scientific tome, so would be really
> nice if this could be fixed.
> >
> >
> > Greetlings, Hraban
> > ---
> > https://www.fiee.net
> > http://wiki.contextgarden.net
> > https://www.dreiviertelhaus.de
> > GPG Key ID 1C9B22FD
>
>
> ___
> 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] error in seeindex sorting

2018-06-13 Thread Henning Hraban Ramm
In latest beta, the error got bigger:

\starttext
\index{sample}
\index{Fun+games}\index{Fun+stuff}
\seeindex{Fun}{sample}
\seeindex{Fun}{bug} % missing!
\seeindex{Fun}{blah}
\placeindex[n=1]
\stoptext

now gives

f
Fun see blah
  games , see sample
  stuff
s
sample

i.e.
* multiple seeindex references from the same point are incomplete
* wrong "root" as before

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-06-11 um 21:05 schrieb Henning Hraban Ramm :

> Me again on registers.
> 
> If you have an entry with just subentries and a reference (seeindex) from the 
> main entry to an *existing* other entry, the reference is sorted at one of 
> the subentries.
> I.e. in the MWE we get
> 
> Fun
>  games 1, see sample
>  stuff 1
> 
> instead of
> 
> Fun see sample
>  games 1
>  stuff 1
> 
> 
> \starttext
> \index{sample}
> \index{Fun+games}\index{Fun+stuff}
> \seeindex{Fun}{sample}
> \placeindex[n=1]
> \stoptext
> 
> 
> This prevents the completion of a scientific tome, so would be really nice if 
> this could be fixed.
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD

___
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] error in seeindex sorting

2018-06-11 Thread Henning Hraban Ramm
Me again on registers.

If you have an entry with just subentries and a reference (seeindex) from the 
main entry to an *existing* other entry, the reference is sorted at one of the 
subentries.
I.e. in the MWE we get

Fun
  games 1, see sample
  stuff 1

instead of

Fun see sample
  games 1
  stuff 1


\starttext
\index{sample}
\index{Fun+games}\index{Fun+stuff}
\seeindex{Fun}{sample}
\placeindex[n=1]
\stoptext


This prevents the completion of a scientific tome, so would be really nice if 
this could be fixed.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] \seeindex with subentries

2018-06-08 Thread Alan Braslau
This has been reported before...

BTW, how should cat+Siamese be formatted?

cat 1
  Burmese 1
  obese, see Siamese

or

cat 1
  Burmese 1
  obese, see cat, Siamese


Clearly the second case would be needed for
\seeindex{pet+obese}{cat+Siamese}
with

pet
  obese, see cat, Siamese


Alan


On Fri, 8 Jun 2018 21:44:13 +0200
Henning Hraban Ramm  wrote:

> This MWE:
> 
> """
> \setupinteraction[state=start]
> \setupregister[index][n=1]
> 
> \starttext
> My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
> He doesn't like \index{cat}cats.
> There are a lot of \index{cat+stray}stray cats, but only a few of
> them are \index{cat+Siamese}Siamese. I don’t think there are
> \index{cat+Burmese}Burmese cats.
> 
> \seeindex{cat+obese}{cat+Siamese}
> \seeindex{hound}{dog}
> 
> \completeindex
> 
> \stoptext
> """
> 
> ... shows two problems at once:
> 
> """
> c
> cat 1
>   Burmese 1, see cat+Siamese
>   Siamese 1
>   stray 1
> d
> dog 1
>   bullterrier 1
> h
> hound see dog
> """
> 
> While the reference "hound see dog" is properly formatted, cat+obese
> is missing (i.e. sorted under Burmese) while there is no
> \index{cat+obese}, and the reference "cat+Siamese" is shown as-is,
> not properly formatted.
> 
> That means, refering to index sub-entries is broken at the moment
> (current beta and at least several previous).
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD

___
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] \seeindex with subentries

2018-06-08 Thread Henning Hraban Ramm
This MWE:

"""
\setupinteraction[state=start]
\setupregister[index][n=1]

\starttext
My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
He doesn't like \index{cat}cats.
There are a lot of \index{cat+stray}stray cats, but only a few of them are 
\index{cat+Siamese}Siamese. I don’t think there are \index{cat+Burmese}Burmese 
cats.

\seeindex{cat+obese}{cat+Siamese}
\seeindex{hound}{dog}

\completeindex

\stoptext
"""

... shows two problems at once:

"""
c
cat 1
  Burmese 1, see cat+Siamese
  Siamese 1
  stray 1
d
dog 1
  bullterrier 1
h
hound see dog
"""

While the reference "hound see dog" is properly formatted, cat+obese is missing 
(i.e. sorted under Burmese) while there is no \index{cat+obese}, and the 
reference "cat+Siamese" is shown as-is, not properly formatted.

That means, refering to index sub-entries is broken at the moment (current beta 
and at least several previous).


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


seeindex.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] Defining command with optional and mandatory arguments

2018-05-24 Thread Alan Braslau
On Thu, 24 May 2018 11:24:34 +0200
Christoph Reller <christoph.rel...@gmail.com> wrote:

> Thank you Hraban for pointing me to the wiki. I was aware of this page
> but it contains only the case of mandatory arguments in curly braces
> {} not in brackets [].

One must *not* confuse with the LaTeX convention where "mandatory"
arguments are contained in curly braces and brackets indicate
"optional" arguments.

As Taco states below, curly braces not only give grouping but generally
are used for objects to be typeset, as for \in{Figure}{a} [fig:ref].

For new users, it is worth repeating here that arguments within braces
can be either a comma-separated list of words OR a comma-separated
list of keyword=value pairs, BUT NOT A MIXTURE OF BOTH. Generally, a
keyword=value exists for all words, for example \cite[authoryear][ref]
and \cite[alternative=authoryear,reference=ref]

values can be grouped using curly braces, as in
\cite[alternative=authoryear,lefttext={{see },}][ref1,ref2] where the
lefttext is associated with the first cite reference (and none with the
second). This can be tricky but is in fact rather straight-forward.

Alan

P.S. The wiki is only as good as users make it; some pages have not
been changed since mkii...


On Thu, 24 May 2018 15:43:27 +0200
Taco Hoekwater <t...@elvenkind.com> wrote:

> The original intent was for user-level commands to have square
> brackets for arguments setting things up, and curly braces for
> arguments that are actually typeset. That is where commands like \in
> come from, where the braced part is optional and the bracketed part
> required.

___
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] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .

Hello,

deducing:


\starttext
  \startitemize[i][stopper=),headstyle=bold]
\starthead[h]{Head}

  Some text.

\stophead

\item[i] Item.
  \stopitemize

  See \in[h] and \in[i].
\stoptext


Thank you.

Lukas


On Wed, 23 May 2018 13:18:27 +0200, Wolfgang Schuster 
<schuster.wolfg...@gmail.com> wrote:


\starthead takes takes the title as argument, i.e.

\starthead {…}
…
\stophead

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 11:11
Hello,

referring to \head doesn't work in the ME bellow:


\starttext
  \startitemize[n][]
\item[a] A

\head[b] B

  bbb

\item See \in[a] and \in[b].
  \stopitemize

  \startitemize[n][]
\item See \in[a] and \in[b].
  \stopitemize
\stoptext


\head doesn't recongize its reference name (ignores [] after it),
although it should not:

http://wiki.contextgarden.net/Command/head

What am I doing wrong? - How to refer to a \head? (Referring to \item
works well.)

TIA.

Best regards,

Lukas


___
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
___
Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
23. Mai 2018 um 11:44
Use \starthead.

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 12:53
Hello Wolfgang,

thank you for the answer, wikified:

http://wiki.contextgarden.net/Command/head

Best regards,

Lukas


On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:









--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] Referring to \head

2018-05-23 Thread Wolfgang Schuster

\starthead takes takes the title as argument, i.e.

\starthead {…}
…
\stophead

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 11:11
Hello,

referring to \head doesn't work in the ME bellow:


\starttext
  \startitemize[n][]
\item[a] A

\head[b] B

  bbb

\item See \in[a] and \in[b].
  \stopitemize

  \startitemize[n][]
\item See \in[a] and \in[b].
  \stopitemize
\stoptext


\head doesn't recongize its reference name (ignores [] after it), 
although it should not:


http://wiki.contextgarden.net/Command/head

What am I doing wrong? - How to refer to a \head? (Referring to \item 
works well.)


TIA.

Best regards,

Lukas


___
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
___
Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
23. Mai 2018 um 11:44
Use \starthead.

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 12:53
Hello Wolfgang,

thank you for the answer, wikified:

http://wiki.contextgarden.net/Command/head

Best regards,

Lukas


On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster 
<schuster.wolfg...@gmail.com> wrote:






___
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] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .

Hello Wolfgang,

thank you for the answer, wikified:

http://wiki.contextgarden.net/Command/head

Best regards,

Lukas


On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster 
<schuster.wolfg...@gmail.com> wrote:


Use \starthead.

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 11:11
Hello,

referring to \head doesn't work in the ME bellow:


\starttext
  \startitemize[n][]
\item[a] A

\head[b] B

  bbb

\item See \in[a] and \in[b].
  \stopitemize

  \startitemize[n][]
\item See \in[a] and \in[b].
  \stopitemize
\stoptext


\head doesn't recongize its reference name (ignores [] after it),
although it should not:

http://wiki.contextgarden.net/Command/head

What am I doing wrong? - How to refer to a \head? (Referring to \item
works well.)

TIA.

Best regards,

Lukas


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






--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] Referring to \head

2018-05-23 Thread Wolfgang Schuster

Use \starthead.

Wolfgang

Procházka Lukáš Ing. <mailto:l...@pontex.cz>
23. Mai 2018 um 11:11
Hello,

referring to \head doesn't work in the ME bellow:


\starttext
  \startitemize[n][]
\item[a] A

\head[b] B

  bbb

\item See \in[a] and \in[b].
  \stopitemize

  \startitemize[n][]
\item See \in[a] and \in[b].
  \stopitemize
\stoptext


\head doesn't recongize its reference name (ignores [] after it), 
although it should not:


http://wiki.contextgarden.net/Command/head

What am I doing wrong? - How to refer to a \head? (Referring to \item 
works well.)


TIA.

Best regards,

Lukas


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

[NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .

Hello,

referring to \head doesn't work in the ME bellow:


\starttext
  \startitemize[n][]
\item[a] A

\head[b] B

  bbb

\item See \in[a] and \in[b].
  \stopitemize

  \startitemize[n][]
\item See \in[a] and \in[b].
  \stopitemize
\stoptext


\head doesn't recongize its reference name (ignores [] after it), although it 
should not:

http://wiki.contextgarden.net/Command/head

What am I doing wrong? - How to refer to a \head? (Referring to \item works 
well.)

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t3.mkiv
Description: Binary data


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

[NTG-context] referenceprefix=+ not working

2018-05-22 Thread Henri Menke

Dear list,

the option referenceprefix=+ for setuphead seems to not work.
https://tex.stackexchange.com/questions/432844
It works however if you put an explicit prefix.  See MWE below. 
Reproducible on TL2018 and latest beta.


Cheers, Henri

---

\setuphead
  [section]
  [referenceprefix=+] % when I put "test" it works

\starttext

\startsection[reference=test,title={Test}]

  \startplacefigure[reference=cow]
\externalfigure[cow]
  \stopplacefigure

\stopsection

\in[test:cow] % ??

\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] using lua fonts

2018-05-09 Thread Hans Hagen

On 5/9/2018 12:40 PM, Ulrike Fischer wrote:

Am Wed, 9 May 2018 09:56:50 +0200 schrieb Hans Hagen:


watch how i replaced the * by : because only context has the * syntax


Thank you very much for this explanation. I was wondering about the
same thing and replacing this made the code going.

Perhaps a general remark: I and certainly Henry too are quite aware
that some of the code is context specific. But it is often quite
difficult to see the boundaries -- which part of the examples are
generic and which rely on context (and on how much in context). It
is also not easy to decide which (lua) functions are "public" and
won't break at the next update of the font handler.


normally function that are part of the generic loader code are publis 
(one can argue about the low level helpers as these are only loaded for 
the code to work i.e. i have no clue how useful these are outside 
context) .. that code doesn't change that much nowadays (just assume 
that i also use it in modules sometimes and i don't want to change that 
too often)


then there is the wrapper code (that hooks into callbacks) which is also 
mostly stable (unless we add something fundamental)


for instance, the effects feature has a sort of sub syntax that suits 
context feature definitions, so for latex you probably need to map onto 
that somehow ... i happily leave that to others to figure out as i don't 
want to impose something (the same is true for variable fonts)


the big font manual is a context one so there can be examples that 
assume the context user interface and there is not much we can do about 
that (and i don't know much about latex apart from what i occasionally 
see at some tex meeting) ... wrrt the font loader: the luatex-plain 
version is sort of the generic reference ... anything written on top of 
that is specific for a macro package


another difference is the font database ... i'm pretty sure that the 
context one is quite generic but latex folks wanted their own so ...



Henri: As you are interested in these things too, do you think it
would be a good idea to setup a github repository where we collect
such (plain and latex and context) examples?


anyway, if something doesn't work at some point we can always see why 
and provide a compatibility hack in luatex-fonts-hacks or so


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] adressing the name of a reference

2018-05-02 Thread Henning Hraban Ramm
Ahoi!
in this example I’d expect to get "Something" from one of the structurevariable 
commands, but get nothing.
How can I address this value? (It works with user variables, but since I need 
the reference anyway, I don’t want to define it twice.)

\starttext

\startchapter[title=Test,reference=Something]

Chapter reference: \namedstructurevariable{chapter}{reference} or 
\structurevariable{reference}

\stopchapter

\stoptext


Actually, I need the first and last page reference of each chapter, was trying 
like

\at[\namedstructurevariable{chapter}{reference}]–\at[end\namedstructurevariable{chapter}{reference}]

with

\reference[end\namedstructureuservariable{chapter}{reference}]{}

at the end of the chapter.

I guess there’s a better way.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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] trying out "plug mode" and the harfbuzz plugin

2018-04-26 Thread Hans Hagen

On 4/25/2018 6:31 PM, Ulrike Fischer wrote:

Am Sun, 22 Apr 2018 12:04:11 +0200 schrieb Hans Hagen:


I read the guitex article about ffi and luatex and wanted to try if
I could run tests with harfbuzz and the plug-mode.

Looking in the newest context I found in onandon-ffi.tex a reference
to the module fonts-plugins. But this module loads a lua file which
isn't in context:

\registerctxluafile{font-phb}{} % harfbuzz plugin


which then indirectly loads some more code



it's on my machine (and occasionally used when we test idris new fonts


(It looks as if my first answer got lost so again) Can we (David and
me) have the code for tests?

i only distribute code as part of the distribution

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] trying out "plug mode" and the harfbuzz plugin

2018-04-25 Thread Ulrike Fischer
Am Sun, 22 Apr 2018 12:04:11 +0200 schrieb Hans Hagen:

>> I read the guitex article about ffi and luatex and wanted to try if
>> I could run tests with harfbuzz and the plug-mode.
>>
>> Looking in the newest context I found in onandon-ffi.tex a reference
>> to the module fonts-plugins. But this module loads a lua file which
>> isn't in context:
>> 
>> \registerctxluafile{font-phb}{} % harfbuzz plugin
> 
> which then indirectly loads some more code

> it's on my machine (and occasionally used when we test idris new fonts 

(It looks as if my first answer got lost so again) Can we (David and
me) have the code for tests? 


-- 
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] trying out "plug mode" and the harfbuzz plugin

2018-04-22 Thread Hans Hagen

On 4/21/2018 10:42 PM, Ulrike Fischer wrote:

I read the guitex article about ffi and luatex and wanted to try if
I could run tests with harfbuzz and the plug-mode.

Looking in the newest context I found in onandon-ffi.tex a reference
to the module fonts-plugins. But this module loads a lua file which
isn't in context:

\registerctxluafile{font-phb}{} % harfbuzz plugin


which then indirectly loads some more code


Is this an oversight or is the code not meant to be used? Or is
there something newer somewhere else?
it's on my machine (and occasionally used when we test idris new fonts 
and do because engines can behave different so we can compare hb, 
uniscribe and context) ... when falling back on something else lots of 
other font related features in context will not work (apart from 
performence)


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] trying out "plug mode" and the harfbuzz plugin

2018-04-21 Thread Ulrike Fischer
I read the guitex article about ffi and luatex and wanted to try if
I could run tests with harfbuzz and the plug-mode.

Looking in the newest context I found in onandon-ffi.tex a reference
to the module fonts-plugins. But this module loads a lua file which
isn't in context:

\registerctxluafile{font-phb}{} % harfbuzz plugin

Is this an oversight or is the code not meant to be used? Or is
there something newer somewhere else?


-- 
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] goto reference

2018-04-19 Thread Taco Hoekwater
Hi Hans (van der Meer),

Not sure if the next would be useful to you, but I want to mention anyway
that you can open a local external pdf file to a specific destination, 
using a syntax like this:

  \goto{localfile.pdf::externalreference}

Where “externalreference” is a defined destination in the external
pdf. Since my own generated pdfs tend to have special “page-” 
destinations, I can usually access my own external files with:

   \goto{myfile.pdf::page-5}

I believe this was intended to be used with \usereferences in mkii,
but it works just fine without the \usereferences call in mkiv. Mkiv
does not do any checking on the target validity, though.

This generates a /GoToR link instead of /URI, and that also means
that AR does not open the document in your browser (which is wildly 
annoying) :)

Looking at the lua code in lpdf-ano, it hints that it should be possible
to feed an actual page number in, but if that is true, then I have no idea
what the syntax should be … or it could be a case of NIY?


A quick and dirty way to create external page destinations is:

  \setupinteraction[state=start]
  \setuplayout[top=1sp,topdistance=1sp]
  \setuptoptexts[{\contentreference[page-\the\pageno]{}}]

Hope this helps,

Taco



> On 19 Apr 2018, at 10:55, Hans van der Meer  wrote:
> 
> Thanks, for verifying the behaviour. A pity it does not work as I hoped for, 
> but it is not disastrous, of course :-)
> 
> dr. Hans van der Meer
> 
> 
>> On 19 Apr 2018, at 10:12, Otared Kavian  wrote:
>> 
>> Hi,
>> 
>> I tested your example (after giving some local paths…) and the behaviour as 
>> follows:
>> (1) The full URL path with http:// opens the file at the desired page
>> (2) The full ftp:// local path opens my file at page 1
>> (3) The local path file:// to afile sitting in the same directory does not 
>> work at all.
>> 
>> I just saw that John Grasty gave an explanation from the specifications of 
>> Adobe: maybe that is the reason.
>> 
>> Best regards: OK
>> 
>>> On 19 Apr 2018, at 09:37, Hans van der Meer  wrote:
>>> 
>>> The goto to the internet as given by Wolfgang works here too, but other 
>>> configurations do not. Please ascertain my observations from the test given 
>>> below. You should replace the absolute path by your own, of course. Three 
>>> cases are programmed:
>>> (1) Wolfgang’s
>>> (2) full path ftp:// access opens file but at last page opened
>>> (3) local path does not open and brings up an Alert
>>> Run from TeXShop and also directly in Preview and Adobe Reader with the 
>>> same results.
>>> 
>>> Thanks in advance.
>>> 
>>> dr. Hans van der Meer
>>> 
>>> 
>>> \starttext
>>> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
>>> Testing directly from \ConTeXt:\blank
>>> \setupinteraction[state=start,color=blue,style=italic]
>>> \goto{Beginners manual called with http:// opens in browser as 
>>> expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>>> page=50)]\blank
>>> file test.pdf sits in the current directory.\blank
>>> \goto{click test.pdf page10 with ftp:///Users/... (full path given) opens 
>>> at last page opened not at page 10 in Apple's 
>>> Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash 
>>> page=10)]{\quad\bf Put your own path here!}\blank
>>> \goto{click test.pdf page10 with ftp://test.pdf (local path)) does not 
>>> open}[url(file://test.pdf\letterhash page=10)]\blank
>>> \stoptext
>>> 
>>> 
 On 19 Apr 2018, at 02:07, Otared Kavian  wrote:
 
 Hi,
 
 On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
 Wolfgang works fine: clicking on the link created by ConTeXt, from within 
 TeXShop, Safari opens that document on the desired page, that is the 
 physical page 58.
 
 Best regards: OK
 
> On 18 Apr 2018, at 23:04, Hans van der Meer  wrote:
> 
> Thanks. But this seems not to work on my Macintosh. Not in Preview, not 
> in Adobe Reader. 
> Typesetting resulted in valid-url.pdf#page=55 but the document opens at 
> the last page remebered by the application. Are there other Macintosh 
> users who can confirm this is not working on those machines or should I 
> do something else?
> 
> dr. Hans van der Meer
> 
> 
>> On 18 Apr 2018, at 21:58, Wolfgang Schuster 
>>  wrote:
>> 
>> For documents on the web you can add #page= to the url.
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext
>> \goto{Beginners 
>> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash
>>  page=58)]
>> \stoptext
>> 
>> Wolfgang
>>> Hans van der Meer 18. April 2018 um 21:12
>>> I have the following question about referencing.
>>> 
>>> With \goto{typeset_the_text}[url(file://a_file_location_to_goto.pdf)] I 
>>> can 

Re: [NTG-context] goto reference

2018-04-19 Thread Hans van der Meer
Thanks, for verifying the behaviour. A pity it does not work as I hoped for, 
but it is not disastrous, of course :-)

dr. Hans van der Meer


> On 19 Apr 2018, at 10:12, Otared Kavian  wrote:
> 
> Hi,
> 
> I tested your example (after giving some local paths…) and the behaviour as 
> follows:
> (1) The full URL path with http:// opens the file at the desired page
> (2) The full ftp:// local path opens my file at page 1
> (3) The local path file:// to afile sitting in the same directory does not 
> work at all.
> 
> I just saw that John Grasty gave an explanation from the specifications of 
> Adobe: maybe that is the reason.
> 
> Best regards: OK
> 
>> On 19 Apr 2018, at 09:37, Hans van der Meer > > wrote:
>> 
>> The goto to the internet as given by Wolfgang works here too, but other 
>> configurations do not. Please ascertain my observations from the test given 
>> below. You should replace the absolute path by your own, of course. Three 
>> cases are programmed:
>> (1) Wolfgang’s
>> (2) full path ftp:// access opens file but at last page opened
>> (3) local path does not open and brings up an Alert
>> Run from TeXShop and also directly in Preview and Adobe Reader with the same 
>> results.
>> 
>> Thanks in advance.
>> 
>> dr. Hans van der Meer
>> 
>> 
>> \starttext
>> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
>> Testing directly from \ConTeXt:\blank
>> \setupinteraction[state=start,color=blue,style=italic]
>> \goto{Beginners manual called with http:// opens in browser as 
>> expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>>  
>> page=50)]\blank
>> file test.pdf sits in the current directory.\blank
>> \goto{click test.pdf page10 with ftp:///Users/ ... (full path 
>> given) opens at last page opened not at page 10 in Apple's 
>> Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash 
>>  
>> page=10)]{\quad\bf Put your own path here!}\blank
>> \goto{click test.pdf page10 with ftp://test.pdf  (local 
>> path)) does not open}[url(file://test.pdf\letterhash 
>>  page=10)]\blank
>> \stoptext
>> 
>> 
>>> On 19 Apr 2018, at 02:07, Otared Kavian >> > wrote:
>>> 
>>> Hi,
>>> 
>>> On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
>>> Wolfgang works fine: clicking on the link created by ConTeXt, from within 
>>> TeXShop, Safari opens that document on the desired page, that is the 
>>> physical page 58.
>>> 
>>> Best regards: OK
>>> 
 On 18 Apr 2018, at 23:04, Hans van der Meer > wrote:
 
 Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
 Adobe Reader. 
 Typesetting resulted in valid-url.pdf#page=55 but the document opens at 
 the last page remebered by the application. Are there other Macintosh 
 users who can confirm this is not working on those machines or should I do 
 something else?
 
 dr. Hans van der Meer
 
 
> On 18 Apr 2018, at 21:58, Wolfgang Schuster  > wrote:
> 
> For documents on the web you can add #page= to the url.
> 
> \setupinteraction[state=start]
> 
> \starttext
> \goto{Beginners 
> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>  page=58)]
> \stoptext
> 
> Wolfgang
>> Hans van der Meer  18. April 2018 um 21:12
>> I have the following question about referencing.
>> 
>> With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
>> .pdf)] I can open a pdf from inside the 
>> document that has been typeset. It would, however, be nice if I could 
>> further specify on which page of the pdf to open. Is this possible? Or 
>> is this a wish not to be fulfilled?
>> 
>> dr. 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] goto reference

2018-04-19 Thread Otared Kavian
Hi,

I tested your example (after giving some local paths…) and the behaviour as 
follows:
(1) The full URL path with http:// opens the file at the desired page
(2) The full ftp:// local path opens my file at page 1
(3) The local path file:// to afile sitting in the same directory does not work 
at all.

I just saw that John Grasty gave an explanation from the specifications of 
Adobe: maybe that is the reason.

Best regards: OK

> On 19 Apr 2018, at 09:37, Hans van der Meer  wrote:
> 
> The goto to the internet as given by Wolfgang works here too, but other 
> configurations do not. Please ascertain my observations from the test given 
> below. You should replace the absolute path by your own, of course. Three 
> cases are programmed:
> (1) Wolfgang’s
> (2) full path ftp:// access opens file but at last page opened
> (3) local path does not open and brings up an Alert
> Run from TeXShop and also directly in Preview and Adobe Reader with the same 
> results.
> 
> Thanks in advance.
> 
> dr. Hans van der Meer
> 
> 
> \starttext
> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
> Testing directly from \ConTeXt:\blank
> \setupinteraction[state=start,color=blue,style=italic]
> \goto{Beginners manual called with http:// opens in browser as 
> expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>  
> page=50)]\blank
> file test.pdf sits in the current directory.\blank
> \goto{click test.pdf page10 with ftp:///Users/ ... (full path 
> given) opens at last page opened not at page 10 in Apple's 
> Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash 
>  
> page=10)]{\quad\bf Put your own path here!}\blank
> \goto{click test.pdf page10 with ftp://test.pdf  (local 
> path)) does not open}[url(file://test.pdf\letterhash 
>  page=10)]\blank
> \stoptext
> 
> 
>> On 19 Apr 2018, at 02:07, Otared Kavian > > wrote:
>> 
>> Hi,
>> 
>> On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
>> Wolfgang works fine: clicking on the link created by ConTeXt, from within 
>> TeXShop, Safari opens that document on the desired page, that is the 
>> physical page 58.
>> 
>> Best regards: OK
>> 
>>> On 18 Apr 2018, at 23:04, Hans van der Meer >> > wrote:
>>> 
>>> Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
>>> Adobe Reader. 
>>> Typesetting resulted in valid-url.pdf#page=55 but the document opens at the 
>>> last page remebered by the application. Are there other Macintosh users who 
>>> can confirm this is not working on those machines or should I do something 
>>> else?
>>> 
>>> dr. Hans van der Meer
>>> 
>>> 
 On 18 Apr 2018, at 21:58, Wolfgang Schuster > wrote:
 
 For documents on the web you can add #page= to the url.
 
 \setupinteraction[state=start]
 
 \starttext
 \goto{Beginners 
 manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
  page=58)]
 \stoptext
 
 Wolfgang
> Hans van der Meer  18. April 2018 um 21:12
> I have the following question about referencing.
> 
> With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
> .pdf)] I can open a pdf from inside the 
> document that has been typeset. It would, however, be nice if I could 
> further specify on which page of the pdf to open. Is this possible? Or is 
> this a wish not to be fulfilled?
> 
> dr. 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 
> ___
 
 ___
 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  : 

Re: [NTG-context] goto reference

2018-04-19 Thread John Grasty
Hello all,

Adobe seems to indicate (at least with Adobe Reader/Acrobat) that this isn't 
possible:

"If you use URLs containing local hard drive addresses (c:\folder\), you cannot 
link to page numbers or set destinations."

[https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html]

Sorry to not be of more help,
John Grasty

> On 19 Apr 2018, at 09:37, Hans van der Meer  wrote:
> 
> The goto to the internet as given by Wolfgang works here too, but other 
> configurations do not. Please ascertain my observations from the test given 
> below. You should replace the absolute path by your own, of course. Three 
> cases are programmed:
> (1) Wolfgang’s
> (2) full path ftp:// access opens file but at last page opened
> (3) local path does not open and brings up an Alert
> Run from TeXShop and also directly in Preview and Adobe Reader with the same 
> results.
> 
> Thanks in advance.
> 
> dr. Hans van der Meer
> 
> 
> \starttext
> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
> Testing directly from \ConTeXt:\blank
> \setupinteraction[state=start,color=blue,style=italic]
> \goto{Beginners manual called with http:// opens in browser as 
> expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
> page=50)]\blank
> file test.pdf sits in the current directory.\blank
> \goto{click test.pdf page10 with ftp:///Users/... (full path given) opens at 
> last page opened not at page 10 in Apple's 
> Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash 
> page=10)]{\quad\bf Put your own path here!}\blank
> \goto{click test.pdf page10 with ftp://test.pdf (local path)) does not 
> open}[url(file://test.pdf\letterhash page=10)]\blank
> \stoptext
> 
> 
>> On 19 Apr 2018, at 02:07, Otared Kavian  wrote:
>> 
>> Hi,
>> 
>> On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
>> Wolfgang works fine: clicking on the link created by ConTeXt, from within 
>> TeXShop, Safari opens that document on the desired page, that is the 
>> physical page 58.
>> 
>> Best regards: OK
>> 
>>> On 18 Apr 2018, at 23:04, Hans van der Meer  wrote:
>>> 
>>> Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
>>> Adobe Reader. 
>>> Typesetting resulted in valid-url.pdf#page=55 but the document opens at the 
>>> last page remebered by the application. Are there other Macintosh users who 
>>> can confirm this is not working on those machines or should I do something 
>>> else?
>>> 
>>> dr. Hans van der Meer
>>> 
>>> 
 On 18 Apr 2018, at 21:58, Wolfgang Schuster  
 wrote:
 
 For documents on the web you can add #page= to the url.
 
 \setupinteraction[state=start]
 
 \starttext
 \goto{Beginners 
 manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
 page=58)]
 \stoptext
 
 Wolfgang
> Hans van der Meer 18. April 2018 um 21:12
> I have the following question about referencing.
> 
> With \goto{typeset_the_text}[url(file://a_file_location_to_goto.pdf)] I 
> can open a pdf from inside the document that has been typeset. It would, 
> however, be nice if I could further specify on which page of the pdf to 
> open. Is this possible? Or is this a wish not to be fulfilled?
> 
> dr. 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
> ___
 
 ___
 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] goto reference

2018-04-19 Thread Hans van der Meer
The goto to the internet as given by Wolfgang works here too, but other 
configurations do not. Please ascertain my observations from the test given 
below. You should replace the absolute path by your own, of course. Three cases 
are programmed:
(1) Wolfgang’s
(2) full path ftp:// access opens file but at last page opened
(3) local path does not open and brings up an Alert
Run from TeXShop and also directly in Preview and Adobe Reader with the same 
results.

Thanks in advance.

dr. Hans van der Meer


\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
Testing directly from \ConTeXt:\blank
\setupinteraction[state=start,color=blue,style=italic]
\goto{Beginners manual called with http:// opens in browser as 
expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
page=50)]\blank
file test.pdf sits in the current directory.\blank
\goto{click test.pdf page10 with ftp:///Users/... (full path given) opens at 
last page opened not at page 10 in Apple's 
Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash 
page=10)]{\quad\bf Put your own path here!}\blank
\goto{click test.pdf page10 with ftp://test.pdf (local path)) does not 
open}[url(file://test.pdf\letterhash page=10)]\blank
\stoptext


> On 19 Apr 2018, at 02:07, Otared Kavian  wrote:
> 
> Hi,
> 
> On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
> Wolfgang works fine: clicking on the link created by ConTeXt, from within 
> TeXShop, Safari opens that document on the desired page, that is the physical 
> page 58.
> 
> Best regards: OK
> 
>> On 18 Apr 2018, at 23:04, Hans van der Meer > > wrote:
>> 
>> Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
>> Adobe Reader. 
>> Typesetting resulted in valid-url.pdf#page=55 but the document opens at the 
>> last page remebered by the application. Are there other Macintosh users who 
>> can confirm this is not working on those machines or should I do something 
>> else?
>> 
>> dr. Hans van der Meer
>> 
>> 
>>> On 18 Apr 2018, at 21:58, Wolfgang Schuster >> > wrote:
>>> 
>>> For documents on the web you can add #page= to the url.
>>> 
>>> \setupinteraction[state=start]
>>> 
>>> \starttext
>>> \goto{Beginners 
>>> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>>>  page=58)]
>>> \stoptext
>>> 
>>> Wolfgang
 Hans van der Meer  18. April 2018 um 21:12
 I have the following question about referencing.
 
 With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
 .pdf)] I can open a pdf from inside the 
 document that has been typeset. It would, however, be nice if I could 
 further specify on which page of the  pdf to open. Is this possible? Or is 
 this a wish not to be fulfilled?
 
 dr. 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 
 ___
>>> 
>>> ___
>>> 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 

Re: [NTG-context] goto reference

2018-04-18 Thread Otared Kavian
Hi,

On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by 
Wolfgang works fine: clicking on the link created by ConTeXt, from within 
TeXShop, Safari opens that document on the desired page, that is the physical 
page 58.

Best regards: OK

> On 18 Apr 2018, at 23:04, Hans van der Meer  wrote:
> 
> Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
> Adobe Reader. 
> Typesetting resulted in valid-url.pdf#page=55 but the document opens at the 
> last page remebered by the application. Are there other Macintosh users who 
> can confirm this is not working on those machines or should I do something 
> else?
> 
> dr. Hans van der Meer
> 
> 
>> On 18 Apr 2018, at 21:58, Wolfgang Schuster > > wrote:
>> 
>> For documents on the web you can add #page= to the url.
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext
>> \goto{Beginners 
>> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>>  page=58)]
>> \stoptext
>> 
>> Wolfgang
>>> Hans van der Meer  18. April 2018 um 21:12
>>> I have the following question about referencing.
>>> 
>>> With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
>>> .pdf)] I can open a pdf from inside the 
>>> document that has been typeset. It would, however, be nice if I could 
>>> further specify on which page of the pdf to open. Is this possible? Or is 
>>> this a wish not to be fulfilled?
>>> 
>>> dr. 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 
>>> ___
>> 
>> ___
>> 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
> ___

___
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] goto reference

2018-04-18 Thread Wolfgang Schuster
My example works for me with Preview and Adobe Reader, in both cases 
Safari opens the PDF on page 58.


Wolfgang

Hans van der Meer 
18. April 2018 um 21:12
I have the following question about referencing.

With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
.pdf)] I can open a pdf from inside 
the document that has been typeset. It would, however, be nice if I 
could further specify on which page of the pdf to open. Is this 
possible? Or is this a wish not to be fulfilled?


dr. 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
___
Wolfgang Schuster 
18. April 2018 um 21:58
For documents on the web you can add #page= to the url.

\setupinteraction[state=start]

\starttext
\goto{Beginners 
manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
page=58)]

\stoptext

Wolfgang

Hans van der Meer 
18. April 2018 um 23:04
Thanks. But this seems not to work on my Macintosh. Not in Preview, 
not in Adobe Reader.
Typesetting resulted in valid-url.pdf#page=55 but the document opens 
at the last page remebered by the application. Are there other 
Macintosh users who can confirm this is not working on those machines 
or should I do something else?


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




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] goto reference

2018-04-18 Thread Hans van der Meer
Thanks. But this seems not to work on my Macintosh. Not in Preview, not in 
Adobe Reader. 
Typesetting resulted in valid-url.pdf#page=55 but the document opens at the 
last page remebered by the application. Are there other Macintosh users who can 
confirm this is not working on those machines or should I do something else?

dr. Hans van der Meer


> On 18 Apr 2018, at 21:58, Wolfgang Schuster  
> wrote:
> 
> For documents on the web you can add #page= to the url.
> 
> \setupinteraction[state=start]
> 
> \starttext
> \goto{Beginners 
> manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash 
>  page=58)]
> \stoptext
> 
> Wolfgang
>> Hans van der Meer  18. April 2018 um 21:12
>> I have the following question about referencing.
>> 
>> With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
>> .pdf)] I can open a pdf from inside the 
>> document that has been typeset. It would, however, be nice if I could 
>> further specify on which page of the pdf to open. Is this possible? Or is 
>> this a wish not to be fulfilled?
>> 
>> dr. 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 
>> ___
> 
> ___
> 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] goto reference

2018-04-18 Thread Wolfgang Schuster

For documents on the web you can add #page= to the url.

\setupinteraction[state=start]

\starttext
\goto{Beginners 
manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=58)]

\stoptext

Wolfgang

Hans van der Meer 
18. April 2018 um 21:12
I have the following question about referencing.

With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
.pdf)] I can open a pdf from inside 
the document that has been typeset. It would, however, be nice if I 
could further specify on which page of the pdf to open. Is this 
possible? Or is this a wish not to be fulfilled?


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


___
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] goto reference

2018-04-18 Thread Hans van der Meer
I have the following question about referencing.

With \goto{typeset_the_text}[url(file://a_file_location_to_goto 
.pdf)] I can open a pdf from inside the 
document that has been typeset. It would, however, be nice if I could further 
specify on which page of the pdf to open. Is this possible? Or is this a wish 
not to be fulfilled?

dr. 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] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:39 PM, Hans Hagen wrote:
> On 4/15/2018 6:14 PM, Pablo Rodriguez wrote:
>> [...]
>> Many thanks for the fix, Hans.
> it's not a fix .. it's an extension to the font extension mechanism

Hans

it was my fault. Of course it is a new implementation. (I was thinking
about the solution my problem.)

Many thanks for the Endre Huszár reference and the code extension,

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] Font fallback scaling

2018-04-13 Thread Magnus J
That solved it. For reference, I previously used the Texlive versions
bundled with Cygwin and Arch Linux.

/MJO

On Fri, Apr 13, 2018 at 3:44 PM, Hans Hagen <j.ha...@xs4all.nl> wrote:
> On 4/13/2018 3:38 PM, Magnus J wrote:
>>
>> This is even more weird (same setup as before)
>
> i uploaded a beta .. maybe that one works better (at least we run the same
> then)
>
> -
>   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
___

[NTG-context] Reference links with focus=standard

2018-04-13 Thread Christoph Reller
On Fri, 13 Apr 2018 10:45:39 +0100,  Lawrence Bell
 wrote:
> On 13/04/18 07:31, Henri Menke wrote:
>>
>> On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
>>>
>>> Please, Hans, I kindly ask you to reconsider. I am aware of your
>>> opinion and reasoning about this issue. But I believe that for many of
>>> us users, today's PDFs need to be both, interactive *and* printable.
>>>
>>> If there is any way I can help or motivate you, then please tell me ;-)
>>>
>> The best way to motivate Hans to implement something you need, is by
>> implementing it yourself and sending him updated core files.
>> Works for me every time ;-)
>>

Well, thank you for this hint Henry, but that works only for those who
can afford the time :-/

>
> Dear Christoph,
>
> I take it from your reply that fixing this problem with interactivity
> would likely cause some trouble with the printability? And therefore,
> it's staying as it is to prioritize printability? That's understandable,
> but a bit frustrating, since I still don't have any clue what the actual
> problem is. Could you possibly explain in some more detail or point me
> to a relevant thread?
>
> Kind regards,
>
> Lawrence
>

Dear Lawrence,

(Sorry for changing to bottom posting style.)

This issue is not about a trade-off between print-ability and
inter-activeness. If I understand Hans' position correctly, then at
least part of his reasoning is the following (please correct me if I'm
wrong): It is easy to produce two versions of a document from one
common source, one version for print and one for the screen. The
former needs no interactive links and the latter should best be viewed
fullscreen, i.e., without scrolling, in which case focus=standard is
unnecessary. While I largely agree with this approach, many of the
ConTeXt users (including myself) are not in a position to decide how
their documents should be published. I believe that many of today's
PDF documents still are meant to be both, viewed on screen and
printed. And it's only for this scenario that focus=standard makes
sense.

Kind regards,

Christoph
___
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] Reference links with focus=standard option

2018-04-13 Thread Christoph Reller
Fri, 13 Apr 2018 11:48:28 +0200, Hans Hagen  wrote:
> On 4/13/2018 8:13 AM, Christoph Reller wrote:
>>
>> This is a long standing feature request reported multiple times by
>> myself and others with MWEs in
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
>>
>> Another MWE in which the link is non-functional:
>>
> fixed in next beta (i'm not sure when i will upload that one as i need
> to test some new features first)
>

Thank you Hans!

This is good news. Your work is very much appreciated. I am looking
forward to the next beta.

Regards,
Christoph
___
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] Reference links with focus=standard option

2018-04-13 Thread Hans Hagen

On 4/13/2018 8:13 AM, Christoph Reller wrote:

On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell 
 wrote:

Thanks very much for your replies. It's reassuring to see (it seems)
that I've not overlooked some extra option that magically does the job
:) Worst case scenario I'll hack something together, or just settle for
the default focus functionality, which is not the end of the world. Just
feel like there should be a better/more elegant way.

On 11/04/18 19:36, Pablo Rodriguez wrote:

On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:

On 04/11/2018 04:35 PM, Lawrence Bell wrote:

[...]
What's going on here?

I generated an uncompressed PDF document from your source:
http://pdf.ousia.tk/focus-standard.pdf.
[...]
(eq:ref) seems to be missing there. But I have to investigate the issue
further to get a more accurate report.

[...]
Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
hope Hans can fix it.


Dear all,

This is a long standing feature request reported multiple times by
myself and others with MWEs in
https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.

Another MWE in which the link is non-functional:
fixed in next beta (i'm not sure when i will upload that one as i need 
to test some new features first)


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] Reference links with focus=standard option

2018-04-13 Thread Lawrence Bell
Dear Christoph,

I take it from your reply that fixing this problem with interactivity
would likely cause some trouble with the printability? And therefore,
it's staying as it is to prioritize printability? That's understandable,
but a bit frustrating, since I still don't have any clue what the actual
problem is. Could you possibly explain in some more detail or point me
to a relevant thread?

Kind regards,

Lawrence


On 13/04/18 07:31, Henri Menke wrote:
> On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
>>> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell >> il.com> wrote:
>>>
>>> Thanks very much for your replies. It's reassuring to see (it seems)
>>> that I've not overlooked some extra option that magically does the job
>>> :) Worst case scenario I'll hack something together, or just settle for
>>> the default focus functionality, which is not the end of the world. Just
>>> feel like there should be a better/more elegant way.
>>>
>>> On 11/04/18 19:36, Pablo Rodriguez wrote:
 On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>> [...]
>> What's going on here?
> I generated an uncompressed PDF document from your source:
> http://pdf.ousia.tk/focus-standard.pdf.
> [...]
> (eq:ref) seems to be missing there. But I have to investigate the issue
> further to get a more accurate report.
 [...]
 Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
 hope Hans can fix it.
>> Dear all,
>>
>> This is a long standing feature request reported multiple times by
>> myself and others with MWEs in
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
>>
>> Another MWE in which the link is non-functional:
>>
>> \setupexternalfigures[location={local,global,default}]
>> \setupinteraction[state=start, focus=standard]
>> \starttext
>> \about[figure].
>> \page
>> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
>> \stoptext
>>
>> Please, Hans, I kindly ask you to reconsider. I am aware of your
>> opinion and reasoning about this issue. But I believe that for many of
>> us users, today's PDFs need to be both, interactive *and* printable.
>>
>> If there is any way I can help or motivate you, then please tell me ;-)
> The best way to motivate Hans to implement something you need, is by
> implementing it yourself and sending him updated core files.
> Works for me every time ;-)
>
>> Kind regards,
>>
>> Christoph
>> __
>> _
>> 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
> ___

___
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] Reference links with focus=standard option

2018-04-13 Thread Henri Menke
On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
> > 
> > On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell  > il.com> wrote:
> > 
> > Thanks very much for your replies. It's reassuring to see (it seems)
> > that I've not overlooked some extra option that magically does the job
> > :) Worst case scenario I'll hack something together, or just settle for
> > the default focus functionality, which is not the end of the world. Just
> > feel like there should be a better/more elegant way.
> > 
> > On 11/04/18 19:36, Pablo Rodriguez wrote:
> > > 
> > > On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> > > > 
> > > > On 04/11/2018 04:35 PM, Lawrence Bell wrote:
> > > > > 
> > > > > [...]
> > > > > What's going on here?
> > > > I generated an uncompressed PDF document from your source:
> > > > http://pdf.ousia.tk/focus-standard.pdf.
> > > > [...]
> > > > (eq:ref) seems to be missing there. But I have to investigate the issue
> > > > further to get a more accurate report.
> > > [...]
> > > Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
> > > hope Hans can fix it.
> Dear all,
> 
> This is a long standing feature request reported multiple times by
> myself and others with MWEs in
> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
> 
> Another MWE in which the link is non-functional:
> 
> \setupexternalfigures[location={local,global,default}]
> \setupinteraction[state=start, focus=standard]
> \starttext
> \about[figure].
> \page
> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
> \stoptext
> 
> Please, Hans, I kindly ask you to reconsider. I am aware of your
> opinion and reasoning about this issue. But I believe that for many of
> us users, today's PDFs need to be both, interactive *and* printable.
> 
> If there is any way I can help or motivate you, then please tell me ;-)

The best way to motivate Hans to implement something you need, is by
implementing it yourself and sending him updated core files.
Works for me every time ;-)

> 
> Kind regards,
> 
> Christoph
> __
> _
> 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] Reference links with focus=standard option

2018-04-13 Thread Christoph Reller
> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell 
>  wrote:
>
> Thanks very much for your replies. It's reassuring to see (it seems)
> that I've not overlooked some extra option that magically does the job
> :) Worst case scenario I'll hack something together, or just settle for
> the default focus functionality, which is not the end of the world. Just
> feel like there should be a better/more elegant way.
>
> On 11/04/18 19:36, Pablo Rodriguez wrote:
>> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
 [...]
 What's going on here?
>>> I generated an uncompressed PDF document from your source:
>>> http://pdf.ousia.tk/focus-standard.pdf.
>>> [...]
>>> (eq:ref) seems to be missing there. But I have to investigate the issue
>>> further to get a more accurate report.
>> [...]
>> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
>> hope Hans can fix it.

Dear all,

This is a long standing feature request reported multiple times by
myself and others with MWEs in
https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.

Another MWE in which the link is non-functional:

\setupexternalfigures[location={local,global,default}]
\setupinteraction[state=start, focus=standard]
\starttext
\about[figure].
\page
\placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
\stoptext

Please, Hans, I kindly ask you to reconsider. I am aware of your
opinion and reasoning about this issue. But I believe that for many of
us users, today's PDFs need to be both, interactive *and* printable.

If there is any way I can help or motivate you, then please tell me ;-)

Kind regards,

Christoph
___
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] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Pablo,

Thanks very much for your replies. It's reassuring to see (it seems)
that I've not overlooked some extra option that magically does the job
:) Worst case scenario I'll hack something together, or just settle for
the default focus functionality, which is not the end of the world. Just
feel like there should be a better/more elegant way.


On 11/04/18 19:36, Pablo Rodriguez wrote:
> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>>> [...] 
>>> What's going on here?
>> I generated an uncompressed PDF document from your source:
>> http://pdf.ousia.tk/focus-standard.pdf.
>> [...]
>> (eq:ref) seems to be missing there. But I have to investigate the issue
>> further to get a more accurate report.
> Lawrence,
>
> all I got is that floats have problems with named destinations (the ones
> you get with \setupinteraction[focus=standard]).
>
> \setupexternalfigures[location=default]
> \setupinteraction
>   [state=start, focus=standard]
>
> \starttext
>
> \startplacechemical[reference=ch:ref]
>   \startchemicalformula
>  \chemical{(C_2H_5)_2Zn}{DEZ}
> \stopchemicalformula
> \stopplacechemical
>
> \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]}
>
> formula \in[ch:ref]
>
> figure \in[fl:ref]
> \stoptext
>
> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
> hope Hans can fix it.
>
> Pablo

___
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] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>> [...] 
>> What's going on here?
> 
> I generated an uncompressed PDF document from your source:
> http://pdf.ousia.tk/focus-standard.pdf.
> [...]
> (eq:ref) seems to be missing there. But I have to investigate the issue
> further to get a more accurate report.

Lawrence,

all I got is that floats have problems with named destinations (the ones
you get with \setupinteraction[focus=standard]).

\setupexternalfigures[location=default]
\setupinteraction
  [state=start, focus=standard]

\starttext

\startplacechemical[reference=ch:ref]
  \startchemicalformula
 \chemical{(C_2H_5)_2Zn}{DEZ}
\stopchemicalformula
\stopplacechemical

\placefigure[here][fl:ref]{Cow}{\externalfigure[cow]}

formula \in[ch:ref]

figure \in[fl:ref]
\stoptext

Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
hope Hans can fix it.

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] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 04:35 PM, Lawrence Bell wrote:
> Hi mailing list,
> 
> I'm having some trouble with (interactive) references. I had a quick
> search of the mailing list and couldn't find any talk about this kind of
> issue, so I'm asking now. Hoping you could help me out.
> 
> All is well with the default setting for focus. I don't like that with
> most (?) PDF viewers the default setting changes the zoom level, so I
> usually turn on \setupinteraction[focus=standard] instead. But this
> seems to break (some of) the interactive links. The links to the the
> chapter and item still work, but the links to the formula are broken.

Hi Lawrence,

it seems that something is broken when ConTeXt generates the
destinations for these links.

> As an experiment, I just tried this with a couple different viewers
> (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
> \setupinteraction[focus=standard] back in) the link is indeed broken on
> all of them, /except/ for Qpdfview which still seems to understand it.

qpdfview complains after having clicking the link:

"Error: failed to look up (eq:ref)"
"Error: failed to look up (eq:ref)"

> What's going on here?

I generated an uncompressed PDF document from your source:
http://pdf.ousia.tk/focus-standard.pdf.

The issue seems to be in the name tree node dictionary:

35 0 obj
<<
  /Limits [ (#1) (pt:ref) ]
  /Names [ (#1) 15 0 R (#2) 19 0 R (#3) 20 0 R (it:ref) 20 0 R
  (pt:ref) 15 0 R ]
>>
endobj

(eq:ref) seems to be missing there. But I have to investigate the issue
further to get a more accurate report.

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] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Hi mailing list,

I'm having some trouble with (interactive) references. I had a quick
search of the mailing list and couldn't find any talk about this kind of
issue, so I'm asking now. Hoping you could help me out.

Consider the following example document.

\setupinteraction
  [
    state=start,
    % focus=standard,
  ]

\starttext
\startchapter[title=Some Title, reference=pt:ref]

Lorem ipsum dolor sit amet, \periods

\startplaceformula[reference=eq:ref]
  \startformula
    c^2 = a^2 + b^2.
  \stopformula
\stopplaceformula

Lorem ipsum dolor sit amet, \periods

\startitemize[r]
  \startitem[it:ref]
    Lorem ipsum dolor sit amet, \periods
  \stopitem
\stopitemize

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\page

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\stopchapter
\stoptext

All is well with the default setting for focus. I don't like that with
most (?) PDF viewers the default setting changes the zoom level, so I
usually turn on \setupinteraction[focus=standard] instead. But this
seems to break (some of) the interactive links. The links to the the
chapter and item still work, but the links to the formula are broken.

As an experiment, I just tried this with a couple different viewers
(Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
\setupinteraction[focus=standard] back in) the link is indeed broken on
all of them, /except/ for Qpdfview which still seems to understand it.

What's going on here?

Thanks in advance, Lawrence

___
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] how to change the colour of the footnote marker

2018-04-08 Thread Wolfgang Schuster



Robert Zydenbos <mailto:cont...@zydenbos.net>
9. April 2018 um 00:40
Greetings, Wolfgang,

On 08.04.2018 17:46, Wolfgang Schuster wrote:


definecolor[kleur][blue]

setupcolors[state=start,textcolor=kleur]

setupnotedefinition[footnote][color=kleur]
setupnote [footnote][rulecolor=kleur]



…etc…


It works! Thank you for the solution.

One thing that puzzles me, however, is that you (Wolfgang) are able to 
produce solutions using (so it seems) undocumented commands and 
parameters. How did you hit upon the idea to use 'rulecolor' here? I 
rely on the ConTeXt manual (2013 version), and there is nothing there 
to suggest that 'rulecolor' determines the colour of the text of 
footnotes. Neither did the Wiki help me.


Is there some hidden documentation I do not know about?
You can look them up in the command reference which exists since a very 
long time (the current version is MkIV/LuaTeX only):


http://pragma-ade.com/show-man-5.htm

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] (fake) bold as font feature

2018-03-28 Thread Hans Hagen

On 3/28/2018 11:32 AM, luigi scarso wrote:

On Mon, Mar 26, 2018 at 11:02 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

On 03/26/2018 07:24 PM, Hans Hagen wrote:

On 3/26/2018 4:55 PM, Hans Hagen wrote:

On 3/26/2018 1:40 PM, Pablo Rodriguez wrote:

Hans,

would it be possible to add a embold feature (similar to the slanted
font feature) that fakes the bold font with
\starteffect[both]...\stopeffect and it doesn’t strecht the font?


much is possible if i can motivate myself


Good to know in order to propose new features :-).

Hm.
Fake bold / slanted / small caps / of a base font
are dangerous, there is an high risk to compromise the
legibility of the text (this is especially true nowadays with user
consumer tablets  10" full hd ).
A font is not only glyphs, but also kernings and  hints and all these
things must match.
As Knuth  shown , the right way is to design from the beginning how
each glyph should be transformed
instead of apply to all the glyphs  the same transformation  (which is
faster, this is sure).
This is the key concept of metafont --- in my opinion better than the
variable fonts .
I am not saying that this impossible to do in context-mkiv ( *it is*
possible: just see  5.3 Virtual fonts of the luatex reference)
but in the end the result is the same of write the correct
bold/slanted/small caps/  version of the  base font .
it's anyway not true to say that 'boldening a font' is a bold font .. 
it's more like: hey, we can do the same as all these font vendors, 
provide 25 weights of the same base regular (we can't go thinner btw)


a boldened latin modern regular for instance looks like a real 'modern' 
latin modern and looks way different from the metafontish produced bold 
latin modern (i actually like the boldened more in this case so we can 
have a "modern latin modern" typescript ... of course math is a 
different issue but even that can be made acceptable


it anway makes a nice topic / presentation for the ctx meeting

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] (fake) bold as font feature

2018-03-28 Thread luigi scarso
On Mon, Mar 26, 2018 at 11:02 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
> On 03/26/2018 07:24 PM, Hans Hagen wrote:
>> On 3/26/2018 4:55 PM, Hans Hagen wrote:
>>> On 3/26/2018 1:40 PM, Pablo Rodriguez wrote:
>>>> Hans,
>>>>
>>>> would it be possible to add a embold feature (similar to the slanted
>>>> font feature) that fakes the bold font with
>>>> \starteffect[both]...\stopeffect and it doesn’t strecht the font?
>>>
>>> much is possible if i can motivate myself
>
> Good to know in order to propose new features :-).
Hm.
Fake bold / slanted / small caps / of a base font
are dangerous, there is an high risk to compromise the
legibility of the text (this is especially true nowadays with user
consumer tablets  10" full hd ).
A font is not only glyphs, but also kernings and  hints and all these
things must match.
As Knuth  shown , the right way is to design from the beginning how
each glyph should be transformed
instead of apply to all the glyphs  the same transformation  (which is
faster, this is sure).
This is the key concept of metafont --- in my opinion better than the
variable fonts .
I am not saying that this impossible to do in context-mkiv ( *it is*
possible: just see  5.3 Virtual fonts of the luatex reference)
but in the end the result is the same of write the correct
bold/slanted/small caps/  version of the  base font .



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

<    3   4   5   6   7   8   9   10   11   12   >