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

2016-10-12 Thread Jonas Baggett

Le 11.10.16 à 22:40, Henning Hraban Ramm a écrit :


Am 2016-10-11 um 22:26 schrieb Jonas Baggett :


http://meta.stackoverflow.com/questions/328667/new-tags-and-documentation-beta

And a ConTeXt tag must already exist on Stack Overflow, which I didn't find. So 
it seems we can wait a while before there would be examples in ConTeXt.

There are ConTeXt threads on tex.stackexchange.com


You are confusing Stack Overflow and Stack Exchange ;-). Actually I 
didn't find the ConTeXt tag there : http://stackoverflow.com/tags.

I find stackoverflow too elitist, once I was reading a question and I wanted to 
help with an answer but it wasn't possible to do because it was the first time 
I wanted to contribute in stackoverflow and of course I was lacking the needed 
reputation. I am interested to help when I see an occasion to and when I am in 
the mood for that ;-). So I found that frustrating and it didn't make me 
interested to contribute there.

On the other hand, I understand their will to have good quality questions and 
answer and I appreciate that. I am just feeling it must be a better way to do 
that.

Hm, in my experience you get the necessary basic permissions really soon.


Ok, I can't remember exactly, but it was possible that I wanted to 
answer a question in a comment below someone post, which require a 
reputation of 50.

___
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-12 Thread Jonas Baggett

Hello Jean-Pierre,

Le 10.10.16 à 19:04, Jean-Pierre Delange a écrit :


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 !


Actually we can have the advantage of both. When someone is accessing an 
example that has e.g. the tags "table" and "luatex", then links to the 
pdf and wiki documentation about tables and luatex could be shown aside. 
And thanks for pointing that ! I would not have think about that otherwise.


And your wiki is something I should definitively have a look at. Thanks 
for the work !


Cheers,
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] cannot update to latest beta

2016-10-12 Thread Aditya Mahajan

Hi Philipp,

On Wed, 12 Oct 2016, Philipp Gesang wrote:


It seems fixed now and the most recent commit does indeed have
Hans as the author.


FYI, I have been mirroring your repo to github:
https://github.com/contextgarden/context-mirror

If you want, I can give you push access to the github repo and you could 
push to both bitbucket and github at the same time. Otherwise, I can 
continue to run a script locally that does the mirroring.


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

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

Re: [NTG-context] Deleted modules (fixme, games, lilypond, sgf)

2016-10-12 Thread Henning Hraban Ramm
Am 2016-10-12 um 19:52 schrieb Mojca Miklavec :

> The following modules disappeared from Taco's server:
> - t-fixme
> - t-games
> - t-lilypond
> - t-sgf
> Can you please confirm that all four modules should be removed from
> CTAN & TeX Live as well as from the ConTeXt distribution?

Yes, I asked Taco to delete the outdated LilyPond module.

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] cannot update to latest beta

2016-10-12 Thread Philipp Gesang
Hey Mohammad,

thanks for your message!

·
> The bitbucket mirror has not gotten updated since September 24.  Is there a
> misconfiguration?

Sort of. I changed the bot after talking to Mojca at Kalenberg to
include Hans as the commit author in order to facilitate the
merging of various repo archives at some point in the future. It
seems though that I messed up parts of the code in the process
and disregarded the notification emails the bot was kept sending
me due to failed commits. Oh my.

It seems fixed now and the most recent commit does indeed have
Hans as the author.

Best,
Philipp





pgpUqGcyxOloZ.pgp
Description: PGP signature
___
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] Deleted modules (fixme, games, lilypond, sgf)

2016-10-12 Thread Wolfgang Schuster

Mojca Miklavec 
12. Oktober 2016 um 19:52
Hi,

The following modules disappeared from Taco's server:

- t-fixme
- t-games
- t-lilypond
- t-sgf

Can you please confirm that all four modules should be removed from
CTAN & TeX Live as well as from the ConTeXt distribution?

games, sgf and fixme can be removed.

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-12 Thread Bomber K.
Changing the name won't give you any benefit over information that is 
written online somewhere already. Because then everybody would have to 
refresh their post and documents and so on.


