Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread Thomas A. Schmitz

> On 13. Jun 2017, at 09:53, luigi scarso  wrote:
> 
>> Yet there is no x-corres.mkiv. Who can help me out?
>> 
> I don't remember x-corres.mkiv, but
> mkiv has a guide
> tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf

Yes, typesetting xml in mkiv is a completely different beast from mkii. It is 
vastly superior and very powerful, but you will have to relearn and recode. 
There is the manual Luigi mentioned, there are also some pages on the wiki to 
facilitate the transition.

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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] next beta

2017-06-13 Thread Mathias Schickel

> Am 12.06.2017 um 18:17 schrieb Hans Hagen :
> 
> On 6/12/2017 5:56 PM, Mathias Schickel wrote:
>> Hi Hans,
>> if I get it right this means that you provide a mechanism that brakes 
>> formulas automatically across several lines? I appreciate this very much! 
>> Thank you for including this into the next beta!
>> Would it be possible to do something like that for breaking long formulas 
>> across pages (or is that maybe included in the new mechanism)?
> that's more complex and interferes with other aspects so maybe later

Okay, that would be really great. Maybe a semi-automatic breaking across pages 
could be doable. The AMS package for LaTeX implements something like that. If 
you write \allowbreak (I am not absolutely sure if this is the true command, 
but it is something like that) at a line of an equation with multiple lines the 
typesetting algorithm knows that the formula can be broken across pages at that 
point.
If something like that could be done in ConTeXt it would be really great. At 
present it is somewhat complicated to handle equations with many lines since 
you have to typeset the text and check if everything fits. If you could mark 
certain lines of an equation to be allowed to be broken at the end of a page, 
working with multiple line equations would be much easier and faster.

> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

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

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

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread luigi scarso
On Tue, Jun 13, 2017 at 9:40 AM,   wrote:
> Hello all,
>
> I have been using Context mkii with the x-corres.mkii module for a number of 
> years now, for many different purposes (mailings, certificates, etc). The 
> module works with an xml (actually rng) file with the following structure:
>
> 
> 
> Janssen
> Piet
> 
> 
>
> The contents of each item is grabbed and put in the document by means of the 
> command \XMLflush{formalname}.
>
> I would like to shift to mkiv now with all its possibilities.
>
> Yet there is no x-corres.mkiv. Who can help me out?
>
I don't remember x-corres.mkiv, but
mkiv has a guide
tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf

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

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

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread r . ermers
The problem is that I am not a programmer: I do not know where to start …

Robert

> Op 13 jun. 2017, om 10:31 heeft Thomas A. Schmitz 
>  het volgende geschreven:
> 
> 
>> On 13. Jun 2017, at 09:53, luigi scarso  wrote:
>> 
>>> Yet there is no x-corres.mkiv. Who can help me out?
>>> 
>> I don't remember x-corres.mkiv, but
>> mkiv has a guide
>> tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf
> 
> Yes, typesetting xml in mkiv is a completely different beast from mkii. It is 
> vastly superior and very powerful, but you will have to relearn and recode. 
> There is the manual Luigi mentioned, there are also some pages on the wiki to 
> facilitate the transition.
> 
> 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  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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

[NTG-context] nested \xmlprocessfile calls

2017-06-13 Thread Meer, Hans van der
In a document
 
a series of xml files is processed.

The nodes processed are as usual defined in
\xmlsetsetup{#1}\writestatus{}{MARKER}{node1|node2|..}{name:*}\stopxmlsetups
\xmlregistersetup{name:setups}

The root is called with \xmlprocessfile{root}{filename}{} and has a setup as 
follows:
\startxmlsetups name:root
% each inner  node is in turn called with
  \xmlprocessfile{root-node in file}{filename from attribute}{}
\stopxmlsetups

The problem is that the \xmlsetsetup is called each time one of the file's is 
processed, as shown by the MARKER in the log. However, it is the intention to 
process the setups one and for all.
How can the apparent rereading on the defining setups be restricted to an 
inital setup only?

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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] next beta

2017-06-13 Thread Hans Hagen

On 6/13/2017 8:06 AM, Aditya Mahajan wrote:

On Mon, 12 Jun 2017, Hans Hagen wrote:


i.e. (poor mans) multiline display math


