Re: [NTG-context] No dots in \dotfill with new font

2020-06-16 Thread James Withers
Many thanks Hans. That has made the dots appear. If possible I would
like to use the dot from the same font, especially if using a font
where full stops are diamond shaped rather than circular.

Is there any way to map the dot from the external font so that it can
be used by the \dotfill command?

James

On Tue, 16 Jun 2020 at 21:04, Hans Hagen  wrote:
>
> On 6/16/2020 1:03 PM, James Withers wrote:
> > Hello
> >
> > I've followed the instructions on the Context Garden wiki to make use
> > of a different font. Unfortunately when using \dotfill the dots do not
> > show up. My minimal example is below. I think this might be because
> > \dotfill takes its dots from the math mode font which I have not set
> > up correctly.
> >
> > Grateful for any assistance
> >
> > James
> >
> >
> > \starttypescript [cormorant]
> > \definefontsynonym[Cormorant-Regular] [file:Cormorant-Regular]
> > \stoptypescript
> >
> > \starttypescript [cormorant]
> > \setups[font:fallback:serif]
> > \definefontsynonym[Serif] [Cormorant-Regular] [features=default]
> > \stoptypescript
> >
> > \starttypescript [cormorant]
> > \definetypeface [cormorant] [rm] [serif] [cormorant] [default]
> > \definetypeface [cormorant] [mm] [math] [cormorant] [default]
> > \stoptypescript
> >
> > \setupbodyfont [cormorant]
> >
> > \starttext
> >
> > .
> >
> > text before dotfill\dotfill text after dotfill
> >
> > .
> >
> > \stoptext
> you need a math font
>
>  \definetypeface [cormorant] [mm] [math]  [pagella] [default]
>
>
>
> -
>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] margin comment above heading

2020-06-16 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \startsetups[tinytiny]
\setupwhitespace[-2em]
\setupbodyfont[0.01pt]
\setupinterlinespace[1sp]
  \stopsetups
  \setupinteraction[state=start]
  \showframe\showgrid
  \starttext
\blank[force, 10em]
\section{Move comment above this heading}
\startparagraph[setups=tinytiny]
 \dontleavehmode
 \comment[location={rightmargin}, color=orange]
 {comment}
\stopparagraph
  \stoptext

Is there a way to move the comment above the heading that goes before?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] No dots in \dotfill with new font

2020-06-16 Thread Hans Hagen

On 6/16/2020 1:03 PM, James Withers wrote:

Hello

I've followed the instructions on the Context Garden wiki to make use
of a different font. Unfortunately when using \dotfill the dots do not
show up. My minimal example is below. I think this might be because
\dotfill takes its dots from the math mode font which I have not set
up correctly.

Grateful for any assistance

James


\starttypescript [cormorant]
\definefontsynonym[Cormorant-Regular] [file:Cormorant-Regular]
\stoptypescript

\starttypescript [cormorant]
\setups[font:fallback:serif]
\definefontsynonym[Serif] [Cormorant-Regular] [features=default]
\stoptypescript

\starttypescript [cormorant]
\definetypeface [cormorant] [rm] [serif] [cormorant] [default]
\definetypeface [cormorant] [mm] [math] [cormorant] [default]
\stoptypescript

\setupbodyfont [cormorant]

\starttext

.

text before dotfill\dotfill text after dotfill

.

\stoptext

you need a math font

\definetypeface [cormorant] [mm] [math]  [pagella] [default]



-
  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] spacing before items

2020-06-16 Thread jkitz


> On Jun 16, 2020, at 1:51 PM, m...@murchisondrillingschools.com wrote:
> 
> I want more space before each top-level item.  MWE:
> 
> \defineitemgroup[mdshw][levels=2]
> \setupitemgroup[mdshw][1][n]
> \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]


Is something like this what you want? (Play with the values [2cm])


\defineitemgroup[mdshw][levels=2]

\setupitemgroup[mdshw][1][n][before={\blank[2cm]},after={\blank[2cm]},inbetween={\blank[2cm]}]
\setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]


HTH,
John___
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] spacing before items

2020-06-16 Thread Tomas Hala
Hi Mike,

\setupitemgroup[youritems][1][inbetween={\blank[5*big]}]
could help you.

Best wishes,

Tomáš


