[NTG-context] Fwd: Re: The binomial coefficients do not look optimal

2017-09-02 Thread Hans Hagen




 Forwarded Message 
Subject: Re: [NTG-context] The binomial coefficients do not look optimal
Date: Sat, 2 Sep 2017 18:35:53 +0200
From: Hans Hagen 
To: Mikael P. Sundqvist 

On 9/2/2017 4:58 PM, Mikael P. Sundqvist wrote:
On Fri, Sep 1, 2017 at 7:49 PM, Hans Hagen > wrote:


On 9/1/2017 1:56 PM, Mikael P. Sundqvist wrote:

Hi,

I stumbled upon this (see the attached file for the result):

%%% Test file
\setupbodyfont[10pt]
\starttext
\startTEXpage[offset=10pt]
\type{\tbinom{n}{k}}: $\tbinom{n}{k}$, (does not look good, the
vertical space between $n$ and $k$ is too big) \par
\type{\binom{n}{k}}: $\binom{n}{k}$ (looks fine to me)\par
\type{\dbinom{n}{k}}: $\dbinom{n}{k}$ (does not look good, too
big parenthesis, even for displayed formulas).\par
\stopTEXpage
\stoptext
%%% End of test file

I think something should be changed to get the binomial
coefficients to look better. In particular I am concerned about
the rather big parenthesis in displaystyle (and not so much
about the vertical space issue in \tbinom).

/Mikael

PS The result looked better if I used the lucida fonts, if that
helps.

This is indeed font dependent. These binoms use a low level tex
primitive that uses a threshold for steps and that one is part of
the math parameters of a font and these are not that good for lm. As
I'm looking into some other low level side effect I was in the mood
for a configuration option for \setupmathfractions.

So, in the next beta you can get the effects iof the attached:

- relate the threshold to the bodyfont size
- use normal left/right fences instead

fwiw, cambria and pagella look better too. Upto you to wikify 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

___


Thank you very much, I'm looking forward to the next beta, and I will 
try to wikify it when I have tried it out. Also lucida looks better than 
latin modern does at the moment.


I am a bit confused about the different versions. I would have guessed 
that there was \tbinom and \dbinom and that \binom used one of them 
depending on if one is in text mode or in display mode (just as I would 
expect \frac to behave like \tfrac in text mode and \dfrac in display 
mode). But \tbinom looks very different from \binom in text mode (with 
more vertical space).  Is this on purpose? Have I missed something?
One can configure those things but the absense of rules and presence of 
fences matters too (all kind of inter-this-or-that and 
above-below-this-or-that playts a role).


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] The binomial coefficients do not look optimal

2017-09-02 Thread Mikael P. Sundqvist
On Fri, Sep 1, 2017 at 7:49 PM, Hans Hagen  wrote:

> On 9/1/2017 1:56 PM, Mikael P. Sundqvist wrote:
>
>> Hi,
>>
>> I stumbled upon this (see the attached file for the result):
>>
>> %%% Test file
>> \setupbodyfont[10pt]
>> \starttext
>> \startTEXpage[offset=10pt]
>> \type{\tbinom{n}{k}}: $\tbinom{n}{k}$, (does not look good, the vertical
>> space between $n$ and $k$ is too big) \par
>> \type{\binom{n}{k}}: $\binom{n}{k}$ (looks fine to me)\par
>> \type{\dbinom{n}{k}}: $\dbinom{n}{k}$ (does not look good, too big
>> parenthesis, even for displayed formulas).\par
>> \stopTEXpage
>> \stoptext
>> %%% End of test file
>>
>> I think something should be changed to get the binomial coefficients to
>> look better. In particular I am concerned about the rather big parenthesis
>> in displaystyle (and not so much about the vertical space issue in \tbinom).
>>
>> /Mikael
>>
>> PS The result looked better if I used the lucida fonts, if that helps.
>>
> This is indeed font dependent. These binoms use a low level tex primitive
> that uses a threshold for steps and that one is part of the math parameters
> of a font and these are not that good for lm. As I'm looking into some
> other low level side effect I was in the mood for a configuration option
> for \setupmathfractions.
>
> So, in the next beta you can get the effects iof the attached:
>
> - relate the threshold to the bodyfont size
> - use normal left/right fences instead
>
> fwiw, cambria and pagella look better too. Upto you to wikify 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
> 
> ___
>

Thank you very much, I'm looking forward to the next beta, and I will try
to wikify it when I have tried it out. Also lucida looks better than latin
modern does at the moment.

I am a bit confused about the different versions. I would have guessed that
there was \tbinom and \dbinom and that \binom used one of them depending on
if one is in text mode or in display mode (just as I would expect \frac to
behave like \tfrac in text mode and \dfrac in display mode). But \tbinom
looks very different from \binom in text mode (with more vertical space).
Is this on purpose? Have I missed something?

/Mikael
___
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] about "unknown script 'context.lus' or 'max-context.lua'"

2017-09-02 Thread Jeong Dal
Dear Hans van der Meer,

