[NTG-context] Bug in \startdocument

2017-01-24 Thread Henri Menke
Dear devs,

It is really convenient to set PDF metadata in \startdocument, however I 
noticed that there is a bug.  The PDF subject is not set using metadata:subject 
but with metadata:subtitle.  This is not a big issue by itself but merely a 
little confusing.  What’s worse is that using metadata:subject throws an error 
which is completely unexpected at this point.  Below you find the error message 
and a MWE to reproduce.

---

! Undefined control sequence

 \c!subject 
   =\documentvariable {metadata:subject}


---

\setupinteraction[state=start]

\startdocument
  [
metadata:subject={Subject},
  ]

Hello World!
  
\stopdocument
___
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] A better \definesymbol sought

2017-01-24 Thread Rik Kabel

On 2017-01-24 03:34, Hans Hagen wrote:

On 1/24/2017 4:04 AM, Rik wrote:


What I want is that the background of the page (yellow in this case)
should show through. That is what is done with fill / reverse / cycle,
as in:

\setupbackgrounds
  [page]
  [background=color,backgroundcolor=yellow]
\startuseMPgraphic{CircleTest}
  path p,q ;
  p := fullcircle scaled 2cm ;
  q := fullcircle scaled 1cm ;
  fill p -- reverse q -- cycle withcolor blue;
\stopuseMPgraphic
\starttext
 \useMPgraphic{CircleTest}
\stoptext

where the background color (yellow) comes through the inner circle 
(path q).


Can this be done with text characters? I suspect that the answer is that
the glyphs have to be converted to paths and that it will only work when


\setupbackgrounds
  [page]
  [background=color,
   backgroundcolor=yellow]
\starttext
\startcolor[blue]\starteffect[outer]PQR\stopeffect\stopcolor
\stoptext



Still not there.

Is there a way to define the ? characters to remove their coloring in 
the output of the following so that the background yellow appears 
through the outline even within the portions of the ?s placed on the 
blue heart? I want to be able to place this over arbitrary text and 
color backgrounds (stencil-like) so that the arbitrary text and 
background color shows through.




   \setupbackgrounds
  [page]
  [background={color,bgtext},backgroundcolor=yellow]
   \definelayer
  [bgtext]
  [x=1in,
   y=2.0in,
   state=start]
   \setlayerframed
  [bgtext]
  {\setupbodyfont[36pt]@@@}
   \definefont
  [DVSrB]
  [file:DejaVuSerif-Bold.ttf]
   \startbuffer[Outer]
 \startcolor[blue]
   \starteffect
 [outer]
 {\DVSrB ???}
   \stopeffect
 \stopcolor
   \stopbuffer
   \startuseMPgraphic{HeartTest}
  picture h,q ;
  h := "♥" infont "\truefontname{DejaVuSerif-Bold.ttf}" scaled 5 ;
  q := textext("{\getbuffer[Outer]}") scaled 3 ;
  draw h withcolor blue ;
  draw q ;
   \stopuseMPgraphic
   \starttext
   \starttext
 \useMPgraphic{HeartTest}
   \stoptext


--
Rik



___
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] problem with math: "\left" leads to "udefined symbol" --solved (sort of)

2017-01-24 Thread Hans Hagen

On 1/24/2017 4:47 PM, j. van den hoff wrote:

well after incrementally deleting most everything from my document I now
seem to have a reproducible example:

8<
\definesynonyms[MySymbol][MySymbols][\meaning]
   \MySymbol [whaever] {this} {  means }

\starttext
\startformula
x = \left ( 1 + 2 \right )
\stopformula
\stoptext
8<