Tue, Jun 16, 2020 ve 05:51:20PM + Mike Cooper napsal(a):
#Link: [1]File-List
#Link: [2]Edit-Time-Data
# 
#Hello list,
# 
# 
# 
#Another very simple issue—no doubt the answer is right in front of me but
#I can’t find it or figure it out… 
# 
#(Please let me know where it is!)
# 
# 
# 
#I want more space before each top-level item.  MWE:
# 
# 
# 
#\defineitemgroup[mdshw][levels=2]
# 
# \setupitemgroup[mdshw][1][n]
# 
# \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=),
#stopper=]
# 
# 
# 
# 
# 
#\starttext
# 
# 
# 
#\startsection{First Section}
# 
# 
# 
#\startmdshw
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
#\startmdshw
# 
# 
# 
#\stoptext
# 
# 
# 
# 
# 
#THANK YOU!!
# 
# 
# 
#Mike Cooper
# 
#Technical Trainer
# 
#Murchison Drilling Schools, Inc.
# 
#2501 Juan Tabo NE
# 
#Albuquerque, NM 87112
# 
#Tel: (505) 293-6271
# 
#Fax: (505) 298-5294
# 
#Email: [3]m...@murchisondrillingschools.com
# 
#Website: [4]www.murchisondrillingschools.com
# 
#[5]cid:image007.jpg@01D03ADC.BD6E6850  
[6]cid:image008.jpg@01D03ADC.BD6E6850  [7]cid:image009.jpg@01D03ADC.BD6E6850
# 
#Murchison Drilling Schools is now part of
# 
#[8]cid:image001.png@01D63515.857FD120
# 
# 
# 
# References
# 
#Visible links
#1. file:///home/thala/.mutt-tmp/cid:filelist.xml@01D643D4.723482A0
#2. file:///home/thala/.mutt-tmp/cid:editdata.mso
#3. mailto:m...@murchisondrillingschools.com
#4. http://www.murchisondrillingschools.com/
#5. 
https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622
#6. http://www.linkedin.com/company/murchison-drilling-schools-inc-
#7. https://twitter.com/trainingmds






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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] spacing before items

2020-06-16 Thread Wolfgang Schuster

Mike Cooper schrieb am 16.06.2020 um 19:51:

Hello list,

Another very simple issue—no doubt the answer is right in front of me 
but I can’t find it or figure it out…


(Please let me know where it is!)

I want more space before each top-level item.MWE:

\defineitemgroup[mdshw][levels=2]

\setupitemgroup[mdshw][1][n]

\setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]

\starttext

\startsection{First Section}


\startsection[title={...}]


The first entry uses the "before" value while inner entries use "inbetween".

\starttext

\setupitemgroup
  [itemize][1]
  [   before={\endgraf{\ttbf[before]}\endgraf},
   inbetween={\endgraf{\ttbf [inbetween]}\endgraf},
   after={\endgraf{\ttbf [after]}\endgraf}]

\startitemize
\startitem Choose the correct answer.
\startitemize
\item This one
\item This one
\stopitemize
\stopitem
\startitem Choose the correct answer.
\startitemize
\item This one
\item This one
\stopitemize
\stopitem
\stopitemize

\stoptext

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
___


Re: [NTG-context] issue with \comment

2020-06-16 Thread Pablo Rodriguez
On 6/16/20 8:00 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 16.06.2020 um 19:20:
>> [...]
>> I think it might be a bug. Could anyone confirm this?
>
> Why is everything a bug?
>
> Some elements like margin blocks or register entries need an anchor.

Sorry, Wolfgang, I discovered after reporting the issue that inmargin
comments need to be in horizontal mode.

Many thanks for your help and sorry for the noise,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] issue with \comment

2020-06-16 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 16.06.2020 um 19:20:

Dear list,

when trying to report another issue, I found the following one (using
latest from 2020.06.12 17:43):

   \setupinteraction[state=start]
   \starttext
 a\contextversion

 \comment[location={rightmargin}]{comment}
   \stoptext

For some strange reason, \comment isn’t added when there is no other
content in the paragraph.

I think it might be a bug. Could anyone confirm this?


Why is everything a bug?


Some elements like margin blocks or register entries need an anchor.

\enabletrackers[typesetters.margindata]

\starttext

\inrightmargin{Hello!}xxx

\inrightmargin{Here!}
%\inrightmargin{Here!}\dontleavehmode

\stoptext

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
___


[NTG-context] spacing before items

2020-06-16 Thread Mike Cooper
Hello list,

Another very simple issue-no doubt the answer is right in front of me but I 
can't find it or figure it out...
(Please let me know where it is!)

I want more space before each top-level item.  MWE:

\defineitemgroup[mdshw][levels=2]
 \setupitemgroup[mdshw][1][n]
 \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]


\starttext

\startsection{First Section}

\startmdshw
 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

\startmdshw

\stoptext


THANK YOU!!

