Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Jean-Pierre Delange


- Mail original -
De: "Henning Hraban Ramm" 
À: "mailing list for ConTeXt users" 
Envoyé: Lundi 10 Octobre 2016 23:41:11
Objet: Re: [NTG-context] Ideas for improving documentation of ConTeXt

Am 2016-10-10 um 19:04 schrieb Jean-Pierre Delange :

> https://fr.wikibooks.org/wiki/ConTeXt 

A user named Piksi started (and immediately abandoned) an English one at
https://en.wikibooks.org/wiki/ConTeXt

I have a look at it in the beginning of 2016. Why don't feed this page with a 
few ConTeXt starter docs ?

I did the same here:
https://www.gitbook.com/book/fiee/context-starter/welcome

error 403 ...

While I _am_ planning to write a ConTeXt book in German and already created an 
extensive outline, I found gitbook to be the wrong platform. Anyway I guess it 
will just end up on my big pile of started-and-abandoned projects...

BTW Alan let me have a look at his book: it already looks good and has a lot of 
content, but has still a long way to go until we can hope to see it printed.

Some more information about this project ?

Thanks,
JP


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
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  : http://foundry.supelec.fr/projects/contextrev/
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Mingranina Gingranina
Dear Wolfgang
 Hello,

First of all, let me thank you very much for your informative answer.

On 10/10/16, Wolfgang Schuster  wrote:
>> Mingranina Gingranina 
>> 7. Oktober 2016 um 17:41
>> Dear Mohammad,
>> Hi,
>>
>> Thank you very much for your reply. I forgot to mention that I had
>> modified the fontsampler codes so that I can use it in ConTeXt with
>> Dabeer module.
> 1. What is Dabeer?

It is a module for Persian typesetting in ConTeXt. Please see:
https://github.com/bateni/dabeer

