Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread jdh

I get no difference using criterium=previous   versus   criterium=local.

Kerry Sainsbury  wrote:

> Thanks Hans. For the sake of any future users who may have stumbled across 
> this post I want to point out
> that if you want the list of sections to appear at the end of your document 
> you need to use
> "criterium=previous" 
> 
> \placelist[section][criterium=previous,order=title]
> 
> On Fri, 8 Nov 2019 at 04:52, Hans Hagen  wrote:
> 
>  On 11/7/2019 12:13 AM, Kerry Sainsbury wrote:
>  > Hi Folks,
>  > 
>  > If sections are just lists, and lists can be sorted, how can I sort a 
>  > list of sections?
>  > My actual goal is to generate an 'index' that is made up of section 
>  > headings.
>  > Here's my attempt that does not work.
>  here's one that does ...
> 
>  \setuphead[section][number=no]
> 
>  \starttext
> 
>  \startchapter[title=foo]
> 
>   \placelist[section][criterium=local,order=title]
> 
>   \startsection[title={Beta}]  \input sapolsky \stopsection
>   \startsection[title={Alpha}] \input sapolsky \stopsection
>   \startsection[title={Gamma}] \input sapolsky \stopsection
> 
>  \stopchapter
> 
>  \stoptext
> 
>  it's an experimental feature already present for a while but probably 
>  unknown
> 
>  Hans
> 
>  -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>  -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ASCII mode within \footnote

2019-11-07 Thread Aditya Mahajan

On Thu, 7 Nov 2019, Wolfgang Schuster wrote:


A way to avoid this problem is to use a slash a path separator
instead of the backslash. Another way to get rid of it is to save
the path a buffer and print the content of the buffer with the
\typeinlinebuffer command.


\starttext

\startbuffer
%APPDATA%\file.txt
\stopbuffer

\footnote{\typeinlinebuffer}

\stoptext


Another option, if you have many such files is to define a macro:

\define[1]\APPDATA{\mono{\letterpercent 
APPDATA\letterpercent\letterbackslash#1}}

And then use:

\footnote{\APPDATA{file.txt}}

Aditya
___
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] ASCII mode within \footnote

2019-11-07 Thread Wolfgang Schuster

> Hello,
>
> thanks Aditya and Wolfgang for "deep" explanation in several last
> mails.
>
> We are approaching the goal...
>
> Aditya's ocde:
>
> 
> \starttext
>\startasciimode
>  \footnote{\type{%APPDATA%\file.txt}}
>\stopasciimode
> \stoptext
> 
>
> gives (in the footnote):
>
> "
> 1 %APPDATA%\file .txt
> "   ^
> ... +-- So there is ONE UNWANTED SPACE - how to make
> it disappear?
>
> Thank you again for patience and best regards,
>
> Lukas

When you use \type in the argument of another command there are some
limitation in TeX and this is another one.

The reason for the space is that TeX adds a space after a command when
it reads the argument which will in this case appears in the output.
When you use \type outside of the footnote this won't happens because
\file in the argument is treated as a backslash followed by four single
letters but in this case TeX handles it as the commend \file.

Below is a simple example which demonstrates the behaviour, with the
\detokenize command (nothing you need in a normal document) you can
visualize TeX's behaviour. The second example shows another problematic
characters.


\starttext

\type{\dummy.}

\firstofoneargument{\type{\dummy.}}

{\tt\detokenize{\dummy.}}

\blank

\type{#}

\firstofoneargument{\type{#}}

{\tt\detokenize{#}}

\stoptext


A way to avoid this problem is to use a slash a path separator
instead of the backslash. Another way to get rid of it is to save
the path a buffer and print the content of the buffer with the
\typeinlinebuffer command.


\starttext

\startbuffer
%APPDATA%\file.txt
\stopbuffer

\footnote{\typeinlinebuffer}

\stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Kerry Sainsbury
Thanks Hans. For the sake of any future users who may have stumbled across
this post I want to point out that if you want the list of sections to
appear at the *end *of your document you need to use "criterium=previous"


\placelist[section][criterium=previous,order=title]


On Fri, 8 Nov 2019 at 04:52, Hans Hagen  wrote:

> On 11/7/2019 12:13 AM, Kerry Sainsbury wrote:
> > Hi Folks,
> >
> > If sections are just lists, and lists can be sorted, how can I sort a
> > list of sections?
> > My actual goal is to generate an 'index' that is made up of section
> > headings.
> > Here's my attempt that does not work.
> here's one that does ...
>
> \setuphead[section][number=no]
>
> \starttext
>
> \startchapter[title=foo]
>
>  \placelist[section][criterium=local,order=title]
>
>  \startsection[title={Beta}]  \input sapolsky \stopsection
>  \startsection[title={Alpha}] \input sapolsky \stopsection
>  \startsection[title={Gamma}] \input sapolsky \stopsection
>
> \stopchapter
>
> \stoptext
>
> it's an experimental feature already present for a while but probably
> unknown
>
> 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] [Widgets] Any good examples for developing JS-enabled PDFs that calculate?

2019-11-07 Thread Paul Mazaitis


Hi everyone,

My goal is to have a PDF that

 - allows users to input numeric information in various fields,
 - makes calculations on the data in those fields,
 - ...and reports that information somewhere in the PDF.

It seems that the widget support could handle this, but I'm struggling 
to understand how the pieces go together; does anyone have an example of 
this use case I could puzzle over?


Many thanks!

-Paul
___
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] LMTX issue with multple question blocks

2019-11-07 Thread Wolfgang Schuster

Jan Willem Flamma schrieb am 07.11.2019 um 20:08:

Rik: thank you for testing and confirming.

Hans,

Wiping the tuc file (or others) does not solve the issue.
The data-vir.lua file already contains the proposed change.

Change the line to

    local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,n)


and remake the format (context --make).

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] LMTX issue with multple question blocks

2019-11-07 Thread Jan Willem Flamma
Rik: thank you for testing and confirming.

Hans,

Wiping the tuc file (or others) does not solve the issue.
The data-vir.lua file already contains the proposed change. 

Jan Willem

> On 7 Nov 2019, at 17:06, Hans Hagen  wrote:
> 
> On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:
>> Dear list members,
>> The below MWE runs fine and generates a usable PDF.
>> If I uncomment the second question block and run the MWE on a OS X system it 
>> generates an unusable PDF and a nearly empty log file:
>> open source > level 1, order 1, name 'cont-yes.mkiv'
>> system  >
>> system  > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 2019.11.7  
>> int: english/english
>> system  >
>> system  > 'cont-new.mkiv' loaded
>> open source > level 2, order 2, name 
>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> system  > beware: some patches loaded from cont-new.mkiv
>> close source> level 2, order 2, name 
>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> system  > files > jobname 'co-intro', input './co-intro', result 
>> 'co-intro'
>> fonts   > latin modern fonts are not preloaded
>> languages   > language 'en' is active
>> system  > synctex functionality is enabled, expect 5-10 pct runtime 
>> overhead!
>> open source > level 2, order 3, name './co-intro.tex'
>> fonts   > preloading latin modern fonts (second stage)
>> fonts   > 'fallback modern-designsize rm 12pt' is loaded
>> open source > level 3, order 4, name 'knuth.tex'
>> close source> level 3, order 4, name 'knuth.tex'
>> I cannot reproduce the problem on a Windows system.
>> Can somebody on an OS X system check and confirm the issue?
> What if you wipe the tuc file?
> 
> No message?
> 
> 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] LMTX issue with multple question blocks

2019-11-07 Thread Hans Hagen

On 11/7/2019 5:36 PM, Rik Kabel wrote:

On 11/7/2019 11:06, Hans Hagen wrote:

On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:

Dear list members,

The below MWE runs fine and generates a usable PDF.

If I uncomment the second question block and run the MWE on a OS X 
system it generates an unusable PDF and a nearly empty log file:


open source     > level 1, order 1, name 'cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
2019.11.7  int: english/english

system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'


system          > files > jobname 'co-intro', input './co-intro', 
result 'co-intro'

fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct 
runtime overhead!

open source     > level 2, order 3, name './co-intro.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 4, name 'knuth.tex'
close source    > level 3, order 4, name 'knuth.tex'

I cannot reproduce the problem on a Windows system.

Can somebody on an OS X system check and confirm the issue?

What if you wipe the tuc file?

No message?

Hans


I can confirm the same problem on a Win64 problem. I get the same log 
file (with 2019.10.29 15:09 for the version and my file/directory names).


There is a console message that is, perhaps, meaningful:

This is LuaMetaTeX, Version 2.00.0
runtime error : input file 'virtual://block.question.' is not found,
quitting
mtx-context | fatal error: return code: 1

in data-vir.lua

local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,n)


the last n should be suffix, so

local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,suffix)


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] LMTX issue with multple question blocks

2019-11-07 Thread Rik Kabel

On 11/7/2019 11:06, Hans Hagen wrote:

On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:

Dear list members,

The below MWE runs fine and generates a usable PDF.

If I uncomment the second question block and run the MWE on a OS X 
system it generates an unusable PDF and a nearly empty log file:


open source     > level 1, order 1, name 'cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
2019.11.7  int: english/english

system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'


system          > files > jobname 'co-intro', input './co-intro', 
result 'co-intro'

fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct 
runtime overhead!

open source     > level 2, order 3, name './co-intro.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 4, name 'knuth.tex'
close source    > level 3, order 4, name 'knuth.tex'

I cannot reproduce the problem on a Windows system.

Can somebody on an OS X system check and confirm the issue?

What if you wipe the tuc file?

No message?

Hans


I can confirm the same problem on a Win64 problem. I get the same log 
file (with 2019.10.29 15:09 for the version and my file/directory names).