the apparent "culprit" is the presence of the `\definesynonyms' stuff.
without it the rest (identical to your minimal example) compiles. with
it it does not... remember that I am really unexperienced with
`context': at the time (2 years ago), when I first tried this, it
worked. I now realize (after reading up on the `definesynonyms' syntax
again ...) that
in the definition a _command_ has to go into the third bracket.
seemingly at the time I was just putting a placeholder `\meaning' there
(never attempting to use it as a command acting on the explanatory text
for that symbol definition but only wanting a glossary.

the strange thing (for me) is that this worked just fine two years ago,
now it does produce a very strange error as described. question is why.

but replacing `\meaning' by `\infull' suffices to restore sane behaviour.

while I understand, that I did something stupid (putting a non-existent
command `\meaning' in the definition), I would have presumed that this
might trigger an error at that place rather than making `\left ('
suddenly an undefined control sequence. any explanation what is going on
here would be greatly appreciated.


\meaning is a primitive ... best use \UpperCase names for such commands 
... imagine that you overload \relax or \hbox or ...





On Tue, 24 Jan 2017 15:02:38 +0100, Hans Hagen  wrote:


 this just works here ... so can others confirm it?
 \starttext
 \startformula
x =  \left ( 1 + 2 \right )
\stopformula
 \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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol" --solved (sort of)

2017-01-24 Thread j. van den hoff
well after incrementally deleting most everything from my document I now  
seem to have a reproducible example:


8<
\definesynonyms[MySymbol][MySymbols][\meaning]
   \MySymbol [whaever] {this} {  means }

\starttext
\startformula
x = \left ( 1 + 2 \right )
\stopformula
\stoptext
8<

the apparent "culprit" is the presence of the `\definesynonyms' stuff.  
without it the rest (identical to your minimal example) compiles. with it  
it does not... remember that I am really unexperienced with `context': at  
the time (2 years ago), when I first tried this, it worked. I now realize  
(after reading up on the `definesynonyms' syntax again ...) that
in the definition a _command_ has to go into the third bracket. seemingly  
at the time I was just putting a placeholder `\meaning' there (never  
attempting to use it as a command acting on the explanatory text for that  
symbol definition but only wanting a glossary.


the strange thing (for me) is that this worked just fine two years ago,  
now it does produce a very strange error as described. question is why.


but replacing `\meaning' by `\infull' suffices to restore sane behaviour.


while I understand, that I did something stupid (putting a non-existent  
command `\meaning' in the definition), I would have presumed that this  
might trigger an error at that place rather than making `\left (' suddenly  
an undefined control sequence. any explanation what is going on here would  
be greatly appreciated.




On Tue, 24 Jan 2017 15:02:38 +0100, Hans Hagen  wrote:


 this just works here ... so can others confirm it?
 \starttext
 \startformula
x =  \left ( 1 + 2 \right )
\stopformula
 \stoptext



--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Roger Mason
Hans Hagen  writes:

>
> this just works here ... so can others confirm it?
>
> \starttext
>
> \startformula
> x =  \left ( 1 + 2 \right )
> \stopformula
>
> \stoptext
>
>
Here too:

resolvers   | trees | analyzing 'home:texmf'
resolvers   | globbing | confusing filename, name: 'README.txt', lower: 
'readme.txt', already: 'ReadMe.txt'
mtx-context | ConTeXt Process Management 0.63
mtx-context |
mtx-context | main context file: 
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2016.10.14 17:19

Roger
___
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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
On Tue, 24 Jan 2017 15:15:09 +0100, luigi scarso   
wrote:



On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen  wrote:

this just works here ... so can others confirm it?

\starttext

\startformula
x =  \left ( 1 + 2 \right )
\stopformula

\stoptext





no problem here with

This is LuaTeX, Version 1.0.2 (TeX Live 2017/dev)
 system commands enabled.
system  > ConTeXt  ver: 2017.01.17 16:50 MKIV beta  fmt:
2017.1.23  int: english/english


in fact, this minimal example works for me too. BUT adding those three  
lines (\startformula  \stopformula) to my actual document makes  
compilation fail. no idea what's happening here. I will now try to reduce  
my original document to a hopefully minimal example triggering the  
described behaviour.


any hints, where to look regarding possible reasons of the observed  
behavior would of course be appreciated.







--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread luigi scarso
On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen  wrote:
> this just works here ... so can others confirm it?
>
> \starttext
>
> \startformula
> x =  \left ( 1 + 2 \right )
> \stopformula
>
> \stoptext
>
>


no problem here with

This is LuaTeX, Version 1.0.2 (TeX Live 2017/dev)
 system commands enabled.
system  > ConTeXt  ver: 2017.01.17 16:50 MKIV beta  fmt:
2017.1.23  int: english/english

-- 
luigi
___
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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen

On 1/24/2017 2:33 PM, j. van den hoff wrote:

On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen  wrote:

thanks for the quick reply and sorry for my not being precise.
correction/addition follows:


On 1/24/2017 11:33 AM, j. van den hoff wrote:

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really
not much experience so far).

I updated to the latest version (0.63) before proceeding.


0.63 what? luatex? then you need to check things as we're beyond 1.00 now


I was refering to the `context --version' output:

resolvers   | trees | analyzing 'home:texmf'
mtx-context | ConTeXt Process Management 0.63
mtx-context |
mtx-context | main context file:
path_to/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2017.01.17 17:37

I _was_ under the impression that this is current since I did an update
and `current version' gives a date from last week. or that's what I
believed would happen, when re-running `first-setup.sh': am I mistaken?
if this is a stupid question I'd accept a RTFM answer ;-).


the context version is: 2017.01.17 17:37

(best also mention the reported luatex version in such cases)

the 0.63 hardly changes as mtx-context hardly changes





two observations:

1.
in a new document including assorted equations everything went fine
until I tried something like

\startformula
x = \left 1 + 2 \right
\stopformula


\left( ... \right)

left and right take an argument that has to be some known open or
close operator


yes, I know. sorry for the glitch. I _meant_

\startformula
  x =  \left ( 1 + 2 \right )
 \stopformula

and _that_ is what's still causes the `Undefined control sequence'
(both, in the new as well as the two year old unmodified document) --
actually it is thus reported in
the error message (in the previous mail, too):

"l.472 x = \left (
1 + 2 \right )"



this just works here ... so can others confirm it?

\starttext

\startformula
x =  \left ( 1 + 2 \right )
\stopformula

\stoptext



which caused an error:

8<--
 ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
  {#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft \meaning \nexttoken
  \endcsname
\expandafter \l...
l.472 x = \left (
1 + 2 \right )
8<--

2.
an old document (not modified these 2 years) does no longer compile due
to apparently the same problem (not understanding `\left', `\right'.

question: my understanding is, that `context' supports "everything" out
of the box (notably equations) and there is no need for explicit loading
of additional packages? so `\left' etc. _should be defined (and it
_used_ to work 2 years ago)? what am I missing?

thx, joerg










--

-
  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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff

On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen  wrote:

thanks for the quick reply and sorry for my not being precise.  
correction/addition follows:



On 1/24/2017 11:33 AM, j. van den hoff wrote:

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really
not much experience so far).

I updated to the latest version (0.63) before proceeding.


0.63 what? luatex? then you need to check things as we're beyond 1.00 now


I was refering to the `context --version' output:

resolvers   | trees | analyzing 'home:texmf'
mtx-context | ConTeXt Process Management 0.63
mtx-context |
mtx-context | main context file:  
path_to/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2017.01.17 17:37

I _was_ under the impression that this is current since I did an update  
and `current version' gives a date from last week. or that's what I  
believed would happen, when re-running `first-setup.sh': am I mistaken? if  
this is a stupid question I'd accept a RTFM answer ;-).





two observations:

1.
in a new document including assorted equations everything went fine
until I tried something like

\startformula
x = \left 1 + 2 \right
\stopformula


\left( ... \right)

left and right take an argument that has to be some known open or close  
operator


yes, I know. sorry for the glitch. I _meant_

\startformula
  x =  \left ( 1 + 2 \right )
 \stopformula

and _that_ is what's still causes the `Undefined control sequence' (both,  
in the new as well as the two year old unmodified document) -- actually it  
is thus reported in

the error message (in the previous mail, too):

"l.472 x = \left (
1 + 2 \right )"




which caused an error:

8<--
 ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
  {#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft \meaning \nexttoken
  \endcsname
\expandafter \l...
l.472 x = \left (
1 + 2 \right )
8<--

2.
an old document (not modified these 2 years) does no longer compile due
to apparently the same problem (not understanding `\left', `\right'.

question: my understanding is, that `context' supports "everything" out
of the box (notably equations) and there is no need for explicit loading
of additional packages? so `\left' etc. _should be defined (and it
_used_ to work 2 years ago)? what am I missing?

thx, joerg







--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen

On 1/24/2017 11:33 AM, j. van den hoff wrote:

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really
not much experience so far).

I updated to the latest version (0.63) before proceeding.


0.63 what? luatex? then you need to check things as we're beyond 1.00 now


two observations:

1.
in a new document including assorted equations everything went fine
until I tried something like

\startformula
x = \left 1 + 2 \right
\stopformula


\left( ... \right)

left and right take an argument that has to be some known open or close 
operator



which caused an error:

8<--
 ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
  {#2}\fastsetup
{\??simplel...
\math_left ...ame \??mathleft \meaning \nexttoken
  \endcsname
\expandafter \l...
l.472 x = \left (
1 + 2 \right )
8<--

2.
an old document (not modified these 2 years) does no longer compile due
to apparently the same problem (not understanding `\left', `\right'.

question: my understanding is, that `context' supports "everything" out
of the box (notably equations) and there is no need for explicit loading
of additional packages? so `\left' etc. _should be defined (and it
_used_ to work 2 years ago)? what am I missing?

thx, joerg




--

-
  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] Chapter-subtitle and a short version of a (long) chapter title to fit in the header

2017-01-24 Thread Robert Blackstone

On 24 Jan 2017, at 09:34 , Aditya Mahajan  wrote:
> 
> On Tue, 10 Jan 2017, Robert Blackstone wrote:
> 
>> So my main problem is that I need, in the command \startchapter, a third 
>> form for the chapter title to fit in the header and a compatible version 
>> of the setup for the headertexts.
> 
> This is what the `marking` key is for.
> 
> \starttext
> \startchapter[title={Title}, list={What goes to table of contents}, 
> marking={What goes to header and footers}]
> 
> ...
> 
> \stopchapter
> \stoptext
> 
> Aditya
Thanks Aditya.
This is what I needed. 

Best regards,
Robert
___
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] mathmatrix and grid: followup

2017-01-24 Thread Henri Menke
Bump

On 01/06/2017 10:33 AM, Henri Menke wrote:
> Bump and (belated) Happy New Year!
> 
> On 12/10/2016 10:37 AM, Henri Menke wrote:
>> Bump
>>
>> On 11/27/2016 07:45 PM, Henri Menke wrote:
>>> Bump
>>>
>>> On 11/22/2016 02:18 PM, Henri Menke wrote:
 Dear list,

 some time ago I asked about the interplay of mathmatix with grid 
 typesetting: https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html

 I noticed that when the grid is enabled, the height of a mathmatrix is 
 rounded down which leaves less space above than below.  In my opinion 
 either the height should be rounded up or the depth rounded down here.  In 
 the original thread Wolfgang proposed using \setupformula[grid=tolerant] 
 and adding a blank line before the formula (otherwise grid=tolerant is 
 applied to the paragraph before).  This workaround leads to the depth 
 being rounded down in the example below which produces a more balanced 
 output.  Could this somehow be made the default behaviour or something?  
 Currently it requires the user to notice that vertical spacing is off and 
 correct it manually, including adding a blank line before the formula to 
 prevent grid=tolerant being applied to the paragraph.

 Cheers, Henri

 ---

 \setuplayout[grid=yes]
 \showgrid

 \starttext

 \input knuth
 \startformula
   \vrule % make lineheight and depth visible
   \startmathmatrix
 \NC A \NR
 \NC B \NR
 \NC C \NR
   \stopmathmatrix
 \stopformula
 \input tufte

 \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] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really  
not much experience so far).


I updated to the latest version (0.63) before proceeding.

two observations:

1.
in a new document including assorted equations everything went fine until  
I tried something like


\startformula
x = \left 1 + 2 \right
\stopformula

which caused an error:

8<--
 ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
  {#2}\fastsetup  
{\??simplel...

\math_left ...ame \??mathleft \meaning \nexttoken
  \endcsname \expandafter  
\l...

l.472 x = \left (
1 + 2 \right )
8<--

2.
an old document (not modified these 2 years) does no longer compile due to  
apparently the same problem (not understanding `\left', `\right'.


question: my understanding is, that `context' supports "everything" out of  
the box (notably equations) and there is no need for explicit loading of  
additional packages? so `\left' etc. _should be defined (and it _used_ to  
work 2 years ago)? what am I missing?


thx, joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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] A better \definesymbol sought

2017-01-24 Thread Hans Hagen

On 1/24/2017 4:04 AM, Rik wrote:

On 2017-01-23 14:09, Rik Kabel wrote:

On 2017-01-23 00:06, Alan Braslau wrote:
> On Sun, 22 Jan 2017 22:39:53 -0500 Rik Kabel >  wrote: 
> >> So, how can I make the
inner glyph (‘?’ in the example below) >> transparent, so that the
background shows through along with >> anything else that lives on a
lower layer? I’ve seen a method for >> constructed shapes, but nothing
that I can apply to text glyphs. >> Undraw doesn’t do it. > > Undraw
is simply draw using the background color. > > Transparency is a
MetaFun extension to MetaPost (so part of > ConTeXt). > > draw q
withtransparency (1,0.5) ; % (method,transparency) > > Alan

Hmmm. That does not work for me (with any of many method and
transparency values).  The  ‘?’ is solid black. I do see a message in
the log that looks related:

mkiv lua stats  > page group warning: transparencies are used but
no pagecolormodel is set

but adding \setcolors[state=start,cmyk=yes] does not change that; both
the warning and the solid black glyph remain. Could this be an issue
of the PDF viewer? Is it a font issue?

Okay, I got a clean compile using \definecolor and referencing that in
the MP page.

\setupbackgrounds
  [page]
  [background=color,backgroundcolor=yellow]
\definecolor[Transp][r=1,t=0,a=12]
\definefont
  [DVSrB]
  [file:DejaVuSerif-Bold.ttf]
\startuseMPgraphic{HeartTest 1}
  picture h,q ;
  h := "♥" infont "\truefontname{DejaVuSerif-Bold.ttf}" scaled 20 ;
  q := textext("{\DVSrB ?}") scaled 10 ;
  q := q shifted - (xpart center q, 12pt) ;
  draw h withcolor blue ;
  draw q withtransparency(12,0) ;
  draw q shifted (72pt,0) withtransparency(12,0) ;
\stopuseMPgraphic
\startuseMPgraphic{HeartTest 2}
  picture h,q ;
  h := "♥" infont "\truefontname{DejaVuSerif-Bold.ttf}" scaled 20 ;
  q := textext("\color[Transp]{\DVSrB ?}") scaled 10 ;
  q := q shifted - (xpart center q, 12pt) ;
  draw h withcolor blue ;
  draw q ;
  draw q shifted (72pt,0) ;
\stopuseMPgraphic
\starttext
 \useMPgraphic{HeartTest 1}
 \useMPgraphic{HeartTest 2}
\stoptext

Unfortunately, the result is not what I want. The result is that the “?”
disappears, allowing the color directly behind it to show through. The
example above shows that it works with \definecolor but not
withwithtransparency. I have no idea why, and certainly realize it could
be my error.

What I want is that the background of the page (yellow in this case)
should show through. That is what is done with fill / reverse / cycle,
as in:

\setupbackgrounds
  [page]
  [background=color,backgroundcolor=yellow]
\startuseMPgraphic{CircleTest}
  path p,q ;
  p := fullcircle scaled 2cm ;
  q := fullcircle scaled 1cm ;
  fill p -- reverse q -- cycle withcolor blue;
\stopuseMPgraphic
\starttext
 \useMPgraphic{CircleTest}
\stoptext

where the background color (yellow) comes through the inner circle (path q).

Can this be done with text characters? I suspect that the answer is that
the glyphs have to be converted to paths and that it will only work when


\setupbackgrounds
  [page]
  [background=color,
   backgroundcolor=yellow]
\starttext
\startcolor[blue]\starteffect[outer]PQR\stopeffect\stopcolor
\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
___