>
> 2. You can access the list of known fonts with the "fonts.names.list"
> function:
>
> \setuppapersize[A4,landscape]
>
> \starttext
>
> \startluacode
>
> local fontlist = fonts.names.list("",true,true)
>
> context.starttabulate({"|l|l|"})
> for fontname, fontentry in next, fontlist do
>  context.NC()
>  context(fontentry["rawname"])
>  context.NC()
>  context(fontentry["filename"])
>  context.NC()
>  context.NR()
> end
> context.stoptabulate()
>
> \stopluacode
>
> \stoptext
>> However, inspired by your reply I could get it to work in LuaTeX but
>> not in ConTeXt with Dabeer module.
>>
>> Are there any other set of features that I can test?
> ConTeXt inludes a few modules which can be used to show font information
> (search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a
> example from s-fonts-tables.mkiv:
>
> \usemodule[fonts-tables]
>
> \setupbodyfont[pagella]
>
> \starttext
> \showfonttables[title={TeX Gyre Pagella}]
> \stoptext

I am a novice in LuaTeX and ConTeXt and to learn these I tried to
modify FontSampler code (http://wiki.luatex.org/index.php/Fontsampler)
to get a sample of Persian fonts in a directory hierarchy too.

BTW, at the moment my problem with LuaTeX is that the page numbering
is in english. Do you know how to change the page numbering to Persian
in LuaTeX?

 Thanks,
 Mingranina
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Henning Hraban Ramm
Am 2016-10-10 um 19:04 schrieb Jean-Pierre Delange :

> https://fr.wikibooks.org/wiki/ConTeXt 

A user named Piksi started (and immediately abandoned) an English one at
https://en.wikibooks.org/wiki/ConTeXt

I did the same here:
https://www.gitbook.com/book/fiee/context-starter/welcome

While I _am_ planning to write a ConTeXt book in German and already created an 
extensive outline, I found gitbook to be the wrong platform. Anyway I guess it 
will just end up on my big pile of started-and-abandoned projects...

BTW Alan let me have a look at his book: it already looks good and has a lot of 
content, but has still a long way to go until we can hope to see it printed.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Resume module with moderncv interface

2016-10-10 Thread Wolfgang Schuster

Jonas Baggett 
6. Oktober 2016 um 13:38
Hello,

I am trying to use the resume module with the moderncv interface 
without any success so far. I have errors when I am trying to use any 
of the added commands like \setresumevalue or \cvline. Log file is 
attached.


Here is my context file (CV.tex) :


\usemodule[resume][interface=moderncv,style=casual]

\starttext

\setresumevalue{firstname} {John}
\setresumevalue{familyname}{Doe}

\startresume

\cvline{A} {B}

\stopresume

\stoptext


I have compared the list of the installed files of an old version of 
the ubuntu context-modules package 
(http://packages.ubuntu.com/fr/precise/all/context-modules/filelist) 
with a recent one 
(http://packages.ubuntu.com/fr/xenial/all/context-modules/filelist) 
and it seems to me that the moderncv interface was removed in ConTeXt 
some time ago. Is it really the case ?
Yes, the moderncv interface is gone (together with the alternative 
interfaces for the letter module) but you can see a different method 
below. If you really want a copy of the moderncv package for ConTeXt you 
should convert the LaTeX code to ConTeXt and make a separate module for it.


 begin example
\usemodule[resume]

%\useresumestyle[casual-blue]
\useresumestyle[classic-blue]

\setupresumeoptions
  [bodyfont=calluna]

\setupresume
  [firstname=John,
   familyname=Doe,
   title=Resumé title (optional),% classic style only
   quote=My quote,% casual style only
   image={\externalfigure[dummy][width=3cm,height=4cm]}]

\setupresume
  [street={street and number},
   town={postcode city},
   mobile={+1(234)567890},
   phone={+2(345)678901},
   fax={+3(456)789012},
   email={j...@doe.org},
   info={additional information}]

\startresume

\startresumesection[title={Knuth}]

\startresumesubsection[title={Zapf}]

\starttwocolumns
\input ward
\stoptwocolumns

\stopresumesubsection

\stopresumesection

\page

\startresumesection[title={Knuth}]

\startresumesubsection[title={Zapf}]

\starttwocolumns
\input ward
\stoptwocolumns

\stopresumesubsection

\stopresumesection

\stopresume
 end example


To add dates to entries you can use the lefttext key for the twocolumns 
environment, e.g.


\starttwocolumns[lefttext=...]
...
\stoptwocolumns


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

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Hans Hagen

On 10/10/2016 7:04 PM, Jean-Pierre Delange wrote:

Dear List,

This discussion (and proposals) is very interesting and I am afraid to say that all the points of 
view are relevant. But the core idea of Jonas is to get a kind of samples database where access is 
defined by key-word as "columnset" or "frame", etc. I don't know if making this 
kind of tool is as simple as it appears to be, but why not ? Surely, the individual (or group) has 
to be very devoted. Certainly it is possible to get code containing many errors, but Jonas would be 
inspired to get a further enquiry on this matter. Surely, there is a need to access quickly to the 
relevant information, but I don't know if it is possible to clear the way much more than the 
ConTeXt Garden wiki allows to do so.

I order to learn ConTeXt for my own purpose and work, I have begun to start a Wikibook, because a few months 
ago I simply didn't know the name of ConTeXt, but I was sure that it was a best way for me to use it than 
LaTeX : my aim was not to build a very well structured database, but to get some code with samples on the 
same page (as a quick first help), chapter by chapter, from simple to complex (e. g. "simple 
frame"; "frame in a column" etc.) in order to access quickly to my documentation, and to help 
beginners like me. I feed this "database" with ConTeXt Garden samples and with test samples from 
the mailing-list, as long as I can understand them (I am not a mathematician, only someone who needs to print 
classical texts) : https://fr.wikibooks.org/wiki/ConTeXt

A simple question : is it usefull to get a very quick access to a documentation 
where explanation is absent ? That's why the current explanation is very useful 
: even if you have to read full pages at length, the explanation given in the 
PDF documentation is an accurate information and oftenly says something which 
allow to lead to a solve your issue. So, it seems there is a conflict between 
the desire of a quick access to relevant information and the need of learning 
ConTeXt with patience !


One trap that a user can fall into is to make a complete style at once. 
because much works out of the box, one can delay styling and just define 
/ setup things as the document evolves.


Another trap is to start with some existing complex style. If you look 
at the manuals you'll notice that there is not that much being set up. 
Of course there are complex setups possible and we need them for complex 
xml to pdf workflows with lots of different structural elements and 
designer demands and exceptions, but that's not that common i guess.


Your wikibook approach sounds useful. I often put examples i run into 
(or make when testing new code) in the test suite that can be downloaded 
but i wonder if many users can use that (too many files).


Some kind of "if you need this, look there" system would be nice. If you 
want keywords, the i-*.xml files are a good starting point.




- Mail original -
De: "Thomas A. Schmitz" 
À: "mailing list for ConTeXt users" 
Envoyé: Lundi 10 Octobre 2016 09:57:24
Objet: Re: [NTG-context] Ideas for improving documentation of ConTeXt

On 10/10/2016 07:43 AM, Jonas Baggett wrote:


Thanks for your encouragement ! Yes that looks like an interesting
challenge for me, but it is not something I am wanting to do alone
because of my lack of experience, at least I would need someone to coach
me. Actually I don't have really experience with web developpment and I
would at least need help for the technological choices. Having someone
that tells me that if I use technology X, there are module Y and Z that
will be a good fit is a good start.


Just two small remarks:

1. there are not that many modules in ConTeXt because most of the
functionality is in the core. If you come from the LaTeX world, you may
expect several hundred packages, each with their own idiosyncracies and
documentation. That's not the case here.

2. As for your documentation project, let me be honest: unless someone
very dedicated and very knowledgeable makes a long-term commitment and
looks after these examples, they are worse than useless. Unless there is
very tight control, they may contain bad and/or outdated code and lead
newcomers in the wrong direction. The context way has always been to
avoid boilerplate templates and let users roll their own styles. Which
makes sense since in context almost every detail can be changed easily
via dedicated setup commands. (This is again quite unlike LaTeX and its
document classes that predefine many details.) I have problems imagining
a collection of sample documents that will be more than a haphazard
bunch of fortuitous designs.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : 

Re: [NTG-context] \showmathfontcharacters ?

2016-10-10 Thread Wolfgang Schuster

Meer, Hans van der 
10. Oktober 2016 um 18:59

On 10 Oct 2016, at 18:18, Wolfgang Schuster  wrote:


Meer, Hans van der 10. Oktober 2016 um 18:07
Put at front of the test document
\usemodule[math-repertoire]
\setupbodyfont[modern,12pt]


Already did this.

Observations:

(1) \showmathcharacterssetbodyfonts{modern}
No output

The command set the fonts which are shown in the document but you still need 
the \showmathfontrepertoire command to generate the pages.


Then I do not understand its use. Because with or without this command the 
glyphs of the bodyfont are produced by \showmathfontrepertoire.

By the way, most glyphs have a yellow background, but some a green one. What 
does this signify?



(2) \showmathfontcharacters[alternative=,option=,modern]}
Breaking off after page 2067 with a TeX error "Too many }'s"?

1. You’re mixing keywords and assignments.

My mistake. However after correction it looks as if

\usemodule[math-repertoire]
\setupbodyfont[schola,12pt]
\showmathfontcharacters[alternative=,option=]{modern}
\stoptext

does exactly the same as

\usemodule[math-repertoire]
\setupbodyfont[schola,12pt]
\showmathfontrepertoire
\stoptext

Because instead of "modern" the first page has the title "schola".
The command \showmathfontcharacters is defined in s-math-characters.mkiv 
but you

don’t load the module in your example.

The command \showmathfontrepertoire is defined s-math-repertoire.mkiv 
which loads
the characters module, the \showmathfontrepertoire command passes its 
arguments
to \showmathfontcharacters and the difference between both modules is 
the output.


You can check both modules for all differences and make a list.

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

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Jean-Pierre Delange
Dear List,

This discussion (and proposals) is very interesting and I am afraid to say that 
all the points of view are relevant. But the core idea of Jonas is to get a 
kind of samples database where access is defined by key-word as "columnset" or 
"frame", etc. I don't know if making this kind of tool is as simple as it 
appears to be, but why not ? Surely, the individual (or group) has to be very 
devoted. Certainly it is possible to get code containing many errors, but Jonas 
would be inspired to get a further enquiry on this matter. Surely, there is a 
need to access quickly to the relevant information, but I don't know if it is 
possible to clear the way much more than the ConTeXt Garden wiki allows to do 
so.

I order to learn ConTeXt for my own purpose and work, I have begun to start a 
Wikibook, because a few months ago I simply didn't know the name of ConTeXt, 
but I was sure that it was a best way for me to use it than LaTeX : my aim was 
not to build a very well structured database, but to get some code with samples 
on the same page (as a quick first help), chapter by chapter, from simple to 
complex (e. g. "simple frame"; "frame in a column" etc.) in order to access 
quickly to my documentation, and to help beginners like me. I feed this 
"database" with ConTeXt Garden samples and with test samples from the 
mailing-list, as long as I can understand them (I am not a mathematician, only 
someone who needs to print classical texts) : 
https://fr.wikibooks.org/wiki/ConTeXt 

A simple question : is it usefull to get a very quick access to a documentation 
where explanation is absent ? That's why the current explanation is very useful 
: even if you have to read full pages at length, the explanation given in the 
PDF documentation is an accurate information and oftenly says something which 
allow to lead to a solve your issue. So, it seems there is a conflict between 
the desire of a quick access to relevant information and the need of learning 
ConTeXt with patience !
JP



- Mail original -
De: "Thomas A. Schmitz" 
À: "mailing list for ConTeXt users" 
Envoyé: Lundi 10 Octobre 2016 09:57:24
Objet: Re: [NTG-context] Ideas for improving documentation of ConTeXt

On 10/10/2016 07:43 AM, Jonas Baggett wrote:
>
> Thanks for your encouragement ! Yes that looks like an interesting
> challenge for me, but it is not something I am wanting to do alone
> because of my lack of experience, at least I would need someone to coach
> me. Actually I don't have really experience with web developpment and I
> would at least need help for the technological choices. Having someone
> that tells me that if I use technology X, there are module Y and Z that
> will be a good fit is a good start.

Just two small remarks:

1. there are not that many modules in ConTeXt because most of the 
functionality is in the core. If you come from the LaTeX world, you may 
expect several hundred packages, each with their own idiosyncracies and 
documentation. That's not the case here.

2. As for your documentation project, let me be honest: unless someone 
very dedicated and very knowledgeable makes a long-term commitment and 
looks after these examples, they are worse than useless. Unless there is 
very tight control, they may contain bad and/or outdated code and lead 
newcomers in the wrong direction. The context way has always been to 
avoid boilerplate templates and let users roll their own styles. Which 
makes sense since in context almost every detail can be changed easily 
via dedicated setup commands. (This is again quite unlike LaTeX and its 
document classes that predefine many details.) I have problems imagining 
a collection of sample documents that will be more than a haphazard 
bunch of fortuitous designs.

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

Re: [NTG-context] \showmathfontcharacters ?

2016-10-10 Thread Meer, Hans van der

> On 10 Oct 2016, at 18:18, Wolfgang Schuster  
> wrote:
> 
>> Meer, Hans van der 10. Oktober 2016 um 18:07
>> Put at front of the test document
>> \usemodule[math-repertoire]
>> \setupbodyfont[modern,12pt]

Already did this.
>> 
>> Observations:
>> 
>> (1) \showmathcharacterssetbodyfonts{modern}
>> No output
> The command set the fonts which are shown in the document but you still need 
> the \showmathfontrepertoire command to generate the pages.

Then I do not understand its use. Because with or without this command the 
glyphs of the bodyfont are produced by \showmathfontrepertoire.

By the way, most glyphs have a yellow background, but some a green one. What 
does this signify?


>> (2) \showmathfontcharacters[alternative=,option=,modern]}
>> Breaking off after page 2067 with a TeX error "Too many }'s"?
> 1. You’re mixing keywords and assignments.
My mistake. However after correction it looks as if 

\usemodule[math-repertoire]
\setupbodyfont[schola,12pt]
\showmathfontcharacters[alternative=,option=]{modern}
\stoptext

does exactly the same as 

\usemodule[math-repertoire]
\setupbodyfont[schola,12pt]
\showmathfontrepertoire
\stoptext

Because instead of "modern" the first page has the title "schola".

> 
> 2. You have a extra } after \showmathfontcharacters.
>> (3) \showmathfontrepertoire
>> 2067 pages output, one character a page
Very silly of me.

Hans van der Meer

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

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

Re: [NTG-context] Unable to use Martin Vogels Symbols

2016-10-10 Thread Jonas Baggett

Le 10. 10. 16 à 10:54, Mojca Miklavec a écrit :


I would suspect that OSFONTDIR or something else in the process
doesn't work correctly.

ConTeXt will only be able to typeset the document if it can find the font.

All the Debian developer can do is add the font to the equivalent of
 
/usr/local/texlive/2016/texmf-dist/fonts/truetype/public/marvosym/marvosym.ttf
(not sure where exactly that is), but it might be that their policy is
not to duplicate fonts, who knows.

So independent of whether or not this gets resolved in Debian, you
should figure out why the font isn't found by ConTeXt. It might also
be that ConTeXt only finds the Type1 fonts and then stops searching
any further.


I have found that the texlive-fonts-recommended package installed on my 
system has also some marvosym related files :
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/fonts/afm/public/marvosym/marvosym.afm
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/fonts/map/dvips/marvosym/marvosym.map
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/fonts/tfm/public/marvosym/umvs.tfm
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/fonts/type1/public/marvosym/marvosym.pfb
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/tex/latex/marvosym/marvosym.sty
texlive-fonts-recommended: 
/usr/share/texlive/texmf-dist/tex/latex/marvosym/umvs.fd


I removed this package and it works ! I tried to reproduce the bug again 
by reinstalling this package and by removing the cache, but strangely I 
am no more able to reproduce it.

Thanks for your suggestion !

Greetings,
Jonas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \showmathfontcharacters ?

2016-10-10 Thread Wolfgang Schuster

Meer, Hans van der 
10. Oktober 2016 um 18:07
Put at front of the test document
\usemodule[math-repertoire]
\setupbodyfont[modern,12pt]

Observations:

(1) \showmathcharacterssetbodyfonts{modern}
No output
The command set the fonts which are shown in the document but you still 
need the \showmathfontrepertoire command to generate the pages.

(2) \showmathfontcharacters[alternative=,option=,modern]}
Breaking off after page 2067 with a TeX error "Too many }'s"?

1. You’re mixing keywords and assignments.

2. You have a extra } after \showmathfontcharacters.

