Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Pablo Rodriguez
On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote:
> Hello Pablo,
> 
> you inspired me:
> 
> 
> \setuplayout[header=5mm,headerdistance=5mm,]
> \setupheader
>[text]
>[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
> after={\stopframed},
>]
> \setupheadertexts[left][right]
> 
> \starttext
>Page 1
>\page[empty,blank]
>Page 2
> \stoptext
> 

Hi Lukáš,

could you add this info to the wiki?

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

2017-09-01 Thread Hans Hagen

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
-


math-binom.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
___

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

2017-09-01 Thread Mikael P. Sundqvist
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.


ctx-example28.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
___

[NTG-context] Letter module: Subject below opening

2017-09-01 Thread Parchd
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
___

Re: [NTG-context] about "unknown script 'context.lus' or 'max-context.lua'"

2017-09-01 Thread Meer, Hans van der
Allthough I am working with the ConTeXt beta version, I hope you will get 
things running in TeXShop by analogy as it does for me.

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

I hope this will help you to customize things to your setup.

Hans van der Meer




On 1 Sep 2017, at 10:27, Jeong Dal > wrote:

Dear all,

1. Today, I installed TeXlive 2017 using MacTeX and do a simple test using 
TeXshop.

When I run a sample file using “ConTeXt(LuaTeX)”, then I got an error message:

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

I also did “mtxrun —generate”in the terminal which runs well.  But “luatools 
—generate” also issue the similar error message:

mtxrun  | unknown script ‘base.lua’ or 'mtx-base.lua'

However, it runs well under Stand-alone ConTeXt.
What I have to do to make TeXlive work?

2. Recently, I also installed Textadept in OS X for test, and follow the steps 
explained in the wiki.

If I open textadept in the terminal(open -a textadept), ConTeXt, lua, Python 
worked OK.
But it  issued an error message as following  when I open it directly from the 
application folder.

> mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 
> "Main.tex"
Failed to execute child process "mtxrun" (No such file or directory)
> exit status: 256

In the terminal, echo $PATH contains the folder “/Library/TeX/texbin” which 
contains all executables of TeXlive 2017.
Is there anything that I have to do more?

Thank you for reading.

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
___

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

2017-09-01 Thread Jeong Dal
Dear all,

1. Today, I installed TeXlive 2017 using MacTeX and do a simple test using 
TeXshop.

When I run a sample file using “ConTeXt(LuaTeX)”, then I got an error message:

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

I also did “mtxrun —generate”in the terminal which runs well.  But “luatools 
—generate” also issue the similar error message:

mtxrun  | unknown script ‘base.lua’ or 'mtx-base.lua'

However, it runs well under Stand-alone ConTeXt.
What I have to do to make TeXlive work?

2. Recently, I also installed Textadept in OS X for test, and follow the steps 
explained in the wiki.

If I open textadept in the terminal(open -a textadept), ConTeXt, lua, Python 
worked OK. 
But it  issued an error message as following  when I open it directly from the 
application folder.

> mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 
> "Main.tex"
Failed to execute child process "mtxrun" (No such file or directory)
> exit status: 256

In the terminal, echo $PATH contains the folder “/Library/TeX/texbin” which 
contains all executables of TeXlive 2017.
Is there anything that I have to do more?

Thank you for reading.

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] Empty page to suppress header (background) frame

2017-09-01 Thread Procházka Lukáš Ing .

Hello Pablo,

you inspired me:


\setuplayout[header=5mm,headerdistance=5mm,]
\setupheader
  [text]
  [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
   after={\stopframed},
  ]
\setupheadertexts[left][right]

\starttext
  Page 1
  \page[empty,blank]
  Page 2
\stoptext


Best regards,

Lukas


On Wed, 30 Aug 2017 19:43:57 +0200, Pablo Rodriguez  wrote:


On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote:

[...]
How to:

- define header to be framed normally and
- to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called?


Hi Lukáš,

from your sample, I wonder whether you need a complete frame or only a
rule in the header.

If you only need a rule, this is the way to go:

\setuplayout[header=5mm,headerdistance=5mm,]
%~ \setupheader[text][after=\vskip 4pt\hrule]
\setupheader[text][after={\blackrule[
width=\textwidth,
height=1em]}]
\setupheadertexts[left][right]

\starttext
   Page 1
   \page[empty,blank]
   Page 2
\stoptext

I hope it helps,

Pablo



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

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