The best solution is to be as specific as you can be, like ppl before me 
posted already. Type, frame document, tex and any keywords you would 
expect to read about the ConTeXt.


Because from the origin point of view, the name ConTeXt is great. In 
Netherlands you spell it like Contecht. It's a great pun / wordplay and 
should remain. :D



Am 12.10.2016 um 17:29 schrieb Yi Qingliang:

can we change name other than context? it is too difficult to search
it on google :(


___
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] Deleted modules (fixme, games, lilypond, sgf)

2016-10-12 Thread Mojca Miklavec
Hi,

The following modules disappeared from Taco's server:

- t-fixme
- t-games
- t-lilypond
- t-sgf

Can you please confirm that all four modules should be removed from
CTAN & TeX Live as well as from the ConTeXt distribution?

Thank you,
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
___

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

2016-10-12 Thread Bomber K.
Not for somebody who is new to the game. I was a newbie before and i 
know that the very least you are looking for is mkiv. ;)



Am 12.10.2016 um 19:32 schrieb Jonas Baggett:


Or "mkiv" is also a usefull keyword for search



___
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-12 Thread Jonas Baggett

Or "mkiv" is also a usefull keyword for search.


Le 12.10.16 à 17:33, Mica Semrick a écrit :
I often find adding 'TeX' to my search query to be helpful. Something 
like 'ConTeXt TeX margin error'


-m

On October 12, 2016 8:29:45 AM PDT, Yi Qingliang 
 wrote:


can we change name other than context? it is too difficult to search
it on google :(

On Wed, Oct 12, 2016 at 7:30 PM, Jonas Baggett  wrote:

Le 10. 10. 16 à 09:24, Hans Hagen a écrit : 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. Yes that would be great to have a page on the
wiki. Then I could describe there the goals of the project and
elaborate and put there the specifications of the project.
Then waiting for some feed-back in order to improve the ideas
behind the project. When the specifications are mature enough,
the technological choices could be made and finally I will be
able to put there a roadmap. At which point it would be easier
to know what needs to be done and how much time investment
will be needed, and what are the tasks I can reasonably do for
the project and what are those where help is welcome.
Hopefully there would be other people at that point who could
share the vision and are willing to help. How do you think
about that ? Have a nice afternoon, 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




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
___
___
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] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
On 10/12/2016 06:03 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 12. Oktober 2016 um 16:38
>> [...]
>> According to the description from page 301 in i-context.pdf,
>> \startlinenumbering ... \stoplinenumbering inherit from
>> \setuplinenumbering.
>
> I changed it, valid keys are continue, start, step and method.

Wolfgang,

many thanks for your explanation and for fixing the documentation.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Hans Hagen

On 10/12/2016 5:58 PM, Thomas A. Schmitz wrote:

On 12.10.2016 16:38, Pablo Rodriguez wrote:

Wolfgang,

your approach is right, but hasn’t Thomas hit a bug?

According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from
\setuplinenumbering.



Thanks Wolfgang, this solution works (I must admit I wasn't aware of
\definelinenumbering). Nevertheless, I think Pablo is right because this
means one must define every setup in advance. In some situations, it
might be useful to change on the fly, and I think this "bleeding" of
setups into preceding blocks is unexpected.


\startlinenumbering [location=text,distance=0.5cm]
\dorecurse{2}{\input tufte} \page
\stoplinenumbering

line number placement is delayed till a page is constructed (only then 
do we know where the margins are) and settings get reset after 
\stoplinennumbering


(there are more cases when grouping can interfere with pagebreaks after 
the group ends)


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

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

Re: [NTG-context] context xml manual

2016-10-12 Thread Meer, Hans van der
Thanks. I did a context run and now I am asking: shouldn't the API details 
given for each setup?
For example:
\xmlflush{NODE}
\xmltext{NODE}{LPATH}

Not all are so evident, see for example on page 18 the explanation for 
\xmlprocessbuffer:
registers buffer NAME as NAME and ...
Which I think could be better (iff I do understand correctly)
\xmlprocessbuffer{NAME}{BUFFER}{XMLSETUP}