(3) \showmathfontrepertoire
2067 pages output, one character a page

So about (1) and (2) I do not understand what happens.

If there are still problems send complete examples.

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

Re: [NTG-context] \showmathfontcharacters ?

2016-10-10 Thread Meer, Hans van der
Put at front of the test document
\usemodule[math-repertoire]
\setupbodyfont[modern,12pt]

Observations:

(1) \showmathcharacterssetbodyfonts{modern}
No output

(2) \showmathfontcharacters[alternative=,option=,modern]}
Breaking off after page 2067 with a TeX error "Too many }'s"?

(3) \showmathfontrepertoire
2067 pages output, one character a page

So about (1) and (2) I do not understand what happens.

Hans van der Meer




> On 10 Oct 2016, at 14:44, Hans Hagen  wrote:
> 
> On 10/10/2016 12:55 PM, Meer, Hans van der wrote:
>> 
>>> On 09 Oct 2016, at 15:51, Hans Hagen >> > wrote:
>>> 
>>> On 10/9/2016 1:07 PM, Meer, Hans van der wrote:
 Not more than 3 years ago the addition of \usemodule[math-10] solved
 the Undefined control sequence error for \showmathfontcharacters.
 But at least in ConTeXt  ver: 2016.07.23 13:35 this problem cropped
 up again.
 Where is \showmathfontcharacters defined nowadays?
>>> 
>>> >mtxrun --script grep showmathfontcharacters *.mkiv
>>> 
>>> ./s-math-characters.mkiv125: \unexpanded\def\showmathfontcharacters
>>> ./s-math-characters.mkiv190: \showmathfontcharacters
>>> ./s-math-repertoire.mkiv447:
>>> {\showmathfontcharacters[alternative=,option=,check=yes,#1]
>>> ./s-math-repertoire.mkiv448:
>>> \showmathfontcharacters[alternative=,option=,#1]}
>>> 
>> 
>> Then why do I get an error with:
>> \starttext
>> \showmathfontcharacters[alternative=,option=,lmodern]}
>> \stoptext
>> 
>> system  > ConTeXt  ver: 2016.10.08 00:11 MKIV beta  fmt:
>> 2016.10.10  int: english/english
>> tex error   > tex error on line 4 in file
>> /Users/hansm/Documents/TeX/texmf/texnotes/tester.tex: ! Undefined
>> control sequence
>> 
>> l.4 \showmathfontcharacters
>> [alternative=,option=,lmodern]}
> 
> because you don't load that module (you can run the modules themselves as 
> test)
> 
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] typeset page in page

2016-10-10 Thread Wolfgang Schuster

Meer, Hans van der 
10. Oktober 2016 um 14:35
I would like to typeset a page in small format (for example A5) and 
immediately put the result on the current page (for example in A4 
format). In this way I can demo the result of some operations like 
variations in footnote parameters in a running text, etc.

If this can be accomplished, how?

+--+
| enclosing page A4 |
| |
| |
| +-+ |
| | embedded | |
| | page A5 | |
| | format | |
| | | |
| | | |
| | | |
| | | |
| +-+ |
| |
| |
| |
| |
| |
| |
| |
+--+

\starttext

\startbuffer[ward]
\setuppapersize[A5]
\showframe
\starttext
\subject{Ward}
\input ward
\stoptext
\stopbuffer

\startplacefigure[title={Creating a example with \tex{typesetbuffer}}]
\typesetbuffer[ward][width=.5\textwidth]
\stopplacefigure

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

Re: [NTG-context] modules.contextgarden.net update

2016-10-10 Thread Wolfgang Schuster

Hi Taco,

