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
___

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

2018-06-25 Thread Rik Kabel

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

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

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.


--
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 Wolfgang Schuster



Rik Kabel 
25. Juni 2018 um 22:49
List,

What is the preferred way to override a standard command?

My use case is that I am trying to produce html (and epub, but that 
has a long long way to go) from the same source I use for pdf. Some 
features are not needed, and I have separate environment files for 
each output format to accommodate the differences.


I would like to override the standard \index command in one of those 
environment files, eliminating the generation of index references. 
There may be other constructs as well that would benefit from this 
simplification while allowing a common content source file.


You can use the “*export” mode to disable commands when the export is 
enabled.


\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

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

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

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

2018-06-25 Thread Rik Kabel

List,

What is the preferred way to override a standard command?

My use case is that I am trying to produce html (and epub, but that has 
a long long way to go) from the same source I use for pdf. Some features 
are not needed, and I have separate environment files for each output 
format to accommodate the differences.


I would like to override the standard \index command in one of those 
environment files, eliminating the generation of index references. There 
may be other constructs as well that would benefit from this 
simplification while allowing a common content source file.


On a related note, does anyone have a css file that handles block 
quotations, margin notes, and cross references? I would love to steal 
bits of 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] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 21:42
On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster 
 wrote:





Idris Samawi Hamid ادريس سماوي حامد schrieb:

\setuphead[chapter]   [conversion=R]

\setuplist[chapter][width=2.8em]

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


Use \setuplist to change the numeralign setting, you need also a
distance value.

\setuplist
   [chapter]
   [alternative=c,
width=2.8em,
distance=1em,
numberalign=flushright]


Many thanks. Had come up with this awkward workaround:

\define[1]\FLUSHRIGHT{\hfill#1\hbox to0.7em{}}

\setuplist[chapter][width=2.8em]
\setuplist[chapter][stopper=.,numbercommand=\FLUSHRIGHT]

Does the attached tex file look correct?

\setuplist
  [chapter]
  [alternative=c,
   width=1.85em,
   distance=0.5em,
   numberalign=flushright,
   level=chapter]


You can remove the level setting.


\definecombinedlist
[content]
[chapter]

If one turns on \showframe, one sees that the width value does not 
prevent crossing the left side of the textblock (a good thing). OTOH, 
getting the TOC numerals to lineup with the left side is a matter of 
trial and error. [width=1.85em comes close]


And if the document is changed so that the wider roman numerals are 
not needed, then one has to reset the width value, again by trial and 
error.


So is there a way to make the left side of the textblock flush with 
the widest roman? It's by no means urgent, but sine we are supposed to 
be able to automate nearly everything.. -)


This isn’t supported but adding a sample key (which is supported by 
enumerations) where you can set a text which is used to calculate the 
width should be easy.



The attached file shows which values are valid for \setupcombinedlist.


Ah, our npp-4-context config files for calltips need updating, I have

\definecombinedlist [NAME]
[LIST]
[INHERIT: \setuplist]

but that should be

\definecombinedlist [NAME]
[LIST]
[INHERIT: \setupcombinedlist]


I have the changes only in my local files.

Wolfang
___
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] Align TOC section numbers flushright

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





Idris Samawi Hamid ادريس سماوي حامد schrieb:

\setuphead[chapter]   [conversion=R]

\setuplist[chapter][width=2.8em]

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


Use \setuplist to change the numeralign setting, you need also a
distance value.

\setuplist
   [chapter]
   [alternative=c,
width=2.8em,
distance=1em,
numberalign=flushright]


Many thanks. Had come up with this awkward workaround:

\define[1]\FLUSHRIGHT{\hfill#1\hbox to0.7em{}}

\setuplist[chapter][width=2.8em]
\setuplist[chapter][stopper=.,numbercommand=\FLUSHRIGHT]

Does the attached tex file look correct?

\setuplist
  [chapter]
  [alternative=c,
   width=1.85em,
   distance=0.5em,
   numberalign=flushright,
   level=chapter]

\definecombinedlist
[content]
[chapter]

If one turns on \showframe, one sees that the width value does not prevent  
crossing the left side of the textblock (a good thing). OTOH, getting the  
TOC numerals to lineup with the left side is a matter of trial and error.  
[width=1.85em comes close]


And if the document is changed so that the wider roman numerals are not  
needed, then one has to reset the width value, again by trial and error.


So is there a way to make the left side of the textblock flush with the  
widest roman? It's by no means urgent, but sine we are supposed to be able  
to automate nearly everything.. -)



