Re: [NTG-context] question about STIX fonts (versions one and two)

2017-06-18 Thread Henri Menke
On Mon, 2017-06-19 at 07:19 +0200, Pablo Rodriguez wrote:
> Dear list,
> 
> I have the following sample:
> 
> \setupbodyfont[stixtwo]
> \starttext
> \input zapf
> \stoptext
> 
> Even if \setupbodyfont[stix] is used, I don’t get any text. The fonts
> seem to be missing.
> 
> I have checked this with a new ConTeXt Suite install and the same results.
> 
> Are the STIX fonts distributed with the ConTeXt Suite?

No.  You can get them from http://www.stixfonts.org/

> Many thanks for your help,
> 
> Pablo
___
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] question about STIX fonts (versions one and two)

2017-06-18 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupbodyfont[stixtwo]
\starttext
\input zapf
\stoptext

Even if \setupbodyfont[stix] is used, I don’t get any text. The fonts
seem to be missing.

I have checked this with a new ConTeXt Suite install and the same results.

Are the STIX fonts distributed with the ConTeXt Suite?

Many thanks for your help,

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

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

Re: [NTG-context] next beta

2017-06-18 Thread Henri Menke
On Sun, 2017-06-18 at 13:00 +0200, Hans Hagen wrote:
> On 6/17/2017 3:48 PM, Jeong Dal wrote:
> > 
> > Dear Hans,
> > 
> > I updated ConTeXt beta today and run your sample for long formula.
> > It works nice and it is the feature what many math people want I think.
> > Thank you for your concern.
> > 
> > One thing that I’d like say is that a new line in the splitted long formula 
> > usually starts with
> > operations in many math books.
> > But, in the ourput  of your example, every line ends with ‘+’ sign and 
> > begin a new line with a
> > ‘number’.
> > 
> > Would you please check it once more?
> this is how tex works: just look at inline math

Let me quote the TeXbook (page 195):

»Although formulas within a paragraph always break after binary operations and 
relations, displayed
formulas always break before binary operations and relations.«

On the other hand, right above this paragraph, it says:

»It's quite an art to decide how to break long displayed formulas into several 
lines; TeX never
attempts to break them, because no set of rules is really adequate.«

> i played with it a bit but had to adapt the engine for a bit more 
> control (stepwise the matyh machinery is opened up i.e. hard coded steps 
> become configureable)
> 
> anyway, the question is not implementing but control: it's not default 
> tex behaviour so it has to be turned on (and then after a while we 
> forget that it can be turned on i guess)
> 
> (no clue what keyword to use for controling it)
> 
> 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 serial letters in Context

2017-06-18 Thread r . ermers
Dear Context’ers,

I am trying to use the letter module in mkiv for typesetting serial letters 
from an xml database.

Thanks, Thomas for looking into this. I appreciate it very much. Yet I don’t 
know either whether I actually need the letter module, but it seemed reasonable 
to try this first.

Today I tried to insert some simple luatex code which I found on another forum.

The results are promising:

a. The address appears.
b. The salutation + formalname also appear.

Yet there are some problems:

1. the address elements appear in one line, not underneath as desired,
2. When I add text such as Knuth or references to the database, Context stops.

See the code below.

My question at this point is: how can I proceed? Do I actually need the letter 
module?

Kind regards,

Robert



brieven2mkiv.pdf
Description: Adobe PDF document


\usemodule[letter]

\starttext
\startbuffer[participants]




Hendriks
Karel
mr.
K.
levelA
1 june 2017  
Arnhem

  Mr. K. Hendriks
  Grotestraat 5
  1234 Arnhem

  

  
Janssen
Piet
P.
mr.
levelA
1 june 2017  
Nijmegen

 Mr. P. Janssen
 Kortestraat 8
 1234 Nijmegen

  



\stopbuffer

\startxmlsetups xml:setups
\xmlsetsetup{#1}{contacts|contact|address|prefix}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:setups}

\startxmlsetups xml:contacts
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 
 \xmlflush{#1}
 \par
\stopxmlsetups

\startxmlsetups xml:contact

\defineletterelement[layer][address][example]%
   {\correspondenceparameter{toname}\\
   \correspondenceparameter{toaddress}
   \par}
   
   \setupletterlayer[address][alternative=example]

\startletter
  [opening={{Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},}},
   closing={Kind regards,},
   signature={Sender},
   toaddress={{\xmltext{#1}{/address}}},
   subject={Interesting offer}]

%\input knuth

%{\xmltext{#1}{/informalname}}
%\xmltext{#1}{/address/p}

\stopletter

\stopxmlsetups

\startluacode
userdata = userdata or { }
userdata.letter = { }
\stopluacode


\xmlprocessbuffer{main}{participants}{}
\stoptext


> Op 18 jun. 2017, om 17:33 heeft Thomas A. Schmitz 
>  het volgende geschreven:
> 
> On 06/15/2017 11:58 PM, r.erm...@hccnet.nl wrote:
>> Thusfar I have been trying to use the letter module with the xmltext and 
>> xmlflush commands. What can be done to make this work?
>> Thanks!
> 
> I'm sorry, I don't use the letter module and don't have it installed. As far 
> as I can see, your way of using the xml commands is correct. There appears to 
> be some sort of incompatibility between the letter module and xml, but I 
> guess only Wolfgang (the author of the module) can really say what's going 
> on. If you want to typeset simple letters, maybe you can bypass the module?
> 
> 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-18 Thread Jeong Dal
Dear Hans,


> 2017. 6. 18. 오후 8:00, Hans Hagen  작성:
> 
> this is how tex works: just look at inline math
> 

Yes, you are right. 
To start a new line with a sign may be a preference  of me and some others.
I found a document which illustrates the different displays of a long equations 
in LaTeX.

https://www.andy-roberts.net/res/writing/latex/longeqns.pdf 


I think that I ask you too much. 
You may leave it to user to choose.

Thank you for the example that I just saw. It looks good to me.

Best regards,

Dalyoung


> i played with it a bit but had to adapt the engine for a bit more control 
> (stepwise the matyh machinery is opened up i.e. hard coded steps become 
> configureable)
> 
> anyway, the question is not implementing but control: it's not default tex 
> behaviour so it has to be turned on (and then after a while we forget that it 
> can be turned on i guess)
> 
> (no clue what keyword to use for controling it)
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl  | 
> www.pragma-pod.nl 
> -

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

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

Re: [NTG-context] next beta

2017-06-18 Thread Hans Hagen

On 6/17/2017 3:48 PM, Jeong Dal wrote:

Dear Hans,

I updated ConTeXt beta today and run your sample for long formula.
It works nice and it is the feature what many math people want I think.
Thank you for your concern.

One thing that I’d like say is that a new line in the splitted long formula 
usually starts with operations in many math books.
But, in the ourput  of your example, every line ends with ‘+’ sign and begin a 
new line with a ‘number’.

Would you please check it once more?

this is how tex works: just look at inline math

i played with it a bit but had to adapt the engine for a bit more 
control (stepwise the matyh machinery is opened up i.e. hard coded steps 
become configureable)


anyway, the question is not implementing but control: it's not default 
tex behaviour so it has to be turned on (and then after a while we 
forget that it can be turned on i guess)


(no clue what keyword to use for controling it)

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
___