can you send me a temporary password.

Kind regards,
Wolfgang

Taco Hoekwater 
10. Oktober 2016 um 15:46
Hi,

Some of you will know already that the module author section of

https://modules.contextgarden.net

is functional again, as presented at the ConTeXt meeting last month.

However, nobody can log in, because module authors now have a password
(no more automatic wiki-connect). For new module authors, the registration
process will handle the setup of password and such, but legacy authors
need manual intervention.

So, if you are the current maintainer of a module on modules.cg.net,
please drop me an email message so I can hand you a temporary password 
for

logging on (the old wiki-connect code did not store e-mail addresses
either, making it hard to reach everyone except via this list).

It would be good if the current authors could update their module
metadata(s), because the new code has support for a “works with 
mkii/mkiv”

flag as well as some other new fields. Also, I welcome comments and
feature requests, now that the website code is in a language I can
easily program in.

Once most of the modules have been updated to reflect their mkii/mkiv
state, I can start designing a search/filter interface to improve the
front-end of the site.

Best wishes,
Taco



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



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

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Mojca Miklavec
On 10 October 2016 at 15:31, Henri Menke wrote:
> I have found another thread reporting the same problem
>
> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>
> However, Hans only replied with »has been fixed already«.
>
> Does anyone know how to find the fix?

Unless Hans remembers what he fixed exactly, my only idea is doing a
bisection over
https://bitbucket.org/phg/context-mirror/commits/all

In case you find the fix, I can "backport" it to TL's repository and
users doing regular upgrades with tlmgr will get it at least.

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

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

[NTG-context] modules.contextgarden.net update

2016-10-10 Thread Taco Hoekwater
Hi,

Some of you will know already that the module author section of 

  https://modules.contextgarden.net 

is functional again, as presented at the ConTeXt meeting last month. 

However, nobody can log in, because module authors now have a password 
(no more automatic wiki-connect). For new module authors, the registration
process will handle the setup of password and such, but legacy authors 
need manual intervention.
 
So, if you are the current maintainer of a module on modules.cg.net,
please drop me an email message so I can hand you a temporary password for 
logging on (the old wiki-connect code did not store e-mail addresses
either, making it hard to reach everyone except via this list).

It would be good if the current authors could update their module
metadata(s), because the new code has support for a “works with mkii/mkiv” 
flag as well as some other new fields. Also, I welcome comments and
feature requests, now that the website code is in a language I can 
easily program in.

Once most of the modules have been updated to reflect their mkii/mkiv 
state, I can start designing a search/filter interface to improve the
front-end of the site.

Best wishes,
Taco



___
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] Paranormal bug in TL 2016

2016-10-10 Thread Henri Menke
I have found another thread reporting the same problem

https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html

However, Hans only replied with »has been fixed already«.

Does anyone know how to find the fix?

Cheers, Henri

On 10/10/2016 02:03 PM, Thomas A. Schmitz wrote:
> On 10/10/2016 01:49 PM, Henri Menke wrote:
>> Dear Thomas,
>>
>> does it also compile on latest beta when there is a hyphen in the filename?  
>> BTW, the example can be simplified a little by just using 
>> \setbreakpoints[compound] instead of my complicated hyphen thing (Updated 
>> example is below.).  Also I'm very sure that it is mainly related to the 
>> breakpoints thing.
>>
>> As I mentioned in the original post, I currently cannot update because of 
>> critical documents being composed with the TL 2016 version and I cannot 
>> afford any regressions.
>>
>> Cheers, Henri
> 
> Yes, I had saved your file as test-test.tex, and it compiles with 2016.10.08 
> 00:11
> 
> Thomas
> ___
> 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
> ___

___
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] \showmathfontcharacters ?

2016-10-10 Thread Hans Hagen

On 10/10/2016 12:55 PM, Meer, Hans van der wrote:



On 09 Oct 2016, at 15:51, Hans Hagen > wrote:

On 10/9/2016 1:07 PM, Meer, Hans van der wrote:

Not more than 3 years ago the addition of \usemodule[math-10] solved
the Undefined control sequence error for \showmathfontcharacters.
But at least in ConTeXt  ver: 2016.07.23 13:35 this problem cropped
up again.
Where is \showmathfontcharacters defined nowadays?


>mtxrun --script grep showmathfontcharacters *.mkiv

./s-math-characters.mkiv125: \unexpanded\def\showmathfontcharacters
./s-math-characters.mkiv190: \showmathfontcharacters
./s-math-repertoire.mkiv447:
{\showmathfontcharacters[alternative=,option=,check=yes,#1]
./s-math-repertoire.mkiv448:
\showmathfontcharacters[alternative=,option=,#1]}



Then why do I get an error with:
\starttext
\showmathfontcharacters[alternative=,option=,lmodern]}
\stoptext

system  > ConTeXt  ver: 2016.10.08 00:11 MKIV beta  fmt:
2016.10.10  int: english/english
tex error   > tex error on line 4 in file
/Users/hansm/Documents/TeX/texmf/texnotes/tester.tex: ! Undefined
control sequence

l.4 \showmathfontcharacters
 [alternative=,option=,lmodern]}


because you don't load that module (you can run the modules themselves 
as test)


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

[NTG-context] typeset page in page

2016-10-10 Thread Meer, Hans van der
I would like to typeset a page in small format (for example A5) and immediately 
put the result on the current page (for example in A4 format). In this way I 
can demo the result of some operations like variations in footnote parameters 
in a running text, etc.
If this can be accomplished, how?

+--+
|   enclosing page A4  |
|  |
|  |
|   +-+|
|   |  embedded   ||
|   |  page A5||
|   |  format ||
|   | ||
|   | ||
|   | ||
|   | ||
|   +-+|
|  |
|  |
|  |
|  |
|  |
|  |
|  |
+--+


Hans van der Meer




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

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

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Ulrike Fischer
Am Mon, 10 Oct 2016 13:49:47 +0200 schrieb Henri Menke:

> does it also compile on latest beta when there is a hyphen in the filename?

Works fine for me with 
system  > ConTeXt  ver: 2016.10.08 00:11 MKIV beta  fmt:
2016.10.10  int: english/english

and a file "test-error.tex".


Btw: Your error report reminded me a miktex bug last year, where
everyone thought the hyphen was responsable but at the end it was
the length of file names (multiple of 9 broke) which naturally
changes is one remove the hyphen ...

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

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

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Thomas A. Schmitz

On 10/10/2016 01:49 PM, Henri Menke wrote:

Dear Thomas,

does it also compile on latest beta when there is a hyphen in the filename?  
BTW, the example can be simplified a little by just using 
\setbreakpoints[compound] instead of my complicated hyphen thing (Updated 
example is below.).  Also I'm very sure that it is mainly related to the 
breakpoints thing.

As I mentioned in the original post, I currently cannot update because of 
critical documents being composed with the TL 2016 version and I cannot afford 
any regressions.

Cheers, Henri


Yes, I had saved your file as test-test.tex, and it compiles with 
2016.10.08 00:11


Thomas
___
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] mathmatrix and grid