The attached file shows which values are valid for \setupcombinedlist.


Ah, our npp-4-context config files for calltips need updating, I have

\definecombinedlist [NAME]
[LIST]
[INHERIT: \setuplist]

but that should be

\definecombinedlist [NAME]
[LIST]
[INHERIT: \setupcombinedlist]

Many thanks.

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] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد schrieb:

\setuphead[chapter]   [conversion=R]

\setuplist[chapter][width=2.8em]

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


Use \setuplist to change the numeralign setting, you need also a 
distance value.


\setuplist
  [chapter]
  [alternative=c,
   width=2.8em,
   distance=1em,
   numberalign=flushright]

The attached file shows which values are valid for \setupcombinedlist.

Wolfgang


i-list.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] latest beta and \seeindex

2018-06-25 Thread Hans Hagen

On 6/25/2018 4:01 PM, Henning Hraban Ramm wrote:

Am 2018-06-25 um 14:18 schrieb Hans Hagen :


On 6/24/2018 10:07 PM, Henning Hraban Ramm wrote:

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


btw, index entries will only work well with an anchor so loose \index without 
something following it will not show the right page numbers (if at all)


I don’t understand - why should I try a bare \index?
your example had so i had to add some bogus content (anyway, i now 
inject a placeholder as warning anyway)


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] latest beta and \seeindex

2018-06-25 Thread Alan Braslau
"Mathematics is the art of giving the same name to different things. It
is enough that these things, though differing in matter, should be
similar in form, to permit their being, so to speak, cast in the same
mold. When the language has been carefully chosen, one is surprised to
discover that all proofs developed for a given object, can be
immediately applied to many new objects; there is nothing to be
changed, not even the words, since all the names have become the same."

(my translation)

;-)


On Mon, 25 Jun 2018 07:21:43 -0400
Alan Bowen  wrote:

> I should add too that in this particular volume our contributors
> sometimes mention different terms for the same thing as in “This is
> called p or q”. Indexing both terms (p and q) separately and the
> adding  x-ref is one way to go but indexing the more commonly used
> term and adding a mere x-ref for the other is more efficient.
> 
> Alan
> 
> On Sun, Jun 24, 2018 at 4:08 PM Henning Hraban Ramm 
> wrote:
> 
> > Am 2018-06-24 um 21:57 schrieb Hans Hagen :
> >  
> > > On 6/23/2018 5:10 PM, Alan Bowen wrote:  
> > >> The latest beta (ConTeXtver: 2018.06.23 12:12 MKIV betafmt:
> > >> 2018.6.23)  
> > processes without a hitch but \seeindex is still not working as
> > expected.  
> > >> In
> > >> \starttext
> > >> \index{sample}
> > >> \index{fun+games}\index{fun+stuff}
> > >> %\index{fun}
> > >> \seeindex{fun}{sample}% now with heading (as it should be)
> > >> \seeindex{fun}{blah}% not shown
> > >> \seeindex{fun}{humbug}% not shown
> > >> \seeindex{fun}{bug}% not shown
> > >> \seeindex{fun+games}{entertainment}% not shown
> > >> \placeindex[n=1]
> > >> \stoptext
> > >> When I generate the indices for my book, \seeindex{A}{B} works
> > >> only if  
> > it is a unique x-ref and A is a heading. Multiple x-refs to the same
> > heading fail as do x-refs to subheadings.  
> > > sure,
> > >
> > > \seeindex{fun}{blah}% not shown
> > > \seeindex{fun}{humbug}  % not shown
> > > \seeindex{fun}{bug} % not shown
> > >
> > > as there is no index entry blah, humbug or bug ... so you would
> > > be  
> > fooling your reader
> >
> > I understand the rationale, and it could be a nice feature, but we
> > need to refer to entries in a different register, e.g. from an
> > index of topics to an index of persons, e.g.
> > \seeindex{Pragma}{Hagen, Hans} or to subentries like
> > \seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or
> > does it now?), we use \seeindex{fun+games}{bah/humbug}.
> >
> >
> > 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] latest beta and \seeindex

