[NTG-context] Small bug in publ-imp-aps.mkvi

2022-03-21 Thread Jack Hill via ntg-context
Hi everyone,

Just letting you know that there is an extra . (full stop) on the end of
lines 732 and 734 of publ-imp-aps.mkvi which causes references to be
typeset like "p.. 417" and "pp.. 417--418".

Thanks,
Jack
___
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] APS bib: literals and small error in "pages" field

2022-03-07 Thread Jack Hill via ntg-context
Hi,
Two things here:
1. There is an extra . on the end of lines 732 and 734 of publ-imp-aps.mkvi
which causes references to be rendered like "p.. 417" and "pp.. 417--418".

2. Suppose I have a literal such as

@literal{company,
text = {Company Name (n.d.) {\it Webpage name}. Retrieved 22 February,
2022, from https://www.example.com}
}

how can I cite this without the (company) appearing in the bibliography
list? For reference I'm using \usebtxdefinitions[aps]
Jack
___
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 $$ in inline math

2021-12-13 Thread Jack Hill via ntg-context
Dear list,

I was playing around and found that nesting $$s inside of \m blocks
typesets the code as text.
I can't find anything about this on the wiki or in the math-mkiv manual, so
I'm asking whether this is supported behaviour or just a bug?

Jack

\starttext
% All the same
\mathematics{math $text here$ math} \\
\math{math $text here$ math} \\
\m{math $text here$ math} \\
\m{math \text{text here} math} \\
\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] Math prime issues for some fonts

2021-11-29 Thread Jack Hill via ntg-context
On Fri, 26 Nov 2021 at 11:28, Hans Hagen  wrote:
> So to summarize: with primes we have to deal with (1) frozen tex math
> expectations that won't change (although in context we're free to do
> so), which (2) have found their way in unicode, and (3) also in fonts
> due to the way traditional tex does it, and (4) with which we cannot
> deal with in the engine, so (5) we do it our own contexty way, in the
> hope that (6) in the end it all looks good and (7) also gives us some of
> the benefits that i don't even dare to bring up here in order not to
> make it sound more complex.

Thank you for the explanation. It's always interesting to hear about what
goes on under the hood.

> As a note: if you notice suboptional things in math fonts, don't
> hesitate to make a good minimal example and then ask Mikael to look into
> is because he deals with and coordinates the tuning of goodie files.

I have noticed that the top bar of square root signs don't seem to connect
properly with the angled part. This is visible with multiple fonts (some
make it more obvious than others) at various zoom levels (I'm using Okular
on Linux but other pdf viewers show the same - also on Windows). I've no
idea if this is visible in print since I don't print the pdfs. The effect
is also reproducible with the wiki version of context.

\starttext

\starttabulate[|l|c|]
\FL
\BC Font name  \BC Math sqrt   \NR
\ML
\NC Latin Modern Roman \NC\m{\sqrt{x}} \NR
\NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{\sqrt{x}} \NR
\NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{\sqrt{x}} \NR
\NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{\sqrt{x}} \NR
\NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{\sqrt{x}} \NR
\NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{\sqrt{x}} \NR
\BL
\stoptabulate

\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] Math prime issues for some fonts

2021-11-26 Thread Jack Hill via ntg-context
On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster
 wrote:
>
> Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18:
> > Hi list,
> >
> > When I run this test code
> >
> > \definefontfamily[trm][math][tex gyre termes math]
> > \definefontfamily[pag][math][tex gyre pagella math]
> > \definefontfamily[bon][math][tex gyre bonum math]
> > \definefontfamily[sch][math][tex gyre schola math]
> > \definefontfamily[stx][math][stix two math]
> > \starttext
> > \starttabulate[|c|c|]
> > \FL
> > \NC \bf Font name \NC \bf Math prime \NR
> > \ML
> > \NC Latin modern \NC \m{x'} \NR
> > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
> > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
> > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
> > \NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
> > \NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
> > \BL
> > \stoptabulate
> > \stoptext
> >
> > on my machine, the prime symbols are being placed too high (except for
> > latin modern which is normal).
> > Running the same code on the wiki gives the correct output though.
> > Does anyone else get the same output? Screenshot attached.
>
> Use \definetypeface to load/set the math fonts.
>
> \starttext
>
> \starttabulate[|l|c|]
> \FL
> \BC Font name  \BC Math prime\NC\NR
> \ML
> \NC Latin Modern Roman \NC\m{x'} \NC\NR
> \NC TeX Gyre Termes\NC \switchtobodyfont[termes]  \m{x'} \NC\NR
> \NC TeX Gyre Pagella   \NC \switchtobodyfont[pagella] \m{x'} \NC\NR
> \NC TeX Gyre Bonum \NC \switchtobodyfont[bonum]   \m{x'} \NC\NR
> \NC TeX Gyre Schola\NC \switchtobodyfont[schola]  \m{x'} \NC\NR
> \NC STIX Two   \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR
> \BL
> \stoptabulate
>
> \stoptext
>
> Wolfgang

Thanks, \definetypeface fixes it. Should I not be using \definefontfamily?
I've just checked eulernova and the prime is still too high for this font.

\switchtobodyfont[eulernova]
\starttext
\m{x'}
\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] Math prime issues for some fonts

2021-11-26 Thread Jack Hill via ntg-context
Hi list,

When I run this test code

\definefontfamily[trm][math][tex gyre termes math]
\definefontfamily[pag][math][tex gyre pagella math]
\definefontfamily[bon][math][tex gyre bonum math]
\definefontfamily[sch][math][tex gyre schola math]
\definefontfamily[stx][math][stix two math]
\starttext
\starttabulate[|c|c|]
\FL
\NC \bf Font name \NC \bf Math prime \NR
\ML
\NC Latin modern \NC \m{x'} \NR
\NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR
\NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR
\NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR
\NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR
\NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR
\BL
\stoptabulate
\stoptext

on my machine, the prime symbols are being placed too high (except for
latin modern which is normal).
Running the same code on the wiki gives the correct output though.
Does anyone else get the same output? Screenshot attached.

Jack
___
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 with mathalignment and columns

2021-08-23 Thread Jack Hill via ntg-context

Hi,

When a mathalignment is started at the end of a multi-column page ConTeXt 
places it at the start of the previous second column instead of placing it on a 
new page. Here's my code to test:

\starttext \startcolumns[n=4]
\startluacode
lorum = "Lorum ipsum dolor sit amet. "
for i = 1, 98, 1 do
context(lorum)
end
\stopluacode

\startformula \startmathalignment[n=1]
\NC y = ax \NR

\NC a^2 + b^2 = c^2 \NR

\NC x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \NR
\stopmathalignment \stopformula
\stopcolumns \stoptext

Adding text after the formula seems to fix the issue, but that means I can't 
finish the page with a formula.
It seems that it always places the formula at the top of the second column, 
regardless of how many columns there are.
It also does this even if there are still empty columns (try changing 98 to 100 
in the for loop).

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