2016-10-10 Thread Henri Menke
On 10/10/2016 12:30 PM, Wolfgang Schuster wrote:
>> Henri Menke 
>> 10. Oktober 2016 um 11:44
>> On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
 Henri Menke 
 30. September 2016 um 23:01
 Dear list,

 I noticed that when using grid=both then the height of a mathmatrix is 
 rounded down for no apparent reason whereas the depth is rounded up 
 correctly. Visually it appears to me that the height should be rounded up 
 here. In the MWE I added a \vrule to show that the determined height of 
 the line definitely does not coincide with what one would expect.

 How can I fix that? MWE is below.

 Cheers, Henri

 ---

 \setuplayout[grid=both]
 \showgrid

 \starttext

 \input knuth
 \startformula
 \vrule % make lineheight and depth visible
 \startmathmatrix
 \NC A \NR
 \NC B \NR
 \NC C \NR
 \stopmathmatrix
 \stopformula
 \input tufte

 \stoptext
>>> The default spacing modell (3) before and after formulas breaks grid 
>>> alignment
>>> because when you use another alternative (1 or 2) the alignment is correct.
>>
>> Dear Wolfgang,
>>
>> I appreciate your efforts but this does not change anything in my original 
>> example.  For reference, I include my updated example
>>
> You can add a grid setting for the formula itself, e.g.
> 
> \setupformula[grid=tolerant]
> 
> but you should add a blank line before \startformula, otherwise the setting 
> for formula is applied to the last paragraph before it.

Dear Wolfgang,

thanks again, this solution works nicely for me.  However, it only represents a 
workaround.  Do you think it is possible to patch it somehow in the core?  
Perhaps the definition of the mathmatrix has to be adjusted somehow (in 
context/base/mkiv/math-ali.mkiv).

Cheers, Henri

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

___
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] Paranormal bug in TL 2016

2016-10-10 Thread Henri Menke
Dear Thomas,

does it also compile on latest beta when there is a hyphen in the filename?  
BTW, the example can be simplified a little by just using 
\setbreakpoints[compound] instead of my complicated hyphen thing (Updated 
example is below.).  Also I'm very sure that it is mainly related to the 
breakpoints thing.

As I mentioned in the original post, I currently cannot update because of 
critical documents being composed with the TL 2016 version and I cannot afford 
any regressions.

Cheers, Henri

---

\version[temporary]

\setbreakpoints[compound]

\setuppagenumbering[alternative=doublesided]

\starttext

\startstandardmakeup
\stopstandardmakeup

{\em Detailtypografie} by Friedrich Frossman

\stoptext

On 10/10/2016 12:31 PM, Thomas A. Schmitz wrote:
> On 10/10/2016 12:14 PM, Henri Menke wrote:
>> Dear list,
>>
>> at some point my document started throwing an error
>>
>> ! error:  (nodes): trying to delete an attribute reference of a non 
>> attribute node
>>
>> I managed to extract a minimal example which shows the error (below).  
>> However, the error only occurs when the filename of the document contains a 
>> hyphen!  When I save the document as `test-error.tex' the error comes up, 
>> when I save it as `testerror.tex' it typesets smoothly.
>>
>> Unfortunately, I currently cannot update to latest beta because I have an 
>> important document where I cannot afford any regressions.
>>
>> Cheers, Henri
> 
> Hi Henri,
> 
> I can confirm that running context tl 2016 (2016.05.17 19:20) on your example 
> triggers this error; the same file compiles cleanly with the current beta. 
> Not sure if this is good news or bad news for you...
> 
> Thomas
> ___
> 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
> ___

___
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] frames for left/right pages

2016-10-10 Thread Thomas A. Schmitz

On 10/10/2016 12:47 PM, Wolfgang Schuster wrote:

Are you looking for streams, the mechanism Hans added for you years ago?


I'll have to look into Hans's rewrite of streams. As far as I remember, 
they were much more complex (offering synchronization etc.). Also, 
streams seem to be bound to full pages and don't offer backgrounds. So I 
think I'm looking for something simpler, yet more versatile.


Thomas
___
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] \showmathfontcharacters ?

2016-10-10 Thread Meer, Hans van der

On 09 Oct 2016, at 15:51, Hans Hagen > 
wrote:

On 10/9/2016 1:07 PM, Meer, Hans van der wrote:
Not more than 3 years ago the addition of \usemodule[math-10] solved the 
Undefined control sequence error for \showmathfontcharacters.
But at least in ConTeXt  ver: 2016.07.23 13:35 this problem cropped up again.
Where is \showmathfontcharacters defined nowadays?

>mtxrun --script grep showmathfontcharacters *.mkiv

./s-math-characters.mkiv125: \unexpanded\def\showmathfontcharacters
./s-math-characters.mkiv190: \showmathfontcharacters
./s-math-repertoire.mkiv447: 
{\showmathfontcharacters[alternative=,option=,check=yes,#1]
./s-math-repertoire.mkiv448: 
\showmathfontcharacters[alternative=,option=,#1]}


Then why do I get an error with:
\starttext
\showmathfontcharacters[alternative=,option=,lmodern]}
\stoptext

system  > ConTeXt  ver: 2016.10.08 00:11 MKIV beta  fmt: 2016.10.10  
int: english/english
tex error   > tex error on line 4 in file 
/Users/hansm/Documents/TeX/texmf/texnotes/tester.tex: ! Undefined control 
sequence

l.4 \showmathfontcharacters
 [alternative=,option=,lmodern]}

Hans van der Meer

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

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

[NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-10 Thread Nicola

Hello,
attached you find an update of the Vim scripts for ConTeXt.
A few highlights:

- jump commands ([[, ]], [{, ]}, ...);

- jump to file included with \project, \component, etc... by typing
 gf when the cursor is above the filename;

- tp (TeX paragraph) text object (e.g., use gqap to reflow a paragraph);

- i$ and a$ text objects;

- better integration with MetaPost (indentation and autocompletion
 inside \startMP...\stopMP... works automatically);

- syntax highglighting can be enabled for any nested filetype (MetaPost
 and Lua are enabled by default);

- compiler plugin, supporting mtxrun and Makefiles;

- Asynchronous typesetting with :ConTeXt command.

I plan to submit these changes for inclusion in Vim, but I'd like to
get some feedback, especially re background typesetting and especially
from Windows users.

I recommend to test with Vim 8.0 patch 22 or later.

Nicola


context.tgz
Description: Binary data
 ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] frames for left/right pages

2016-10-10 Thread Wolfgang Schuster

Thomas A. Schmitz 
10. Oktober 2016 um 12:13
Hi,

I have a wish list for independent frames and would like to know if 
this is possible in ConTeXt:


1. left and right pages in a doublesided document have frames with 
independent text flow, i.e. the text from p. 2 continues on p. 4, from 
p. 3 on p. 5, etc. The frames are regular frames and can have 
backgrounds, borders, etc.


2. After a couple of pages, these frames end. Below them, the text 
flows normally, i.e. begins below frame on p. 6 and continues below 
frame on p. 7.


3. Since I want to take my data from xml, the content of the frames 
will be taken from buffers.


So this would give, in pseudo-code:

\starttext

\startleftrightbuffers
\leftframe{\getbuffer[left]}

\rightframe{\getbuffer[right}
\stopleftrightbuffers

Here, the normal text begins, it will flow below the frames...

\stoptext

Is this possible? How would I code that?

Are you looking for streams, the mechanism Hans added for you years ago?

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] Paranormal bug in TL 2016

2016-10-10 Thread Thomas A. Schmitz

On 10/10/2016 12:14 PM, Henri Menke wrote:

Dear list,

at some point my document started throwing an error

! error:  (nodes): trying to delete an attribute reference of a non attribute 
node

I managed to extract a minimal example which shows the error (below).  However, 
the error only occurs when the filename of the document contains a hyphen!  
When I save the document as `test-error.tex' the error comes up, when I save it 
as `testerror.tex' it typesets smoothly.

Unfortunately, I currently cannot update to latest beta because I have an 
important document where I cannot afford any regressions.

Cheers, Henri


Hi Henri,

I can confirm that running context tl 2016 (2016.05.17 19:20) on your 
example triggers this error; the same file compiles cleanly with the 
current beta. Not sure if this is good news or bad news for you...


Thomas
___
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] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster

Henri Menke 
10. Oktober 2016 um 11:44
On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:

Henri Menke
30. September 2016 um 23:01
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is rounded 
down for no apparent reason whereas the depth is rounded up correctly. Visually 
it appears to me that the height should be rounded up here. In the MWE I added 
a \vrule to show that the determined height of the line definitely does not 
coincide with what one would expect.

How can I fix that? MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext

The default spacing modell (3) before and after formulas breaks grid alignment
because when you use another alternative (1 or 2) the alignment is correct.


Dear Wolfgang,

I appreciate your efforts but this does not change anything in my original 
example.  For reference, I include my updated example


You can add a grid setting for the formula itself, e.g.

\setupformula[grid=tolerant]

but you should add a blank line before \startformula, otherwise the 
setting for formula is applied to the last paragraph before it.


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] MKIV caption separator, revisited

2016-10-10 Thread Meer, Hans van der
Thanks I did not know the correct designations for the various parts of the 
captionlabel: the prefixconnector and the numberstopper. It is clear now.
Hans van der Meer




On 10 Oct 2016, at 10:40, Wolfgang Schuster 
> wrote:

Wolfgang Schuster
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) and the 
float number (=figure number), the symbol at the end of the float number is 
called numberstopper. In your example you don’t have a section which can act as 
prefix number no did you change which prefixes should be shown (by default only 
chapters are used as prefix).

The suffix key you use (together with suffixconnector and suffixstopper) is 
used to show the number for subfigures, e.g. figure 3.a.
Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

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

[NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Henri Menke
Dear list,

at some point my document started throwing an error

! error:  (nodes): trying to delete an attribute reference of a non attribute 
node

I managed to extract a minimal example which shows the error (below).  However, 
the error only occurs when the filename of the document contains a hyphen!  
When I save the document as `test-error.tex' the error comes up, when I save it 
as `testerror.tex' it typesets smoothly.

Unfortunately, I currently cannot update to latest beta because I have an 
important document where I cannot afford any regressions.

Cheers, Henri

---

\version[temporary]

\definebreakpoints[hyphen]
\definebreakpoint [hyphen] [-] [nleft=3,nright=3,type=6,range=yes]
\setbreakpoints[hyphen]

\setuppagenumbering [alternative=doublesided]

\starttext

\startstandardmakeup
\stopstandardmakeup

{\em Detailtypografie} by Friedrich Frossman

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

[NTG-context] frames for left/right pages

2016-10-10 Thread Thomas A. Schmitz

Hi,

I have a wish list for independent frames and would like to know if this 
is possible in ConTeXt:


1. left and right pages in a doublesided document have frames with 
independent text flow, i.e. the text from p. 2 continues on p. 4, from 
p. 3 on p. 5, etc. The frames are regular frames and can have 
backgrounds, borders, etc.


2. After a couple of pages, these frames end. Below them, the text flows 
normally, i.e. begins below frame on p. 6 and continues below frame on p. 7.


3. Since I want to take my data from xml, the content of the frames will 
be taken from buffers.


So this would give, in pseudo-code:

\starttext

\startleftrightbuffers
\leftframe{\getbuffer[left]}

\rightframe{\getbuffer[right}
\stopleftrightbuffers

Here, the normal text begins, it will flow below the frames...

\stoptext

Is this possible? How would I code that?

Thanks for any pointers

Thomas
___
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] Last version standalone ConTeXt issue.

2016-10-10 Thread Meer, Hans van der
This is an interesting feature for handling a call to an undefined macro (as 
might result from \csnam#1\endcsname, for example.

>
> \starttext
>
> \startluacode
>
> function interfaces.defined(name)
>return token.get_cmdname(token.create(name)) ~= "undefined_cs"
> end
>
> if interfaces.defined("foo") then
>context("foo")
> else
>interfaces.setmacro("foo","bar")
> end
>
> \stopluacode
>
> \foo
>
> \stoptext
>
> I'll add interfaces.defined to the core.
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com | 
> www.pragma-pod.nl
> -

As an example I executed the following code:

\starttext
\framed{\ConTeXt-version = \contextversion}\blank

\def\nofoo{This is nofoo}
\startluacode
if interfaces.defined("foo") then
   context("foo")
else
   interfaces.setmacro("foo","nofoo")
end
\stopluacode
\tex{foo} is undefined: "\foo"\crlf
\def\foo{This is foo}
\tex{foo} is defined: "\foo"\crlf
\stoptext

The result of the first call to \foo, however, is not "This is nofoo" but the 
name of the nofoo macro. I expected that \nofoo would have been executed 
instead. That would have been beneficial, because the missing macro \foo can 
then be substituted for something the programmer thinks useful.
Is this correct? Or am I doing something wrong?

Hans van der Meer





tester.pdf
Description: tester.pdf
___
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] mathmatrix and grid

2016-10-10 Thread Henri Menke
On 10/10/2016 11:24 AM, Wolfgang Schuster wrote:
>> Henri Menke 
>> 30. September 2016 um 23:01
>> Dear list,
>>
>> I noticed that when using grid=both then the height of a mathmatrix is 
>> rounded down for no apparent reason whereas the depth is rounded up 
>> correctly. Visually it appears to me that the height should be rounded up 
>> here. In the MWE I added a \vrule to show that the determined height of the 
>> line definitely does not coincide with what one would expect.
>>
>> How can I fix that? MWE is below.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \setuplayout[grid=both]
>> \showgrid
>>
>> \starttext
>>
>> \input knuth
>> \startformula
>> \vrule % make lineheight and depth visible
>> \startmathmatrix
>> \NC A \NR
>> \NC B \NR
>> \NC C \NR
>> \stopmathmatrix
>> \stopformula
>> \input tufte
>>
>> \stoptext
> The default spacing modell (3) before and after formulas breaks grid alignment
> because when you use another alternative (1 or 2) the alignment is correct.

Dear Wolfgang,

I appreciate your efforts but this does not change anything in my original 
example.  For reference, I include my updated example

%\setconstantvalue{c_strc_formulas_space_model}{1}
\setconstantvalue{c_strc_formulas_space_model}{2}
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value

\setuplayout[grid=both]

\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext

Cheers, Henri

> 
> 
> %\setconstantvalue{c_strc_formulas_space_model}{1}
> \setconstantvalue{c_strc_formulas_space_model}{2}
> %\setconstantvalue{c_strc_formulas_space_model}{3}% default value
> 
> \setuplayout[grid=yes]
> 
> \showgrid
> 
> \starttext
> 
> \input knuth
> \startformula
> x
> \stopformula
> \input tufte
> 
> \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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Wolfgang Schuster

Mingranina Gingranina 
7. Oktober 2016 um 17:41
Dear Mohammad,
Hi,

Thank you very much for your reply. I forgot to mention that I had
modified the fontsampler codes so that I can use it in ConTeXt with
Dabeer module.

1. What is Dabeer?

2. You can access the list of known fonts with the "fonts.names.list" 
function:


\setuppapersize[A4,landscape]

\starttext

\startluacode

local fontlist = fonts.names.list("",true,true)

context.starttabulate({"|l|l|"})
for fontname, fontentry in next, fontlist do
context.NC()
context(fontentry["rawname"])
context.NC()
context(fontentry["filename"])
context.NC()
context.NR()
end
context.stoptabulate()

\stopluacode

\stoptext

However, inspired by your reply I could get it to work in LuaTeX but
not in ConTeXt with Dabeer module.

Are there any other set of features that I can test?
ConTeXt inludes a few modules which can be used to show font information 
(search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a 
example from s-fonts-tables.mkiv:


\usemodule[fonts-tables]

\setupbodyfont[pagella]

\starttext
\showfonttables[title={TeX Gyre Pagella}]
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster

Henri Menke 
30. September 2016 um 23:01
Dear list,

I noticed that when using grid=both then the height of a mathmatrix is 
rounded down for no apparent reason whereas the depth is rounded up 
correctly. Visually it appears to me that the height should be rounded 
up here. In the MWE I added a \vrule to show that the determined 
height of the line definitely does not coincide with what one would 
expect.


How can I fix that? MWE is below.

Cheers, Henri

---

\setuplayout[grid=both]
\showgrid

\starttext

\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte

\stoptext
The default spacing modell (3) before and after formulas breaks grid 
alignment

because when you use another alternative (1 or 2) the alignment is correct.


%\setconstantvalue{c_strc_formulas_space_model}{1}
\setconstantvalue{c_strc_formulas_space_model}{2}
%\setconstantvalue{c_strc_formulas_space_model}{3}% default value

\setuplayout[grid=yes]

\showgrid

\starttext

\input knuth
\startformula
x
\stopformula
\input tufte

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

Re: [NTG-context] Unable to use Martin Vogels Symbols

2016-10-10 Thread Mojca Miklavec
On 7 October 2016 at 22:53, Jonas Baggett wrote:
> Hello,
>
> I am using debian testing and I am trying to use Martin Vogels Symbols with
> no success so far. I have compiled a file containing the following :
> \usesymbols[mvs]
> \setupsymbolset [martinvogel 2]
> \starttext
> Telephone : \symbol[Telephone]
> \stoptext
>
> But it failed to show the telephone symbole in the pdf, unless compiled with
> texexec instead of context. I have the following lines in the log file (in
> attachement) :
> fonts   > defining > forced type 'ttf' of 'marvosym' not found
> fonts   > defining > font with asked name 'marvosym' is not found
> using lookup 'file'
> fonts   > defining > unknown font 'marvosym', loading aborted
> fonts   > defining > unable to define 'marvosym.ttf' as
> 'currentsymbolfont--0'
>
> marvosym.ttf is located here :
> /usr/share/fonts/truetype/ttf-marvosym/marvosym.ttf. Then I tried to reload
> manually the fonts like this :
> $ export OSFONTDIR="/usr/share/fonts"
> $ mtxrun --script fonts --reload
> $ context --generate
>
> Normally marvosym.ttf should be found but it isn't the case as showed by the
> following command :
> $ mtxrun --script fonts --list --all --pattern=marvosym*
> marvosym   marvosym   marvosym.afm
> marvosymwithtexsupport marvosym   marvosym.afm
> marvosymwithtexsupportnormal   marvosym   marvosym.afm

I would suspect that OSFONTDIR or something else in the process
doesn't work correctly.

ConTeXt will only be able to typeset the document if it can find the font.

All the Debian developer can do is add the font to the equivalent of

/usr/local/texlive/2016/texmf-dist/fonts/truetype/public/marvosym/marvosym.ttf
(not sure where exactly that is), but it might be that their policy is
not to duplicate fonts, who knows.

So independent of whether or not this gets resolved in Debian, you
should figure out why the font isn't found by ConTeXt. It might also
be that ConTeXt only finds the Type1 fonts and then stops searching
any further.

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

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

Re: [NTG-context] MKIV caption separator, revisited

2016-10-10 Thread Wolfgang Schuster

Wolfgang Schuster 
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) 
and the float number (=figure number), the symbol at the end of the 
float number is called numberstopper. In your example you don’t have a 
section which can act as prefix number no did you change which 
prefixes should be shown (by default only chapters are used as prefix).


The suffix key you use (together with suffixconnector and 
suffixstopper) is used to show the number for subfigures, e.g. figure 3.a.

Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

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

Re: [NTG-context] MKIV caption separator, revisited

2016-10-10 Thread Wolfgang Schuster

Meer, Hans van der 
10. Oktober 2016 um 09:41
Here is the example. \setupcaptions has no effect, however 
\setupfloatcaption does (assuming of course I didn't make a silly 
mistake ;-). Thus it is no problem to get the effect desired, but 
possibly \setupcaptions should be deprecated, or perhaps reimplemented 
to calling \setupfloatcaption. I could have missed the change, but I 
guess a lot of other people might have missed it too. In that case we 
could spare them the trouble of finding out what happened.
prefixconnector is the separator between the section number (=prefix) 
and the float number (=figure number), the symbol at the end of the 
float number is called numberstopper. In your example you don’t have a 
section which can act as prefix number no did you change which prefixes 
should be shown (by default only chapters are used as prefix).


The suffix key you use (together with suffixconnector and suffixstopper) 
is used to show the number for subfigures, e.g. figure 3.a.


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] itemize columns transposed