Mike Cooper
Technical Trainer
Murchison Drilling Schools, Inc.
2501 Juan Tabo NE
Albuquerque, NM 87112
Tel: (505) 293-6271
Fax: (505) 298-5294
Email: 
m...@murchisondrillingschools.com
Website: 
www.murchisondrillingschools.com
[cid:image007.jpg@01D03ADC.BD6E6850]
  [cid:image008.jpg@01D03ADC.BD6E6850] 
   
[cid:image009.jpg@01D03ADC.BD6E6850] 
Murchison Drilling Schools is now part of
[cid:image001.png@01D63515.857FD120]

___
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] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan

On Tue, 16 Jun 2020, Pablo Rodriguez wrote:


On 6/16/20 4:58 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 16.06.2020 um 16:31:

[...]
I’m afraid that you get the same result, so there may be a bug there.


There is no bug. When you take a look at my pagenumber example you see a
few lines at the top show the number of the previous page, this happens
because TeX collects more than necessary which means in your example
above the layer is placed when TeX was still on the first page.


Many thanks for your reply, Wolfgang.

I’m afraid that TeX is too tricky for me in that case (or I simply think
that it is misbehaving there).


In your example you can add \testpage to \section to force a page break
when there isn't enough space available to place the heading, this moves
also the layer placement to the next page.


I’m afraid this doesn’t work with my real document.

I need another approach. This sample reflects my problem:

 \setupinteraction[state=start]
 %~ \showframe\showgrid
 \starttext
   \dorecurse{41}{one line\par}

   \ \comment[location={rightmargin}]{comment}
 \stoptext

Since layers are problematic for the task, I insert the comments right
after the text (which actually comes from \xmlflush{#1} [XML sources]).

I’m afraid that the paragraph before \comment comes from \xmlflush, so I
cannot avoid it.

This is unproblematic for most cases, but the sample above displays the
problem of adding a comment in a new paragraph. It might add a new page.

To avoid this issue: how could I prevent the pagebreak before \comment
and the addition of a pagebreak above?

If that were possible, I could add a \blank[-2*line] that would place
the comment right.


Try

\removeunwantedwhitespace

or

\blank[samepage]

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
___


Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
On 6/16/20 4:58 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 16.06.2020 um 16:31:
>> [...]
>> I’m afraid that you get the same result, so there may be a bug there.
>
> There is no bug. When you take a look at my pagenumber example you see a
> few lines at the top show the number of the previous page, this happens
> because TeX collects more than necessary which means in your example
> above the layer is placed when TeX was still on the first page.

Many thanks for your reply, Wolfgang.

I’m afraid that TeX is too tricky for me in that case (or I simply think
that it is misbehaving there).

> In your example you can add \testpage to \section to force a page break
> when there isn't enough space available to place the heading, this moves
> also the layer placement to the next page.

I’m afraid this doesn’t work with my real document.

I need another approach. This sample reflects my problem:

  \setupinteraction[state=start]
  %~ \showframe\showgrid
  \starttext
\dorecurse{41}{one line\par}

\ \comment[location={rightmargin}]{comment}
  \stoptext

Since layers are problematic for the task, I insert the comments right
after the text (which actually comes from \xmlflush{#1} [XML sources]).

I’m afraid that the paragraph before \comment comes from \xmlflush, so I
cannot avoid it.

This is unproblematic for most cases, but the sample above displays the
problem of adding a comment in a new paragraph. It might add a new page.

To avoid this issue: how could I prevent the pagebreak before \comment
and the addition of a pagebreak above?

If that were possible, I could add a \blank[-2*line] that would place
the comment right.

Many thanks for your help,

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
___


[NTG-context] issue with \comment

2020-06-16 Thread Pablo Rodriguez
Dear list,

when trying to report another issue, I found the following one (using
latest from 2020.06.12 17:43):

  \setupinteraction[state=start]
  \starttext
a\contextversion

\comment[location={rightmargin}]{comment}
  \stoptext

For some strange reason, \comment isn’t added when there is no other
content in the paragraph.

I think it might be a bug. Could anyone confirm this?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 16.06.2020 um 16:31:

On 6/16/20 4:53 AM, Rudolf Bahr wrote:

[...]
Hi Pablo,

I fear I don't understand what issue you mean, therefore I append my output 
here.


Many thanks for your reply, Rudolf.

The issue is that the layer is placed on the first page, where it should
be placed on the second page.

This sample shows thie problem in a simpler way:

   \definelayer[whatever]
 [x=3em, y=3em]
   \setupbackgrounds[page][background=whatever]


\setuphead
  [section]
  [before={\testpage[2]\blank[2*big]}]


   \starttext
   \dorecurse{18}{\section{Section}}
   just a line
   \setlayerframed[whatever][foregroundstyle=\bf\ss]
 {layer on the last page?}
   \stoptext

I’m afraid that you get the same result, so there may be a bug there.


There is no bug. When you take a look at my pagenumber example you see a 
few lines at the top show the number of the previous page, this happens 
because TeX collects more than necessary which means in your example 
above the layer is placed when TeX was still on the first page.


In your example you can add \testpage to \section to force a page break 
when there isn't enough space available to place the heading, this moves

also the layer placement to the next page.

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
___


Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
On 6/16/20 4:53 AM, Rudolf Bahr wrote:
> [...]
> Hi Pablo,
>
> I fear I don't understand what issue you mean, therefore I append my output 
> here.

Many thanks for your reply, Rudolf.

The issue is that the layer is placed on the first page, where it should
be placed on the second page.

This sample shows thie problem in a simpler way:

  \definelayer[whatever]
[x=3em, y=3em]
  \setupbackgrounds[page][background=whatever]
  \starttext
  \dorecurse{18}{\section{Section}}
  just a line
  \setlayerframed[whatever][foregroundstyle=\bf\ss]
{layer on the last page?}
  \stoptext

I’m afraid that you get the same result, so there may be a bug there.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hi Marco,

thank you! :-)

Willi

> On 16 Jun 2020, at 14:44, Marco Patzer  wrote:
> 
> On Tue, 16 Jun 2020 14:37:17 +0200
> Marco Patzer  wrote:
> 
>> On Tue, 16 Jun 2020 14:17:09 +0200
>> Willi Egger  wrote:
>> 
>>> I try to use a Metapost drawing as a background to a framed text. —
>>> I can not make it working though…
>>> 
>>> \startuniqueMPgraphic{Markings}
>>> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
>>> 5mm withcolor blue; \stopuniqueMPgraphic
>>> 
>>> \defineoverlay[Marks]{\useMPgraphic{Markings}}  
>> 
>> \defineoverlay[Marks][{\useMPgraphic{Markings}}]
> 
> Better:
> 
> \defineoverlay[Marks][\useMPgraphic{Markings}]
> 
> Marco
> ___
> 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] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:37:17 +0200
Marco Patzer  wrote:

> On Tue, 16 Jun 2020 14:17:09 +0200
> Willi Egger  wrote:
> 
> > I try to use a Metapost drawing as a background to a framed text. —
> > I can not make it working though…
> > 
> > \startuniqueMPgraphic{Markings}
> > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
> > 5mm withcolor blue; \stopuniqueMPgraphic
> > 
> > \defineoverlay[Marks]{\useMPgraphic{Markings}}  
> 
> \defineoverlay[Marks][{\useMPgraphic{Markings}}]

Better:

\defineoverlay[Marks][\useMPgraphic{Markings}]

Marco
___
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] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:17:09 +0200
Willi Egger  wrote:

> I try to use a Metapost drawing as a background to a framed text. — I
> can not make it working though…
> 
> \startuniqueMPgraphic{Markings}
> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm
> withcolor blue; \stopuniqueMPgraphic
> 
> \defineoverlay[Marks]{\useMPgraphic{Markings}}

\defineoverlay[Marks][{\useMPgraphic{Markings}}]

Marco
___
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] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hello listmembers,