2018-06-25 Thread Henning Hraban Ramm
Am 2018-06-25 um 14:18 schrieb Hans Hagen :

> On 6/24/2018 10:07 PM, Henning Hraban Ramm wrote:
 \starttext
 \index{sample}
 \index{fun+games}\index{fun+stuff}
 %\index{fun}
> 
> btw, index entries will only work well with an anchor so loose \index without 
> something following it will not show the right page numbers (if at all)

I don’t understand - why should I try a bare \index?

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

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 07:20:43 -0600, 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


Beautiful - many thanks.

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] 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 
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 ادريس سماوي حامد 
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 
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 ادريس سماوي حامد 
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 ادريس سماوي حامد 
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 is of interest to others as 

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 ادريس سماوي حامد 
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] Table of Contents sectioning numbers in margin + oddity

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





Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 01:17
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
 wrote:


2. Oddity: Why does the TOC in the attached example default to a
monospaced font?



You put \placecontent before \starttext but the default fonts are
loaded after \starttext.
When you now put text in a box before \starttext a monospaced font is
loaded as replacement for the missing text font.


Ah, new protocol... many thanks.


Putting \placecontent or any other text creating command before
\starttext was always wrong.


Of course, was referring to the use of fixed-width for default font in  
such an event.. -)


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] latest beta and \seeindex

2018-06-25 Thread Henning Hraban Ramm
Am 2018-06-25 um 14:15 schrieb Hans Hagen :

> On 6/24/2018 10:07 PM, Henning Hraban Ramm wrote:
>> Am 2018-06-24 um 21:57 schrieb Hans Hagen :
>>> as there is no index entry blah, humbug or bug ... so you would be fooling 
>>> your reader
>> I understand the rationale, and it could be a nice feature, but we need to 
>> refer to entries in a different register, e.g. from an index of topics to an 
>> index of persons, e.g. \seeindex{Pragma}{Hagen, Hans} or to subentries like 
>> \seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or does it 
>> now?), we use \seeindex{fun+games}{bah/humbug}.
> hm, sounds like a crappy index to mee (i actually hate these indexes that 
> force you to 'see' somplace else .. extra lookup)

I hear you, but it wouldn’t make sense to double-index a lot of terms (it might 
increase usability, but also double the length of the index).

> anyway, i'll add check=no to placeregister so that one can bypass the check 
> (but i cannot foresee side effects like missing references in interactiev 
> documents so these have to be taken for granted)

Thank you, that fits my/our needs, I guess.


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] latest beta and \seeindex

2018-06-25 Thread Hans Hagen

On 6/24/2018 10:07 PM, Henning Hraban Ramm wrote:

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


btw, index entries will only work well with an anchor so loose \index 
without something following it will not show the right page numbers (if 
at all)


-
  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] latest beta and \seeindex

2018-06-25 Thread Hans Hagen

On 6/24/2018 10:07 PM, Henning Hraban Ramm wrote:

Am 2018-06-24 um 21:57 schrieb Hans Hagen :


On 6/23/2018 5:10 PM, Alan Bowen wrote:

The latest beta (ConTeXtver: 2018.06.23 12:12 MKIV betafmt: 2018.6.23) 
processes without a hitch but \seeindex is still not working as expected.
In
\starttext
\index{sample}
\index{fun+games}\index{fun+stuff}
%\index{fun}
\seeindex{fun}{sample}% now with heading (as it should be)
\seeindex{fun}{blah}% not shown
\seeindex{fun}{humbug}% not shown
\seeindex{fun}{bug}% not shown
\seeindex{fun+games}{entertainment}% not shown
\placeindex[n=1]
\stoptext
When I generate the indices for my book, \seeindex{A}{B} works only if it is a 
unique x-ref and A is a heading. Multiple x-refs to the same heading fail as do 
x-refs to subheadings.

sure,

\seeindex{fun}{blah}% not shown
\seeindex{fun}{humbug}  % not shown
\seeindex{fun}{bug} % not shown

as there is no index entry blah, humbug or bug ... so you would be fooling your 
reader