Hans van der Meer



> On 12 Oct 2016, at 16:54, Wolfgang Schuster  
> wrote:
>
>> Meer, Hans van der 12. Oktober 2016 um 16:49
>> Did a small disaster happen in typesetting the XML manual? I find "MISSING 
>> SETUP"s all over the place. See the sample page.
>> This is ConTeXt  ver: 2016.10.08 00:11 MKIV beta
> xml-mkiv.tex (line 24):
>
> -\loadsetups[i-en-xml.xml]
> +\loadsetups[i-xml.xml]
>
> 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
> ___



xml-cut.pdf
Description: xml-cut.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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster

Pablo Rodriguez 
12. Oktober 2016 um 16:38

Wolfgang,

your approach is right, but hasn’t Thomas hit a bug?

It’s a limitation of the way how linenumbering works.

The numbers are added before the shipout of the page
but on the page where the numer end the local settings
are forgotten when the numbers are added on ConTeXt
uses the global values instead when it add them.

According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from 
\setuplinenumbering.

I changed it, valid keys are continue, start, step and method.

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] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz

On 12.10.2016 16:38, Pablo Rodriguez wrote:

Wolfgang,

your approach is right, but hasn’t Thomas hit a bug?

According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.



Thanks Wolfgang, this solution works (I must admit I wasn't aware of 
\definelinenumbering). Nevertheless, I think Pablo is right because this 
means one must define every setup in advance. In some situations, it 
might be useful to change on the fly, and I think this "bleeding" of 
setups into preceding blocks is unexpected.


All best

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

[NTG-context] new beta

2016-10-12 Thread Hans Hagen

Hi,

I uploaded a new beta. There is a new command \setextrafontkerns which 
is described in the fonts-mkiv manual section 8.12. probably not that 
useful but kind of fun.


Hans

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

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

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

2016-10-12 Thread Mica Semrick
I often find adding 'TeX' to my search query to be helpful. Something like 
'ConTeXt TeX margin error'

-m

On October 12, 2016 8:29:45 AM PDT, Yi Qingliang  
wrote:
>can we change name other than context? it is too difficult to search
>it on google :(
>
>On Wed, Oct 12, 2016 at 7:30 PM, Jonas Baggett 
>wrote:
>> Le 10. 10. 16 à 09:24, Hans Hagen a écrit :
>>
>> 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.
>>
>>
>> Yes that would be great to have a page on the wiki. Then I could
>describe
>> there the goals of the project and elaborate and put there the
>> specifications of the project. Then waiting for some feed-back in
>order to
>> improve the ideas behind the project. When the specifications are
>mature
>> enough, the technological choices could be made and finally I will be
>able
>> to put there a roadmap. At which point it would be easier to know
>what needs
>> to be done and how much time investment will be needed, and what are
>the
>> tasks I can reasonably do for the project and what are those where
>help is
>> welcome. Hopefully there would be other people at that point who
>could share
>> the vision and are willing to help. How do you think about that ?
>>
>> Have a nice afternoon,
>> 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
>>
>___
>___
>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] Ideas for improving documentation of ConTeXt

2016-10-12 Thread Yi Qingliang
can we change name other than context? it is too difficult to search
it on google :(

On Wed, Oct 12, 2016 at 7:30 PM, Jonas Baggett  wrote:
> Le 10. 10. 16 à 09:24, Hans Hagen a écrit :
>
> 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.
>
>
> Yes that would be great to have a page on the wiki. Then I could describe
> there the goals of the project and elaborate and put there the
> specifications of the project. Then waiting for some feed-back in order to
> improve the ideas behind the project. When the specifications are mature
> enough, the technological choices could be made and finally I will be able
> to put there a roadmap. At which point it would be easier to know what needs
> to be done and how much time investment will be needed, and what are the
> tasks I can reasonably do for the project and what are those where help is
> welcome. Hopefully there would be other people at that point who could share
> the vision and are willing to help. How do you think about that ?
>
> Have a nice afternoon,
> 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
> ___
___
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] context xml manual

