Re: [NTG-context] reading modules broken?

2014-06-07 Thread Meer, H. van der
Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl wrote:
modules have names like
m-
x-
s-
p-
u-

Remark: u- does not work out of the box, only when called as 
\usemodule[u][modulename].

I had consulted the Wiki that tells us:
Usage
When you load a module with \usemodule[modulename] ConTeXt looks for a file 
with the following names:

  *   m-modulaname (core module)
  *   p-modulename (private module)
  *   s-modulename (ConTeXt style file)
  *   x-modulename (XML module)
  *   t-modulename (Third party module)
  *   modulename

Once a file is found ConTeXt stops the search and loads the found file (only 
once).
When you have two file with the same name but different prefixes you can tell 
ConTeXt which file it should load with
\usemodule[prefix][modulename]

I checked \usemodule[modulename] with all these prefixes and they work ok.
But the last item in the list (marked red for clarity) does not (any more). 
That item suggest \usemodule[module-name] should work. I suggest someone in 
charge of the Wiki takes a look and removes the last item when my observations 
turn out to be correct.

A final question. Using the \usemodule[prefix][modulename] form, one can use 
any prefix letter. In fact, any prefix seems to work. If that functionality 
stays, it will give more flexibility in the naming scheme for modules. Please 
confirm if this will be the case or if module naming in the future will be 
restricted to a one letter scheme or even restricted to [mpsxt] exclusively as 
mentioned in the Wiki.

Hans van der Meer



On 06 Jun 2014, at 22:52, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl 
wrote:

On 6/6/2014 9:35 PM, Meer, H. van der wrote:
My modules are not read anymore, allthough Context thinks it does. This must 
have been the case for some time. I ran a test with an older version which 
demonstrates that the change in behaviour must have occurred after january 
second.
Minimal example follows.

Hans van der Meer

Module code in file module-test is:
\writestatus{HVDM}{Module has been read}
\endinput

Test code in file moduletest.tex is:
\usemodule[module-test]
\starttext
module testing look into the log.
\stoptext

modules have names like

m-
x-
s-
p-
u-

and the lookup happens in a certain order without prefix, and checking for 
mkvi, mkiv, mkii or tex suffixes

so in your case it should be something

u-hvdm-test

or so (user hvdm test)

so you were just lucky that in the past modules-* worked

the loading is probably ok because test.* is loaded

In the log I find:

This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
 \write18 enabled.
open source  1  1  
/Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.06.05 23:04 MKIV beta  fmt: 2014.6.6  int: english/english

open source  2  3  /Users/hansm/tex/test-tex/modules/moduletest.tex
resolversmodules  'module-test' is already loaded  -- 
wrongly thinks it is loaded

It says the module is already loaded, but the telltale \writestatus is absent.

Running the same code with an older version of ConTeXt does load the module:

ConTeXt  ver: 2014.01.02 20:05 MKIV current  fmt: 2014.1.2  int: english/english
(/Users/hansm/tex/test-tex/modules/moduletest.tex
resolversmodules  'module-test' is loaded -- loads 
as it should
(module-test.tex
HVDM Module has been read




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

maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 74 | 
www.pragma-ade.comhttp://www.pragma-ade.com/
| 
www.pragma-pod.nlhttp://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.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / 
http://tex.aanhet.nethttp://tex.aanhet.net/
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.nethttp://contextgarden.net/
___


Re: [NTG-context] reading modules broken?

2014-06-07 Thread Wolfgang Schuster

Am 06.06.2014 um 22:52 schrieb Hans Hagen pra...@wxs.nl:

 On 6/6/2014 9:35 PM, Meer, H. van der wrote:
 My modules are not read anymore, allthough Context thinks it does. This must 
 have been the case for some time. I ran a test with an older version which 
 demonstrates that the change in behaviour must have occurred after january 
 second.
 Minimal example follows.
 
 Hans van der Meer
 
 Module code in file module-test is:
 \writestatus{HVDM}{Module has been read}
 \endinput
 
 Test code in file moduletest.tex is:
 \usemodule[module-test]
 \starttext
 module testing look into the log.
 \stoptext
 
 modules have names like
 
 m-
 x-
 s-
 p-
 u-

What’s the meaning of the new “v” prefix for modules?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] reading modules broken?

2014-06-07 Thread Andreas Schneider

On 06.06.2014 22:52, Hans Hagen wrote:

modules have names like

m-
x-
s-
p-
u-

and the lookup happens in a certain order without prefix, and checking 
for mkvi, mkiv, mkii or tex suffixes


so in your case it should be something

u-hvdm-test

or so (user hvdm test)

so you were just lucky that in the past modules-* worked

the loading is probably ok because test.* is loaded


That new behavior breaks SimpleSlides however, because now the styles 
aren't loaded anymore.

In the log I find (for example):
resolversmodules  'simpleslides-s-BottomSquares' is already loaded

So either this old behavior had it's upsides or SimpleSlides needs to be 
fixed :-)


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reading modules broken?