According to your word, I added the PATH to texmf-dist(texlive 2017) to the 
ConTeXt(LuaTex).engine directly.
And, in the terminal, run mtxrun —generate and run luatools —generate once more.
Then ConTeXt(LuaTeX) is working fine.
Now, I can compile ConTeXt files using either texlive-2017 or minimal-beta.

Thank you again.

Best regards,

Dalyoung
___
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] option none for \scitebuffer and \sciteinlinebuffer

2017-09-02 Thread Hans Hagen

On 8/31/2017 7:13 PM, Pablo Rodriguez wrote:

Hans,

I have the following sample:

 \usemodule[scite]
 \starttext
 \startbuffer
 This is text. % and this is a comment
 \stopbuffer

 \scitebuffer
 \sciteinlinebuffer
 \stoptext

Since \scitebuffer and \sciteinlinebuffer default to TEX typing when
none is set, would it be possible to set colors to "none".

I need it to be able to use both buffers with \xmlprettyprinttext and
\xmlinlineprettyprint.

I'll add a none method

\startbuffer[foo]
This is text. % line 1
This is text. % line 2
\stopbuffer

\scitebuffer[none][foo]

\sciteinlinebuffer[none][foo]

up to you to make sure it's used

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] about "unknown script 'context.lus' or 'max-context.lua'"

2017-09-02 Thread Jeong Dal
Dear Hans van der Meer,

Thank you for your solution.
It is similar to the one of the engines, which is for ConTeXt(beta, stand 
alone) and works fine.

Thank you again.

Best regards,

Dalyoung

> On OSX there are directories used by TeXShop one of which is  
> ~/Library/Engines. The text files there contain scripts that callup a tex 
> run. In my case I have a text file called BetaCur.engine to be found in the 
> run popup button of TeXShop. In it I have:
> #!/bin/bash
> source ~/.bashrc
> mtxrun --script context "$1"
> 
> In the .bashrc file in my home directory the directory where the ConTeXt 
> files reside is given amongst other defines:
> CONTEXTROOT=$HOME/Applications/TeX-programs/directory-of-my-contextbeta-files/tex
> export CONTEXTROOT
> PATH=$PATH:$CONTEXTROOT/texmf-osx-64/bin

___
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] Letter module: Subject below opening

2017-09-02 Thread Parchd
Thanks, Wolfgang. That worked nicely.
I have added the information to the Wiki.

Best,

Parchd.

On Sat, Sep 02, 2017 at 01:42:06PM +0200, Wolfgang Schuster wrote:
> \usemodule[letter]
> 
> \startletter
>   [subject={How to change the position of the subject line},
>opening={Hi Parchd,}]
> 
> The elements of the letter environment can be changed with the
> \tex{setupletterelements} commands,
> the default order of them is
> 
> \startitemize[packed]
> \item title,
> \item subject,
> \item opening,
> \item content,
> \item closing and
> \item appendices
> \stopitemize
> 
> To put the subject after the opening you have to modify this order with the
> following setup:
> 
> \starttyping
> \setupletterelements
>   [section]
>   [title,
>opening,
>subject,
>content,
>closing,
>appendices]
> \stoptyping
> 
> \stopletter
> 
> 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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Letter module: Subject below opening

2017-09-02 Thread Wolfgang Schuster

\usemodule[letter]

\startletter
  [subject={How to change the position of the subject line},
   opening={Hi Parchd,}]

The elements of the letter environment can be changed with the 
\tex{setupletterelements} commands,

the default order of them is

\startitemize[packed]
\item title,
\item subject,
\item opening,
\item content,
\item closing and
\item appendices
\stopitemize

To put the subject after the opening you have to modify this order with 
the following setup:


\starttyping
\setupletterelements
  [section]
  [title,
   opening,
   subject,
   content,
   closing,
   appendices]
\stoptyping

\stopletter

Wolfgang


Parchd 
1. September 2017 um 13:04
British letters typically have the subject below the opening.

A stackexchange user asked many moons ago how to accomplish this in
ConTeXt, and received a rather hackish response
(https://tex.stackexchange.com/questions/22438/how-to-place-the-subject-line-under-the-greeting-line-in-t-letter-module-in-cont).

ConTeXt and the letter module have changed a lot since then, if my
experience is correct. Is there a better solution than given there?

Best,

Parchd.
___
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] Letter module: Subject below opening

2017-09-02 Thread Parchd
On Fri, Sep 01, 2017 at 01:04:44PM +0200, Parchd wrote:
> British letters typically have the subject below the opening.
> 
> A stackexchange user asked many moons ago how to accomplish this in
> ConTeXt, and received a rather hackish response
> (https://tex.stackexchange.com/questions/22438/how-to-place-the-subject-line-under-the-greeting-line-in-t-letter-module-in-cont).
> 
> ConTeXt and the letter module have changed a lot since then, if my
> experience is correct. Is there a better solution than given there?
> 

In answer to my own question, the following is certainly nicer than what
I found on stackexchange. Perhaps there is still something better,
though?


\startsetups[letter:section:opening]
\correspondenceparameter{opening}
\blank
{\bf\correspondenceparameter{subject}}
\stopsetups

\startsetups[letter:section:subject]
\stopsetups

\setuplettersection[opening][alternative=setups]
\setuplettersection[subject][alternative=setups]

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