2016-10-10 Thread Hans Hagen

On 10/10/2016 10:24 AM, Hans Hagen wrote:


\setvalue{\??itemgroupkeyword\v!notpacked}%


we already have unpacked

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

Re: [NTG-context] itemize columns transposed

2016-10-10 Thread Hans Hagen

On 10/2/2016 8:08 PM, Mikael P. Sundqvist wrote:

\starttext

Some text before.
\startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext


Something like this ... (unless WS sees a flaw):

\unprotect

\def\v!notpacked  {notpacked}
\def\v!notjoinedup{notjoinedup}

\setvalue{\??itemgroupkeyword\v!notpacked}%
  {\setfalse\c_strc_itemgroups_pack}

\setvalue{\??itemgroupkeyword\v!notjoinedup}%
  {\setfalse\c_strc_itemgroups_joined}

\unexpanded\def\stopcollectitems
  {\ifconditional\c_strc_itemgroups_collecting
 \c_strc_itemgroups_collected_done   \zerocount
 \c_strc_itemgroups_collected_current\zerocount
 \ifnum\c_strc_itemgroups_collected_stored>\zerocount
   \ifconditional\c_strc_itemgroups_horizontal
 \strc_itemgroups_before_command
 \setfalse\c_strc_itemgroups_first
 \strc_itemgroups_collected_flush
%\strc_itemgroups_after_command % triggered elsewhere
   \else
 \strc_itemgroups_collected_flush
   \fi
 \fi
   \fi}

\protect

\starttext

bla bla

\startitemize[a,horizontal,three,notjoinedup]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize

bla bla

\stoptext




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

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

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Thomas A. Schmitz

On 10/10/2016 07:43 AM, Jonas Baggett wrote:


Thanks for your encouragement ! Yes that looks like an interesting
challenge for me, but it is not something I am wanting to do alone
because of my lack of experience, at least I would need someone to coach
me. Actually I don't have really experience with web developpment and I
would at least need help for the technological choices. Having someone
that tells me that if I use technology X, there are module Y and Z that
will be a good fit is a good start.


Just two small remarks:

1. there are not that many modules in ConTeXt because most of the 
functionality is in the core. If you come from the LaTeX world, you may 
expect several hundred packages, each with their own idiosyncracies and 
documentation. That's not the case here.


2. As for your documentation project, let me be honest: unless someone 
very dedicated and very knowledgeable makes a long-term commitment and 
looks after these examples, they are worse than useless. Unless there is 
very tight control, they may contain bad and/or outdated code and lead 
newcomers in the wrong direction. The context way has always been to 
avoid boilerplate templates and let users roll their own styles. Which 
makes sense since in context almost every detail can be changed easily 
via dedicated setup commands. (This is again quite unlike LaTeX and its 
document classes that predefine many details.) I have problems imagining 
a collection of sample documents that will be more than a haphazard 
bunch of fortuitous designs.


Thomas
___
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] MKIV caption separator, revisited

2016-10-10 Thread Meer, Hans van der
Here is the example. \setupcaptions has no effect, however \setupfloatcaption 
does (assuming of course I didn't make a silly mistake ;-). Thus it is no 
problem to get the effect desired, but possibly \setupcaptions should be 
deprecated, or perhaps reimplemented to calling \setupfloatcaption. I could 
have missed the change, but I guess a lot of other people might have missed it 
too. In that case we could spare them the trouble of finding out what happened.

Hans van der Meer

\starttext

\setupcaptions[prefixconnector=-]
\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[test.jpg][scale=300]
\stopplacefigure

\setupfloatcaption[suffix=-]
\startplacefigure[title=\tex{setupfloatcaption[suffix=-]}]
\externalfigure[test.jpg][scale=300]
\stopplacefigure

\stoptext

On 09 Oct 2016, at 21:44, Wolfgang Schuster 
> wrote:

Meer, Hans van der
9. Oktober 2016 um 14:36
Is this still valid? Using \setupcaptions[prefixconnector=-] doesn't seem to 
make a difference for \startplacefigure.
Do you have a example?

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
___



tester.pdf
Description: tester.pdf
___
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] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Hans Hagen

On 10/10/2016 12:49 AM, Jonas Baggett wrote:

Hello Henri,


Most probably no one else will volunteer to do it and especially the
people from PRAGMA surely have better things to do. They merely
develop and use ConTeXt (...)

Here I don't agree. People from PRAGMA are probably better at
developping ConTeXt than starting in parallel a new project like that,
but it doesn't mean that this idea is necessarly not worth considering.
I wasn't either suggesting that they should be the people who start
implementing the idea.

(...) and were so kind as to provide us a huge bunch of documentation
already (http://pragma-ade.nl/document-1.htm).

Yes I just saw that you are right about the documentation, they have
already made a huge work on that. I was maybe too quick about my
conclusion, I am sorry if I did offend those who have already make all
that work. I was actually doing a cover letter in ConTeXt and since I
wasn't able to find uptodate informations about some of the commands I
was a little frustrated. But yes the letter module is third party and I
just saw in the wiki that it is said to be still in developpment, so
interface changes are to be expected and not necessarly all documented.
Since I am new to ConTeXt, my views on ConTeXt documentation got biased.
But now I am pretty happy with the results I have with my document, so
most of the troubles are behind, I guess :-).


Don't worry, no one feels offended. FYI, Pragma is not that large a 
company so we cannot allocate more resources than we do now (and did the 
last couple of decades). We just provide the manuals we write in the 
process and happily leave the rest to others.



On the other hand, some of the documentation still need to be updated.
Since ConTeXt is quick to evolue, having uptodate documentation would be
a huge task and I also understand that it may not be the most
interesting part for developpers ;-). My proposition was about to
mitigate that problem with making accessible examples with some advanced
search to quickly find relevant results.


Not all old manuals will be updates. There are already a lot in the 
distribution and another 6 on my disk waiting for an mkiv update. These 
are often covering a specific aspect. I happily leave writing additional 
manuals to others.


Each year at the context meeting this topic pops op and there are many 
plans but a lack of time interferes.


Btw, Alan is writing a larger story for beginners.


Maybe someday ConTeXt will be more mature and have a more stable
interface, then it would be easier to have uptodate documentation. But
it is only the analysis of someone who is only starting to know ConTeXt,
so I won't assume to be totally correct.


The interface is actually rather stable otherwise we could not use it 
ourselves. However the move to luatex made it possible to kick out code 
related to input and font encoding as well as update to new technologies 
so there have been changes.  So, the trick is to point new users to the 
right examples and documentation.


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

Re: [NTG-context] Ideas for improving documentation of ConTeXt

2016-10-10 Thread Hans Hagen

On 10/10/2016 7:43 AM, Jonas Baggett wrote:

Hello Wolfgang,


Le 09. 10. 16 à 22:51, Wolfgang Schuster a écrit :

Many of the old manuals got updates by Hans and he included the PDF’s
(together with the source files) in the normal ConTeXt download, you
can find them in the doc folder in your ConTeXt installation.


Ok, I don't have enough the habit of consulting documentation that is
installed in my system. I have found something interesting here that
could be helpfull to me :
/usr/share/texmf/doc/context/base/examplap/gui/letter.pdf. It seems to
be a letter generator, but unfortunately I wasn't able to make it work.
Maybe it is outdated since it is 10 years old.


What context installation do you use? The reference is the one on the 
context garden. Each year tex lives has a snapshot of that one. So, 
first make sure you run the latest version.


Concerning old manuals: they often refer to mkii but with mkiv we have 
different (often better) solutions. The examplap code and examples are 
mkii and also relate to pdf trickery and as pdf evolved it became more 
clear what was bound to acrobat i.e. not picked up (ignored) by open 
source alternatives and therefore less relevant.


In the distribution the manuals made at out end will be added but that's 
mkiv only. The bigger ones will take a while as i have rather strict 
rules (for myself) for the quality of the sources of manuals.


In parallel there is a set of manuals made and being made by users 
(fonts and layout are done, tables and graphics is being worked on) and 
for these the context group is responsible.


Then of course there are all kind of manuals written by other developers 
and users.


An important source are the setup-*.pdf files as these describe the 
interface which is described in the interface definition files (in xml 
format). These have recently be updated by Wolfgang and are very accurate.


You mentioned that keys (functionality) that disappears should be 
somehow documented but normally no functionality disappears. What 
happened was that mkiv has some more (because it's possible) and less 
(because it was no longer needed) than mkii and has been made more 
consistent.



The wiki has a page for examples and you’re free to update the
existing examples or add new ones.


Do you mean http://wiki.contextgarden.net/Sample_documents ? Yes, that's
a good idea, since I believe that it is a way to improve documentation
with little efforts. Then I plan to add the cover letter style I made
since I am happy with the results, although 1 or 2 things could have
some improvement. There are also some letter styles there, then I will
have a look on them too. I don't know if people are intimidated about
writing contents in the wiki because it is the official wiki and feel
that only programmers are supposed to update it, but it will be really
helpfull if the users have more the habit of posting there the document
styles they made.


Indeed.


Sounds interesting and the best thing you can do is to start with it.


Thanks for your encouragement ! Yes that looks like an interesting
challenge for me, but it is not something I am wanting to do alone
because of my lack of experience, at least I would need someone to coach
me. Actually I don't have really experience with web developpment and I
would at least need help for the technological choices. Having someone
that tells me that if I use technology X, there are module Y and Z that
will be a good fit is a good start.


This will only work when someone takes the lead. If you do that you then 
others will help you. If you need something special on the wiki, just 
discuss it with Taco and Mojca who deal with the technicalities.


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