2014-06-07 Thread Meer, H. van der
I have my modules renamed. With x-oldname for xml-processors and t-oldname 
for the others. After that everything seems to work fine. No need therefore to 
change \usemodule calls inside the code.

Hans van der Meer



On 07 Jun 2014, at 14:40, Andreas Schneider ak...@gmx.demailto:ak...@gmx.de 
wrote:

So either this old behavior had it's upsides or SimpleSlides needs to be fixed 
:-)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] reading modules broken?

2014-06-07 Thread Hans Hagen

On 6/7/2014 3:05 PM, Meer, H. van der wrote:

I have my modules renamed. With x-oldname for xml-processors and t-oldname 
for the others. After that everything seems to work fine. No need therefore to change 
\usemodule calls inside the code.


then better add a -hvdm- too in order to avoid future name clashes



Hans van der Meer



On 07 Jun 2014, at 14:40, Andreas Schneider ak...@gmx.demailto:ak...@gmx.de 
wrote:

So either this old behavior had it's upsides or SimpleSlides needs to be fixed 
:-)




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reading modules broken?

2014-06-07 Thread Hans Hagen

On 6/7/2014 2:40 PM, Andreas Schneider wrote:

On 06.06.2014 22:52, Hans Hagen wrote:

modules have names like

m-
x-
s-
p-
u-

and the lookup happens in a certain order without prefix, and checking
for mkvi, mkiv, mkii or tex suffixes

so in your case it should be something

u-hvdm-test

or so (user hvdm test)

so you were just lucky that in the past modules-* worked

the loading is probably ok because test.* is loaded


That new behavior breaks SimpleSlides however, because now the styles
aren't loaded anymore.
In the log I find (for example):
resolversmodules  'simpleslides-s-BottomSquares' is already
loaded

So either this old behavior had it's upsides or SimpleSlides needs to be
fixed :-)


s-simpleslides

would have been a better choice


Best Regards,
Andreas
___

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

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Sanjoy Mahajan
In MkII, one could configure the index to have different types of page
entries, e.g. roman and italic, by using \setupregister, as in the
example at http://wiki.contextgarden.net/Command/setupregister.  That
doesn't work with a fairly recent MkIV (2014.05.17 beta).

I see that it's a long-standing feature request:

http://www.mail-archive.com/ntg-context%40ntg.nl/msg67495.html

So, it is probably not on the short-term feature list.  But, if it is on
the list, please let me know, as I'll keep using it for my textbook!

Otherwise, I'll just make all the page entries the same style.  The
perfect is the enemy of the good, especially after 19 years...

(Right now with 2014.05.17 beta, using the feature, say as
\index[definition::]{commutativity}commutativity, gives an entry
alphabetized according to the definition:: key.)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug with \setuplist?

2014-06-07 Thread Pablo Rodriguez
Dear list,

sorry for posting this issue twice, but I wonder whether it went
unnoticed because I added it in an answer to an already replied message.

I have the following sample:

\setuppapersize[A6]
\setuplist[part][after={\blank[samepage,big]}]
\starttext
\completecontent
\dorecurse{4}{\part{Part}
\chapter{Chapter}
\chapter{Chapter}}
\stoptext

AFAIK, no \part could be the last line of a page in the contents.

Well, I’m afraid this isn’t the case.

Could anyone confirm whether I am doing something wrong or this is 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Samples updates and bibtex entries

2014-06-07 Thread Hans Hagen

On 6/6/2014 11:19 PM, Rik Kabel wrote:

Hans,

The file samples.tex requests updated bibliography data for some of the
samples. Since the file is a few years old, it is not clear if this
information has already been provided.


no, so feel free to provide more


If it is still needed, here are entries for three of the sources and a
note on the source of another, along with corrections for a few typos.