I understand the rationale, and it could be a nice feature, but we need to 
refer to entries in a different register, e.g. from an index of topics to an 
index of persons, e.g. \seeindex{Pragma}{Hagen, Hans} or to subentries like 
\seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or does it 
now?), we use \seeindex{fun+games}{bah/humbug}.
hm, sounds like a crappy index to mee (i actually hate these indexes 
that force you to 'see' somplace else .. extra lookup)


anyway, i'll add check=no to placeregister so that one can bypass the 
check (but i cannot foresee side effects like missing references in 
interactiev documents so these have to be taken for granted)


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] 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 ادريس سماوي حامد 
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
___

Re: [NTG-context] latest beta and \seeindex

2018-06-25 Thread Alan Bowen
I should add too that in this particular volume our contributors sometimes
mention different terms for the same thing as in “This is called p or q”.
Indexing both terms (p and q) separately and the adding  x-ref is one way
to go but indexing the more commonly used term and adding a mere x-ref for
the other is more efficient.

Alan

On Sun, Jun 24, 2018 at 4:08 PM Henning Hraban Ramm  wrote:

> Am 2018-06-24 um 21:57 schrieb Hans Hagen :
>
> > On 6/23/2018 5:10 PM, Alan Bowen wrote:
> >> The latest beta (ConTeXtver: 2018.06.23 12:12 MKIV betafmt: 2018.6.23)
> processes without a hitch but \seeindex is still not working as expected.
> >> In
> >> \starttext
> >> \index{sample}
> >> \index{fun+games}\index{fun+stuff}
> >> %\index{fun}
> >> \seeindex{fun}{sample}% now with heading (as it should be)
> >> \seeindex{fun}{blah}% not shown
> >> \seeindex{fun}{humbug}% not shown
> >> \seeindex{fun}{bug}% not shown
> >> \seeindex{fun+games}{entertainment}% not shown
> >> \placeindex[n=1]
> >> \stoptext
> >> When I generate the indices for my book, \seeindex{A}{B} works only if
> it is a unique x-ref and A is a heading. Multiple x-refs to the same
> heading fail as do x-refs to subheadings.
> > sure,
> >
> > \seeindex{fun}{blah}% not shown
> > \seeindex{fun}{humbug}  % not shown
> > \seeindex{fun}{bug} % not shown
> >
> > as there is no index entry blah, humbug or bug ... so you would be
> fooling your reader
>
> I understand the rationale, and it could be a nice feature, but we need to
> refer to entries in a different register, e.g. from an index of topics to
> an index of persons, e.g. \seeindex{Pragma}{Hagen, Hans} or to subentries
> like \seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or
> does it now?), we use \seeindex{fun+games}{bah/humbug}.
>
>
> 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
___

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

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 01:17
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster 
 wrote:


2. Oddity: Why does the TOC in the attached example default to a 
monospaced font?


You put \placecontent before \starttext but the default fonts are 
loaded after \starttext.
When you now put text in a box before \starttext a monospaced font is 
loaded as replacement for the missing text font.


Ah, new protocol... many thanks.


Putting \placecontent or any other text creating command before 
\starttext was always wrong.


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] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
25. Juni 2018 um 00:46
Dear gang,

mtx-context | current version: 2018.06.24 18:28

In the attached and below, we want sectioning numbers placed and 
naturally aligned in the margin:


===
\definecombinedlist % \setuplist[]
[content]
[section]
[level=section,
alternative=c,
criterium=local]

\setuphead[section][alternative=inmargin]
\setupitemize[1][inmargin][stopper=]

\placecontent

\starttext
\startsection[title= First]
\input ward
\stopsection
\startsection[title= Second]
\startitemize[r]
\startitem[] \input ward \stopitem
\startitem[] \input ward \stopitem
\stopitemize
\stopsection
\stoptext
===

1. What is the most straightforward way to to the section numerals 
generated by \placecontent placed and aligned inmargin?


\define[1]\SectionlistNumbercommand
  {\llap{#1\hskip\leftmargindistance}}

\setuplist
  [section]
  [alternative=c,
   criterium=local,
   width=0pt,
   distance=0pt,
   numbercommand=\SectionlistNumbercommand]


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
___