There is a console message that is, perhaps, meaningful:

   This is LuaMetaTeX, Version 2.00.0
   runtime error : input file 'virtual://block.question.' is not found,
   quitting
   mtx-context | fatal error: return code: 1

--
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] LMTX issue with multple question blocks

2019-11-07 Thread Hans Hagen

On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:

Dear list members,

The below MWE runs fine and generates a usable PDF.

If I uncomment the second question block and run the MWE on a OS X 
system it generates an unusable PDF and a nearly empty log file:


open source     > level 1, order 1, name 'cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
2019.11.7  int: english/english

system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'


system          > files > jobname 'co-intro', input './co-intro', result 
'co-intro'

fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct 
runtime overhead!

open source     > level 2, order 3, name './co-intro.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 4, name 'knuth.tex'
close source    > level 3, order 4, name 'knuth.tex'

I cannot reproduce the problem on a Windows system.

Can somebody on an OS X system check and confirm the issue?

What if you wipe the tuc file?

No message?

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] How to sort list of sections?

2019-11-07 Thread Hans Hagen

On 11/7/2019 12:13 AM, Kerry Sainsbury wrote:

Hi Folks,

If sections are just lists, and lists can be sorted, how can I sort a 
list of sections?
My actual goal is to generate an 'index' that is made up of section 
headings.

Here's my attempt that does not work.

here's one that does ...

\setuphead[section][number=no]

\starttext

\startchapter[title=foo]

\placelist[section][criterium=local,order=title]

\startsection[title={Beta}]  \input sapolsky \stopsection
\startsection[title={Alpha}] \input sapolsky \stopsection
\startsection[title={Gamma}] \input sapolsky \stopsection

\stopchapter

\stoptext

it's an experimental feature already present for a while but probably 
unknown


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] index with chapter and section numbers

2019-11-07 Thread Hans Hagen

On 11/7/2019 10:25 AM, Otared Kavian wrote:

Hi,

In a math text book, I would like to create an index of some material where 
chapter and section numbers are given instead of a page number.

For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in 
section 2 of chapter 3, and is the fifth numbered statement in that section, I 
would like to create a \myindex command so that adding the command
\myindex{Banach Fixed Point Theorem}
at that location, I get in the index created by \myindex a line such as

Banach Fixed Point Theorem  3.2.5

Is this possible?


well, the info is actually there already so i added a new option (that 
you then wikify) ...


\setupregister
  [index]
  [pagesegments=1:4,
   pagemethod=section]

\starttext

\chapter {one} \section {alpha}

x\index {whatever 1}x\index {whatever 2}x\index {whatever 2}x \page
x\index {whatever 1}x\index {whatever 2}x\index {whatever 2}x \page

\chapter {one} \section {alpha}

x\index {whatever 1}x\index {whatever 2}x\index {whatever 2}x \page
x\index {whatever 1}x\index {whatever 2}x\index {whatever 2}x \page

\placeindex[n=1]

\stoptext

which then renders:

w
whatever 1 1.1, 2.1
whatever 2 1.1, 2.1

in next beta

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] LMTX issue with multple question blocks

2019-11-07 Thread Jan Willem Flamma
Dear list members,

The below MWE runs fine and generates a usable PDF.

If I uncomment the second question block and run the MWE on a OS X system it 
generates an unusable PDF and a nearly empty log file:

open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 2019.11.7  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system  > files > jobname 'co-intro', input './co-intro', result 
'co-intro'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
system  > synctex functionality is enabled, expect 5-10 pct runtime 
overhead!
open source > level 2, order 3, name './co-intro.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name 'knuth.tex'
close source> level 3, order 4, name 'knuth.tex'

I cannot reproduce the problem on a Windows system. 

Can somebody on an OS X system check and confirm the issue?

Thanks,
Jan Willem Flamma



\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]

\defineenumeration[question]
\defineenumeration[answer]

\starttext

\input knuth

\beginquestion
\startquestion
Question text
\startitemize[a]
\item Answer A
\item Answer B
\item Answer C
\stopitemize
\stopquestion
\endquestion
\beginanswer
\startanswer
A
\stopanswer
\endanswer

%\beginquestion
%\startquestion
%Questions text
%\startitemize[a]
%\item Answer A
%\item Answer B
%\item Answer C
%\stopitemize
%\stopquestion
%\endquestion
%\beginanswer
%\startanswer
%A
%\stopanswer
%\endanswer

\useblocks[question]

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


[NTG-context] index with chapter and section numbers

2019-11-07 Thread Otared Kavian
Hi,

In a math text book, I would like to create an index of some material where 
chapter and section numbers are given instead of a page number.

For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in 
section 2 of chapter 3, and is the fifth numbered statement in that section, I 
would like to create a \myindex command so that adding the command
\myindex{Banach Fixed Point Theorem}
at that location, I get in the index created by \myindex a line such as

Banach Fixed Point Theorem  3.2.5

Is this possible?

Best regards and many thanks for any hint: OK
___
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
___