The first bibtex entry was lifted from Google Boooks, the other two from
the ACM Digital Library.

 @book{dawkins2000unweaving,
   title={Unweaving the Rainbow: Science, Delusion and the Appetite
for Wonder},
   author={Dawkins, R.},
   isbn={9780547347356},
   url={http://books.google.com/books?id=ZudTchiioUoC},
   year={2000},
   publisher={Houghton Mifflin Harcourt}
 }
  @book{Hofstadter:1985:MTQ:537101,
   author = {Hofstadter, Douglas R.},
   title = {Metamagical Themas: Questing for the Essence of Mind and
Pattern},
   year = {1985},
   isbn = {0465045405},
   publisher = {Basic Books, Inc.},
   address = {New York, NY, USA},
  }
 @book{Tufte:1990:EI:78223,
  author = {Tufte, Edward},
  title = {Envisioning Information},
  year = {1990},
  isbn = {0-9613921-1-8},
  publisher = {Graphics Press},
  address = {Cheshire, CT, USA},
 }


ok, we now have samples.bib (needs completion)


reich.tex is a list of the voice samples from Steve Reich's 1995
composition /City Life/.

Corrections for dawkins.tex, douglas.tex, and knuth.tex:

In each set, the first line is taken from the current sample file and
the second is a correction. The dawkins.tex and douglas.tex corrections
are based on scanned images on Google Books, the knuth.tex correction is
based on my personal copy of the book (first edition second printing).

dawkins.tex is from pages 145 and 146 of the book

come down head. Everybody on the right had to will it to be
come down heads. Everybody on the right had to will it to be

to sit down. Then those who remained were divided into two,
to sit down. Then those that remained were divided into two,

I also note that all of the quotes in the Dawkins source are
single-quotes, not double-quotes as in dawkins.tex, \quote{}, not
\quotation{}. This is unusual for a book printed in the USA by an
American publisher, so perhaps Dawkins wanted it that way.



I wonder if there are differences between UK english and US english (I 
once saw the same book in a shop, oen from the uk, one from the us, and 
although they looked nearly the same (size, font) the pagebreaks were 
different ... do they really bother about these things?



douglas.tex is from page 260 of the book

of his forthcoming books, from the typesetting and layout
of his forthcoming books|=|from the typesetting and layout

not become as well known or available.
not become as well known or as available.

Not only is the concept exiting and clearly well executed,
Not only is the concept exciting and clearly well executed,

There are a few other differences, but these are most likely due to
publisher's style sheet and the lack of availability of logotypes
for TeX and Metafont.

knuth.tex is from page 50 of the book

from the chaff and separate the sheep from the goats.
from the chaff, and separate the sheep from the goats.


that's tufte ... let's leave that one as-is because it could break 
examples when we fix it






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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug with \setuplist?

2014-06-07 Thread Hans Hagen

On 6/7/2014 8:41 PM, Pablo Rodriguez wrote:

Dear list,

sorry for posting this issue twice, but I wonder whether it went
unnoticed because I added it in an answer to an already replied message.

I have the following sample:

 \setuppapersize[A6]
 \setuplist[part][after={\blank[samepage,big]}]
 \starttext
 \completecontent
 \dorecurse{4}{\part{Part}
 \chapter{Chapter}
 \chapter{Chapter}}
 \stoptext

AFAIK, no \part could be the last line of a page in the contents.

Well, I’m afraid this isn’t the case.

Could anyone confirm whether I am doing something wrong or this is bug?


\setuppapersize
  [A6]

\setuplist
  [part]
  [after={\blank[samepage,big]}]

\setuplist
  [chapter]
  [before=\blank] % is 'preference,big' by default

\starttext

\completecontent

\dorecurse {4} {
\part{Part}
\chapter{Chapter}
\chapter{Chapter}}
}

\stoptext


Many thanks for your help,


maybe some day i can make this better but it needs a bit of work 
(working around some tex specific trickery)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Hans Hagen

On 6/7/2014 7:39 PM, Sanjoy Mahajan wrote:

In MkII, one could configure the index to have different types of page
entries, e.g. roman and italic, by using \setupregister, as in the
example at http://wiki.contextgarden.net/Command/setupregister.  That
doesn't work with a fairly recent MkIV (2014.05.17 beta).

I see that it's a long-standing feature request:

http://www.mail-archive.com/ntg-context%40ntg.nl/msg67495.html

So, it is probably not on the short-term feature list.  But, if it is on
the list, please let me know, as I'll keep using it for my textbook!


hm, it's already an old (mkiv) feature


Otherwise, I'll just make all the page entries the same style.  The
perfect is the enemy of the good, especially after 19 years...

(Right now with 2014.05.17 beta, using the feature, say as
\index[definition::]{commutativity}commutativity, gives an entry
alphabetized according to the definition:: key.)


we have a better and mnore powerful mechanism now

\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

\index{it-italic}\index{normal}
This is a \index[bf-bold]{test with bold number}test.
This is a less important \index{test}test.

\placeindex

\stoptext

(see test suite registers/processors*)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] distinguishing index entries according to function by using \setupregister

2014-06-07 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes:

 hm, it's already an old (mkiv) feature

 we have a better and mnore powerful mechanism now

 \defineprocessor[bf][style=bold]
 \defineprocessor[it][style=italic]

Thanks for this, and sorry for the noise.  I didn't even see that
material on the Registers wiki page, because I stopped looking after
seeing the \setupregister command help.  But I've updated that help to
refer (for MkIV) to the Registers#Processors section.

-Sanjoy


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___