Interesting. An important reference for automatic breaking of multiline 
display are the notes of Michael J Downes included in the documentation 
of breqn: see section 14 (page 16) of 
http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn.pdf 


I remember a talk by giuseppe about nath (or so) that did something nice 
but anyway, the main question with that kind of trickery is if one is 
willing to add structure info or not .. anything semi-clever will be 
limited.


(Ignore the implementation details, which were a series of hacks to make 
things work in pdftex, but section 14 explains the different display 
math layouts and a strategy to choose between them. It will be really 
nice to have something comparable in ConTeXt.
You mean these boxed lines? I'm not a math expert so the subtle details 
are lost to me. I'd rather start from reasonable demands (after all very 
complex stuff often is best done manually anyway).


For instance

foo = bar + bar + bar
  gnu + gnu

is doable without much trouble if one is willing to enter

foo = \alignhere bar + bar + bar
  gnu + gnu

and such.

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

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

Re: [NTG-context] Character translation with Luaotfload

2017-06-13 Thread Hans Åberg

> On 16 Apr 2017, at 19:41, Hans Hagen  wrote:
> 
> basically you can do this:
> 
> -- load a luatex plain
> -- load texinfo
> -- redefine some macros that deal with fonts
> 
> -- load the source to be processed
> 
> the texinfo code looks quite clean so overloading some should be doable (if 
> you know what to overload)

Do you have any ideas on how to run .texi files with ConTeXt? The texinfo.tex 
file has already been hacked for LuaTeX, so it looks complicated to get around 
that, among other things.


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

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

Re: [NTG-context] typesetting serial letters in Context

2017-06-13 Thread r . ermers
I can take the information out of the nodes. The main problem is to use them in 
a layout and in a sequences other the one they appear in the xml data file.

In the current (mkii) file I have something like this: 
\midaligned{\XMLflush{formalname}, \XMLflush{informalname}}.


Another point on my wishlist is to change the background of the certificate 
depending on the type of certificate. In mkii I manage to do this as follows:

File: participants.xml


Janssen
Piet
levelA



certificates.tex:
\resetlayer[module]{}
\setlayer[module][][]{\externalfigure[\XMLflush{courselevel}[width=\paperwidth,height=\paperheight]}

\useexternalfigure[levelA][sjablonen/backgroundlevelA.pdf]

Help is very much appreciated!

Robert


> Op 13 jun. 2017, om 09:53 heeft luigi scarso  het 
> volgende geschreven:
> 
> On Tue, Jun 13, 2017 at 9:40 AM,   wrote:
>> Hello all,
>> 
>> I have been using Context mkii with the x-corres.mkii module for a number of 
>> years now, for many different purposes (mailings, certificates, etc). The 
>> module works with an xml (actually rng) file with the following structure:
>> 
>> 
>>
>>Janssen
>>Piet
>>
>> 
>> 
>> The contents of each item is grabbed and put in the document by means of the 
>> command \XMLflush{formalname}.
>> 
>> I would like to shift to mkiv now with all its possibilities.
>> 
>> Yet there is no x-corres.mkiv. Who can help me out?
>> 
> I don't remember x-corres.mkiv, but
> mkiv has a guide
> tex/texmf-context/doc/context/documents/general/manuals/xml-mkiv.pdf
> 
> -- 
> luigi
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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

Re: [NTG-context] next beta

2017-06-13 Thread Hans Hagen

On 6/13/2017 1:18 PM, Mathias Schickel wrote:



Am 12.06.2017 um 18:17 schrieb Hans Hagen :

On 6/12/2017 5:56 PM, Mathias Schickel wrote:

Hi Hans,
if I get it right this means that you provide a mechanism that brakes formulas 
automatically across several lines? I appreciate this very much! Thank you for 
including this into the next beta!
Would it be possible to do something like that for breaking long formulas 
across pages (or is that maybe included in the new mechanism)?

that's more complex and interferes with other aspects so maybe later


Okay, that would be really great. Maybe a semi-automatic breaking across pages 
could be doable. The AMS package for LaTeX implements something like that. If 
you write \allowbreak (I am not absolutely sure if this is the true command, 
but it is something like that) at a line of an equation with multiple lines the 
typesetting algorithm knows that the formula can be broken across pages at that 
point.
If something like that could be done in ConTeXt it would be really great. At 
present it is somewhat complicated to handle equations with many lines since 
you have to typeset the text and check if everything fits. If you could mark 
certain lines of an equation to be allowed to be broken at the end of a page, 
working with multiple line equations would be much easier and faster.
attached what will be provided ... experimental for a while (not in the 
mood now for harder stuff)


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
-


align-002.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] next beta