2016-10-12 Thread Wolfgang Schuster

Meer, Hans van der 
12. Oktober 2016 um 16:49
Did a small disaster happen in typesetting the XML manual? I find 
"MISSING SETUP"s all over the place. See the sample page.

This is ConTeXt  ver: 2016.10.08 00:11 MKIV beta

xml-mkiv.tex (line 24):

-\loadsetups[i-en-xml.xml]
+\loadsetups[i-xml.xml]

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
___

[NTG-context] context xml manual

2016-10-12 Thread Meer, Hans van der
Did a small disaster happen in typesetting the XML manual? I find "MISSING 
SETUP"s all over the place. See the sample page.
This is ConTeXt  ver: 2016.10.08 00:11 MKIV beta

Hans van der Meer






xml-mkiv-page.pdf
Description: xml-mkiv-page.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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
On 10/12/2016 04:25 PM, Wolfgang Schuster wrote:
>> Thomas A. Schmitz 12. Oktober 2016 um 16:18
>>
>> Hi Otared,
>>
>> thanks for your suggestion, but it only shifts the problem elsewhere
>> without solving it. New example (I need several different
>> linenumbering setups in my real word document so I can't put a general
>> setup before the \starttext):
>
> \definelinenumbering[one][color=red]
> \definelinenumbering[two][color=blue]

Wolfgang,

your approach is right, but hasn’t Thomas hit a bug?

According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster

Thomas A. Schmitz 
12. Oktober 2016 um 16:18



Hi Otared,

thanks for your suggestion, but it only shifts the problem elsewhere 
without solving it. New example (I need several different 
linenumbering setups in my real word document so I can't put a general 
setup before the \starttext):

\definelinenumbering[one][color=red]
\definelinenumbering[two][color=blue]

\starttext

\startlinenumbering[one]
\input knuth
\stoplinenumbering

\startlinenumbering[two]
\input knuth
\stoplinenumbering

\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] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz

On 12.10.2016 15:48, Otared Kavian wrote:

Hi Thomas,

It seems that if you use \setuplinenumbering the issue is fixed: please have a 
look here:

\setuppapersize [A6]
\setuplinenumbering[location=text,distance=0.5cm]
\starttext

\startlinenumbering

\dorecurse{2}{\input tufte}

\stoplinenumbering

dummy

\stoptext

Best regards: OK



Hi Otared,

thanks for your suggestion, but it only shifts the problem elsewhere 
without solving it. New example (I need several different linenumbering 
setups in my real word document so I can't put a general setup before 
the \starttext):


\setuppapersize [A6]

\starttext

\start
\setuplinenumbering  [location=text,distance=0.5cm]
\startlinenumbering

\dorecurse{2}{\input tufte}

\stoplinenumbering
\stop

\start
\setuplinenumbering [location=text,distance=1.5cm]
\startlinenumbering
\dorecurse{2}{\input knuth}

\stoplinenumbering
\stop

dummy

\stoptext

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

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

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

2016-10-12 Thread Mingranina Gingranina
Dear Mohammad,
Hello,

\pagenumbering is not defined or redined in XePersian. In fact, in
TeXLive 2016, it is only defined in the following files:

texmf-dist/tex/latex/base/latex.ltx
texmf-dist/tex/latex/feupphdteses/feupphdteses.sty
texmf-dist/tex/latex/kluwer/kluedit.sty
texmf-dist/tex/latex/kluwer/kluwer.cls
texmf-dist/tex/latex/pdfwin/pdfwin.sty
texmf-dist/tex/latex/romanneg/romanneg.sty
texmf-dist/tex/plain/gustlib/plmac218/plidxmac.tex
texmf-dist/tex/plain/makeindex/idxmac.tex

I think it would be better to look at arabluatex's code for solving the problem.

Regards,
Mingranina

