Re: [NTG-context] Strangely placed dot

2020-05-04 Thread Mikael P. Sundqvist
Hi,

I realized that at work I did not have this problem, so there must have
been some problem with my installation on the laptop. Perhaps it will go
away when erasing the cache.

/Mikael


On Sun, May 3, 2020 at 7:48 AM Mikael P. Sundqvist  wrote:

> Hi,
>
> what is going on with the placement of the dot in this example, and how
> can I avoid it?
>
> \starttext
> \startTEXpage[offset=3bp]
> $E_tE_s=E_{\min(t,s)}$.
>
> \switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$.
>
> \switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$.
> \stopTEXpage
> \stoptext
>
> Output attached.
>
> /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
___


[NTG-context] Strangely placed dot

2020-05-02 Thread Mikael P. Sundqvist
Hi,

what is going on with the placement of the dot in this example, and how can
I avoid it?

\starttext
\startTEXpage[offset=3bp]
$E_tE_s=E_{\min(t,s)}$.

\switchtobodyfont[stixtwo]$E_tE_s=E_{\min(t,s)}$.

\switchtobodyfont[lucidaot]$E_tE_s=E_{\min(t,s)}$.
\stopTEXpage
\stoptext

Output attached.

/Mikael


punkt.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] Second derivative ''

2020-03-05 Thread Mikael P. Sundqvist
On Thu, Mar 5, 2020 at 9:09 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Mikael P. Sundqvist schrieb am 05.03.2020 um 20:48:
>
> Oh, I had not. It looks better with collapsing=1, indeed. A few neq
> questions comes to me:
>
> Does ConTeXt not use the same prime character as in TeX/LaTeX? Or has
> something changed in latin modern? See the attached pdf files
> (derivatives.pdf from ConTeXt and primetime-crop.pdf from lualatex). The
> prime character looks more slanted in ConTeXt. It also almost looks like it
> is cut horizontally at the bottom of the character. Also, the space between
> the two x in the subscript looks a bit large to me. Is that easily tuned?
>
>
> ConTeXt uses the OpenType version of the Latin Modern math font
> while your LaTeX file uses the older Type1 version of the font
> which uses multiple files for the different sizes. You can see this
> when look into the document information which can be done
> with your PDF viewer (or a command line tool like pdffonts).
>
> Wolfgang
>
>
Thanks! That was sloppy of me not to check in the pdf before sending. I
attach the correct file generated by lualatex for others. Indeed, the
primes are "cut off" horizontally, but perhaps that is a choice of design.

The question regarding spaces in the subscript remains.

/Mikael


primetime-crop-otf.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] Second derivative ''

2020-03-05 Thread Mikael P. Sundqvist
On Thu, Mar 5, 2020 at 6:34 PM Hans Hagen  wrote:

> On 3/5/2020 5:41 PM, Mikael P. Sundqvist wrote:
> > On Thu, Mar 5, 2020 at 5:36 PM Aditya Mahajan  > <mailto:adit...@umich.edu>> wrote:
> >
> > On Thu, 5 Mar 2020, Hans Hagen wrote:
> >
> >  > On 3/4/2020 11:44 PM, Weber, Matthias wrote:
> >  >> Dear List,
> >  >>
> >  >> \starttext
> >  >> \startformula
> >  >> \left(f\right)'' = f''
> >  >> \stopformula
> >  >> \stoptext
> >  >>
> >  >> has the second apostrophe set too low. This is in MKIV on
> > ConTeXt live as
> >  > well as in my slightly older version.
> >  >> What is the “right” way to typeset a second derivative?
> >  > you have to turn on
> >  >
> >  > \setupmathematics
> >  >   [collapsing=3]
> >  >
> >  > but it has the side effect of also collapsing more:
> >  >
> >  > $x'' >= 10$
> >  >
> >  > (which is why the mechanism is currently turned off by default)
> >  >
> >  > i'll think about an option that only does some specific ones only
> >  >
> >  > (btw, i love tex but these primes are a bit painful due to th
> > eorriginal
> >  > approach which has lead mixtures of (1) raised in the font and/or
> > raised
> >  > in the engine, (2) them being superscripts but not really, (3)
> fonts
> >  > therefore doing it inconsistently, (4) some parsing related to
> > multiple
> >  > scripts, (5) double, tripple, etc primes being real unicode
> > characters
> >  > but spaced singles in traditional tex (which itself then
> > introduces some
> >  > size juggling) ... i could proabbly write a few pages about it)
> >
> > So what's the best way to input them: using \prime, \prime\prime,
> etc.?
> >
> >
>  
> Aditya___
> > If your question is of interest to others as well, please add an
> > entry to the Wiki!
> >
> > maillist : ntg-context@ntg.nl <mailto: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
> >
>  
> ___
> >
> >
> > And what is the way if one also want indices:
> >
> > $f''_{xx}$ or $f_{xx}''$ or ... ?
> >
> > I want the indices under the primes
>
> did you try with
>
> \setupmathematics
>[collapsing=1]
>
> both work but (i'm no mathematician) i'd opt for
>
> $f_{xx}''$
>
> as it says take the second something from f_{whatever} unless of course
> the index applies the second something
>
> But i bet that Aditya can give the real answer.
>
> 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
> -
>

Oh, I had not. It looks better with collapsing=1, indeed. A few neq
questions comes to me:

Does ConTeXt not use the same prime character as in TeX/LaTeX? Or has
something changed in latin modern? See the attached pdf files
(derivatives.pdf from ConTeXt and primetime-crop.pdf from lualatex). The
prime character looks more slanted in ConTeXt. It also almost looks like it
is cut horizontally at the bottom of the character. Also, the space between
the two x in the subscript looks a bit large to me. Is that easily tuned?

/Mikael

The ConTeXt file:
\starttext
\startTEXpage[offset=1bp]
\setupmathematics[collapsing=1]
$f_{xx}''$
\stopTEXpage
\stoptext

The LaTeX file:
\documentclass{article}
\usepackage{lmodern}
\pagestyle{empty}
\begin{document}
$f_{xx}''$
\end{document}


derivatives.pdf
Description: Adobe PDF document


primetime-crop.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] Second derivative ''

2020-03-05 Thread Mikael P. Sundqvist
On Thu, Mar 5, 2020 at 5:36 PM Aditya Mahajan  wrote:

> On Thu, 5 Mar 2020, Hans Hagen wrote:
>
> > On 3/4/2020 11:44 PM, Weber, Matthias wrote:
> >> Dear List,
> >>
> >> \starttext
> >> \startformula
> >> \left(f\right)'' = f''
> >> \stopformula
> >> \stoptext
> >>
> >> has the second apostrophe set too low. This is in MKIV on ConTeXt live
> as
> > well as in my slightly older version.
> >> What is the “right” way to typeset a second derivative?
> > you have to turn on
> >
> > \setupmathematics
> >   [collapsing=3]
> >
> > but it has the side effect of also collapsing more:
> >
> > $x'' >= 10$
> >
> > (which is why the mechanism is currently turned off by default)
> >
> > i'll think about an option that only does some specific ones only
> >
> > (btw, i love tex but these primes are a bit painful due to th eorriginal
> > approach which has lead mixtures of (1) raised in the font and/or raised
> > in the engine, (2) them being superscripts but not really, (3) fonts
> > therefore doing it inconsistently, (4) some parsing related to multiple
> > scripts, (5) double, tripple, etc primes being real unicode characters
> > but spaced singles in traditional tex (which itself then introduces some
> > size juggling) ... i could proabbly write a few pages about it)
>
> So what's the best way to input them: using \prime, \prime\prime, etc.?
>
>
> 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
>
> ___
>

And what is the way if one also want indices:

$f''_{xx}$ or $f_{xx}''$ or ... ?

I want the indices under the primes

/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] Lucida small caps

2020-02-17 Thread Mikael P. Sundqvist
On Sun, Feb 16, 2020 at 11:34 AM Hans Hagen  wrote:

> On 2/15/2020 10:02 PM, Mikael P. Sundqvist wrote:
> > On Sat, Feb 15, 2020 at 9:50 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> >     On 2/15/2020 4:34 PM, Mikael P. Sundqvist wrote:
> >  > Hi,
> >  >
> >  > One can easily enable small caps when using lucida, see the old
> mail
> >  > https://mailman.ntg.nl/pipermail/ntg-context/2018/090997.html .
> >  >
> >  > Could this be added to the type script file?
> >
> > best use \smallcaps or somethign equivalent
>
> > Ah, so it was the \sc that was the problem. Thanks!
> \sc is more somthing mkii ... when type1 fonts (in an 8 bit universum)
> smallcaps and oldstyle and such meant using a different font
>
> nowadays one can turn them on/off as features and when you need them a
> lot you can even define an extra bodyfont variant from them and switch
> to that one when needed
>
> now, when smallcaps and oldstyle etc became features instead of font
> properties that didn't mean it always became easier because when
> opentype came around there was no 'recipe' or possibility to define what
> is default; for instance some fonts default to oldstyle in the sense
> that these shapes are in the default slots and you need to turn them off
> instead; also one needs to keep in mind that some features are language
> / script dependent and fonts differ in what they do default
>
> summary: see smallcaps as features but always look at what the font
> assumes and does by default; be prepared for inconsistencies (after all
> this is why we want/need control over what context does with a font)
>
> 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
> -
>

That is good to know, thank you. While replacing all \sc with \smallcaps in
a document I work on, I realized that in a \setuphead I had

style={\sca},

What is the correct substitute for that?

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


[NTG-context] Lucida small caps

2020-02-15 Thread Mikael P. Sundqvist
Hi,

One can easily enable small caps when using lucida, see the old mail
https://mailman.ntg.nl/pipermail/ntg-context/2018/090997.html .

Could this be added to the type script file?

/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] macro that does not work (Metapost)