2017-06-13 Thread Hans Åberg

> On 12 Jun 2017, at 17:25, Hans Hagen  wrote:
> 
> Hi,
> 
> experimental in next beta:

There is a TeX Live updating utility, at least on the MacOS distribution, that 
allows for server synchronizations between the yearly updates. Is ConTeXt 
updated there?


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

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

Re: [NTG-context] next beta

2017-06-13 Thread Aditya Mahajan

On Tue, 13 Jun 2017, Hans Hagen wrote:

attached what will be provided ... experimental for a while (not in the mood 
now for harder stuff)


Thanks. I'll play around with it.

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

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

Re: [NTG-context] next beta

2017-06-13 Thread Aditya Mahajan

On Mon, 12 Jun 2017, Hans Hagen wrote:


i.e. (poor mans) multiline display math


Interesting. An important reference for automatic breaking of multiline 
display are the notes of Michael J Downes included in the documentation of 
breqn: see section 14 (page 16) of 
http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn.pdf


(Ignore the implementation details, which were a series of hacks to make 
things work in pdftex, but section 14 explains the different display math 
layouts and a strategy to choose between them. It will be really nice to 
have something comparable in ConTeXt.


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

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

[NTG-context] typesetting serial letters in Context

2017-06-13 Thread r . ermers
Hello all,

I have been using Context mkii with the x-corres.mkii module for a number of 
years now, for many different purposes (mailings, certificates, etc). The 
module works with an xml (actually rng) file with the following structure:



Janssen
Piet

 

The contents of each item is grabbed and put in the document by means of the 
command \XMLflush{formalname}.

I would like to shift to mkiv now with all its possibilities.

Yet there is no x-corres.mkiv. Who can help me out?

Regards,

Robert


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

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

Re: [NTG-context] next beta

2017-06-13 Thread Mohammad Hossein Bateni
this looks really cool and useful!  thanks a lot, Hans!

On Tue, Jun 13, 2017 at 10:46 AM, Hans Hagen  wrote:

> On 6/13/2017 1:18 PM, Mathias Schickel wrote:
>
>>
>> Am 12.06.2017 um 18:17 schrieb Hans Hagen :
>>>
>>> On 6/12/2017 5:56 PM, Mathias Schickel wrote:
>>>
 Hi Hans,
 if I get it right this means that you provide a mechanism that brakes
 formulas automatically across several lines? I appreciate this very much!
 Thank you for including this into the next beta!
 Would it be possible to do something like that for breaking long
 formulas across pages (or is that maybe included in the new mechanism)?

>>> that's more complex and interferes with other aspects so maybe later
>>>
>>
>> Okay, that would be really great. Maybe a semi-automatic breaking across
>> pages could be doable. The AMS package for LaTeX implements something like
>> that. If you write \allowbreak (I am not absolutely sure if this is the
>> true command, but it is something like that) at a line of an equation with
>> multiple lines the typesetting algorithm knows that the formula can be
>> broken across pages at that point.
>> If something like that could be done in ConTeXt it would be really great.
>> At present it is somewhat complicated to handle equations with many lines
>> since you have to typeset the text and check if everything fits. If you
>> could mark certain lines of an equation to be allowed to be broken at the
>> end of a page, working with multiple line equations would be much easier
>> and faster.
>>
> attached what will be provided ... experimental for a while (not in the
> mood now for harder stuff)
>
> Hans
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Typesetting all documents in a project

2017-06-13 Thread Mike O'Connor
Thanks for the explanation and wiki.contextgarden.net link.

Should ConTeXt simply refuse to process the project file, instead of the 
message that it is producing a project PDF?

In some cases might it be helpful to regenerate in one pass the complete set of 
products for a project. I guess that is a job for a shell script rather than 
TeXShop.

Thanks again Henri,

Mike




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

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