On 10/11/16, Mohammad Hossein Bateni  wrote:
> This seems to not belong in the ConTeXt mailing list.  You'd be better off
> asking it on Stack Exchange or on luatex mailing list.  The short answer is
> it depends on the "format file" (and perhaps the LaTeX packages) you're
> using.  Most probably, you either use "plain" or "latex", and then you
> should see how they generate the page numbers and define a macro that
> provides the Persian numbers, etc.  See how XePersian package handles it.
>  (Search for \pagenumbering.)
>
> On Mon, Oct 10, 2016 at 11:44 PM, Mingranina Gingranina <
> mingran...@gmail.com> wrote:
>
>> 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
>> 
>> ___
>>
>
___
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] ANN: Updated Vim scripts for ConTeXt

2016-10-12 Thread Nicola

On 2016-10-12 10:18:10 +, DesdeChaves said:


Thanks a lot.

Autocompletation don't works for me. Perhaps I have a wrong .vimrc 
file. Can you share your .vimrc file or a working .vimrc file.


There is nothing to be configured. The mapping to trigger the 
completion is 

(ctrl-x followed by ctrl-o) and it works inside \startMP...\stopMP... blocks.
Doesn't that work for you?

Maybe you expected the suggestions to pop-up without pressing any key? 
For that, you

need a plugin like NeoComplete or AutoComplPop.

Nicola


___
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] position of linenumbering

2016-10-12 Thread Otared Kavian
Hi Thomas,

It seems that if you use \setuplinenumbering the issue is fixed: please have a 
look here:

\setuppapersize [A6]
\setuplinenumbering[location=text,distance=0.5cm]
\starttext

\startlinenumbering 

\dorecurse{2}{\input tufte}

\stoplinenumbering

dummy

\stoptext

Best regards: OK


> On 12 Oct 2016, at 15:38, Thomas A. Schmitz  
> wrote:
> 
> Hi all,
> 
> consider this example:
> 
> \setuppapersize [A6]
> 
> \starttext
> 
> \startlinenumbering [location=text,distance=0.5cm]
> 
> \dorecurse{2}{\input tufte}
> 
> \stoplinenumbering
> 
> dummy
> 
> \stoptext
> 
> on the second page, the position of the linenumbering changes and does not 
> follow the "distance" setting. Can this be fixed? And if yes, how?
> 
> Thanks and best wishes
> 
> 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://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
___

[NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz

Hi all,

consider this example:

\setuppapersize [A6]

\starttext

\startlinenumbering [location=text,distance=0.5cm]

\dorecurse{2}{\input tufte}

\stoplinenumbering

dummy

\stoptext

on the second page, the position of the linenumbering changes and does 
not follow the "distance" setting. Can this be fixed? And if yes, how?


Thanks and best wishes

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://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-12 Thread Jonas Baggett

Le 10. 10. 16 à 09:24, Hans Hagen a écrit :

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. 


Yes that would be great to have a page on the wiki. Then I could 
describe there the goals of the project and elaborate and put there the 
specifications of the project. Then waiting for some feed-back in order 
to improve the ideas behind the project. When the specifications are 
mature enough, the technological choices could be made and finally I 
will be able to put there a roadmap. At which point it would be easier 
to know what needs to be done and how much time investment will be 
needed, and what are the tasks I can reasonably do for the project and 
what are those where help is welcome. Hopefully there would be other 
people at that point who could share the vision and are willing to help. 
How do you think about that ?


Have a nice afternoon,
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] ANN: Updated Vim scripts for ConTeXt

2016-10-12 Thread DesdeChaves
Thanks a lot.

Autocompletation don't works for me. Perhaps I have a wrong .vimrc file.
Can you share your .vimrc file or a working .vimrc file.

I use MacVim only with Context.

Thanks a lot.

I'm in MacVim 8.0.27.

Have a nice day,

Jorge



2016-10-11 10:46 GMT+01:00 Nicola :