I try to use a Metapost drawing as a background to a framed text. — I can not 
make it working though…

\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight}
fill OverlayBox enlarged 5mm withcolor blue;
\stopuniqueMPgraphic

\defineoverlay[Marks]{\useMPgraphic{Markings}}

\setupframed[background=Marks]

\setupframedtexts
[frame=on,
 background=Marks]  

\starttext
\framedtext{Hello World!}
\blank
\framed{Hello World!}
\stoptext

What is wrong with this code?

Kind regards

Willi
___
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] No dots in \dotfill with new font

2020-06-16 Thread James Withers
Hello

I've followed the instructions on the Context Garden wiki to make use
of a different font. Unfortunately when using \dotfill the dots do not
show up. My minimal example is below. I think this might be because
\dotfill takes its dots from the math mode font which I have not set
up correctly.

Grateful for any assistance

James


\starttypescript [cormorant]
\definefontsynonym[Cormorant-Regular] [file:Cormorant-Regular]
\stoptypescript

\starttypescript [cormorant]
\setups[font:fallback:serif]
\definefontsynonym[Serif] [Cormorant-Regular] [features=default]
\stoptypescript

\starttypescript [cormorant]
\definetypeface [cormorant] [rm] [serif] [cormorant] [default]
\definetypeface [cormorant] [mm] [math] [cormorant] [default]
\stoptypescript

\setupbodyfont [cormorant]

\starttext

.

text before dotfill\dotfill text after dotfill

.

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