[NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-29 Thread Benjamin Buchmuller via ntg-context
Hello list,

I have noticed that some gradients get lost when embedding an external figure 
from a pdf (Preview and Acrobat DC and in printer), although the original pdf 
works fine for me.

It seems to occur with color-to-color gradients (but not all), but not with 
color-to-alpha ones.

While preparing a MWE, I further realized that I get the correct output when 
between \startTEXpage ... \stopTEXpage

\starttext

Embedded via \type{\externalfigure}

PNG

\externalfigure[drawing.png][width=72.631mm,height=21.702mm]

\blank[big]

PDF

\externalfigure[drawing.pdf]

\startTEXpage  % this "works"
Embedded via \type{\externalfigure} in \type{\startTEXpage ... \stopTEXpage}

PNG

\externalfigure[drawing.png][width=72.631mm,height=21.702mm]

\blank[big]

PDF

\externalfigure[drawing.pdf]
\stopTEXpage

\stoptext

Any hints what I would need to change in order to get the gradients also in 
non-TEX-page mode?

I attach the two original files and the output produced with this MWE.

Thanks!


Benjamin



drawing.pdf
Description: Adobe PDF document


test.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] Best way to apply a fill-pattern to a closed shape?

2021-08-29 Thread Ramkumar KB via ntg-context
Hans,

Thank you! Yes, it would be great to learn more about MetaFun - if you can
point me to the test suite, then I can document a few good tutorial level
examples in the Wiki (beginner & intermediate). MetaFun's turbo charged
capabilities are awesome!

One idea I am thinking (maybe for a student level project) would be MetaFun
library for Figma  (popular design tool).

best regards,
Ramkumar



On Sun, Aug 29, 2021 at 5:17 PM Hans Hagen  wrote:

> On 8/29/2021 4:48 AM, Ramkumar KB wrote:
> > Hans,
> >
> > Thank you for the snippets. These are super helpful (I am assuming
> > commands like `withpatternscale` are MetaFun extensions and Wow!).
>
> yes, just metafun, already there for a while ... (often examples show up
> first in the test suite)
>
> (if folks have wished for metafun they can let me know ... doing
> metapost things is a nice distraction and with the mp extensions that we
> have in luametatex we can do quite a lot)
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] "$==$ this" producing = with another = through the t

2021-08-29 Thread Hans Hagen via ntg-context

On 8/29/2021 3:21 PM, Paul Dostert via ntg-context wrote:

My Minimal:

\starttext
$==$ this

$f(x)= x^2$

\switchtobodyfont[times]
$==$ this

$f(x)= x^2$

\switchtobodyfont[modern]
$==$ this

$f(x)= x^2$

\stoptext


This is producing an =, a large space (about two characters wide), then 
an = through the start of the word "this". See pdf here:

weird indeed (has to do with 'ligaturing') ...  i'll look into it

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


[NTG-context] "$==$ this" producing = with another = through the t

2021-08-29 Thread Paul Dostert via ntg-context
My Minimal:

\starttext
$==$ this

$f(x)= x^2$

\switchtobodyfont[times]
$==$ this

$f(x)= x^2$

\switchtobodyfont[modern]
$==$ this

$f(x)= x^2$

\stoptext


This is producing an =, a large space (about two characters wide), then an
= through the start of the word "this". See pdf here:

https://pdfhost.io/v/a0WMsyE9E_untitled2.pdf

Also notice the odd spacing in between the f and ( in $f(x)$ for times (but
not modern). It all works perfectly fine on https://live.contextgarden.net/.

I'm in Windows and here is the version output:

mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
C:/context/context-win64/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.08.24 22:16
mtx-context | main context file:
C:/context/context-win64/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.08.24 22:16


It's been happening for a good two weeks now. I've trashed the Context
folder, reinstalled two different times over the past couple of weeks, and
the result is the same each time. I've also reloaded my fonts using

mtxrun --script fonts --reload --force

as I kind of assumed this is some sort of font-spacing issue. I also had an
issue where double f's were producing a single f (stuff was outputted as
stuf) but that went away after my last update.


I'm likely doing something stupid, but just can't seem to find it. Sorry to
bother you all, but $==$ ends up being a good portion of my lecture on
Boolean expressions. Thank you for the help.

Regards,

Paul
___
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] Best way to apply a fill-pattern to a closed shape?

2021-08-29 Thread Hans Hagen via ntg-context

On 8/29/2021 4:48 AM, Ramkumar KB wrote:

Hans,

Thank you for the snippets. These are super helpful (I am assuming 
commands like `withpatternscale` are MetaFun extensions and Wow!).


yes, just metafun, already there for a while ... (often examples show up 
first in the test suite)


(if folks have wished for metafun they can let me know ... doing 
metapost things is a nice distraction and with the mp extensions that we 
have in luametatex we can do quite a lot)


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
___