> On 2016-10-11 09:33:36 +, Henning Hraban Ramm said:
>
> Am 2016-10-11 um 09:26 schrieb Nicola :
>>
>> No, everything just works(tm) :) See :help ftplugin-overrule for the
>>> details.
>>>
>>
>> No, unfortunately not everything:
>>
>> Error detected while processing /Users/hraban/.vim/syntax/context.vim:
>> line   22:
>> E121: Undefined variable: v:t_list
>> E15: Invalid expression: type(s:context_include) ==# v:t_list
>> Error detected while processing /Users/hraban/.vim/ftplugin/context.vim:
>> line   18:
>> E539: Illegal character : formatoptions+=tjcroql2
>>
>>
>> Maybe my vim is too old?
>> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 23 2016 20:20:57)
>>
>
> Yes, the scripts are meant to be used with Vim 8. You should be able to
> work around those errors by replacing v:t_list with 3 and removing 'j'
> from formatoptions, but other things, like asynchronous typesetting,
> won't work anyway.
>
> Nicola
>
>
>
> 
> ___
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> 
> ___
>



-- 
Atentamente

DesdeChaves
___
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-12 Thread Jonas Baggett

Le 10. 10. 16 à 09:57, Thomas A. Schmitz a écrit :


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.


I wasn't thinking about ConTeXt modules here but choosing the right web 
framework that has the right modules.


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


Ok, thanks for pointing a possible problem with code quality. Yes it is 
something we have to think about and find a solution that will ensure 
good code quality among the examples. Here would be my vision for the 
project in 3 points :
1. It's about learning ConTeXt by examples, not only learning how to 
make the code work as expected, but to make it work the correct way.
2. Encourage a collaborative spirit so that the community is willing to 
help anyone to reach point 1 (by posting examples and making suggestion 
or improving existing examples).

3. See below
If this vision could be enough advertised to those who want to 
contribute with their examples, I believe a lot less control would be 
need, as the community will do the control itself.


Concerning outdated code, as I understood, the ConTeXt core interface is 
stable so if we add a tag for the ConTeXt Mark (II, IV, VI) that would 
do it. But for examples using modules, yes that's right, interfaces 
could change and make the existing examples outdated. So I believe that 
having in the database a description of the modules interface, will 
mitigates the problem. And when a command in a module becomes 
deprecated, then the description of the module interface needs to be 
updated and a hint could be added to fix outdated code, like : "command> is deprecated, replace it by ". Then warnings will 
be added automatically on examples using outdated code with useful hints 
to fix it.


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.


So if I understand well the philosophy difference between LaTeX and 
ConTeXt, the LaTeX philosophy would be about using document classes and 
avoid making much tweaks but be more focused on the content. With 
ConTeXt on the other hand, the philosophy is more about being able to 
customize everything.


Actually there could be 2 categories of ConTeXt documents on the database :
1. Those that are more aimed toward making others learn ConTeXt, like 
tutorials

2. Those who are templates.

It's very likely that the 2nd category will be more present, as I 
imagine that a typical contribution would be someone who spend some time 
with a document he has made in ConTeXt and is happy with the result and 
want to post it on the database in order to allow others to benefit from 
his work.


Indeed, the third point of my vision would be to make a big collection 
of templates available, but my goal isn't to go against the ConTeXt 
philosophy. The idea would be more like if someone has a particular 
need, he could find a suitable template in the database, take it, 
analyze it, tweak it and learn more about ConTeXt in the process. 
Templates would be also a good advertisement for ConTeXt : before 
someone could be interested in ConTeXt he has to believe that ConTeXt 
could fit his needs and that it hopefully isn't a pain to use. If he 
could find a suitable template, he would be in a very short time 
convinced that ConTeXt can do what he needs to and that it is nice to 
use thanks to its clean well-though synthax. Then he will probably 
become a new ConTeXt user.


I believe that having precise tags and allow to sort by popularity will 
help to structure the database so that it doesn't become haphazard and 
also the higher quality works will have more visibility.


Before starting any project it is good to analyze 

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

2016-10-12 Thread Henri Menke
I got it working using the patch below.  One has to rebuild the format using

context --make; contextjit --make; mtxrun --script plain --make; mtxrunjit 
--script plain --make

for the changes to take effect.


--- typo-brk.lua2016-10-12 11:15:31.769189346 +0200
+++ typo-brk.lua2016-10-12 11:16:16.897979419 +0200
@@ -272,6 +272,7 @@
 if map then
 local cmap = map[char]
 if cmap then