2020-02-11 Thread Mikael P. Sundqvist
On Tue, Feb 11, 2020 at 1:22 PM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Hans,
> I tried this but without success :
>
>  \startMPcode
>  suite{1,0};
>  suite{2,1};
>  \stopMPcode
>
> Fabrice
>
> Le mar. 11 févr. 2020 à 13:08, Hans Hagen  a écrit :
>
>> On 2/11/2020 11:50 AM, Fabrice Couvreur wrote:
>> > Hi,
>> > I have some problems with the following macro :
>> >
>> > tex error   > mp error on line 23 in file /home/viserion/macro.tex:
>> >
>> > ! Missing argument to suite.
>> > 
>> > {
>> > <*> suite{
>> > 1,0}; suite(2,1); ;
>> > That macro has more parameters than you thought.
>> > I'll continue by pretending that each missing argument
>> > is either zero or null.
>> >
>> > ! Missing argument to suite.
>> > 
>> > {
>> > <*> suite{
>> > 1,0}; suite(2,1); ;
>> > That macro has more parameters than you thought.
>> > I'll continue by pretending that each missing argument
>> > is either zero or null.
>>
>>
>> {} instead of ()
>>
>> > ! Extra tokens will be flushed.
>> > 
>> > {
>> > <*> suite{
>> > 1,0}; suite(2,1); ;
>> > I've just read as much of that statement as I could fathom,
>> > so a semicolon should have been next. It's very puzzling...
>> > but I'll try to get myself back together, by ignoring
>> > everything up to the next `;'. Please insert a semicolon
>> > now in front of anything that you don't want me to delete.
>> > (See Chapter 27 of The METAFONTbook for an example.)
>> >
>> > [1]
>> >
>> > 13   enddef;
>> > 14 \stopMPcode
>> > 15 \starttext
>> > 16  On présente ci-dessous deux suites de dessins.
>> > 17   \startlinecorrection[blank]
>> > 18 \startmidaligned
>> > 19   \startcombination[2*1]
>> > 20 {\startMPcode
>> > 21   suite{1,0};
>> > 22   suite(2,1);
>> > 23 >>   \stopMPcode}{\tfxx \bf Suite 2}
>> > 24   \stopcombination
>> > 25 \stopmidaligned
>> > 26   \stoplinecorrection
>> > 27 \stoptext
>> >
>> > mtx-context | fatal error: return code: 256
>> >
>> > TeX Output exited abnormally with code 1 at Tue Feb 11 11:45:53
>> >
>> > ##
>> > macro.tex
>> > ##
>> >
>> > \startMPcode
>> >def suite (expr n, t) =
>> >begingroup
>> > numeric u;
>> > u := 5mm;
>> > pickup pencircle scaled 4pt;
>> > for i=0 upto n:
>> >   for j=0 upto n:
>> >   drawdot (i*u,j*u) shifted(t*u,0) withcolor darkred;
>> >   endfor
>> > endfor
>> >endgroup
>> >enddef;
>> > \stopMPcode
>> > \starttext
>> >   On présente ci-dessous deux suites de dessins.
>> >\startlinecorrection[blank]
>> >  \startmidaligned
>> >\startcombination[2*1]
>> >  {\startMPcode
>> >suite{1,0};
>> >suite(2,1);
>> >   \stopMPcode}{\tfxx \bf Suite 2}
>> >\stopcombination
>> >  \stopmidaligned
>> >\stoplinecorrection
>> > \stoptext
>> >
>> >
>> > Thank you.
>> > Fabrice
>> >
>> >
>> ___
>> > 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
>> >
>> ___
>> >
>>
>>
>> --
>>
>> -
>>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] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
On Tue, Dec 17, 2019 at 8:39 AM Mikael P. Sundqvist 
wrote:

> Hi!
>
> I've met a strange problem with indentation in consecutive enumerations.
> It seems to me that if
>
> 1) the first enumeration uses indentnext=no
> AND
> 2) the next enumeration uses a background
>
> then the second(?) paragraph of the second enumeration is not indented.
>
> Here is a small example (see what lines to comment to avoid the problem).
>
> %%%
> \defineenumeration[losning][
> text=Lösning,
> title=yes,
> alternative=serried,
> width=fit,
> number=no,
> headstyle={\em},
> titlestyle=,
> indentnext=no,% another way to get indentation is to comment this line
> indenting={yes,medium},
> ]
>
> \defineframedtext[anmärkningsbakgrunden][
> width=\textwidth,
> background=color,
> backgroundcolor=gray,
> ]
>
> \defineenumeration[anmarkning][
> text=Anmärkning,
> title=yes,
> headstyle={\definedfont[Bold*default]\WORD},
> alternative=serried,
> width=fit,
> number=no,
> prefix=no,
> indentnext=no,
> indenting={yes,medium},
> before={\startanmärkningsbakgrunden},% if these two lines are commented
> then
> after={\stopanmärkningsbakgrunden},% the indentation works
> ]
>
> \starttext
>
> \startlosning
> This environment destroys indentation in the next.
> \stoplosning
>
> \startanmarkning
> This is just a first paragraph.
>
> This paragraph should be indented.
>
> This paragraph is always indented.
> \stopanmarkning
> \stoptext
> %%%
>
> (This is a stripped down example with some settings removed. But it shows
> the point.)
>
> Am I doing something wrong? The resulting pdf is attached.
>
> /Mikael
>
> PS I think I saw this problem both with mkiv and lmtx.
>
>
Bump. (Am I doing something wrong?)

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


[NTG-context] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
Hi!

I've met a strange problem with indentation in consecutive enumerations. It
seems to me that if

1) the first enumeration uses indentnext=no
AND
2) the next enumeration uses a background

then the second(?) paragraph of the second enumeration is not indented.

Here is a small example (see what lines to comment to avoid the problem).

%%%
\defineenumeration[losning][
text=Lösning,
title=yes,
alternative=serried,
width=fit,
number=no,
headstyle={\em},
titlestyle=,
indentnext=no,% another way to get indentation is to comment this line
indenting={yes,medium},
]

\defineframedtext[anmärkningsbakgrunden][
width=\textwidth,
background=color,
backgroundcolor=gray,
]

\defineenumeration[anmarkning][
text=Anmärkning,
title=yes,
headstyle={\definedfont[Bold*default]\WORD},
alternative=serried,
width=fit,
number=no,
prefix=no,
indentnext=no,
indenting={yes,medium},
before={\startanmärkningsbakgrunden},% if these two lines are commented then
after={\stopanmärkningsbakgrunden},% the indentation works
]

\starttext

\startlosning
This environment destroys indentation in the next.
\stoplosning

\startanmarkning
This is just a first paragraph.

This paragraph should be indented.

This paragraph is always indented.
\stopanmarkning
\stoptext
%%%

(This is a stripped down example with some settings removed. But it shows
the point.)

Am I doing something wrong? The resulting pdf is attached.

/Mikael

PS I think I saw this problem both with mkiv and lmtx.


debugging.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] math align broken

2019-12-16 Thread Mikael P. Sundqvist
On Mon, Dec 16, 2019 at 3:08 PM Hans Hagen  wrote:

> On 12/16/2019 2:17 AM, Jeong Dal wrote:
> > Dear Mikael,
> >
> > I also confirm your problem.
> > I am using
> > "ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int:
> english/english”
> >
> > However, if you change “\Bigl(“ to “\left(“, then the space between left
> parenthesis and text become narrower.
> >
> > I hope that it will be fixed soon.
>
> in next beta (something with spacing in math)
>
> Hans
>
>
Thanks for the quick fix, Hans! I just updated and compiled my lecture
notes and can confirm that it looks fine again!

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


[NTG-context] math align broken

2019-12-15 Thread Mikael P. Sundqvist
Hi,

I hope this report is not a duplicate of another one. I updated lmtx today
(from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh
install in the folder), and found some strange things with math:

The file

%%% EXAMPLE
\starttext
\startformula
\startalign
\NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
\NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
\NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
\stopalign
\stopformula
>From this we see that $\lim_{n\to+\infty}f(n)=0$.
\stoptext
%%%

gives the attached ex1.pdf. As we can see the spacing inside \startalign
\stopalign is wrong. Also, the "lim" in the example after the displayed
formula has disappeared.

Any clues?

/Mikael

(I tried in any case to remove cache and rebuild, but since it was a fresh
install, I could not see why it could help here. Thought I mention it
anyways.)


ex1.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] Referencing equation, missing dot

2019-11-13 Thread Mikael P. Sundqvist
Hi,

The following example used to work.

But with an LMTX updated today, the numbering \eqref produces is (11)
instead of the expected (1.1). The numbering in the equation itself is fine.

Did something change on purpose?

/Mikael

%%% TEST FILE
\definereferenceformat[eqref][left=(,right=)]

\starttext
\chapter[title=Foo]

\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Small integral signs

2019-11-10 Thread Mikael P. Sundqvist
Hi,

in latest lmtx I get small integral signs in displayed formulas.

I removed the cache, but the problem was still there.

/Mikael

\starttext
\startTEXpage[offset=3bp]
\startformula
\int f(x)\,dx
\stopformula
\stopTEXpage
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new (lmtx) beta

2019-10-05 Thread Mikael P. Sundqvist
Den lör 5 okt. 2019 09:45Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> skrev:

> Fabrice Couvreur schrieb am 05.10.2019 um 09:39:
>
> Hi Hans,
> Where is this documentation ?
>
> Make a update and you will find luametafun.pdf in the documentation
> ($TEXMF/tex/texmf-context/doc/context/documents/general/manuals/) folder.
>
> 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
>
> ___
>

I found it is also available at

http://www.pragma-ade.com/general/manuals/luametafun.pdf

in case one does not want to upgrade at the moment.

/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] new (lmtx) beta

2019-10-04 Thread Mikael P. Sundqvist
On Fri, Oct 4, 2019 at 6:11 PM Hans Hagen  wrote:

> Hi,
>
> I uploaded a new lmtx beta. Again some more metafun trickery (see
> luametafun manual). I attached an (lmtx only) example of some experiment
> code, dedicated to Alan Braslau (teacher among other things).
>
> 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
>
> ___
>


Hi,

I read the new manual with a great joy! This is really nice improvements of
MetaFun! I also like the 3D plots!

I had the possibility to try out some contour graphics on a freshly updated
system. I have two questions:

1) I think the first (blue) plot looks fine and it looks like it could be
the same curve as the blue one in the Mathematica plot (page 3). Why does
my second example (orange) not match with the result from Mathematica
(orange)? (I think I do something wrong)
2) Is there a way to combine the two contour plots in one MetaFun drawing?
If I add them both to the same, only the last one shows. If I try
functions={"-4+x^2+x^5+15*y-y^2-10*x^3*y^2+5*x*y^4","-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5"}
it does not show both either.

/Mikael

Test document (output was too big to attach (sorry if it came through to
someone), so I put it at http://www.maths.lth.se/~mickep/polynomnoll.pdf )

\starttext
\startMPpage[offset=3bp,instance=doublefun]
draw lmt_contour [
xmin=-5,
xmax=5,
ymin=-5,
ymax=5,
xstep=0.01,
ystep=0.01,
range={0},
levels=1,
function="-4+x^2+x^5+15*y-y^2-10*x^3*y^2+5*x*y^4",
linecolor="darkblue",
linewidth=1,
legend=false,
cache=true,
]  xsized 10cm ;
\stopMPpage

\startMPpage[offset=3bp,instance=doublefun]
draw lmt_contour [
xmin=-5,
xmax=5,
ymin=-5,
ymax=5,
xstep=0.01,
ystep=0.01,
range={0},
levels=1,
function="-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5",
linecolor="orange",
linewidth=1,
legend=false,
cache=true,
]  xsized 10cm ;
\stopMPpage

\startbuffer[mmainput]
ContourPlot[
 {-4+x^2+x^5+15y-y^2-10x^3y^2+5x*y^4 == 0,
  -15x+2x*y+5*x^4*y-10x^2*y^3+y^5 == 0},
  {x, -5, 5}, {y, -5, 5}, Frame -> False]
\stopbuffer
\startTEXpage[offset=2bp]
\typebuffer[mmainput]

\externalfigure[mathematicaplot][width=10cm]
\stopTEXpage
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
On Wed, Sep 4, 2019 at 1:37 PM Hans Hagen  wrote:

> On 9/4/2019 1:13 PM, Mikael P. Sundqvist wrote:
> > Hi,
> >
> > with a freshly updated ConTeXt-lmtx and the following document
> >
> > \starttext
> > Hello World.
> > \stoptext
> >
> > I end up with the following document, having a page 2 only. Log file is
> > attached (says there are two pages).
> strange. can you wipe the cache and remake the format?
>
> 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
>
> ___
>

Thanks. Clearing the cache did not help, but reinstalling did. I will test
those things before sending to the list in the future.

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


[NTG-context] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
Hi,

with a freshly updated ConTeXt-lmtx and the following document

\starttext
Hello World.
\stoptext

I end up with the following document, having a page 2 only. Log file is
attached (says there are two pages).

/Mikael


pagetwo.pdf
Description: Adobe PDF document
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.08.24 22:50 MKIV beta  fmt: 2019.9.4  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'pagetwo', input './pagetwo', result 'pagetwo'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './pagetwo.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 2, userpage 2, subpage 2
close source> level 2, order 3, name './pagetwo.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'

system  > start used files

system  > text: pagetwo

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex format=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system  >5: filename=lang-exc.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system  >6: filename=lang-us.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system  >7: filename=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex format=tex foundname=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex fullname=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex usedmethod=direct
system  >8: filename=lm.lfg filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system  >9: filename=lmroman12-regular filetype=otf format=otf foundname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system  >   10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system  >   11: filename=lpdf-pdx.xml filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system  > stop used files


system  > start commandline options

system  > currentrun="3"
system  > fulljobname="./pagetwo.tex"
system  > input="./pagetwo.tex"
system  > kindofrun="2"
system  > maxnofruns="9"
system  > texmfbinpath="/home/mps/ConTeXt-lmtx/tex/texmf-linux-64/bin"

system  > stop commandline options


system  > start commandline files

system  >1: ./pagetwo.tex

system  > stop commandline files


modules > start used modules

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Mikael P. Sundqvist
On Tue, Aug 27, 2019 at 10:16 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Mikael,
> I did not think about using Metapost, I tried with the keys of the command
> \framed without success.
> I use the following code for my headings (thank you Aditya) and I would
> like to use your code instead.
> Thank you.
> Fabrice
>
>
> \setupbackgrounds
> [header]
> [text]
> [frame=off,
>  topframe=off,
>  bottomframe=off,
>  framecolor=,
>  rulethickness=2pt]
>
>   \defineframed
> [headerframed]
> [frame=off,
>  height=fit,
>  width=fit]
>
>   \definecolor[ColorA][0.8(white)]
>
>
>   \startsetups [headertext]
>
> \setupheadertexts
>   [{\startframed [headerframed]
>   [foregroundstyle=bold,background=color,backgroundcolor=ColorA]
>   \getvariable{headertext}{title}
> n\high{o}\,\getvariable{headertext}{number}
>   \stopframed}]
>

What if you change this part to

\setupheadertexts
  [{\startframed [headerframed]
  [foregroundstyle=bold,background=framewithshadow]
  \getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
  \stopframed}]

Does that give you what you want?

/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] Frame with shadow for header

2019-08-26 Thread Mikael P. Sundqvist
On Mon, Aug 26, 2019 at 10:25 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hello,
> How to make a frame with an offset shadow as the attached picture ? The
> text inside the frame is a variable.
> Thank you.
> Fabrice
>
>
> [image: frame.png]
>
>
> ___
> 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
>
> ___
>

Hi,

maybe something like this could work for you:

\startuseMPgraphic{framewithshadow}
path p;
p:=origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHeight)--cycle;
fill p shifted (2,-2);
fill p withcolor 0.7white;
draw p;
setbounds currentpicture to p;
\stopuseMPgraphic

\defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}]

\starttext
\framed[background=framewithshadow,offset=4bp]{\bf DM no 7 : Dérivation}
\stoptext

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


[NTG-context] Fwd: metafun 2

2019-08-19 Thread Mikael P. Sundqvist
On Wed, Aug 14, 2019 at 5:37 PM Hans Hagen  wrote:

> On 8/14/2019 4:58 PM, Mikael P. Sundqvist wrote:
>
> > 1) 3d support. This is of course a very big request, but it would also
> > be useful for many people.
>
> yes ... Alan and I are thinking of some (not that we came far yet)
>

Please keep us updated! :)


> > 2) About graphing, it would be nice to be able to do contour polots and
> > density plots. I know I asked for contour plots some time ago, and there
> > were some examples, but I don't think there was ever some built in
> > support for it. Maybe that can be done "easy" with help of lua? I guess
> > there exist good algorithms.
>
> spec needed ... as 'code' can be any function it's mostly a matter of
> what to pipe back to mp
>

I'm not sure what kind of spec you need. What I have in mind (others could
complete) is in particular a way to plot the set of (x,y) such that
f(x,y)=0 for some given function f and some rectangle in x and y. I made
some plots with Mathematica

http://www.maths.lth.se/matematiklth/personal/mickep/Contour.pdf (too big
for the list)

The first plot shows a difficulty with a contour plot, namely
intersections.
In the second one I added points, and it looks better.
In the third plot I have not specified that the expression should be equal
to 0. Then Mathematica plots the curves f(x,y)=C for various values of C.
In the background it adds a density plot (i.e. a mesh with different
colours for different values of the function.
In the fourth plot, the regionplot, the pairs (x,y) for which f(x,y)<0 are
marked. This is also very useful.
In the fifth plot there is only the densityplot, with different colors for
different values of f.

I don't know how difficult it is to implement this kind of graphics. Also,
it could be useful to be able to input the equation f(x,y)=0 and to receive
the curves as MetaPost paths. It seems that one can do contour plots with
the help of lua if that is something that helps (
http://franko.github.io/graph-toolkit/contour.html).

Anything would be better than nothing, and I'm more than happy to test.


>
> > 3) (small) The possibility to have arrows in coordinate axes. I have not
> > had the possibility to test the new features today, and maybe this is
> > already built in (drawarrow?), but I mention it since I did not see it
> > in the pdf.
>
> no, but that is rather trivial to add
>

Good!


>
> > Again, it is very nice that you work on extending MetaPost/MetaFun
> further!!
> wel, mp is ... fun (and these extension are somewhat challenging)
>
> Hans
>

Fun, indeed!

/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] metafun 2

2019-08-14 Thread Mikael P. Sundqvist
On Wed, Aug 14, 2019 at 11:55 AM Hans Hagen  wrote:

> Hi,
>
> In the process of providing an additional (more abstract) interface to
> some of the old and also new MetaFun code we wonder what kind of
> features users would like to see.
>
> http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf
>
> As a teaser I uploaded a MyWay document that shows some of what is
> coming. All is experimental but it shows the direction. We're talking
> ConTeXt LMTX here. For instance,
>
>  draw lmt_outline [
>  content   = "hello",
>  kind  = "reverse",
>  fillcolor = "darkred",
>  drawcolor = "darkblue",
>  rulethickness = 1/2,
>  ] ysized h shifted (3.75h,-1.25h) ;
>
> Wraps all the outline drawing in one macro with a set of options (there
> will be xml interface definitions for that). Or take:
>
>  draw lmt_followtext [
>  content = "How well does it work {\bf 1}! ",
>  path= (fullcircle scaled 4cm),
>  trace   = true,
>  spread  = true,
>  ] ysized 5cm ;
>
> which is an easier interface to text along a curve. Arrows can be drawn
> with
>
>  draw lmt_arrow [
>  kind= "draw",
>  location= "middle",
>  alternative = "curved",
>  path= fullcircle
>  scaled  3cm
>  shifted (3.5cm,0cm),
>  ] withcolor "darkblue" ;
>
> but of course the low level interface with its many variables for
> tweaking stays around. Other examples are shown in the mentioned document.
>
> So the question is: What do you miss in metapost support? Of course it
> should fit within the concept, so 'artistic freehand drawings' is not
> something that is likely to get interfaced. We are particularly
> interested in educational applications, if only because ConTeXt started
> out that way.
>
> 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
>
> ___
>

Hi,

this looks very promising!!

Since you ask for feature requests:

1) 3d support. This is of course a very big request, but it would also be
useful for many people.
2) About graphing, it would be nice to be able to do contour polots and
density plots. I know I asked for contour plots some time ago, and there
were some examples, but I don't think there was ever some built in support
for it. Maybe that can be done "easy" with help of lua? I guess there exist
good algorithms.
3) (small) The possibility to have arrows in coordinate axes. I have not
had the possibility to test the new features today, and maybe this is
already built in (drawarrow?), but I mention it since I did not see it in
the pdf.

Again, it is very nice that you work on extending MetaPost/MetaFun further!!

/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] Broken kerning if hz is turned on?

2019-06-02 Thread Mikael P. Sundqvist
On Mon, May 20, 2019 at 9:55 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Mikael P. Sundqvist schrieb am 20.05.2019 um 21:41:
> > Hi,
> >
> > attached is the result of running latest lmtx on
> >
> >
> \definefontfeature[default][default][protrusion=quality,expansion=quality]
> \definefontfeature [default] [default] [threshold=20,expansion=quality]
> > \setupalign[hz]
> > \setupbodyfont[lucidaot]
> >
> > \starttext
> > Gauss öppnade med denna studie ett helt nytt fält inom matematiken,
> > det som
> > handlar om \emph{elliptiska funktioner} och \emph{modulära former}.
> > \stoptext
> >
> > What happens with the space between the characters in "studie", that
> > becomes "s tudie"? The spacing between some other characters are also
> > off (ma tematiken), but not as much as in studie.
> It's a problem with Lucida Opentype which lacks kerning (I reported the
> same problem a while ago).
>
> Wolfgang
>
>

Hi,

thank you Wolfgang (I just realized I only sent my thank you to you
privately)!

Your threshold=20 solved that particular case. But look at the following
example:

\definefontfeature[default][default][threshold=20,protrusion=quality,expansion=quality,lnum=yes,itlc=yes]

\setupalign[hz,hanging,line,height]

\definebodyfontenvironment[9bp][interlinespace=12bp]
\setupbodyfont[lucidaot,9bp]

\starttext
Gränsvärde föreligger i en inre punkt i definitionsmängden om och endast
om höger- och vänstergränsvärde existerar där och är lika.
\stoptext

I attach the output (latest lmtx). The word "endast" shows up as "endas t".

So, what does this threshold do? I can play with the 20. If I change it to
5 it looks better here (not perfect), but my document is approx. 250 pages,
so, I fear it will break somewhere else...

I hope that this does not mean that the Lucida font turns out to be useless
:(

/Mikael


lucidaspace.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] Broken kerning if hz is turned on?

2019-05-20 Thread Mikael P. Sundqvist
Hi,

attached is the result of running latest lmtx on

\definefontfeature[default][default][protrusion=quality,expansion=quality]
\setupalign[hz]
\setupbodyfont[lucidaot]

\starttext
Gauss öppnade med denna studie ett helt nytt fält inom matematiken, det som
handlar om \emph{elliptiska funktioner} och \emph{modulära former}.
\stoptext

What happens with the space between the characters in "studie", that
becomes "s tudie"? The spacing between some other characters are also off
(ma tematiken), but not as much as in studie.

/Mikael


gauss.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] Questions on columnsetspan (and grids and backgrounds)

2019-05-18 Thread Mikael P. Sundqvist
On Wed, May 15, 2019 at 9:28 AM Hans Hagen  wrote:

> On 5/14/2019 11:36 AM, Mikael P. Sundqvist wrote:
> > On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
> >>
> >> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> >>> Den lör 11 maj 2019 10:28Mikael P. Sundqvist  >>> <mailto:mic...@gmail.com>> skrev:
> >>>
> >>>  Hi,
> >>>
> >>>  I have for some hours tried to understand how to work with
> >>>  columnsetspans (I'm trying with an updated lmtx), and have some
> >>>  questions.
> >>>
> >>>  1) Is it only the floats that has the long list of placement
> options
> >>>  (given on p. 18 in the columnsets manual), or should they also
> apply
> >>>  to columnsetspans and columnsetareas? (I cannot get it to work
> with
> >>>  "default=fxtb:2*10" and similar options for other elements than
> >>>  floats). It would be useful to have it for other type of elements
> as
> >>>  well.
> >>>
> >>>  2) What is the current correct way to get back on grid after
> formulas?
> >>>  The only key that had lead me to something that seems to work in
> >>>  \setupformulas is "option=depth". Is that the way to go?
> >>>
> >>>  3) This is a bit unrelated, but is it possible to set page
> backgrounds
> >>>  on specific page. Something like \setupbackgrounds[page][page=3,
> ...]
> >>>  (I cannot find any keys for this in setup-en.pdf). Right now I
> can set
> >>>  it for an odd and an even page, but then if I want a background
> on the
> >>>  page after that, I have to put that code at the place where it
> will be
> >>>  used. (I got an error with \startpostponing[+1] ...
> \stoppostponing)
> >>>
> >>>  4) To be a bit more concrete on the first issue: In the example
> below,
> >>>  how can I place the columnsetspan at the bottom right? Second and
> >>>  third column, 10 lines down? I attach the result of running this
> file.
> >>>
> >>>  /Mikael
> >>>
> >>>  \setuplayout[grid=yes]
> >>>  \showgrid
> >>>  \definecolumnset[three][n=3]
> >>>
> >>>  \definecolumnsetspan[two][
> >>>  n=2,
> >>>  background=color,
> >>>  backgroundcolor=lightgray,
> >>>  ]
> >>>
> >>>  \starttext
> >>>  \startcolumnset[three]
> >>>  \samplefile{knuth}
> >>>
> >>>  \startcolumnsetspan[two][default=btrl]
> >>>  \samplefile{ward}
> >>>  \stopcolumnsetspan
> >>>
> >>>  \dorecurse{5}{\samplefile{knuth}\par}
> >>>  \stopcolumnset
> >>>  \stoptext
> >>>
> >>>
> >>> Hi!
> >>>
> >>> I have looked more carefully at the columnsets manual, and it looks
> like
> >>> (parts of) the columnsets mechanism is somehow broken at the moment,
> >>> since some of the examples there are not showing what they are
> supposed to.
> >>
> >> the mkii mechanism has been replaced by a new one but it's not
> >> completely compatible (these placements are actually for floats and
> >> spans were just a special kind abusing that mechanism)
> >>
> >>> Can this be confirmed? Is there a plan to get it to work soon again?
> >> i'll put it on the todo list
> >>
> >> -
> >> Hans Hagen | PRAGMA ADE
> >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> >> -
> >
> > Hi!
> >
> > Many thanks for your reply! Then I stop my playing with it now
> > (several things work and it looks quite nice!).
> >
> > I really appreciate any effort in this direction, since I think this
> > grid+column functionality is a very nice feature to have!!
> this will work in a next upload (watch out: columnsets operate on a spread)
>
> \setuppagenumbering[alternative={doublesided}]
>
> \showgrid
>
> \setupalign[verytolerant] \dontcomplain
>
> \definecolumnset[three][n=3]
>
> \definecolumnsetsp

Re: [NTG-context] Which math font for LinLibertine family?

2019-05-15 Thread Mikael P. Sundqvist
On Wed, May 15, 2019 at 8:40 AM Tomas Hala  wrote:
>
> Hi all,
>
> the font family LinLibertine (ConTeXt from TL2018 and older) does not
> contain any math font.
>
> On the file type-imp-libertine.mkiv there is a (disabled) line joining math
> from times family. Is the times math the best for LinLibertine or
> would you recommend me something else (from the design point of view)?
>
> What is the best way how to add math to the existing typescript?
> (I would like to avoid changing the file from the installation.)
>
> Best wishes
>
> Tomáš
>
> ___
> 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
> ___

Hi,

Is this an option?

https://github.com/alif-type/libertinus

/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] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Mikael P. Sundqvist
On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
>
> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> > Den lör 11 maj 2019 10:28Mikael P. Sundqvist  > <mailto:mic...@gmail.com>> skrev:
> >
> > Hi,
> >
> > I have for some hours tried to understand how to work with
> > columnsetspans (I'm trying with an updated lmtx), and have some
> > questions.
> >
> > 1) Is it only the floats that has the long list of placement options
> > (given on p. 18 in the columnsets manual), or should they also apply
> > to columnsetspans and columnsetareas? (I cannot get it to work with
> > "default=fxtb:2*10" and similar options for other elements than
> > floats). It would be useful to have it for other type of elements as
> > well.
> >
> > 2) What is the current correct way to get back on grid after formulas?
> > The only key that had lead me to something that seems to work in
> > \setupformulas is "option=depth". Is that the way to go?
> >
> > 3) This is a bit unrelated, but is it possible to set page backgrounds
> > on specific page. Something like \setupbackgrounds[page][page=3, ...]
> > (I cannot find any keys for this in setup-en.pdf). Right now I can set
> > it for an odd and an even page, but then if I want a background on the
> > page after that, I have to put that code at the place where it will be
> > used. (I got an error with \startpostponing[+1] ... \stoppostponing)
> >
> > 4) To be a bit more concrete on the first issue: In the example below,
> > how can I place the columnsetspan at the bottom right? Second and
> > third column, 10 lines down? I attach the result of running this file.
> >
> > /Mikael
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \definecolumnset[three][n=3]
> >
> > \definecolumnsetspan[two][
> > n=2,
> > background=color,
> > backgroundcolor=lightgray,
> > ]
> >
> > \starttext
> > \startcolumnset[three]
> > \samplefile{knuth}
> >
> > \startcolumnsetspan[two][default=btrl]
> > \samplefile{ward}
> > \stopcolumnsetspan
> >
> > \dorecurse{5}{\samplefile{knuth}\par}
> > \stopcolumnset
> > \stoptext
> >
> >
> > Hi!
> >
> > I have looked more carefully at the columnsets manual, and it looks like
> > (parts of) the columnsets mechanism is somehow broken at the moment,
> > since some of the examples there are not showing what they are supposed to.
>
> the mkii mechanism has been replaced by a new one but it's not
> completely compatible (these placements are actually for floats and
> spans were just a special kind abusing that mechanism)
>
> > Can this be confirmed? Is there a plan to get it to work soon again?
> i'll put it on the todo list
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

/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] Questions on columnsetspan (and grids and backgrounds)

2019-05-13 Thread Mikael P. Sundqvist
Den lör 11 maj 2019 10:28Mikael P. Sundqvist  skrev:

> Hi,
>
> I have for some hours tried to understand how to work with
> columnsetspans (I'm trying with an updated lmtx), and have some
> questions.
>
> 1) Is it only the floats that has the long list of placement options
> (given on p. 18 in the columnsets manual), or should they also apply
> to columnsetspans and columnsetareas? (I cannot get it to work with
> "default=fxtb:2*10" and similar options for other elements than
> floats). It would be useful to have it for other type of elements as
> well.
>
> 2) What is the current correct way to get back on grid after formulas?
> The only key that had lead me to something that seems to work in
> \setupformulas is "option=depth". Is that the way to go?
>
> 3) This is a bit unrelated, but is it possible to set page backgrounds
> on specific page. Something like \setupbackgrounds[page][page=3, ...]
> (I cannot find any keys for this in setup-en.pdf). Right now I can set
> it for an odd and an even page, but then if I want a background on the
> page after that, I have to put that code at the place where it will be
> used. (I got an error with \startpostponing[+1] ... \stoppostponing)
>
> 4) To be a bit more concrete on the first issue: In the example below,
> how can I place the columnsetspan at the bottom right? Second and
> third column, 10 lines down? I attach the result of running this file.
>
> /Mikael
>
> \setuplayout[grid=yes]
> \showgrid
> \definecolumnset[three][n=3]
>
> \definecolumnsetspan[two][
> n=2,
> background=color,
> backgroundcolor=lightgray,
> ]
>
> \starttext
> \startcolumnset[three]
> \samplefile{knuth}
>
> \startcolumnsetspan[two][default=btrl]
> \samplefile{ward}
> \stopcolumnsetspan
>
> \dorecurse{5}{\samplefile{knuth}\par}
> \stopcolumnset
> \stoptext
>

Hi!

I have looked more carefully at the columnsets manual, and it looks like
(parts of) the columnsets mechanism is somehow broken at the moment, since
some of the examples there are not showing what they are supposed to.

Can this be confirmed? Is there a plan to get it to work soon again?

Best regards, 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
___


[NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-11 Thread Mikael P. Sundqvist
Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


span.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] Formula number misplaced

2019-04-24 Thread Mikael P. Sundqvist
On Wed, Apr 24, 2019 at 9:52 AM Hans Hagen  wrote:
>
> On 4/23/2019 4:11 PM, Mikael P. Sundqvist wrote:
> > Den tis 23 apr. 2019 14:46Aditya Mahajan  > <mailto:adit...@umich.edu>> skrev:
> >
> > On Tue, 23 Apr 2019, Henri Menke wrote:
> >
> >  >
> >  > Dear list,
> >  >
> >  > The problem I describe does not make itself apparent in all
> > situations,
> >  > but sometimes the formula number, which is placed by
> >  > \start...\stopplaceformula, is misplaced and there appears a gap
> > between
> >  > it and the right margin.  The MWE below reproduces the problem in the
> >  > latest beta and lmtx.  It can be "fixed", however, by replacing
> >  > \start...\stopTEXpage by \start...\stoptext, so this might not
> > represent
> >  > the most generic incarnation.
> >
> > This can be "fixed" by specifying a width for TEXpage.
> >
> > Aditya
> > 
> > ___
> > If your question is of interest to others as well, please add an
> > entry to the Wiki!
> >
> > maillist : ntg-context@ntg.nl <mailto: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
> > 
> > ___
> >
> >
> > Yes, but it can also appear when not using TEXpage. When I tried out
> > lmtx on a large file (not using TEXpage), it was there. I was not able
> > to reproduce on a smaller file, though. I could give it another try, if
> > necessary.
>
> Probably only when you use framed and construct that depend on it. Then
> use:
>
> \startTEXpage[autowidth=no]
>
> 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
> -

Today I managed to install lmtx on my laptop (I got an error
yesterday, but that was probably the network at the hotel).

I now ran context on the big file, and it looks fine. When I get home
(next week) I will be able to compile on the lmtx installation at
home, where I first saw the problem.

Right now, I cannot construct any example with the problem showing.

/Mikael

PS I did not use any strange constructs like frames around the
formulas in question.
___
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] Formula number misplaced

2019-04-23 Thread Mikael P. Sundqvist
Den tis 23 apr. 2019 14:46Aditya Mahajan  skrev:

> On Tue, 23 Apr 2019, Henri Menke wrote:
>
> >
> > Dear list,
> >
> > The problem I describe does not make itself apparent in all situations,
> > but sometimes the formula number, which is placed by
> > \start...\stopplaceformula, is misplaced and there appears a gap between
> > it and the right margin.  The MWE below reproduces the problem in the
> > latest beta and lmtx.  It can be "fixed", however, by replacing
> > \start...\stopTEXpage by \start...\stoptext, so this might not represent
> > the most generic incarnation.
>
> This can be "fixed" by specifying a width for TEXpage.
>
> 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
>
> ___
>

Yes, but it can also appear when not using TEXpage. When I tried out lmtx
on a large file (not using TEXpage), it was there. I was not able to
reproduce on a smaller file, though. I could give it another try, if
necessary.

/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] \abovedisplayshortskip

2019-04-22 Thread Mikael P. Sundqvist
On Sat, Apr 20, 2019 at 7:55 PM Wolfgang Schuster
 wrote:
>
> Mikael P. Sundqvist schrieb am 20.04.2019 um 15:30:
> > On Mon, Apr 15, 2019 at 1:42 PM Mikael P. Sundqvist  
> > wrote:
> >> Hi,
> >>
> >> is \abovedisplayshortskip inserted in formulas that come after short
> >> lines? Or is there a more ConTeXt-way to tune this? Small example file
> >> below, but I see no change after I set it, so I guess it is not used?
> >>
> >> /Mikael
> >>
> >> \starttext
> >> Foo
> >> \startformula
> >> 1+1=2
> >> \stopformula
> >>
> >> \abovedisplayshortskip = -12pt
> >>
> >> Foo
> >> \startformula
> >> 1+1=2
> >> \stopformula
> >> \stoptext
> > Bump. Nobody knows?
> ConTeXt inserts always the same vertical space before a formula
> independent of the length of the previous line.
>
> Wolfgang
>

Thanks Wolfgang!

Hans, is there a chance to add support for this (that seems to be
supported in TeX)?

As of now, I have defined a new type of formula which has less
vertical space above the formulas, but that is something one has to
check manually.

/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] \abovedisplayshortskip

2019-04-20 Thread Mikael P. Sundqvist
On Mon, Apr 15, 2019 at 1:42 PM Mikael P. Sundqvist  wrote:
>
> Hi,
>
> is \abovedisplayshortskip inserted in formulas that come after short
> lines? Or is there a more ConTeXt-way to tune this? Small example file
> below, but I see no change after I set it, so I guess it is not used?
>
> /Mikael
>
> \starttext
> Foo
> \startformula
> 1+1=2
> \stopformula
>
> \abovedisplayshortskip = -12pt
>
> Foo
> \startformula
> 1+1=2
> \stopformula
> \stoptext

Bump. Nobody knows?

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


[NTG-context] \abovedisplayshortskip

2019-04-15 Thread Mikael P. Sundqvist
Hi,

is \abovedisplayshortskip inserted in formulas that come after short
lines? Or is there a more ConTeXt-way to tune this? Small example file
below, but I see no change after I set it, so I guess it is not used?

/Mikael

\starttext
Foo
\startformula
1+1=2
\stopformula

\abovedisplayshortskip = -12pt

Foo
\startformula
1+1=2
\stopformula
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Mikael P. Sundqvist
On Thu, Apr 11, 2019 at 10:02 AM Procházka Lukáš Ing.  wrote:
>
> Hello,
>
> Czech typo rules prefer not indenting paragraphs after itemization.
>
> How to setup indenting best to achieve this?
>
> The following code gives the desired output:
>
> 
> \setupindenting[yes,big]
>
> \starttext
>\section{Sec}
>
>\input knuth
>
>\startitemize[][after={\blank\noindent}]
>  \item Aaa
>  \item Bbb
>\stopitemize
> % "%" JUST TO SUPPRESS BLANK LINE
>\input knuth
> \stoptext
> 
>
> but (obviously) forces user to suppress a blank line between \stopitemize and 
> next text (thus "% JUST TO SUPPRESS BLANK LINE").
>
> Is there a way which would "gobble" next \par after \stopitemize to allow to 
> write simply (without "% ... "):
>
> 
> ...
>\stopitemize
>   <- EMPTY LINE TO BE ALLOWED HERE
>\input knuth
> ...
> 
>
> (I tried to play with \ingnorespaces, \removeunwantedspaces and so but with 
> no effect.)
>
> Best regards,
>
> Lukas
>
>
> --
> Ing. Lukáš Procházka | mailto:l...@pontex.cz
> Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
> nrpt3sn | IČO: 40763439
> 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
> ___

Try the indentnext key. Either locally

\startitemize[][indentnext=no]

or, globally,

\setupitemize[
indentnext=no,
]

/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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Mikael P. Sundqvist
On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:
>
> Hi Hans,
>
> While testing old documents with lmtx, I noticed that with recent versions of 
> mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: when 
> the characters < and - follow each other one gets \leftarrow… This is 
> embarrassing when one writes inequalities for negative numbers.
> So one has to separate them in order to obtain with curly braces. Can this be 
> fixed or is it intended ?
>
> \starttext
> $\alpha < -1$
>
> $\alpha \leftarrow 1$
>
> $\alpha < {-1}$
>
> $\alpha {<} - 1$
> \stoptext
>
> Best regards: OK
> ___
> 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
> ___

Hi!

I asked about this before, and it is a feature.

It can be switched off with

\setupmathematics[
collapsing=1,
]

Hope it helps!

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


[NTG-context] Space between initials in bibliography

2019-03-02 Thread Mikael P. Sundqvist
Hi,

By default there seem to be no space between initials in bibliography
(which I guess there should be?). I can get a space by adding
\setupbtx[
stopper:initials={.\btxspace},
]
but I don't think that this is how the stopper is meant to be used. Do
I miss some other key that I can use to get space inbetween initials?
Minimal example below, and I attach the result without the setting
above (no space V.I. Arnol'd) and with the setting above (space V. I.
Arnol'd).

/Mikael

%Example
\startbuffer[ref]
@book {arnold,
AUTHOR = {Arnold, Vladimir I.},
 TITLE = {Ordinary differential equations},
SERIES = {Universitext},
  NOTE = {Translated from the Russian by Roger Cooke,
  Second printing of the 1992 edition},
 PUBLISHER = {Springer-Verlag, Berlin},
  YEAR = {2006},
 PAGES = {ii+334},
  ISBN = {978-3-540-34563-3; 3-540-34563-9},
   MRCLASS = {34-01 (34Cxx 37-01 37C10)},
  MRNUMBER = {2242407},
}
\stopbuffer

\usebtxdataset[ref][ref.buffer]
\setupbtx[dataset=ref]
\definebtxrendering[ref][dataset=ref]
\setupbtx[
stopper:initials={.\btxspace},%comment to show version without space
]
\starttext
\startTEXpage[offset=3bp]
We study \cite[arnold].
\placelistofpublications[ref][method=dataset]
\stopTEXpage
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-24 Thread Mikael P. Sundqvist
On Sat, Feb 23, 2019 at 8:17 AM Mikael P. Sundqvist  wrote:
>
> On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen  wrote:
> >
> > On 2/22/2019 9:24 AM, Henri Menke wrote:
> > > I can confirm.  My workaround which predates the stylealternative
> > > mechanism also stopped working, so there must be an issue on the level
> > > of font feature selection.
> > >
> > > \definefontfeature [math-text] [math-text] [ss04=yes]
> > > \definefontfeature [math-script]   [math-script]   [ss04=yes]
> > > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes]
> > > \setupbodyfont[lucidaot]
> > > \starttext
> > > \startTEXpage[offset=3bp]
> > > $\mathcal A$
> > > \stopTEXpage
> > > \stoptext
> > that is a nasty one ... in font-fil.mkvi : we cannot use an edef as that
> > makes features get lost
> >
> > \def\font_basics_get_font_parameter_nop#key=#value,%
> >{\if]#key%
> >   \font_basics_get_font_parameter_nop_finish
> > \else
> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> > as we need to keep \mathsizesuffix
> >   \expandafter\font_basics_get_font_parameter_nop
> > \fi}
> >
> > \def\font_basics_get_font_parameter_yes#key=#value,%
> >{\if]#key%
> >   \font_basics_get_font_parameter_yes_finish
> > \else
> >   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> > as we need to keep \mathsizesuffix
> >   \expandafter\font_basics_get_font_parameter_yes
> > \fi}
> >
> > but even then, the official way to trigger such features is
> >
> > \setupmathematics[stylealternative=calligraphic]
> >
> >
>
> Works! Thanks! It is in the details... :)
>
> /Mikael

I just realized that there is still some problem with the stylealternative:

With the document

%% TEST 1
\setupbodyfont[lucidaot]
\setupmathematics[
stylealternative={calligraphic},
]
\starttext
$x+\mathcal A$
\stoptext
%%%

I get both the calligraphic AND the italic keys enabled, even though
the italic key should not be set. However, with the test file

%%% TEST 2
\setupbodyfont[lucidaot]
\setupmathematics[
stylealternative={italic},
]
\starttext
$x+\mathcal A$
\stoptext
%%%

I do not get any of them enabled. In particular the italic key is not
enabled, which I assume it should be.

/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] \setupmathematics with stylealternative not working

2019-02-22 Thread Mikael P. Sundqvist
On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen  wrote:
>
> On 2/22/2019 9:24 AM, Henri Menke wrote:
> > I can confirm.  My workaround which predates the stylealternative
> > mechanism also stopped working, so there must be an issue on the level
> > of font feature selection.
> >
> > \definefontfeature [math-text] [math-text] [ss04=yes]
> > \definefontfeature [math-script]   [math-script]   [ss04=yes]
> > \definefontfeature [math-scriptscript] [math-scriptscript] [ss04=yes]
> > \setupbodyfont[lucidaot]
> > \starttext
> > \startTEXpage[offset=3bp]
> > $\mathcal A$
> > \stopTEXpage
> > \stoptext
> that is a nasty one ... in font-fil.mkvi : we cannot use an edef as that
> makes features get lost
>
> \def\font_basics_get_font_parameter_nop#key=#value,%
>{\if]#key%
>   \font_basics_get_font_parameter_nop_finish
> \else
>   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> as we need to keep \mathsizesuffix
>   \expandafter\font_basics_get_font_parameter_nop
> \fi}
>
> \def\font_basics_get_font_parameter_yes#key=#value,%
>{\if]#key%
>   \font_basics_get_font_parameter_yes_finish
> \else
>   \expandafter\normaldef\csname p_#key\endcsname{#value}%  % no edef
> as we need to keep \mathsizesuffix
>   \expandafter\font_basics_get_font_parameter_yes
> \fi}
>
> but even then, the official way to trigger such features is
>
> \setupmathematics[stylealternative=calligraphic]
>
>

Works! Thanks! It is in the details... :)

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


[NTG-context] \setupmathematics with stylealternative not working

2019-02-21 Thread Mikael P. Sundqvist
Hi,

It seems that, with the latest beta, the \setupmathematics with
stylealternative is not working.

I tried

\setupbodyfont[lucidaot]
\setupmathematics[stylealternative={calligraphic}]
\starttext
\startTEXpage[offset=3bp]
$\mathcal A$
\stopTEXpage
\stoptext

and got the attached output lcm.png. This is not the curly A I would
expect. The one I expect is the one that can be seen on top of page 9
in https://tug.org/store/lucida/lucida-amsmath.pdf.

I also noticed that the example file that I have seen earlier on this
list, pasted below, does not seem to change anything.

Has anything changed?

/Mikael

% second example
\setupbodyfont[lucidaot]

\starttext

$x
^{i \leftarrow 0 = ∅}
_{\setmathfontalternate{arrow}
  \setmathfontalternate{dotless}
  \setmathfontalternate{zero}
  i \leftarrow 0 = ∅}
$

$x
^{i \leftarrow 0 = ∅}
_{\setmathfontalternate{arrow,dotless,zero}
  i \leftarrow 0 = ∅}
$

\setupmathematics[stylealternative={arrow,dotless,zero}]

$x
^{i \leftarrow 0 = ∅}
_{i \leftarrow 0 = ∅}
$

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


Re: [NTG-context] about the location of subscript of integral sign

2019-02-11 Thread Mikael P. Sundqvist
On Fri, Feb 1, 2019 at 9:55 AM Jeong Dal  wrote:
>
> Hi,
>
> Four days ago, I updated the standalone ConTeXt and found a strange behavior  
> in the integral sign.
> The number at the bottom is far from the integral sign while the number at 
> the top is OK.
> I don’t know when it began since I didn’t use \int for a few month.
>
> Here is a small sample.
> In the output, you can see the location of “a” is too far from the integral 
> sign.
> Here is the beginning of log file.
> 
> This is LuaTeX, Version 1.09.0 (TeX Live 2019/dev)
> system commands enabled.
> open source > level 1, order 1, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system >
> system > ConTeXt ver: 2019.01.25 20:06 MKIV beta fmt: 2019.1.28 int: 
> english/english
> system >
> ***
>
> Best regards,
>
> Dalyoung
>
> %
> \starttext
>
> \startformula
> \int_a^b f(x)\ dx
> \stopformula
>
> $\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$
>
> \setupmathematics[integral=nolimts]
>\startformula
>\int_a^b f(x)\ dx
>\stopformula
>
>$\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$
>
> \stoptext
>

Hi,

this problem has been discussed earlier this year,

https://mailman.ntg.nl/pipermail/ntg-context/2019/093710.html

I hope it helps!

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


[NTG-context] Nested fences, inner one changes size with outer one

2019-02-06 Thread Mikael P. Sundqvist
Hi,

Is it possible to automatically have the inner fence _not_ change its
size with the outer one?

/Mikael

\definemathfence[Openinterval][left="0028,right="0029,command=yes]
\definemathfence[Set][left="007B,right="007D,command=yes]
\starttext
\startTEXpage[offset=3bp]
Nothing fancy here:
\startformula
\Set{\Openinterval{-n,n}~:~n\in\mathbb N}
\stopformula
Here, I would expect the parenthesis to be of small size:
\startformula
\Set[size=1]{\Openinterval{-n,n}~:~n\in\mathbb N}
\stopformula
This works, but it would be nice not to be forced to write
\type{[size=0]} in the inner construct:
\startformula
\Set[size=1]{\Openinterval[size=0]{-n,n}~:~n\in\mathbb N}
\stopformula
\stopTEXpage
\stoptext


nestedfences.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] \index[infinity]{$+\infty$} gives an error

2019-02-05 Thread Mikael P. Sundqvist
Hi,

With latest beta, the file below throws me the error given below the
example file. I thought this was possible (see
http://www.pragma-ade.com/general/manuals/cont-enp.pdf, (pdf)page
202). The error is not present if I remove the third problematic index
entry.

/Mikael

% Example file

\starttext
This does not look right:
\index{entry}
\index[key]{entry}
\index[infinifty]{$+\infty$}
\placeindex
\stoptext

% Error message

tex error   > tex error on line 68 in file
/home/mps/tmp/indexproblem.tex: ! Extra }, or forgotten $

 }

 ...mand {[internal expandable lua function call]}}
  }
\firstofoneargument #1->#1

\doapplyregisterentrycommand ...extcommand {#2
  \dostoptagged
\registerentry ...plyregisterentrycommand {#2}{#5}
  \fi \popcurrentregister
l.68 }
___
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] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Mikael P. Sundqvist
Hi,

this is what I learned from the list to use. I'm sorry, but the names
sound a bit Swedish, but I'm sure you can change that. This way it was
also easy to add different types like hints, answers and solutions and
get clickable letters accordingly.

/Mikael

%Test file
\setupinteraction[state=start,color=,contrastcolor=,style=]

\define[1]\problemtextmakro
 {%
  \doifreferencefoundelse{losn:\currentconstructionreference}
 {\llap{\goto{{\WORD l}}[losn:\currentconstructionreference]}\,}
 {}%
  #1
  }

\defineenumeration[problem][
referenceprefix=problem,
text=,
width=fit,
numbercommand=\problemtextmakro,
number=yes,
alternative=serried,
hang=margin,
indentnext=auto,
indenting={yes,small},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
]


\defineblock[losn]
\hideblocks[losn]


\define[1]\losntextmakro
  {\doifreferencefoundelse{problem:\currentconstructionreference}
 {\bf 
\goto{\WORD{\in[problem:\currentconstructionreference]}}[problem:\currentconstructionreference]}
 {}
  }


\defineenumeration[losning][
referenceprefix=losn,
numbercommand=\losntextmakro,
text=,
headstyle=,
title=yes,
titlestyle=,
alternative=serried,
width=fit,
number=no,
indentnext=auto,
indenting={yes,medium},
before={\blank[halfline]},
after={\blank[halfline]},
]



\starttext

\chapter{Problems}

\startproblem[p:cont]
Show that all functions are continuous.
\stopproblem

\beginlosn
\startlosning[p:cont]
All functions are continuous\ldots
\stoplosning
\endlosn

\startproblem
This is a problem without solution
\stopproblem

\startproblem[p:diff]
Show that all functions are differentiable.
\stopproblem

\beginlosn
\startlosning[p:diff]
All functions are differentiable\ldots
\stoplosning
\endlosn


\beginlosn
\startlosning[p:diff]
This is a second solution to~\in[p:diff].\ldots
\stoplosning
\endlosn

\chapter{Solutions}

\selectblocks[losn][criterium=all]

On Fri, Feb 1, 2019 at 5:20 AM Alan Braslau  wrote:
>
> On Thu, 31 Jan 2019 22:10:40 -0500
> Sanjoy Mahajan  wrote:
>
> > Thank you, Matthias and Wolfgang, for the examples/solutions.
>
> Why not use the list mechanism?
>
> Alan
> ___
> 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] Cannot get upright integral in stixtwo anymore

2019-01-25 Thread Mikael P. Sundqvist
Hi!

I see that this is fixed in the latest beta. Thanks!!

/Mikael

On Sat, Jan 12, 2019 at 9:39 AM Mikael P. Sundqvist  wrote:
>
> Hi,
>
> the code
>
> \setupbodyfont[stixtwo]
> \starttext
> \startTEXpage[offset=2bp]
> $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par
> \setupmathematics[stylealternative={upright}]
> $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par
> \stopTEXpage
> \stoptext
>
> used to give an "upright" integral sign in the second example, but not
> anymore. Is there a new way to obtain this?
>
> Best regards, 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
___

[NTG-context] Cannot get upright integral in stixtwo anymore

2019-01-12 Thread Mikael P. Sundqvist
Hi,

the code

\setupbodyfont[stixtwo]
\starttext
\startTEXpage[offset=2bp]
$\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par
\setupmathematics[stylealternative={upright}]
$\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par
\stopTEXpage
\stoptext

used to give an "upright" integral sign in the second example, but not
anymore. Is there a new way to obtain this?

Best regards, 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] Lower limit of integrals shifted

2019-01-11 Thread Mikael P. Sundqvist
On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen  wrote:
>
> On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote:
> > Hi,
> >
> > the output of
> >
> > \setupmathematics[
> > integral=nolimits,
> > ]
> >
> > \starttext
> > \startTEXpage[offset=2bp]
> > $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$
> > \stopTEXpage
> > \stoptext
> >
> > is attached. Clearly, the lower limit in the integral is not correctly 
> > placed.
> >
> > With hope of a quick fix,
> The problem is in the fonts ... some have proper math kerns, some don't,
> some have italic, some don't, so one solution for all is impossible
>
> one way to deal with this is setting options (but these can be different
> per font and i'm not sure yet how to support that)
>
> you can try if \mathnolimitsmode=3 works ok for you
>
> will work ok for you
>
> \startTEXpage[offset=2bp]
>  $\mathnolimitsmode0\displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
>  $\mathnolimitsmode1\displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
>  $\mathnolimitsmode2\displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
>  $\mathnolimitsmode3\displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
>  $\mathnolimitsmode4\displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
>  $\mathnolimitsmode2000 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
> \stopTEXpage
>
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Oh, that sounds bad if it is in the fonts (I don't understand, it
seemed to work fine with lmodern, stixtwo, lucidaot, ... just before,
has something changed recently?)

Two related questions:

1) This \mathnolimitsmode does not seem to have any effect in a
\startformula \stopformula.
2) Could one set this globally (both inline and displayed formulas) in
a document?

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

[NTG-context] Lower limit of integrals shifted

2019-01-09 Thread Mikael P. Sundqvist
Hi,

the output of

\setupmathematics[
integral=nolimits,
]

\starttext
\startTEXpage[offset=2bp]
$\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$
\stopTEXpage
\stoptext

is attached. Clearly, the lower limit in the integral is not correctly placed.

With hope of a quick fix,

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] graphics

2018-12-12 Thread Mikael P. Sundqvist
On Wed, Dec 12, 2018 at 9:02 PM Henri Menke  wrote:
>
> On 13/12/18 8:56 AM, Alan Braslau wrote:
> > On Wed, 12 Dec 2018 20:42:56 +0100
> > "Mikael P. Sundqvist"  wrote:
> >>
> >> Thanks, Alan! That looks very promising. I could not make it work,
> >> though, and I guess that is because I use linux and do not know what
> >> to change for what. I installed libcerf but I assume something else is
> >> missing. In any case, this is one of the things it would be nice to
> >> have, at least as a module. I have no idea on how to realize that,
> >> though.
> >>
> >> /Mikael
> >
> > You likely also need to install libffi - I do not know what package
> > this is on your flavor of linux - Luigi is the ffi specialist!
>
> FFI is integrated in LuaTeX >= 1.03
>
> In you example you load libcerf but you are not using it.  What you are
> actually using are the Bessel function from the C Standard library.  GCC
> includes them as a GNU extension.
> https://www.gnu.org/software/libc/manual/html_node/Special-Functions.html#index-j0
> Your example also works if you remove libcerf (at least for me on Linux).
>

Thanks Henri! Indeed it worked now. The following example (just in
case someone else did not get what to change) compiles here, and shows
the expected graph. This is very good news!

\startluacode

ffi = require("ffi")
ffi.cdef[[
double j0(double x);
double j1(double x);
double jn(double x);
]]

\stopluacode

\startMPdefinitions{doublefun}
  vardef jzero primary x = scantokens(lua("mp.quoted( ffi.C.j0(" &
decimal x & "))")) enddef ;
  vardef jone  primary x = scantokens(lua("mp.quoted( ffi.C.j1(" &
decimal x & "))")) enddef ;
  vardef jnprimary x = scantokens(lua("mp.quoted( ffi.C.jn(" &
decimal x & "))")) enddef ;
\stopMPdefinitions


\starttext
\startMPpage[instance=doublefun]
draw function(1,"x","jone(x)",epsed(0),epsed(10),1/10) scaled 1cm;
\stopMPpage
\stoptext

/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] graphics

2018-12-12 Thread Mikael P. Sundqvist
On Sat, Dec 8, 2018 at 4:15 PM Alan Braslau  wrote:
>
> On Sat, 8 Dec 2018 09:31:46 +0100
> "Mikael P. Sundqvist"  wrote:
>
> > 3) It would be nice to be able to plot some special functions. I'm
> > thinking of the usual suspects, Airy, Bessel, Hypergeometric,
> > Laguerre, Legendre, ... Could it be that one could have support via
> > some lua library?
>
> I use ffi and libcerf (thank you Luigi!)
> For example (lots of other functions are available):
>
> \startluacode
>
> ffi = require("ffi")
> ffi.cdef[[
> double j0(double x);
> double j1(double x);
> double jn(double x);
> ]]
>
> cerf = ffi.load(ffi.os == "OSX" and "/opt/local/lib/libcerf.dylib" or "cerf")
>
> \stopluacode
>
> \startMPdefinitions {doublefun}
>
>   vardef jzero primary x = scantokens(lua("mp.quoted( ffi.C.j0(" & decimal x 
> & "))")) enddef ;
>   vardef jone  primary x = scantokens(lua("mp.quoted( ffi.C.j1(" & decimal x 
> & "))")) enddef ;
>   vardef jnprimary x = scantokens(lua("mp.quoted( ffi.C.jn(" & decimal x 
> & "))")) enddef ;
>
> \stopMPdefinitions

Thanks, Alan! That looks very promising. I could not make it work,
though, and I guess that is because I use linux and do not know what
to change for what. I installed libcerf but I assume something else is
missing. In any case, this is one of the things it would be nice to
have, at least as a module. I have no idea on how to realize that,
though.

/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] graphics

2018-12-08 Thread Mikael P. Sundqvist
On Fri, Dec 7, 2018 at 4:15 PM Alan Braslau  wrote:
>
> On Fri, 7 Dec 2018 09:06:03 +0100
> "Mikael P. Sundqvist"  wrote:
>
> > 2) Support for transforming images in a more general way. With the
> > zscaled, slanted, ... we are able to transform any object in an affine
> > way. It would be nice to be able to transform any object in a more
> > general way (i.e. by a mapping defined by the user). The example code
> > below shows what happens in the complex plane with a grid and a curve
> > when the mapping z to z^2 is applied.
>
> I have generalized my rewrite of the MP graph macros to handle any
> arbitrary mapping from data space to drawing (2D) space. At present, I
> have only considered the simple functions of log (and sqrt) scales as
> well as polar coordinates (x,y) = f(theta,r) with f(theta,r) = (r sin
> theta, r cos theta) as I have real use cases for these.

Sounds interesting. Do you have any "test document" to show the work
in progress?

>
> I also consider a simple 3D->2D mapping.

That sounds awesome!! The time working with colors as 3D might come to
an end! :)

>
> It would be very easy to transform z = a+ib to z^2 for example, as you
> show,
>
>
> The approach transforms a picture, applying to all stroked and
> filled paths, as well as to the *position* of text objects. I have not
> looked into somehow transforming a bitmap image.

You emphasize "position". Does it mean it will not be possible to
transform the shape of the letter?

>
> > Perhaps I am missing something,
> > but I'm not able to apply this to a piece of text for example, or to
> > apply it directly to a picture. Instead, I have to loop over all
> > separate paths. I think the ideal would be to have a "ftransformed"
> > (or with some other name), and then just define a function (as fun in
> > the example below), and then be able to do "draw X ftransformed fun;",
> > where X is some(any?) general object. Is that doable?
>
> for i within pic :
>   ...
> endfor
>
> So, yes, easy to write a primary (but I don't like the name
> "ftransformed"). Using lua helpers can make this efficient.

OK, looping through the pic sounds like a good idea. The word
ftransformed was made up while writing the email, and I agree it is
not good (perhaps "mapped" is better). I trust that you will come up
with something that fits well.

>
>
> Alan

Yet another wish:

3) It would be nice to be able to plot some special functions. I'm
thinking of the usual suspects, Airy, Bessel, Hypergeometric,
Laguerre, Legendre, ... Could it be that one could have support via
some lua library?

/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] graphics

2018-12-07 Thread Mikael P. Sundqvist
On Tue, Dec 4, 2018 at 6:03 PM Hans Hagen  wrote:
>
> Hi,
>
> As most mechanism are reasonable okay now we can look into what future
> versions of ConteXt should provide in terms of functionality. The
> (luatex) engine is also more of less finished or at least stable in
> terms of functionality.
>
> One possible area of further development is graphics so I'd like to know
> if there are (reasonable) demands for more graphics support using
> metapost. Alan and I are on-and-off working on some extensions and one
> of the things we discuss is visualization of data. The question is of
> course what should be done in the lua/mp/tex combination and what
> externally but the combination has some advantages. There has been
> presentations and discussions at the last meeting and graphics is always
> a nice topic, and also kind of rewarding in terms of development.
>
> Of course other demands can be formulated too, but these then need to
> come with well defined descriptions (or mockup examples).
>
> 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
> ___

Hi,

I don't know if what I describe below is along the lines you ask for,
but here comes two wishes:

1) Full support for drawing implicit curve plots. For some curves,
like a lemniscate
(https://en.wikipedia.org/wiki/Lemniscate_of_Bernoulli) one can easily
succeed by using a parametrisation, but sometimes one end up with
equations and to find a parametrisation might be difficult (not to say
impossible). I asked about this a while ago and got a simple solution
working for that curve, but I think a general working solution would
be neat. I think the bernoulli lemniscate could be a good test curve,
since it intersect itself.

2) Support for transforming images in a more general way. With the
zscaled, slanted, ... we are able to transform any object in an affine
way. It would be nice to be able to transform any object in a more
general way (i.e. by a mapping defined by the user). The example code
below shows what happens in the complex plane with a grid and a curve
when the mapping z to z^2 is applied. Perhaps I am missing something,
but I'm not able to apply this to a piece of text for example, or to
apply it directly to a picture. Instead, I have to loop over all
separate paths. I think the ideal would be to have a "ftransformed"
(or with some other name), and then just define a function (as fun in
the example below), and then be able to do "draw X ftransformed fun;",
where X is some(any?) general object. Is that doable?

/Mikael

%%% Example code
\starttext
\startMPpage[offset=3bp]
u:=3cm;

def fun(expr x,y) = (x**2-y**2,2*x*y) enddef;

def sq(expr kv,s) =
fun(xpart point 0 along kv,ypart point 0 along kv)
  for i=s step s until 1: -- fun(xpart point i along kv,ypart point i
along kv) endfor
enddef;

path rp;
rp = (0,-0.8)..(0.7,-0.2)..(0.7,0.6){dir
150}..(-0.7,0.4)..(-0.4,-0.5){dir 0}..cycle;


% Draw the original grid and the path
for i = -1 step 1/10 until 1+eps:
 for j = -1 step 1/10 until 1+eps:
  draw ((i,-1)--(i,1)) scaled u;
  draw ((-1,j)--(1,j)) scaled u;
 endfor;
endfor;

draw rp scaled u withcolor darkred withpen pencircle scaled 2bp;

% Draw the grid and curve after map z->z^2
draw image(
for i = -1 step 1/10 until 1+eps:
 for j = 0 step 1/10 until 1+eps:
  draw (sq(((i,0)--(i,1)),1/100)) scaled u;
  draw (sq(((-1,j)--(1,j)),1/100)) scaled u;
 endfor;
endfor;
draw (sq(rp,1/100)) scaled u withcolor darkred withpen pencircle scaled 2bp;
) xshifted 2.5u;

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

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-09 Thread Mikael P. Sundqvist
Wow! This is cool!

I must admit I do not get how the connections between MetaPost and Lua
works, but it seem to work fine.

Challenge: To do this for a more complicated closed and self-intersecting
curve like the
Bernoulli lemniscate, say (x^2+y^2)^2=x^2-y^2 (a good domain could be
-1.5 wrote:

> On 10/8/2018 11:25 PM, Aditya Mahajan wrote:
> > On Mon, 8 Oct 2018, Alan Braslau wrote:
> >
> >> On Mon, 8 Oct 2018 16:00:10 -0400 (EDT)
> >> Aditya Mahajan  wrote:
> >>
> >>> On Sun, 7 Oct 2018, Hans Hagen wrote:
> >>>
> >>>> On 10/7/2018 7:14 PM, Alan Braslau wrote:
> >>>>> On Sun, 7 Oct 2018 17:25:35 +0200
> >>>>> "Mikael P. Sundqvist"  wrote:
> >>>>>
> >>>>>> ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}]
> >>>>>
> >>>>> Brut force:
> >>>>> [...]
> >>>>>
> >>>> as this takes some time here's a cheat:
> >>>>
> >>>> \starttext
> >>>>
> >>>> \startbuffer[demo]
> >>>> [...]
> >>>> \stopbuffer
> >>>>
> >>>> \startTEXpage
> >>>> \typesetbuffer[demo]
> >>>> \stopTEXpage
> >>>> \stoptext
> >>>>
> >>>> a next run the already prepared buffer will be taken unles it has been
> >>>> changed.
> >>>
> >>> I thought that this will also be a good usecase of showing Lua+MP
> >>> interaction. I wrote the code below following the metafun manual, but
> >>> I cannot
> >>> get it to compile. What am I missing?
> >>>
> >>>
> >> You need to put it into the mp namespace:
> >
> > Thanks. The metafun manual is confusing in this regard and I got the
> > impression that any lua namespace could be used.
> >
> >> (then eps should be made a linear function of xi)
> >
> > Oh, I missed that. Thanks.
> >
> >> (and, indeed this is much faster than calculating in MP)
> >
> > Yes. Iterating over 10^6 values on a 1GHz computer should roughly take
>
> hm, my 3.4 gig laptop cpu needs 0.18 sec for the slightly more that i
> million steps ... it depends on the function too
>
> > 1ms in any reasonable programming language. Metapost for loops work with
> > macro expansion, which can be very expensive for large loops.
>
> generalized:
>
> \startluacode
> - abs = math.abs
>
> local contour = { }
> local data= { }
> local origin  = { 0, 0 }
> local length  = 0
>
> local function generate(f, x_min, x_max, y_min, y_max)
> local points = { }
> local length = 1000
> local eps= 1e-3
> local spe= -eps
> local n  = 0
> local code   = "return function(x,y) return " .. f .. " end"
> local action = load(code)
> if action then
>  action = action()
> end
> for xi = x_min, x_max, (x_max - x_min)/length do
> for yi = y_min, y_max, (y_max - y_min)/length do
>   -- if abs(action(xi,yi)) < eps then -- 10% gain with:
>  local v = action(xi,yi)
>  if v < eps and v > spe then
>  n = n + 1
>  points[n] = { xi, yi }
>  end
> end
> end
> return points, n
> end
>
> function mp.Countour(...)
>  data, length = generate(...)
> end
>
> function mp.ContourN()
>  mp.print(length)
> end
>
> function mp.ContourPoint(i)
>  mp.pair(data[i] or origin)
> end
>
> function mp.ContourPath(f,...)
>  if f then
>  data, length = generate(f,...)
>  end
>  mp.path(length > 0 and data or origin)
> end
>
> \stopluacode
>
> \starttext
>  \startMPpage[instance=doublefun]
>% lua.mp.Countour("2*x^5  + x*y + y^5", 0, 2, -1, 0.5) ;
>% draw lua.mp.ContourPath() withpen pencircle scaled .01 ;
>  draw lua.mp.ContourPath("2*x^5  + x*y + y^5", 0, 2, -1, 0.5)
> withpen pencircle scaled .01 ;
>  setbounds currentpicture to (0,-2) -- (2,-2) -- (2,.5) --
> (0,.5) -- cycle ;
>  currentpicture := currentpicture xsized 5cm ;
>  picture pic ; pic := currentpicture ;
>  drawarrow llcorner pic -- lrcorner pic ;
>  drawarrow llcorner pic -- ulcorner pic ;
>  label.rt ("$x$", lrcorner pic) ;
>  label.top("$y$", ulcorner pic) ;
>  for x=0 step .5 until 2 :
>  label.bot(decimal x,(x/

Re: [NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Mikael P. Sundqvist
On Sun, Oct 7, 2018 at 7:14 PM Alan Braslau  wrote:
>
> On Sun, 7 Oct 2018 17:25:35 +0200
> "Mikael P. Sundqvist"  wrote:
>
> > ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}]
>
> Brut force:
>
> \startTEXpage
> \startMPcode {doublefun}
> pen savedpen ; savedpen := currentpen ;
> pickup pencircle scaled .01 ;
> path p ;
> p := for i=0 upto 1000 :
>for j=0 upto 1000 :
>  hide(x := 2i/1000 ; y := 2.5j/1000 - 2 ;)
>  if abs(2*(x**5)+x*y+y**5) < .002i/1000 : (x,y) .. fi
>endfor
>  endfor cycle ;
> draw subpath (0,length p - 1) of p ;
> setbounds currentpicture to (0,-2)--(2,-2)--(2,.5)--(0,.5)--cycle ;
> currentpicture := currentpicture xsized 5cm ;
> pickup savedpen ;
>
> picture pic ; pic := currentpicture ;
> drawarrow llcorner pic--lrcorner pic ;
> drawarrow llcorner pic--ulcorner pic ;
> label.rt ("$x$", lrcorner pic) ;
> label.top("$y$", ulcorner pic) ;
> for x=0 step .5 until 2 :
> label.bot(decimal x,(x/2)[llcorner pic,lrcorner pic]) ;
> endfor
> for y=0 step .5 until 2.5 :
> label.lft(decimal (y-2),(y/2.5)[llcorner pic,ulcorner pic]) ;
> endfor
> \stopMPcode
> \stopTEXpage
>
>
> Alan

Thanks both to luigi and to Alan! I'm impressed by your brute force
method, Alan! In particular it learned me the "hide" command.

I feel a bit ashamed. Earlier today I answered something else giving a
reference to the metafun manual. Now I'm here not reading it carefully
enough myself. In the helpers section it is clearly written how to
import and plot data. Thus, I exported the data from the Mathematica
plot (that file is pasted below in case anyone wants to try this
themselves, sorry in advance for the big amount of text it generates
in this email) and then importing it just worked fine. I like Alan's
method very much, but it takes some time during compilation, so I will
probably stick with importing. Working code below (where one can see
that Alan's method is indeed working fine, at least with this
example).

Again, thanks to both luigi and Alan!

\starttext

\startTEXpage[offset=2bp]
\startMPcode{doublefun}

pen savedpen ; savedpen := currentpen ;
pickup pencircle scaled .01 ;

lua("MP = { } MP.data = table.load('mmadata.txt')") ;
numeric n ;
lua("mp.print('n := ',\#MP.data)") ;
path mycurve;
mycurve :=
lua("mp.pair(MP.data[1])")
for i=2 upto n :
.. lua("mp.pair(MP.data[" & decimal i & "])")
endfor;
draw mycurve withcolor darkred withpen pencircle scaled 0.04;

path p ;
p := for i=0 upto 1000 :
   for j=0 upto 1000 :
 hide(x := 2i/1000 ; y := 2.5j/1000 - 2 ;)
 if abs(2*(x**5)+x*y+y**5) < .002i/1000 : (x,y) .. fi
   endfor
 endfor cycle ;
draw subpath (0,length p - 1) of p ;
setbounds currentpicture to (0,-2)--(2,-2)--(2,.5)--(0,.5)--cycle ;
currentpicture := currentpicture xsized 5cm ;
pickup savedpen ;

picture pic ; pic := currentpicture ;
drawarrow llcorner pic--lrcorner pic ;
drawarrow llcorner pic--ulcorner pic ;
label.rt ("$x$", lrcorner pic) ;
label.top("$y$", ulcorner pic) ;
for x=0 step .5 until 2 :
label.bot(decimal x,(x/2)[llcorner pic,lrcorner pic]) ;
endfor
for y=0 step .5 until 2.5 :
label.lft(decimal (y-2),(y/2.5)[llcorner pic,ulcorner pic]) ;
endfor
\stopMPcode
\stopTEXpage
\stoptext


%%% mmadata.txt %%%
return {{1.7781332646374535, -2.0}, {1.7768209908069152,
-1.9983615165933983}, {1.775510204081634, -1.9967215415115265},
{1.7664030082433901, -1.985873790716172}, {1.756875567501,
-1.9744897959183674}, {1.7559890220139953, -1.973381069421283},
{1.7551020408163278, -1.9722667987462739}, {1.7455791311458495,
-1.9608832289248324}, {1.7356495451060165, -1.9489795918367347},
{1.7351734376993888, -1.9483801416512756}, {1.7346938775510217,
-1.9477751961654046}, {1.7247720468786834, -1.9358716760955252},
{1.714463398255413, -1.9234693877551021}, {1.7142857142857155,
-1.9232445076564075}, {1.7093814232165505, -1.9173390239186459},
{1.7039827159442558, -1.910837931600294}, {1.6938775510204094,
-1.8986359463002893}, {1.6935950869756253, -1.8983122637294494},
{1.6932881048717179, -1.8979591836734695}, {1.683212201778606,
-1.8857806661440912}, {1.6734693877551032, -1.8739731304347957},
{1.6728341829160982, -1.873242985640593}, {1.6721459415303699,
-1.8724489795918369}, {1.6624611568740721, -1.8606990641114929},
{1.653061224489797, -1.8492648538255463}, {1.6520932542108602,
-1.8481487383588753}, {1.6510476808879386, -1.8469387755102042},
{1.6417306097129987, -1.8355918398995696}, {1.632653061224491,
-1.824508389583349}, {1.6313733625579403, -1.82302819476176},
{1.6299953447379028, -1.8214285714285716}, {1.621021656483979,
-1.8104576232725786}, {1.6122448979591848, -1.7997008180397196},
{1.6106756399677442, -1.7978799398362397}, {1.6089910811705357,
-1.7959

[NTG-context] Implicit plots/level curves possible?

2018-10-07 Thread Mikael P. Sundqvist
Dear list,

Is it possiblet to make implicit plots (i.e. ploting the curves
described by equations) in MetaFun? I cannot find anything about them
in the MetaFun manual.

For example, in Mathematica I can write something like

ContourPlot[2 x^5 + x y + y^5 == 0, {x, 0, 2}, {y, -2, 1/2}]

to get the attached figure.

The closest I have found which is something MetaPost-like, is the
levelcurve command in mfpic (see for example this answer
https://tex.stackexchange.com/a/405527/52406).

If this is not currently possible in MetaFun, what is the simplest way
to proceed (I want the same style of the plots as the other ones in my
doc)? Is it to

1) somehow run mfpic from within ConTeXt?
2) export points from Mathematica and plot them in ConTeXt (how could
that be done?). In the latter case, say I have the points (0,0),
(0.4,1), and (0.8,2) exported to a file. What format should it be in
to be easily imported and plot in MetaFun?
3) some other way?

/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] filling overlap ?

2018-10-07 Thread Mikael P. Sundqvist
On Sun, Oct 7, 2018 at 1:10 PM Floris van Manen  wrote:
>
> Could someone point me to te way as how to fill only the overlap of three 
> paths using metafun ?
>
> path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ;
> path q ; q := fullsquare xscaled  9mm yscaled 11mm superellipsed .7 ;
> q := q shifted (3mm, -2mm);
> path r ; r := fullsquare xscaled  8mm yscaled 10mm superellipsed .7 ;
> r := r shifted (0mm, -4mm);
> draw p ;
> draw q ;
> draw r ;
>
>
>
> Thanks
> .Floris
>
> ___
> 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
> ___

Hi!

This is something similar as in page 304 of the manual
http://www.pragma-ade.com/general/manuals/metafun-p.pdf

\startMPpage
path p ; p := fullsquare xscaled 10mm yscaled 12mm superellipsed .7 ;
path q ; q := fullsquare xscaled  9mm yscaled 11mm superellipsed .7 ;
q := q shifted (3mm, -2mm);
path r ; r := fullsquare xscaled  8mm yscaled 10mm superellipsed .7 ;
r := r shifted (0mm, -4mm);
path pr,pqr;
pr = buildcycle(p, r);
%fill pr withcolor 0.5white;
pqr = buildcycle(q,pr) ;
fill pqr withcolor darkyellow;
draw p ;
draw q withcolor darkred;
draw r withcolor darkblue;
\stopMPpage

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

[NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Mikael P. Sundqvist
Hi,

the following example generates (with latest standalone) the attached
result. As you can see, the final item is not correctly aligned vertically.
Am I doing something wrong, or is it a bug?

/Mikael

PS Yes, I use \displaystyle in the real example, but the same error exist
with this simpler example.

\starttext
\startTEXpage[offset=2bp]
\startitemize[n]
\startitem
Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits
\startitemize[a,columns,three][left=,right={)},stopper=]
\startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem
\startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem
\startitem $\lim_{x\to 0}f(x)$.\stopitem
\stopitemize
\stopitem
\stopitemize
\stopTEXpage
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bug in newest ConTeXt with anglebetween?

2018-09-01 Thread Mikael P. Sundqvist
Hi!

The document below compiled before, but not since upgrading to the new
version of standalone (current version: 2018.08.30 18:41). I'm running
linux if that matters.

The problem seem to be anglebetween, since if that line is commented out,
the file compiles.

%%%
\starttext
\startuseMPgraphic{testfig}
u:=1cm;
z0=origin;
z1=(4u,3u);
z2=(4u,0);

draw z0--z1--z2--cycle;

draw anglebetween(z0--z2,z0--z1,btex $\alpha$ etex);
\stopuseMPgraphic

\startplacefigure
\useMPgraphic{testfig}
\stopplacefigure
\stoptext
%%%

The error is something like:

tex error   > tex error on line 7 in file /home/mickep/tmp/testfil.tex:
! Extra }, or forgotten $

l.7 }

 \global \setbox \mptextbox \hbox {\clf_mptexttoks
  }

BAD

\relax
\meta_process_graphic ...pvariableclass :}\relax }

\meta_process_graphic_stop...
\meta_handle_use_graphic ...a_process_graphic {#3}
  \endgroup

/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] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
On Tue, Aug 28, 2018 at 11:59 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Mikael,
> I suppose the files test1 and test2 have a special structure ?
>
> %%% file.tex
> \doifnotmode{test1}{\enablemode[test1,test2]}
> \starttext
> \startmode[test1,all]
> We are in mode test1.
> \stopmode
> \startmode[test2,all]
> We are in mode test2.
> \stopmode
> \stoptext
> %%%
>
> %%% test1.tex
> 
> %%%
>
> %%% test2.tex
> ???
> %%%
>
> Fabrice
>
> Le mar. 28 août 2018 à 11:05, Mikael P. Sundqvist  a
> écrit :
>
>> On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
>> fabrice1.couvr...@gmail.com> wrote:
>>
>>> Hi Mikael,
>>> I do not know this way yet. Can you attach a complete example ?
>>> Regards,
>>> Fabrice
>>>
>>> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
>>> écrit :
>>>
>>>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>>>>
>>>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
>>>> wrote:
>>>> > >
>>>> > > Hi!
>>>> > >
>>>> > > I am writing notes for my teaching and would like to do the
>>>> following with modes:
>>>> > >
>>>> > > * If the file is compiled with context file.tex then everything
>>>> (i.e. the content in all modes) is typeset.
>>>> > > * If the file is compiled with context --mode=test1 file.tex then
>>>> only mode test1 is typeset.
>>>> > >
>>>> > > I do not see how to do this easily.
>>>> >
>>>> >
>>>> > This is what I would do if the list of modes is small:
>>>> >
>>>> > \doifnotmode{test1}{\enablemode[test1,test2]}
>>>> >
>>>> > (and don’t use the \definemode lines)
>>>> >
>>>> > But if you need many of them, that could get problematic with
>>>> > many nested \doifmodeelse statements.
>>>> >
>>>> > In that case, I would use a separate ‘all’ mode, and call the
>>>> > context script with that as argument in the generic case.
>>>> >
>>>> >
>>>> > %%% file.tex
>>>> > \starttext
>>>> > \startmode[test1,all]
>>>> > We are in mode test1.
>>>> > \stopmode
>>>> > \startmode[test2,all]
>>>> > We are in mode test2.
>>>> > \stopmode
>>>> > \stoptext
>>>> > %%%
>>>> >
>>>> >
>>>> ___
>>>> >
>>>> > Thank you, Taco!
>>>> >
>>>> > I have around 25 of them, and your solution with "all" works indeed
>>>> well for me.
>>>>
>>>>
>>>> There’s also
>>>>
>>>> \startnotmode[some]
>>>> This is not typeset in "some" mode.
>>>> \stopnotmode
>>>>
>>>>
>>>> Greetlings, Hraban
>>>> ---
>>>> https://www.fiee.net
>>>> http://wiki.contextgarden.net
>>>> https://www.dreiviertelhaus.de
>>>> 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  : 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] Question on enabling/disabling modes

2018-08-28 Thread Mikael P. Sundqvist
On Tue, Aug 28, 2018 at 10:54 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hi Mikael,
> I do not know this way yet. Can you attach a complete example ?
> Regards,
> Fabrice
>
> Le lun. 27 août 2018 à 20:47, Henning Hraban Ramm  a
> écrit :
>
>> Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist :
>>
>> > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist 
>> wrote:
>> > >
>> > > Hi!
>> > >
>> > > I am writing notes for my teaching and would like to do the following
>> with modes:
>> > >
>> > > * If the file is compiled with context file.tex then everything (i.e.
>> the content in all modes) is typeset.
>> > > * If the file is compiled with context --mode=test1 file.tex then
>> only mode test1 is typeset.
>> > >
>> > > I do not see how to do this easily.
>> >
>> >
>> > This is what I would do if the list of modes is small:
>> >
>> > \doifnotmode{test1}{\enablemode[test1,test2]}
>> >
>> > (and don’t use the \definemode lines)
>> >
>> > But if you need many of them, that could get problematic with
>> > many nested \doifmodeelse statements.
>> >
>> > In that case, I would use a separate ‘all’ mode, and call the
>> > context script with that as argument in the generic case.
>> >
>> >
>> > %%% file.tex
>> > \starttext
>> > \startmode[test1,all]
>> > We are in mode test1.
>> > \stopmode
>> > \startmode[test2,all]
>> > We are in mode test2.
>> > \stopmode
>> > \stoptext
>> > %%%
>> >
>> >
>> ___
>> >
>> > Thank you, Taco!
>> >
>> > I have around 25 of them, and your solution with "all" works indeed
>> well for me.
>>
>>
>> There’s also
>>
>> \startnotmode[some]
>> This is not typeset in "some" mode.
>> \stopnotmode
>>
>>
>> Greetlings, Hraban
>> ---
>> https://www.fiee.net
>> http://wiki.contextgarden.net
>> https://www.dreiviertelhaus.de
>> 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  : 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
>
> ___


Fabrice,

Taco's example is complete. Try

context file.tex
context --mode=test1 file.tex
context --mode=all file.tex

and you will get, in turn, nothing, the content in mode test1, everything.

/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] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
On Mon, Aug 27, 2018 at 3:17 PM Taco Hoekwater  wrote:

>
>
> > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist  wrote:
> >
> > Hi!
> >
> > I am writing notes for my teaching and would like to do the following
> with modes:
> >
> > * If the file is compiled with context file.tex then everything (i.e.
> the content in all modes) is typeset.
> > * If the file is compiled with context --mode=test1 file.tex then only
> mode test1 is typeset.
> >
> > I do not see how to do this easily.
>
>
> This is what I would do if the list of modes is small:
>
> \doifnotmode{test1}{\enablemode[test1,test2]}
>
> (and don’t use the \definemode lines)
>
> But if you need many of them, that could get problematic with
> many nested \doifmodeelse statements.
>
> In that case, I would use a separate ‘all’ mode, and call the
> context script with that as argument in the generic case.
>
>
> %%% file.tex
> \starttext
> \startmode[test1,all]
> We are in mode test1.
> \stopmode
> \startmode[test2,all]
> We are in mode test2.
> \stopmode
> \stoptext
> %%%
>
>
> Best wishes,
> Taco
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> 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, Taco!

I have around 25 of them, and your solution with "all" works indeed well
for me.

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

[NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
Hi!

I am writing notes for my teaching and would like to do the following with
modes:

* If the file is compiled with context file.tex then everything (i.e. the
content in all modes) is typeset.
* If the file is compiled with context --mode=test1 file.tex then only mode
test1 is typeset.

I do not see how to do this easily. The example I am working on looks like
this:

%%% file.tex
\definemode[test1][keep]
\definemode[test2][keep]
\starttext
\startmode[test1]
We are in mode test1.
\stopmode
\startmode[test2]
We are in mode test2.
\stopmode
\stoptext
%%%

This, however, naturally gives not output, since the modes test1 and test2
are not activated. If I compile with context --mode=test1 file.tex I get
the content in mode test1, as I want.

I have tried to change "keep" to "yes" in the setup of the modes, but then
the material in both modes are typeset no matter what command flag I use.

Do I miss something?

/Mikael

PS In reality I have about 25 lectures, so using this method there will be
about 25 modes in total.
___
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] Some questions about an extreme table

2018-08-25 Thread Mikael P. Sundqvist
On Sun, Aug 26, 2018 at 1:49 AM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Hello,
> In the table, how to have a. b. c. in each line instead of a. a. a ?
> Is the macro to place the figures on the baseline of the labels to be
> improved ?
> Thanks.
> Fabrice
>
> \useMPlibrary[dum]
>
> \switchtobodyfont[pagella,12pt]
>
> \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}}
>
> \setuplayout
>[topspace=10mm,
> header=10mm,
> footer=10mm,
> height=middle,
> backspace=20mm,
> width=middle]
>
> \starttext
>  \startxtable[frame=on,bodyfont=10pt]
> \startxrow
>   \startxcell[width=2cm]
> Expression \\ \m{B'(x)}
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \m{B'(x)=-x²+24x-117}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \m{B'(x)=-3x²+48x-117}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \m{B'(x)=-3x²+48x-317}
>   \stopitem
> \stopitemize
>   \stopxcell
> \stopxrow
> \startxrow
>   \startxcell
> Tableau de \\ signes de  \\ \m{B'(x)}
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{{\externalfigure[dummy]}}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{\externalfigure[dummy]}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{\externalfigure[dummy]}
>   \stopitem
> \stopitemize
>   \stopxcell
> \stopxrow
> \startxrow
>   \startxcell
> Tableau de \\ variations\\de \m{B}
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{\externalfigure[dummy]}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{\externalfigure[dummy]}
>   \stopitem
> \stopitemize
>   \stopxcell
>   \startxcell
> \startitemize[packed,a]
>   \startitem
> \Item{\externalfigure[dummy]}
>   \stopitem
> \stopitemize
>   \stopxcell
> \stopxrow
>   \stopxtable
>
> \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  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___


For the first one, I think you look for \startitemize[packed,a,continue].

For the second question, I don't understand if the output now looks as you
want it or not?

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

[NTG-context] Graphics gets extra indent if hanging in list

2018-06-11 Thread Mikael P. Sundqvist
Hi!

Please look at the example below. I wish the red rectangle to be located as
the green one aligned with text to the right, but it gets pushed a bit (the
space to the left in the list?). Am I doing things wrongly? Is it possible
to fix easily?

/Mikael

\setuppapersize[A6]

\starttext

\starthanging[location=right]{\blackrule[color=darkgreen,width=1in,height=0.5in]}
\input ward
\stophanging

\startitemize[n]
\item
\starthanging[location=right]{\blackrule[color=darkred,width=1in,height=0.5in]}
\input ward
\stophanging
\stopitemize

\stoptext


hang.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] Size of fences, factor key

2018-04-25 Thread Mikael P. Sundqvist
>
>
>>
> sort of unclear indeed
>
>
> these big things are tricky as in plain tex they depends on font
> dimensions and forced scaling but in context we have abit more control over
> these sizes
>
> you can add this to cont-new.mkiv
>
> \unprotect
>
> \unexpanded\def\math_fenced_fenced_indeed[#1]#2%
>   {\iffirstargument\setupcurrentmathfence[#1]\fi
>\math_fenced_fenced_common
>\edef\p_size{\mathfenceparameter\c!size}%
>\ifx\p_size\empty\else
>
> \attribute\mathsizeattribute\numexpr\bigmathdelimitervariant
> *\plushundred+\p_size\relax
>\fi
>\math_fenced_left
>#2%
>\math_fenced_right
>\stopusemathstyleparameter
>\endgroup
>\advance\c_math_fenced_nesting\minusone}
>
> \protect
>
> and then do
>
> \setupbodyfont[lucidaot]
>
> \definemathfence[Set][left="007B,right="007D,command=yes]
>
> \startTEXpage[offset=1ex]
> \startformula
> \Set{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=2]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=3]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=4]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \stopTEXpage
>


Many thanks for your answer, I appreciate it!

If you look at the example below (output attached), you see that the
version with \bigl and \bigr has a different size than the other ones.

So my question boils down to: Is it possible, by using fences, to have the
same size as the \big, \Big, \bigg etc would give?

If not, is it possible to implement? I think it would make the already very
nice fencing system even more usable. The reason is to be able to use this
instead of not using fences at all in the few cases where the size from the
fencing is not optimal.

/Mikael


\unprotect

\unexpanded\def\math_fenced_fenced_indeed[#1]#2%
  {\iffirstargument\setupcurrentmathfence[#1]\fi
   \math_fenced_fenced_common
   \edef\p_size{\mathfenceparameter\c!size}%
   \ifx\p_size\empty\else

\attribute\mathsizeattribute\numexpr\bigmathdelimitervariant*\plushundred+\p_size\relax
   \fi
   \math_fenced_left
   #2%
   \math_fenced_right
   \stopusemathstyleparameter
   \endgroup
   \advance\c_math_fenced_nesting\minusone}

\protect

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startTEXpage[offset=1ex]
\startformula
\{x\in\mathbb R~:~x^2=1\}\quad\text{Here the braces are too small}
\stopformula
\startformula
\bigl\{x\in\mathbb R~:~x^2=1\bigr\}\quad\text{I like this size}
\stopformula
\startformula
\Set{x\in\mathbb R~:~x^2=1}\quad\text{Here the braces are too big}
\stopformula
\startformula
\Set[size=2]{x\in\mathbb R~:~x^2=1}\quad\text{Here the braces are
too big}
\stopformula
\stopTEXpage


ctx-example36.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] Size of fences, factor key

2018-04-24 Thread Mikael P. Sundqvist
On Sat, Apr 21, 2018 at 7:30 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Dear Hans and others,
>
> I'm usually use the \big, \Big, \bigg etc to get the size of parentheses,
> brackets and braces to be the size I want. I realize that the fences
> machinery is probably a cleaner way of doing this.
>
> I tried it a bit, and it usually gives the result I like. But sometimes
> not, and it seems that the way to change the size of the
> parentheses/brackets/braces is to use the factor key.
>
> 1) Are the different options none, auto NUMBER explained somehere?
> 2) Could one have, for exceptional cases where the default is not
> satisfactory, a keyword like factor=big for example, to get the same size
> as if one would have used \big?
>
> I am a bit confused. See the example below, with output (from latest
> standalone) attached.
>
> /Mikael
>
> PS: I would suggest to have
>  italic   = { feature = 'ss01', value = 1, comment = "Mathematical
> Alternative Lowercase Italic" },
> set in lucida-opentype-math.lfg. In all books (on math) I have seen, I
> think this is what is used.
>
> %%% Example file:
>
> \setupbodyfont[lucidaot]
>
> \definemathfence[Set][left="007B,right="007D,command=yes]
>
> \startbuffer
> \startformula
> \Set{x\in\mathbb R~:~x^2=1}
> \stopformula
> \stopbuffer
>
>
> \startTEXpage[offset=3bp]
>
> \startformula
> \{x\in\mathbb R~:~ x^2=1\}%Too small
> \stopformula
>
> \startformula
> \bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
> \stopformula
>
> \startformula
> \Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
> \stopformula
>
> \getbuffer
>
> \setupmathfence[Set][factor=1]%I like this one
> \getbuffer
>
> \setupmathfence[Set][factor=auto]%Too big
> \getbuffer
>
> %\setupmathfence[Set][factor=big]%Perhaps this could work? Or size=big or
> something
> %\getbuffer
> \stopTEXpage
>

I hate to do this, but a small *bump*

(If it is unclear what I'm asking for, I could try to clarify)

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

[NTG-context] Size of fences, factor key

2018-04-21 Thread Mikael P. Sundqvist
Dear Hans and others,

I'm usually use the \big, \Big, \bigg etc to get the size of parentheses,
brackets and braces to be the size I want. I realize that the fences
machinery is probably a cleaner way of doing this.

I tried it a bit, and it usually gives the result I like. But sometimes
not, and it seems that the way to change the size of the
parentheses/brackets/braces is to use the factor key.

1) Are the different options none, auto NUMBER explained somehere?
2) Could one have, for exceptional cases where the default is not
satisfactory, a keyword like factor=big for example, to get the same size
as if one would have used \big?

I am a bit confused. See the example below, with output (from latest
standalone) attached.

/Mikael

PS: I would suggest to have
 italic   = { feature = 'ss01', value = 1, comment = "Mathematical
Alternative Lowercase Italic" },
set in lucida-opentype-math.lfg. In all books (on math) I have seen, I
think this is what is used.

%%% Example file:

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startbuffer
\startformula
\Set{x\in\mathbb R~:~x^2=1}
\stopformula
\stopbuffer


\startTEXpage[offset=3bp]

\startformula
\{x\in\mathbb R~:~ x^2=1\}%Too small
\stopformula

\startformula
\bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
\stopformula

\startformula
\Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
\stopformula

\getbuffer

\setupmathfence[Set][factor=1]%I like this one
\getbuffer

\setupmathfence[Set][factor=auto]%Too big
\getbuffer

%\setupmathfence[Set][factor=big]%Perhaps this could work? Or size=big or
something
%\getbuffer
\stopTEXpage


ctx-listexample42.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] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
On Thu, Mar 15, 2018 at 9:24 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> On Thu, Mar 15, 2018 at 11:00 AM, Hans Hagen <pra...@wxs.nl> wrote:
>
>> On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:
>>
>>> Hi Hans and others!
>>>
>>> I don't know if this is a problem with the font itself or if it is
>>> ConTeXt. In any case, the test file below gives strange output (attached).
>>> In particular the space/kerning after $f$ seems to be off.
>>>
>>
>> the fonts have bad glyph dimensions that assume italics always to be
>> applied (as in traditional tex fonts)
>>
>> you can put this at the top of your file:
>>
>> \definefontfeature[mathextra][collapseitalics=yes]
>>
>> awaiting fixed fonts (if they never get fixed we can consider applying
>> this feature by default)
>>
>> Ulrike Fischer reminded me in the StackExchange chat that not so long
>>> time ago there was some similar issue with \mathcal P discussed on this
>>> list. Is it the same problem? (The input $f \tracinglostchars=0
>>> \Uchar"EEEFF$) indeed makes it look better between the $f$ and the
>>> parenthesis.)
>>>
>>> /Mikael
>>>
>>> %%%
>>> \setupbodyfont[bonum]
>>>
>>> \starttext
>>> \startTEXpage[offset=3bp]
>>> (Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)
>>>
>>> There might be more problems (like between $t$ and the parenthesis in
>>> $e^t$) is too small.
>>>
>>> The space between $dx$ and the bar is too small:
>>> \startformula
>>> \Bigl|\int_0^\pi\sin x\,dx\Bigr|,
>>> \stopformula
>>> Look at the $f$ and the bar:
>>> \startformula
>>> \Bigl|\int f\Bigr|
>>> \stopformula
>>> The $x$ seems to be outside the fraction:
>>> \startformula
>>> \frac{a^2}{1-x}
>>> \stopformula
>>> We add another one (in fact two) including $f$:
>>> \startformula
>>> f\Bigl(\frac{a+b}{2}\Bigr)
>>> \stopformula
>>>
>>> Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
>>> $\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.
>>>
>>> With $\delta_f$ and $\delta_g$, I think it looks like the space is too
>>> big, in particular between $\delta$ and $f$, but maybe that is a matter of
>>> taste.
>>>
>>> \stopTEXpage
>>> \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/list
>>> info/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> 
>>> ___
>>>
>>>
>>
>> --
>>
>> -
>>   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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>
>
> Many thanks, Hans! This works well and it makes the font usable.
>
> I will try to contact the TeX Gyre project to report this issue in the
> font.
>
> /Mikael
>

I was too quick. Look at the distance between the integral sign and the
limits in the attached example. Is there a way to fix that?

/Mikael

\definefontfeature[mathextra][collapseitalics=yes]
\setupbodyfont[bonum]

\setupmathematics[
integral=nolimits,
]

\startTEXpage
$\int_a^b f'(t)\,dt=f(b)-f(a)$
\startformula
\int_a^b f'(t)\,dt=f(b)-f(a)
\stopformula
\stopTEXpage


bonumint.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] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
On Thu, Mar 15, 2018 at 11:00 AM, Hans Hagen <pra...@wxs.nl> wrote:

> On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:
>
>> Hi Hans and others!
>>
>> I don't know if this is a problem with the font itself or if it is
>> ConTeXt. In any case, the test file below gives strange output (attached).
>> In particular the space/kerning after $f$ seems to be off.
>>
>
> the fonts have bad glyph dimensions that assume italics always to be
> applied (as in traditional tex fonts)
>
> you can put this at the top of your file:
>
> \definefontfeature[mathextra][collapseitalics=yes]
>
> awaiting fixed fonts (if they never get fixed we can consider applying
> this feature by default)
>
> Ulrike Fischer reminded me in the StackExchange chat that not so long time
>> ago there was some similar issue with \mathcal P discussed on this list. Is
>> it the same problem? (The input $f \tracinglostchars=0 \Uchar"EEEFF$)
>> indeed makes it look better between the $f$ and the parenthesis.)
>>
>> /Mikael
>>
>> %%%
>> \setupbodyfont[bonum]
>>
>> \starttext
>> \startTEXpage[offset=3bp]
>> (Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)
>>
>> There might be more problems (like between $t$ and the parenthesis in
>> $e^t$) is too small.
>>
>> The space between $dx$ and the bar is too small:
>> \startformula
>> \Bigl|\int_0^\pi\sin x\,dx\Bigr|,
>> \stopformula
>> Look at the $f$ and the bar:
>> \startformula
>> \Bigl|\int f\Bigr|
>> \stopformula
>> The $x$ seems to be outside the fraction:
>> \startformula
>> \frac{a^2}{1-x}
>> \stopformula
>> We add another one (in fact two) including $f$:
>> \startformula
>> f\Bigl(\frac{a+b}{2}\Bigr)
>> \stopformula
>>
>> Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
>> $\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.
>>
>> With $\delta_f$ and $\delta_g$, I think it looks like the space is too
>> big, in particular between $\delta$ and $f$, but maybe that is a matter of
>> taste.
>>
>> \stopTEXpage
>> \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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>
> --
>
> -
>   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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___


Many thanks, Hans! This works well and it makes the font usable.

I will try to contact the TeX Gyre project to report this issue in the font.

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

[NTG-context] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-10 Thread Mikael P. Sundqvist
Hi Hans and others!

I don't know if this is a problem with the font itself or if it is ConTeXt.
In any case, the test file below gives strange output (attached). In
particular the space/kerning after $f$ seems to be off.

Ulrike Fischer reminded me in the StackExchange chat that not so long time
ago there was some similar issue with \mathcal P discussed on this list. Is
it the same problem? (The input $f \tracinglostchars=0 \Uchar"EEEFF$)
indeed makes it look better between the $f$ and the parenthesis.)

/Mikael

%%%
\setupbodyfont[bonum]

\starttext
\startTEXpage[offset=3bp]
(Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)

There might be more problems (like between $t$ and the parenthesis in
$e^t$) is too small.

The space between $dx$ and the bar is too small:
\startformula
\Bigl|\int_0^\pi\sin x\,dx\Bigr|,
\stopformula
Look at the $f$ and the bar:
\startformula
\Bigl|\int f\Bigr|
\stopformula
The $x$ seems to be outside the fraction:
\startformula
\frac{a^2}{1-x}
\stopformula
We add another one (in fact two) including $f$:
\startformula
f\Bigl(\frac{a+b}{2}\Bigr)
\stopformula

Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
$\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.

With $\delta_f$ and $\delta_g$, I think it looks like the space is too big,
in particular between $\delta$ and $f$, but maybe that is a matter of taste.

\stopTEXpage
\stoptext
%%%


bonumbug.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] Fourier and utopia

2018-03-06 Thread Mikael P. Sundqvist
On Sat, Mar 3, 2018 at 7:17 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mic...@gmail.com>
> wrote:
>
>> Dear Hans and dear list,
>>
>> I try to use the fourier/utopia combination in mkiv (I used that
>> combination for my PhD thesis in mkii 10 years ago).
>>
>> First of all, I have downloaded the fourier fonts from ctan at
>> https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
>> mtxrun.
>>
>> I have one folder containing type-fourier.mkiv, fourier-math.lfg and
>> testfile.tex. Everything seems to be found by the system, so the problem is
>> probably in my files somewhere. The resulting pdf after compiling
>> testfile.text is attached.
>>
>> Any ideas of what I am missing?
>>
>> Additionally, the fourier fonts come with fourier-bb.tfm (probably with
>> blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
>> ideas on how to use them in the fourier-math.lfg file?
>>
>> If more information is needed, then please tell me.
>>
>> /Mikael
>>
>> %%%
>> type-fourier.mkiv:
>> %%%
>> \starttypescriptcollection[fourier]
>> \starttypescript [serif] [fourier]
>> \definefontsynonym [Utopia-Regular] [file:putr8a.afm]
>> \definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
>> \definefontsynonym [Utopia-Bold][file:putb8a.afm]
>> \definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
>> \stoptypescript
>>
>> \starttypescript [serif] [fourier] [name]
>> \setups[font:fallback:serif]
>> \definefontsynonym [Serif][Utopia-Regular]
>> \definefontsynonym [SerifItalic]  [Utopia-Italic]
>> \definefontsynonym [SerifBold][Utopia-Bold]
>> \definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
>> \stoptypescript
>>
>> \starttypescript [math] [fourier] [all]
>> \loadfontgoodies[fourier-math]
>> \definefontsynonym [MathRoman] [fourierrm@fourier-rm]
>> \stoptypescript
>>
>> \starttypescript [fourier]
>> \definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
>> \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
>> \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
>> \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
>> \quittypescriptscanning
>> \stoptypescript
>> \stoptypescriptcollection
>>
>>
>> %%%
>> fourier-math.lfg:
>> %%%
>> return {
>> name = "fourier-math",
>> version = "1.00",
>> comment = "Math font Fourier for Utopia.",
>> mathematics = {
>> mapfiles = {
>> "fourier.map",
>> "mkiv-base.map",
>> },
>> virtuals = {
>> ["fourier-rm"] = {
>> { name = "putr8a", features = "virtualmath", main = true
>> },
>> { name = "fourier-ml.tfm",  vector = "tex-mr",
>> skewchar=0x7F },
>> { name = "fourier-mlit.tfm", vector = "tex-mi",
>> skewchar=0x7F },
>> { name = "fourier-mlit.tfm", vector = "tex-it",
>> skewchar=0x7F },
>> { name = "fourier-mlb.tfm",  vector = "tex-bf",
>> skewchar=0x7F },
>> { name = "fourier-mlitb.tfm", vector = "tex-bi",
>> skewchar=0x7F },
>> { name = "fourier-ms.tfm",  vector = "tex-sy",
>> skewchar=0x30, parameters = true },
>> { name = "fourier-mex.tfm",  vector = "tex-ex", extension
>> = true },
>> msam,
>> msbm,
>> },
>> }
>> }
>> }
>>
>> %%%
>> testfile.tex:
>> %%%
>> \loadtypescriptfile[type-fourier]
>> \setupbodyfont[fourier,12pt]
>>
>> \starttext
>> \startTEXpage[offset=3bp]
>> Some math: $y''=(y')'$.
>> A displayed formula:
>> \startformula
>> f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
>> \stopformula
>> \stopTEXpage
>> \stoptext
>>
>>
> A small step in the right direction: Blackboard letters and calligraphic
> (script) letters seem to work when I add
>
>   

[NTG-context] Primes and type1 math fonts

2018-03-03 Thread Mikael P. Sundqvist
Hans,

I asked on StackExchange (https://tex.stackexchange.com/q/418228/52406)
about non-working primes in mathdesign.

Henri Menke came up with a solution that works well, using the definition
of primes from plain TeX.

Could we make it an option somehow to use this, like

\setupmathematics[oldprimes=yes]

or 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] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Dear Hans and dear list,
>
> I try to use the fourier/utopia combination in mkiv (I used that
> combination for my PhD thesis in mkii 10 years ago).
>
> First of all, I have downloaded the fourier fonts from ctan at
> https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
> mtxrun.
>
> I have one folder containing type-fourier.mkiv, fourier-math.lfg and
> testfile.tex. Everything seems to be found by the system, so the problem is
> probably in my files somewhere. The resulting pdf after compiling
> testfile.text is attached.
>
> Any ideas of what I am missing?
>
> Additionally, the fourier fonts come with fourier-bb.tfm (probably with
> blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
> ideas on how to use them in the fourier-math.lfg file?
>
> If more information is needed, then please tell me.
>
> /Mikael
>
> %%%
> type-fourier.mkiv:
> %%%
> \starttypescriptcollection[fourier]
> \starttypescript [serif] [fourier]
> \definefontsynonym [Utopia-Regular] [file:putr8a.afm]
> \definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
> \definefontsynonym [Utopia-Bold][file:putb8a.afm]
> \definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
> \stoptypescript
>
> \starttypescript [serif] [fourier] [name]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif][Utopia-Regular]
> \definefontsynonym [SerifItalic]  [Utopia-Italic]
> \definefontsynonym [SerifBold][Utopia-Bold]
> \definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
> \stoptypescript
>
> \starttypescript [math] [fourier] [all]
> \loadfontgoodies[fourier-math]
> \definefontsynonym [MathRoman] [fourierrm@fourier-rm]
> \stoptypescript
>
> \starttypescript [fourier]
> \definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
> \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
> \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
> \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
> \quittypescriptscanning
> \stoptypescript
> \stoptypescriptcollection
>
>
> %%%
> fourier-math.lfg:
> %%%
> return {
> name = "fourier-math",
> version = "1.00",
> comment = "Math font Fourier for Utopia.",
> mathematics = {
> mapfiles = {
> "fourier.map",
> "mkiv-base.map",
> },
> virtuals = {
> ["fourier-rm"] = {
> { name = "putr8a", features = "virtualmath", main = true },
> { name = "fourier-ml.tfm",  vector = "tex-mr",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-mi",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-it",
> skewchar=0x7F },
> { name = "fourier-mlb.tfm",  vector = "tex-bf",
> skewchar=0x7F },
> { name = "fourier-mlitb.tfm", vector = "tex-bi",
> skewchar=0x7F },
> { name = "fourier-ms.tfm",  vector = "tex-sy",
> skewchar=0x30, parameters = true },
> { name = "fourier-mex.tfm",  vector = "tex-ex", extension
> = true },
> msam,
> msbm,
> },
> }
> }
> }
>
> %%%
> testfile.tex:
> %%%
> \loadtypescriptfile[type-fourier]
> \setupbodyfont[fourier,12pt]
>
> \starttext
> \startTEXpage[offset=3bp]
> Some math: $y''=(y')'$.
> A displayed formula:
> \startformula
> f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
> \stopformula
> \stopTEXpage
> \stoptext
>
>
A small step in the right direction: Blackboard letters and calligraphic
(script) letters seem to work when I add

{ name = "fourier-bb.tfm",  vector = "tex-mb",
skewchar=0x7F },
{ name = "fourier-mcl.tfm",  vector = "tex-sy",
skewchar=0x7F },

to fourier-math.lfg.

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

[NTG-context] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
Dear Hans and dear list,

I try to use the fourier/utopia combination in mkiv (I used that
combination for my PhD thesis in mkii 10 years ago).

First of all, I have downloaded the fourier fonts from ctan at
https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
mtxrun.

I have one folder containing type-fourier.mkiv, fourier-math.lfg and
testfile.tex. Everything seems to be found by the system, so the problem is
probably in my files somewhere. The resulting pdf after compiling
testfile.text is attached.

Any ideas of what I am missing?

Additionally, the fourier fonts come with fourier-bb.tfm (probably with
blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
ideas on how to use them in the fourier-math.lfg file?

If more information is needed, then please tell me.

/Mikael

%%%
type-fourier.mkiv:
%%%
\starttypescriptcollection[fourier]
\starttypescript [serif] [fourier]
\definefontsynonym [Utopia-Regular] [file:putr8a.afm]
\definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
\definefontsynonym [Utopia-Bold][file:putb8a.afm]
\definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
\stoptypescript

\starttypescript [serif] [fourier] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif][Utopia-Regular]
\definefontsynonym [SerifItalic]  [Utopia-Italic]
\definefontsynonym [SerifBold][Utopia-Bold]
\definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
\stoptypescript

\starttypescript [math] [fourier] [all]
\loadfontgoodies[fourier-math]
\definefontsynonym [MathRoman] [fourierrm@fourier-rm]
\stoptypescript

\starttypescript [fourier]
\definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
\definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
\definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
\definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
\quittypescriptscanning
\stoptypescript
\stoptypescriptcollection


%%%
fourier-math.lfg:
%%%
return {
name = "fourier-math",
version = "1.00",
comment = "Math font Fourier for Utopia.",
mathematics = {
mapfiles = {
"fourier.map",
"mkiv-base.map",
},
virtuals = {
["fourier-rm"] = {
{ name = "putr8a", features = "virtualmath", main = true },
{ name = "fourier-ml.tfm",  vector = "tex-mr",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-mi",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-it",
skewchar=0x7F },
{ name = "fourier-mlb.tfm",  vector = "tex-bf",
skewchar=0x7F },
{ name = "fourier-mlitb.tfm", vector = "tex-bi",
skewchar=0x7F },
{ name = "fourier-ms.tfm",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "fourier-mex.tfm",  vector = "tex-ex", extension =
true },
msam,
msbm,
},
}
}
}

%%%
testfile.tex:
%%%
\loadtypescriptfile[type-fourier]
\setupbodyfont[fourier,12pt]

\starttext
\startTEXpage[offset=3bp]
Some math: $y''=(y')'$.
A displayed formula:
\startformula
f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
\stopformula
\stopTEXpage
\stoptext


testfile.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] chapter setup with subtitle in margin

2018-01-24 Thread Mikael P. Sundqvist
On Wed, Jan 24, 2018 at 11:00 PM, Henning Hraban Ramm 
wrote:

> Am 2018-01-24 um 19:25 schrieb Aditya Mahajan :
>
> > On Wed, 24 Jan 2018, Henning Hraban Ramm wrote:
> >
> >> Am 2018-01-23 um 22:31 schrieb Henning Hraban Ramm :
> >>
> >>> I have this nice/complicated chapter setup (see attachments):
> >>> Three problems I cannot get rid of:
> >>>
> >>> - There’s always an indent in front of the title (red box); it should
> not.
> >>> - The subtitle should start on the same line as the main title.
> >>> - The subtitle should have an appropriate line spacing.
> >>
> >> I could solve the subtitle placement with layers.
> >>
> >> But the chapter title still has this indent. :-(
> >
> > Untested, but you have two spurious spaces in your code
> >
> > \define[2]\ChapterCmd{%
> >  \inouter{\framed[frame=off,align=flushleft]{%
> >%\startlinecorrection
> >\switchtobodyfont[rm,12pt] % <-- Here. Remove space before %
> >\structureuservariable{subtitle}}%
> >%\stoplinecorrection
> >}% << HERE: % was missing
> >  \framed[width=\textwidth,frame=off,align=flushleft]{\ChapterTitleFont
> #2}
> > }
>
> Thank you, but those existed only in an old version.
> Current is:
>
> \define[2]\ChapterCmd{%
>   
> \framed[width=\textwidth,frame=off,align=flushleft,style=\ChapterTitleFont]{#2}%
> without framed it’s a hbox?
>   \setlayerframed[rightmargin]%
>   [frame=off,width=\outermarginwidth,y=0mm,setups=
> Subtitle,align=flushleft]%
>   {\structureuservariable{subtitle}}%
> }
>
> And the indent is still there.
>
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> 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  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>

I think you can get rid of that horizontal space by adding "offset=overlay"
to the framed environment used in your \ChapterCmd.

/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] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Mikael P. Sundqvist
On Sat, Nov 25, 2017 at 3:30 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 11/25/2017 03:10 PM, Mikael P. Sundqvist wrote:
> > [...]
> > I agree that it is strange to have those holes due to present symbols.
> > Will the code I used work in an updated beta, or should we proceed in
> > some other way?
>
> Hi Mikael,
>
> math is all Greek to me, but this seems to work (I guess, fallback
> should beextended to actual character:
>
> \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math]
> [range={uppercasedoublestruck, 0x02102-0x02124}]
> \definefontfamily [mainface] [mm] [Neo Euler]
> \setupbodyfont[mainface,12pt]
> \starttext
> \startTEXpage[offset=3pt]
> Test: $\blackboard C$ or $\mathbb P$
>
> \switchtobodyfont[pagella]
> Test: $\blackboard C$ or $\mathbb P$
> \stopTEXpage
> \stoptext
>
> Just in case it helps,
>
> 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
> 
> ___
>

Paulo, thanks! I should have thought of that workaround myself! Thank you!

/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] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Mikael P. Sundqvist
On Sat, Nov 25, 2017 at 11:00 AM, Hans Hagen  wrote:

> On 11/25/2017 5:11 AM, Henri wrote:
>
>> No solution, just another oddity...
>>
>> \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
>> \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math]
>> [range=uppercasedoublestruck]
>> \definefontfamily [mainface] [mm] [Neo Euler]
>> \setupbodyfont[mainface,12pt]
>> \starttext
>> \startTEXpage[offset=3pt]
>> Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$
>>
>> \switchtobodyfont[pagella]
>> Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$
>> \stopTEXpage
>> \stoptext
>>
> welcome to unicode ... what you're looking for is
>
> DOUBLE-STRUCK CAPITAL C  "02102
>
> it's real bad that these alphabets have holes due to a few already present
> symbols
>
> now, if you can argue that doublestruck C is not always used the same you
> might be able to push that slot (maybe we should start lobbying that ...
> after all now that emoji come in variants ...)
>
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>

I agree that it is strange to have those holes due to present symbols. Will
the code I used work in an updated beta, or should we proceed in some other
way?

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

[NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-24 Thread Mikael P. Sundqvist
Hi!

I use the Neo Euler which has no doublestruck characters. Maybe I use old
code, but I really think that the following has worked before:

%%%
\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefallbackfamily [mainface] [mm] [TeX Gyre Pagella
Math][range=uppercasedoublestruck]
\definefontfamily [mainface] [mm] [Neo Euler]
\setupbodyfont[mainface,12pt]
\starttext
\startTEXpage[offset=3pt]
Test: $\blackboard C$ or $\mathbb C$

\switchtobodyfont[pagella]
Test: $\blackboard C$ or $\mathbb C$
\stopTEXpage
\stoptex
%%%

I would expect doublestruck letters in the output on the first line. The
resulting file, compiled with a fresh Standalone, is attached.

Best regards, Mikael


doublestruck.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] Arbitrary tag of displayed formula

2017-11-08 Thread Mikael P. Sundqvist
On Wed, Nov 8, 2017 at 12:40 PM, Otared Kavian <ota...@gmail.com> wrote:

> Hi Mikael,
>
> I learned the following from Aditya some time ago, on his website Random
> Determinism: maybe you can adapt it to your needs.
>
> \defineconversion[myset][\star,{\star\star},{\star\star\star}]
> \defineformula[star][numberconversion=myset]
>
> \starttext
> \placeformula
> \startstarformula
> a^4 + b^4 = c^4.
> \stopstarformula
>
> \placeformula
> \startstarformula
> a^5 + b^5 = c^5.
> \stopstarformula
>
> \placeformula
> \startstarformula
> a^6 + b^6 = c^6.
> \stopstarformula
>
> \stoptext
>
> Best regrads: OK
>
> On 8 Nov 2017, at 07:43, Mikael P. Sundqvist <mic...@gmail.com> wrote:
>
> Hi!
>
> Is there a way to tag a displayed formula with arbitrary text?
>
> As far as I can remember it was possible to use \eqno before, but that
> does not seem to be the case anymore.
>
> For my use case I do not need the possibility to cite the equation, if
> that helps.
>
> I asked the same question at stackexchange (see
> https://tex.stackexchange.com/questions/400257/tag-equation-
> in-context-with-arbitrary-text), but was redirected here.
>
> I'm thinking of a minimal non-working example like:
>
> \startTEXpage[offset=2bp]
> \startformula
> 1+1=2\eqno{A}
> \stopformula
> \stopTEXpage
>
> /MIkael
>
> PS I use this when constructing exams. Then it is good to be able to put
> the points to the right. And sometimes this is done in displayed formulas.
> For an example of what I mean, made with LaTeX, see
> http://www.ctr.maths.lu.se/media/exams/funkteori/exam_2017-03-13.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  : 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
> 
> ___
>

Thank you Otared, this indeed works, even though it is a bit cumbersome,
since one has to update the list when a new "case" is added.

I see that this has been asked before, so maybe the best solution would be
to have a \tag command. That would solve the issue once and for all, I
imagine.

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

[NTG-context] Arbitrary tag of displayed formula

2017-11-08 Thread Mikael P. Sundqvist
Hi!

Is there a way to tag a displayed formula with arbitrary text?

As far as I can remember it was possible to use \eqno before, but that does
not seem to be the case anymore.

For my use case I do not need the possibility to cite the equation, if that
helps.

I asked the same question at stackexchange (see
https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text),
but was redirected here.

I'm thinking of a minimal non-working example like:

\startTEXpage[offset=2bp]
\startformula
1+1=2\eqno{A}
\stopformula
\stopTEXpage

/MIkael

PS I use this when constructing exams. Then it is good to be able to put
the points to the right. And sometimes this is done in displayed formulas.
For an example of what I mean, made with LaTeX, see
http://www.ctr.maths.lu.se/media/exams/funkteori/exam_2017-03-13.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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Problem installing standalone on linux-64

2017-10-06 Thread Mikael P. Sundqvist
Hi!

When trying to install a standalone I get into trouble. First I run

wget http://minimals.contextgarden.net/setup/first-setup.sh

Then:

mickep@cantor:/opt/ConTeXt$ sudo sh ./first-setup.sh --modules=all
receiving incremental file list

sent 29 bytes  received 155 bytes  122.67 bytes/sec
total size is 8,840,293  speedup is 48,045.07

mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/usr/matematik/mickep/texmf/web2c' from specification
'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird
path '/opt/ConTeXt/bin' from specification 'selfautoloc:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/share/texmf-local/web2c' from specification
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/share/texmf-dist/web2c' from specification
'selfautoloc:/share/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/share/texmf/web2c' from specification
'selfautoloc:/share/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/texmf-local/web2c' from specification
'selfautoloc:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/texmf-dist/web2c' from specification
'selfautoloc:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/bin/texmf/web2c' from specification
'selfautoloc:/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird
path '/opt/ConTeXt' from specification 'selfautodir:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/share/texmf-local/web2c' from specification
'selfautodir:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/share/texmf-dist/web2c' from specification
'selfautodir:/share/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/share/texmf/web2c' from specification
'selfautodir:/share/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/texmf-local/web2c' from specification
'selfautodir:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/texmf-dist/web2c' from specification
'selfautodir:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/ConTeXt/texmf/web2c' from specification
'selfautodir:/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '$SELFAUTOGRANDPARENT/texmf-local/web2c' from specification
'$SELFAUTOGRANDPARENT/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird
path '/opt' from specification 'selfautoparent:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/share/texmf-local/web2c' from specification
'selfautoparent:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/share/texmf-dist/web2c' from specification
'selfautoparent:/share/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/share/texmf/web2c' from specification
'selfautoparent:/share/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/opt/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/usr/matematik/mickep/texmf/web2c' from specification
'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
weird path '/opt/ConTeXt/bin' from specification 'selfautoloc:'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/opt/ConTeXt/bin/share/texmf-local/web2c' from specification
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/opt/ConTeXt/bin/share/texmf-dist/web2c' from specification
'selfautoloc:/share/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/opt/ConTeXt/bin/share/texmf/web2c' from specification
'selfautoloc:/share/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path 

[NTG-context] Stixtwo spacing between upright integrals and lower limits

2017-10-03 Thread Mikael P. Sundqvist
Dear Hans (and others),

In the tex stackexchange chat today we were discussing the stix two fonts,
and in particular the spacing between the integral sign and the lower
bound. It is known that this was way to big before (see
https://tex.stackexchange.com/q/327710/52406), but it seems that it is
still too big, at least if one uses the upright version. Judge yourself
from the example file at the end of this email (result attached).

I made a bug report (see https://sourceforge.net/p/stixfonts/tracking/95/)
but Ulrike Fischer said that it could take time to get it fixed, and that
you Hans made a fix for another bug (
https://sourceforge.net/p/stixfonts/tracking/86/) in the fontloader.

Can you do that for this one as well?

During the discussion Harald Hanche-Olsen came up with the following "quick
fix" for LuaLaTeX:

\usepackage{luatexbase,luacode}
\begin{luacode}
local patch_stixmath = function (fontdata)
 if fontdata.psname == "STIXTwoMath"
 then

fontdata.characters[983352]["italic"]=3*fontdata.characters[983352]["italic"]
 end
end
luatexbase.add_to_callback
 (
  "luaotfload.patch_font",
  patch_stixmath,
  "change_stixmath"
 )
\end{luacode}

I don't know if this is the way to go, but I thought I should include it.

Best regards, Mikael

%%% TEST FILE %%%
\setupbodyfont[stixtwo]

\setupmathematics[
integral=nolimits,
]

\startTEXpage[offset=3bp]

With slanted integral:

\startformula
\int_0^\pi \sin x\,dx=2.
\stopformula

\setupmathematics[stylealternative={upright}]

With upright integral:

\startformula
\int_0^\pi \sin x\,dx=2.
\stopformula

\stopTEXpage


ctx-listexample39.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] Fwd: Re: The binomial coefficients do not look optimal

2017-09-05 Thread Mikael P. Sundqvist
On Sat, Sep 2, 2017 at 6:36 PM, Hans Hagen <pra...@wxs.nl> wrote:

>
>
>
>  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 <pra...@wxs.nl>
> To: Mikael P. Sundqvist <mic...@gmail.com>
>
> On 9/2/2017 4:58 PM, Mikael P. Sundqvist wrote:
>
>> On Fri, Sep 1, 2017 at 7:49 PM, Hans Hagen <pra...@wxs.nl > pra...@wxs.nl>> 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
>> <http://www.pragma-ade.nl> | www.pragma-pod.nl
>> <http://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 <mailto:ntg-context@ntg.nl> /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> <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/
>> <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

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 <pra...@wxs.nl> 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
___

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

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
On Sun, Aug 6, 2017 at 4:11 PM, Hans Hagen  wrote:
> in next beta
>
> % \setuphead[chapter][after={\markpage[chapter][+1]}]
> \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}]
>
> \defineoverlay
>   [whatever]
>   [\doifelsemarkedpage{chapter}{CHAPTER}{}]
>
> \setupbackgrounds
>   [page]
>   [background=whatever]
>
> \starttext
> test \page test \page test \chapter{OEPS}
> test \page test \page test \chapter{OEPS}
> \stoptext
>
> --
>
> -
>   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, that looks useful!

/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] changing pdf type

2017-08-06 Thread Mikael P. Sundqvist
On Sun, Aug 6, 2017 at 7:27 PM, John Culleton  wrote:
> I need to have pdf files for U.S. printers in " PDF/X-1a2001" format. Hans
> gave me the magic formula a few years back but I lost that reply.
> Can someone help me out?
>
> John Culleton
>
>
>
> ___
> 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
> ___

This link?

http://wiki.contextgarden.net/PDFX

/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] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
On Fri, Aug 4, 2017 at 9:53 AM, Hans Hagen <pra...@wxs.nl> wrote:
> On 8/3/2017 8:11 PM, Mikael P. Sundqvist wrote:
>
>> that solves the other problem that appeared. What about the one I
>> originally posted in this thread? Is it possible to pause backgrounds
>> on chapter pages?
>
> one of the many ways ...
>
> \definelayer
>   [chapter]
>   [width=\paperwidth,
>height=\paperheight]
>
> \defineoverlay
>   [pagebackground]
>   [\directsetup{pagebackground}]
>
> \setupbackgrounds
>   [page]
>   [background=pagebackground]
>
> \startsetups pagebackground
> \doifelsemode {chapterpage} {
> \setlayer
>   [chapter]
>   [preset=middle]
>   {\scale[width=\textwidth]{CHAPTER}}
> \globaldisablemode[chapterpage]
> } {
> \setlayer
>   [chapter]
>   [preset=middle]
>   {\scale[width=\textwidth]{WHATEVER}}
> }
> \placelayer[chapter]
> \stopsetups
>
> \startsetups chapter:before
> \globalenablemode[chapterpage]
> \stopsetups
>
> \setuphead
>   [chapter]
>   [before=\setup{chapter:before}]
>
> \starttext
> \chapter{foo} test \page test
> \chapter{bar} test \page test
> \stoptext
>
> -
>   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
> ___

Many thanks! It now works as expected. Just if someone finds this
thread in the future, to get the texts into the margin, I ended up
with something like the code below.

/Mikael


\showframe

\setuppagenumbering[alternative=doublesided]

\setuplayout[
%alternative=doublesided,
location=middle,
width=10cm,
backspace=2in,
]


\definelayer
  [chapter]
  [width=\paperwidth,
   height=\paperheight,
   location=right]

\defineoverlay
  [pagebackground]
  [\directsetup{pagebackground}]

\setupbackgrounds
  [page]
  [background=pagebackground]

\startsetups pagebackground
\doifelsemode {chapterpage} {
\setlayer
  [chapter]
  [x=\dimexpr\backspace+\textwidth+\rightmargindistance\relax,
   y=3in,
   location={right,bottom}]
  {\getmarking[chapternumber]}
\globaldisablemode[chapterpage]
} {
\setlayer
  [chapter]
   [x=\dimexpr\backspace+\textwidth+\rightmargindistance\relax,
   y=3in,
   location={right,bottom}]
  {\doifrightpageelse{\getmarking[chapter]}{}}
}
\placelayer[chapter]
\stopsetups

\startsetups chapter:before
\globalenablemode[chapterpage]
\stopsetups

\define[2]\mychaptercommand{\midaligned{#2}}

\setuphead
  [chapter]
  
[align=middle,style=\tfa,align=middle,command=\mychaptercommand,before=\setup{chapter:before}]

\starttext
\chapter{foo} test \page test \page test \page test
\chapter{bar} test \page test \page test \page test


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

Re: [NTG-context] Disable overlay on chapter pages

2017-08-03 Thread Mikael P. Sundqvist
On Thu, Aug 3, 2017 at 7:29 PM, Pablo Rodriguez  wrote:
> On 08/03/2017 06:03 PM, Hans Hagen wrote:
>> [...]
>> \definemargindata
>>[margintext:chapter]
>>[margintext]
>>[width=\outermarginwidth,
>> location=outer,
>> align=flushouter]
>> [...]
>> \definemargindata[margintext:section]
>>[margintext]
>>[width=\innermarginwidth,
>> location=inner,
>> align=flushinner]
>
> Many thanks for your reply, Hans.
>
> I didn’t know that these margin widths and aligments even existed.
>
> 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
> ___

Hi,

that solves the other problem that appeared. What about the one I
originally posted in this thread? Is it possible to pause backgrounds
on chapter pages?

/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] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
On Wed, Aug 2, 2017 at 10:23 PM, Henning Hraban Ramm <te...@fiee.net> wrote:
> Am 2017-08-02 um 19:28 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
>
>> I do not want to change the output of the chapters/sections themself.
>>
>> I want to have a "running header", but in the margin rather than in
>> the header. I get that with the code I gave, but I want to disable it
>> for new chapters _on the page where the chapter begins_.
>
> I guess this is a case for setups.
>
> \startsetups[chapterpage]
> \setupheadertexts[][][][]
> \stopsetups
>
> \setuphead[chapter][setup=chapterpage]
>
> Something like this, I didn’t check.
>
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> 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  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Thank you for your answer, Henning.

I am sorry, but it does not work. The problem is that I don't have the
marking text in the header, but in overlays in the margins. I tried to
replace your

\setupheadertexts[][][][]

inside the setup with

\setupbackgrounds[text][rightmargin][background=]

but with no luck. But maybe you are right that one should use setups.

/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] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
On Wed, Aug 2, 2017 at 7:21 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
> On 08/02/2017 12:00 PM, Mikael P. Sundqvist wrote:
>> Hi,
>>
>> I'm trying to print chapter and section titles in the margins, and it
>> works fine, except that the chapter title is also printed on the same
>> page as the chapter starts, which I find unnecessary.
>
> Hi Mikael,
>
> margintext as alternative for \setuphead may be a better approach:
>
> \showframe
> \setuppagenumbering[alternative=doublesided]
>
> \definemargindata[margintext:chapter]
> [margintext]
> [width=\rightmarginwidth, location=outer, align=flushleft]
>
> \defineheadalternative
> [margintext:chapter]
> [margintext]
> [margintext=margintext:chapter]
>
> \definemargindata[margintext:section]
> [margintext]
> [width=\leftmarginwidth, location=inner]
>
> \defineheadalternative
> [margintext:section]
> [margintext]
> [margintext=margintext:section]
>
> \setuphead[chapter]
> [alternative=margintext:chapter, style=\tf, number=no]
> \setuphead[section]
> [alternative=margintext, style=\tf, number=no]
>
> \starttext
>
> \chapter{Foo}
> \dorecurse{15}{\section{Bar}\input ward\par}
>
> \stoptext
>
> All this comes from Hans replying to a question of mine some days ago
> and from the last lines from typo-mar.mkiv.
>
> I hope I got it right ;-),
>
> 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
> ___

Hi Pablo,

many thanks for your answer! I think I might have described my issue a
bit vague. Just to clarify:

I do not want to change the output of the chapters/sections themself.

I want to have a "running header", but in the margin rather than in
the header. I get that with the code I gave, but I want to disable it
for new chapters _on the page where the chapter begins_.

If you have a copy of Bringhursts book, you know what I mean.

If it is still not clear what I mean please ask me to clarify it further.

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

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
Hi,

I'm trying to print chapter and section titles in the margins, and it
works fine, except that the chapter title is also printed on the same
page as the chapter starts, which I find unnecessary.

1) Can I somehow (probably via the right \setuphead trick) disable
this overlay only on chapter pages?

2) If I want to disable it on another page, is there some smart way of
doint it, or should I just set it blank and then enable it when I know
I'm on next page again?

/Mikael

PS The code I have right now is given below. It compiles, but the
chapter title is shown on the first page...

\setuppagenumbering[alternative=doublesided]

\defineoverlay[mymargin][{\framed[frame=off,width=0.8in,height=0.8\textheight,offset=overlay,align={top}]{\doifrightpageelse{{\startalignment[flushleft]\getmarking[chapter]\stopalignment}}{{\startalignment[flushright]\getmarking[section]\stopalignment]

\setupbackgrounds[text][rightmargin][background=mymargin]


\starttext

\chapter{Foo}
\dorecurse{15}{\section{Bar}\input ward\par}

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

Re: [NTG-context] Kerning between primes and left parenthesis (again)

2017-07-31 Thread Mikael P. Sundqvist
On Mon, Jul 31, 2017 at 9:15 PM, Hans Hagen <pra...@wxs.nl> wrote:
> On 7/31/2017 8:02 PM, Mikael P. Sundqvist wrote:
>>
>> On Mon, Jul 31, 2017 at 5:37 PM, Hans Hagen <pra...@wxs.nl> wrote:
>>>
>>> On 7/31/2017 11:21 AM, Mikael P. Sundqvist wrote:
>>>>
>>>>
>>>> On Thu, Jul 20, 2017 at 2:53 PM, Hans Hagen <pra...@wxs.nl> wrote:
>>>>>
>>>>>
>>>>> On 7/20/2017 7:18 AM, Mikael P. Sundqvist wrote:
>>>>>
>>>>>> Den 12 juli 2017 10:17 fm skrev "Mikael P. Sundqvist"
>>>>>> <mic...@gmail.com
>>>>>> <mailto:mic...@gmail.com>>:
>>>>>>
>>>>>>   Dear Hans,
>>>>>>
>>>>>>   now, in luatex 1.05, that the primes are "constructed" in new
>>>>>> manner,
>>>>>>   I wonder if there is a way to specify in a goodie file the
>>>>>> kerning
>>>>>>   between characters, in particular primes and the left
>>>>>> parenthesis?
>>>>>>
>>>>>>   I tried
>>>>>>
>>>>>>kernpairs = {
>>>>>>   [0x2032] = {[0x0028] = -1000, }, -- prime and (
>>>>>>},
>>>>>>
>>>>>>   but that does not seem to have any effect.
>>>>>>
>>>>>>   The pre-1.05 modification
>>>>>>
>>>>>>dimensions = {
>>>>>>default = {
>>>>>>[0x2044] = { xoffset = 275, width = 600 },
>>>>>>[0x2032] = { xoffset = 50, width = 290 }, --
>>>>>> prime
>>>>>>[0x2033] = { xoffset = 50, width = 690 }, --
>>>>>> double
>>>>>>   prime
>>>>>>[0x2034] = { xoffset = 50, width = 1090}, --
>>>>>> triple
>>>>>>   prime
>>>>>>[0x2057] = { xoffset = 50, width = 1490}, --
>>>>>>   quadruple prime
>>>>>>},
>>>>>>},
>>>>>>
>>>>>>   (which is a non-optimal way of solving this issue since it has
>>>>>> side
>>>>>>   effects) does not change anything anymore.
>>>>>>
>>>>>>   So, is there now a way to do this cleanly now that the mechanism
>>>>>> is
>>>>>>   changed?
>>>>>>
>>>>>>   /Mikael
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> should I interpret the silence that this is currently not possible, or
>>>>>> that you, Hans, is completely fed up with this subject? :-)
>>>>>
>>>>>
>>>>>
>>>>> you rule out the possibility that i have other things to do
>>>>>
>>>>> anyway, use
>>>>>
>>>>>   0xFE932
>>>>>
>>>>> etc instead as primes get remapped
>>>>>
>>>>> -
>>>>> 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
>>>>>
>>>>>
>>>>> ___
>>>>
>>>>
>>&g

Re: [NTG-context] Kerning between primes and left parenthesis (again)

2017-07-31 Thread Mikael P. Sundqvist
On Mon, Jul 31, 2017 at 5:37 PM, Hans Hagen <pra...@wxs.nl> wrote:
> On 7/31/2017 11:21 AM, Mikael P. Sundqvist wrote:
>>
>> On Thu, Jul 20, 2017 at 2:53 PM, Hans Hagen <pra...@wxs.nl> wrote:
>>>
>>> On 7/20/2017 7:18 AM, Mikael P. Sundqvist wrote:
>>>
>>>> Den 12 juli 2017 10:17 fm skrev "Mikael P. Sundqvist" <mic...@gmail.com
>>>> <mailto:mic...@gmail.com>>:
>>>>
>>>>  Dear Hans,
>>>>
>>>>  now, in luatex 1.05, that the primes are "constructed" in new
>>>> manner,
>>>>  I wonder if there is a way to specify in a goodie file the kerning
>>>>  between characters, in particular primes and the left parenthesis?
>>>>
>>>>  I tried
>>>>
>>>>   kernpairs = {
>>>>  [0x2032] = {[0x0028] = -1000, }, -- prime and (
>>>>   },
>>>>
>>>>  but that does not seem to have any effect.
>>>>
>>>>  The pre-1.05 modification
>>>>
>>>>   dimensions = {
>>>>   default = {
>>>>   [0x2044] = { xoffset = 275, width = 600 },
>>>>   [0x2032] = { xoffset = 50, width = 290 }, -- prime
>>>>   [0x2033] = { xoffset = 50, width = 690 }, --
>>>> double
>>>>  prime
>>>>   [0x2034] = { xoffset = 50, width = 1090}, --
>>>> triple
>>>>  prime
>>>>   [0x2057] = { xoffset = 50, width = 1490}, --
>>>>  quadruple prime
>>>>   },
>>>>   },
>>>>
>>>>  (which is a non-optimal way of solving this issue since it has side
>>>>  effects) does not change anything anymore.
>>>>
>>>>  So, is there now a way to do this cleanly now that the mechanism is
>>>>  changed?
>>>>
>>>>  /Mikael
>>>>
>>>>
>>>> Hi,
>>>>
>>>> should I interpret the silence that this is currently not possible, or
>>>> that you, Hans, is completely fed up with this subject? :-)
>>>
>>>
>>> you rule out the possibility that i have other things to do
>>>
>>> anyway, use
>>>
>>>  0xFE932
>>>
>>> etc instead as primes get remapped
>>>
>>> -
>>>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
>>>
>>> ___
>>
>>
>> I'm sorry but I cannot get it to work.
>>
>> %%% my local lucida-opentype-math.lfg, located in the same directory
>> as the tex file (and loaded)
>> - kern_250 = { bottomright = { { kern = -250 } }, force = true }
>>
>> local function FixRadicalDisplayStyleVerticalGap(value,target,original)
>>  local o = original.mathparameters.RadicalVerticalGap -- 50
>>  return 2 * o * target.parameters.factor
>> end
>>
>> return {
>>  name = "lucida-opentype-math",
>>  version = "1.00",
>>  comment = "Goodies that complement lucida opentype.",
>>  author = "Hans Hagen",
>>  copyright = "ConTeXt development team",
>>  mathematics = {
>>  parameters = {
>>  RadicalDisplayStyleVerticalGap =
>> FixRadicalDisplayStyleVerticalGap,
>>  },
>>  kernpairs = {
>> [0x1D44E] = {[0x1D44F] = 100

Re: [NTG-context] Kerning between primes and left parenthesis (again)

2017-07-31 Thread Mikael P. Sundqvist
On Thu, Jul 20, 2017 at 2:53 PM, Hans Hagen <pra...@wxs.nl> wrote:
> On 7/20/2017 7:18 AM, Mikael P. Sundqvist wrote:
>
>> Den 12 juli 2017 10:17 fm skrev "Mikael P. Sundqvist" <mic...@gmail.com
>> <mailto:mic...@gmail.com>>:
>>
>> Dear Hans,
>>
>> now, in luatex 1.05, that the primes are "constructed" in new manner,
>> I wonder if there is a way to specify in a goodie file the kerning
>> between characters, in particular primes and the left parenthesis?
>>
>> I tried
>>
>>  kernpairs = {
>> [0x2032] = {[0x0028] = -1000, }, -- prime and (
>>  },
>>
>> but that does not seem to have any effect.
>>
>> The pre-1.05 modification
>>
>>  dimensions = {
>>  default = {
>>  [0x2044] = { xoffset = 275, width = 600 },
>>  [0x2032] = { xoffset = 50, width = 290 }, -- prime
>>  [0x2033] = { xoffset = 50, width = 690 }, -- double
>> prime
>>  [0x2034] = { xoffset = 50, width = 1090}, -- triple
>> prime
>>  [0x2057] = { xoffset = 50, width = 1490}, --
>> quadruple prime
>>  },
>>  },
>>
>> (which is a non-optimal way of solving this issue since it has side
>> effects) does not change anything anymore.
>>
>> So, is there now a way to do this cleanly now that the mechanism is
>> changed?
>>
>> /Mikael
>>
>>
>> Hi,
>>
>> should I interpret the silence that this is currently not possible, or
>> that you, Hans, is completely fed up with this subject? :-)
>
> you rule out the possibility that i have other things to do
>
> anyway, use
>
> 0xFE932
>
> etc instead as primes get remapped
>
> -
>   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
> ___

I'm sorry but I cannot get it to work.

%%% my local lucida-opentype-math.lfg, located in the same directory
as the tex file (and loaded)
- kern_250 = { bottomright = { { kern = -250 } }, force = true }

local function FixRadicalDisplayStyleVerticalGap(value,target,original)
local o = original.mathparameters.RadicalVerticalGap -- 50
return 2 * o * target.parameters.factor
end

return {
name = "lucida-opentype-math",
version = "1.00",
comment = "Goodies that complement lucida opentype.",
author = "Hans Hagen",
copyright = "ConTeXt development team",
mathematics = {
parameters = {
RadicalDisplayStyleVerticalGap = FixRadicalDisplayStyleVerticalGap,
},
kernpairs = {
   [0x1D44E] = {[0x1D44F] = 1000,}, -- 푎푏 demo
   [0xFE932] = {[0x0028] = 1000,} -- remapped prime and (
},
}
}
%%%

%%% the tex file
\setupbodyfont[lucidaot]
\setupmathematics[kernpairs=yes]

\starttext
$f'(x)ab$
\stoptext
%%%

The result is attached. It works ok for the pair ab, but not for prime
and (. Is the ( also remapped (while greping for it in the source, I
could not find any clue).

Maybe it is better to ping the maintainers of the font?

/Mikael


ctx-listexample36.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] Kerning between primes and left parenthesis (again)

2017-07-19 Thread Mikael P. Sundqvist
Den 12 juli 2017 10:17 fm skrev "Mikael P. Sundqvist" <mic...@gmail.com>:

Dear Hans,

now, in luatex 1.05, that the primes are "constructed" in new manner,
I wonder if there is a way to specify in a goodie file the kerning
between characters, in particular primes and the left parenthesis?

I tried

kernpairs = {
   [0x2032] = {[0x0028] = -1000, }, -- prime and (
},

but that does not seem to have any effect.

The pre-1.05 modification

dimensions = {
default = {
[0x2044] = { xoffset = 275, width = 600 },
[0x2032] = { xoffset = 50, width = 290 }, -- prime
[0x2033] = { xoffset = 50, width = 690 }, -- double prime
[0x2034] = { xoffset = 50, width = 1090}, -- triple prime
[0x2057] = { xoffset = 50, width = 1490}, -- quadruple prime
},
},

(which is a non-optimal way of solving this issue since it has side
effects) does not change anything anymore.

So, is there now a way to do this cleanly now that the mechanism is changed?

/Mikael


Hi,

should I interpret the silence that this is currently not possible, or that
you, Hans, is completely fed up with this subject? :-)

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

[NTG-context] Kerning between primes and left parenthesis (again)

2017-07-12 Thread Mikael P. Sundqvist
Dear Hans,

now, in luatex 1.05, that the primes are "constructed" in new manner,
I wonder if there is a way to specify in a goodie file the kerning
between characters, in particular primes and the left parenthesis?

I tried

kernpairs = {
   [0x2032] = {[0x0028] = -1000, }, -- prime and (
},

but that does not seem to have any effect.

The pre-1.05 modification

dimensions = {
default = {
[0x2044] = { xoffset = 275, width = 600 },
[0x2032] = { xoffset = 50, width = 290 }, -- prime
[0x2033] = { xoffset = 50, width = 690 }, -- double prime
[0x2034] = { xoffset = 50, width = 1090}, -- triple prime
[0x2057] = { xoffset = 50, width = 1490}, -- quadruple prime
},
},

(which is a non-optimal way of solving this issue since it has side
effects) does not change anything anymore.

So, is there now a way to do this cleanly now that the mechanism is changed?

/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] floatcombination boundingbox

2017-06-30 Thread Mikael P. Sundqvist
Den 29 juni 2017 9:55 fm skrev "Hans Hagen" <pra...@wxs.nl>:

On 6/28/2017 2:33 PM, Mikael P. Sundqvist wrote:

> Hi,
>
> I wonder what is going on in the example given below (resulting pdf
> attached)? The placement of the figures in floatcombination (this does
> not happen if I place them one by one in a figure) are shifted
> horizontally, and seems to depend on the boundingbox. Am I doing
> something wrong?
>
it's an interactioon between wide captions and narrow content (normally no
problem in floats)

i rewrote that bit (for combinations) so the next beta might do better

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/list
info/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net

___


Many thanks for the quick fix, the problem seems indeed to be solved.

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

[NTG-context] floatcombination boundingbox

2017-06-28 Thread Mikael P. Sundqvist
Hi,

I wonder what is going on in the example given below (resulting pdf
attached)? The placement of the figures in floatcombination (this does
not happen if I place them one by one in a figure) are shifted
horizontally, and seems to depend on the boundingbox. Am I doing
something wrong?

This happens with current version: 2017.06.27 18:05 but also with a
version that is some weeks old.

/Mikael
\setupcombinations[
distance=1cm,
]

\starttext

\startuseMPgraphic{figa}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
draw boundingbox currentpicture;
\stopuseMPgraphic

\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\startuseMPgraphic{figb}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.2cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\startplacefigure
\useMPgraphic{figb}
\stopplacefigure
\stopfloatcombination
\stopplacefigure


\startuseMPgraphic{figc}
draw (1cm,1cm) --  origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm,-1cm)--(1cm,1cm)--(0,1cm)--cycle) enlarged 0.5cm;
draw boundingbox currentpicture;
\stopuseMPgraphic


\startplacefigure[location={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\startplacefigure
\useMPgraphic{figc}
\stopplacefigure
\stopfloatcombination
\stopplacefigure

\stoptext


ctx-example24.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] Bug regarding placement and size of primes

2017-06-12 Thread Mikael P. Sundqvist
On Mon, Jun 12, 2017 at 1:30 PM, Mathias Schickel
<m...@fa.uni-tuebingen.de> wrote:
> Hi Mikael,
>
> when will LuaTeX 1.05 be released? And how can I get the source for 
> compilation (and what exactly will I have to do to get everything to work)?
> Besides: Do you have a link to the thread you are referring to?
>
> Best
> /Mathias
>
>
>> Am 12.06.2017 um 12:57 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
>>
>> On Mon, Jun 12, 2017 at 12:32 PM, Mathias Schickel
>> <m...@fa.uni-tuebingen.de> wrote:
>>> Dear Hans,
>>>
>>> the newest beta (I have updated some hours ago) contains again some bugs 
>>> regarding the size and placement of primes. You can verify that by using 
>>> the following minimal example (created to show some older bugs being 
>>> resolved meanwhile):
>>>
>>> %%%
>>> \starttext
>>> %
>>> Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
>>> %
>>> \startformula
>>>%
>>>\int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
>>>%
>>> \stopformula
>>> %
>>> \stoptext
>>> %%%
>>>
>>> The output is attached. The primes are obviously rendered too small. And 
>>> while $f'$ seems to lead to a placement of the prime a little too low, 
>>> $f^{'}$ seems to cause the prime being placed too high.
>>>
>>> Best
>>> Mathias
>>>
>>>
>>>
>>> ___
>>> 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
>>> ___
>>
>> I think this is intended (see the other thread). Hans decided to do
>> the primes differently, which means that they will look strange until
>> luatex 1.05 is out. You can compile luatex 1.05 yourself, and you will
>> see that the primes look OK. I attach a pdf result of your file,
>> compiled with 1.05.
>>
>> /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
>> ___
>
> ___
> 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
> ___

As far as I understand 1.05 will be out at the same time as the
context meeting takes place (Sepbember?).

For the thread, it was this one (that you participated in):
https://mailman.ntg.nl/pipermail/ntg-context/2017/088747.html . I
think the information you need is available there, but still:

I run linux (ubuntu), and these are the steps that made it work for me
(with help of luigi and Taco):

1) get the files

svn checkout --username anonsvn --password anonsvn
https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/

2) compile:

step into the folder experimental and run build.sh

3) copy the luatex binary to a place where it is found

I chose to replace the one from garden, and it seems to work.

Good luck!

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

  1   2   3   4   >