+setattr(current,a_breakpoints,unsetvalue) -- should 
not be needed
 -- for now we collect but when found ok we can move 
the handler here
 -- although it saves nothing in terms of performance
 local lang = getfield(current,"lang")
@@ -301,7 +302,6 @@
 else
 current = getnext(current)
 end
-setattr(start,a_breakpoints,unsetvalue) -- should not 
be needed
 else
 current = getnext(current)
 end


On 10/11/2016 03:45 PM, Mojca Miklavec wrote:
> On 11 October 2016 at 15:33, Henri Menke wrote:
>> On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
>>> 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
>>
>> Okay.  This does not make *any* sense!  I started merging files until the 
>> bug disappeared and it happened when I merged cont-new.mkiv.  The diff is
>>
>> -\newcontextversion{2016.05.17 10:06}
>> +\newcontextversion{2016.07.01 16:28}
>>
>> So this is basically the version number.  Can someone enlighten me what is 
>> going on?
> 
> I would suspect that changing the version number triggers regenerating
> the formats. Most likely one of the other files fixed the problem, but
> the problem only disappeared once you regenerated the format. That's
> pure guesswork though.
> 
> 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
> ___
> 

___
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] filter module: call function before calling the filter command?

2016-10-12 Thread Henning Hraban Ramm
Ahoi!

As you probably know ;), I’m using the filter module with LilyPond, setup see 
below.

Now, I’d like to overwrite "texsettings.ly", containing the setting of 
ConTeXt’s text width, each time before I call LilyPond, to adapt its note line 
width to the current text width. That would automate the line width adaption to 
e.g. columns.

In the module’s documentation under "Dealing with expansion" I found the 
example of creating the filter command in a macro.
Can I use this to call a Lua function first and then LilyPond? Or is there a 
better way?


-

\usemodule[filter]

\startbuffer[lilypond::settings]
\include "../lilysettings.ly" % file must be in same folder as text, not in 
lilytemp
\include "texsettings.ly"
\stopbuffer

\def\LILYTEMP{lilytemp} % name of folder for LilyPond/buffer files

\def\ParseLilypondFile#1% #1 is the name of the output file
  {\ctxlua{thirddata.parselilypondfile("#1")}}

\startluacode

 thirddata = thirddata or {}
 
 -- create temp folder if missing
 if not lfs.isdir("\LILYTEMP") then
   lfs.mkdir("\LILYTEMP")
 end

 -- write text width to include file
 io.savedata("\LILYTEMP/texsettings.ly", "\\paper { line-width = " .. 
string.gsub(number.topoints(tex.dimen.textwidth),"pt","\\pt") .. " } 
\n")
 
 function thirddata.parselilypondfile(name)
   -- include all systems (pages)
   -- name is like \LILYTEMP/mainfile-temp-lilypond-21.pdf
   logs.report("LILYPOND","name='" .. name .. "'")
   local scname = string.gsub(name, '%.pdf$', '-systems.count')
   local syco = tonumber(io.loaddata(scname)) or 0
   
   for nr = 1, syco do
 logs.report("LILYPOND","including system no." .. nr)
 context("\\externalfigure[" .. string.gsub(name, '%.pdf$', '-' .. nr) .. 
"]")
   end
 end
\stopluacode

\defineexternalfilter[lilypond]
[continue=yes,
cache=yes,
%purge=no,
readcommand=\ParseLilypondFile,
bufferbefore={lilypond::settings},
directory=\LILYTEMP/,
output={\externalfilterbasefile.pdf},
filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts 
-dno-gs-load-fonts -o"\LILYTEMP/\externalfilterbasefile" 
"\externalfilterinputfile"}]

\starttext

-



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
___

[NTG-context] loading and executing xml-buffer

2016-10-12 Thread Meer, Hans van der
I did not succeed in on-the-fly loading data from an xml-buffer and 
subsequently executing its content.
The accompanying minimal example of a  shows what I strive to 
accomplish.
The node  contains the buffered data (abc meant to be set in bold) and 
node  executing the typesetting. As can be seen the output the 
xyz outside  is correctly set in bold, but the contents of 
 is not processed: the xml is just reproduced. Obviously there is some 
misunderstanding on my part.
I would like to be pointed in the right direction.

Hans van der Meer

\startbuffer[demo-xml]



abc



xyz

\stopbuffer

\enabletrackers[lxml.loading,lxml.setups]

\startxmlsetups xml:demo:base
\xmlsetsetup{#1}{document|buffer|getbuffer|execbuffer|b}{xml:demo:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:buffer
... enter  for "\xmlatt{#1}{name}"\crlf
\xmltobuffer{#1}{.}{\xmlatt{#1}{name}}
\stopxmlsetups

\startxmlsetups xml:demo:getbuffer
... enter  for "\xmlatt{#1}{name}"\crlf
\xmlprocessbuffer{}{\xmlatt{#1}{name}}{xml:demo:execbuffer}
\stopxmlsetups

\startxmlsetups xml:demo:execbuffer
... enter \crlf
\xmlall{#1}{buffer/*}
\stopxmlsetups

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

\startxmlsetups xml:demo:document
\writestatus{TEST}{start document}
start document "\xmldocument"\blank
\xmlflush{#1}\blank
stop document "\xmldocument"\blank
\writestatus{TEST}{stop document}
\stopxmlsetups

\starttext
\textrule{Demo of buffer: demo.xml}
==\crlf
\xmlprocessbuffer{demo}{demo-xml}{}
==\crlf
\stoptext






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

[NTG-context] OT: punctuation

2016-10-12 Thread Henning Hraban Ramm
http://www.unshelved.com/2016-10-12


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] Parsing ConTeXt errors

2016-10-12 Thread Nicola

On 2016-10-11 22:13:12 +, Hans Hagen said:


On 10/11/2016 9:37 PM, Nicola wrote:

On 2016-10-11 18:52:32 +, Alan Braslau said:


Of course, I *never* make MetaPost errors... ;-)

However, you can search the log file for
metapost> error:


Sure. But there is no line number. Compare with a typical TeX error:


because there are no lines ... the library gets strings


Would it be possible to report at least the location of the enclosing
\...MP... block?

Nicola


___
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-12 Thread Otared Kavian
On 11 Oct 2016, at 15:58, Henri Menke  wrote:
>> […]
> 
> I have to correct myself, it just looked like it worked.  It didn't generate 
> the PDF due to
> 
> Fatal Error > Your format does not match the base files!
> 
> The search continues.

Hi Henri,

The error is indeed extremely bizarre, and maybe funny, but if you want just to 
find a temporary solution in order to finish your project, it seems that adding 
a special word (or maybe something else…) allows the typesetting of your file. 

I tried the following modification of your sample with ConTeXt  ver: 2016.05.17 
19:20 (and LuaTeX Version 0.95.0) from TeX Live 2016.
The file name is bizarre-error.tex (if there no hyphen in the file name 
everything is allright).
It compiles both with the latest beta in standalone ConTeXt, as well as with 
the stable one from TeXLive 2016.

It is important to have a blank line before the line containing «  
\phantom{Junior} ».
If I remove the line «  \phantom{Junior} » then the file does not compile with 
the version of ConTeXt from TeXLive… (but it does with the latest beta)
If I replace it with the word « Junior », again it compiles fine. 
However if I replace that line with «  \phantom{Bizarre} » or even the word « 
Bizarre », the file does not compile :-)
But if your replace it with « Bizarre \phantom{Junior} » or with « 
\phantom{Bizarre} \phantom{Junior} » it compiles again…

All this seems funny to me, but I understand that it might stress you!

Best regards: OK

% begin bizarre-error.tex
\version[temporary]

\setbreakpoints[compound]

\setuppagenumbering[alternative=doublesided]

\starttext

\startstandardmakeup
\stopstandardmakeup

{\em Detailtypografie} by Friedrich Frossman 

\phantom{Junior}

\stoptext
% end bizarre-error.tex
___
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
___