Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Aditya Mahajan

On Thu, 10 Aug 2017, Fabrice Couvreur wrote:


Hi,
@Aditya "You need multiple runs to resolve \lastpage"
What you propose does not solve the problem


How are you running it. You need to remove the --once call from the 
context call. (Not sure how to do this in Emacs)


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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi,
@Aditya "You need multiple runs to resolve \lastpage"
What you propose does not solve the problem

@Pablo Very nice job !
Thanks
Merci

2017-08-10 18:54 GMT+02:00 Pablo Rodriguez :

> On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
> > [...]
> > How to make the last page number interactive ?
>
> Hi Fabrice,
>
> I guess this might be what you want:
>
> \showframe
> \setupinteraction
> [state=start,
>  style=,
>  color=,
>  contrastcolor=,
>  focus=standard]
> \enabledirectives[references.border=darkred]
> \setuppagenumbering[alternative=]
> \setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}]
> \starttext
> \dorecurse{50}{a\page}
> \reference[final page]{final}
> \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
> 
> ___
>
___
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] semicolon in mathmode

2017-08-10 Thread Aditya Mahajan

On Thu, 10 Aug 2017, Alan Bowen wrote:


Is there a way to remove the thinspace after a semicolon when it is
followed by a number?
It does not seem to be covered by the autopunctuation key in
\setupmathematics.


For a one-off solution, $1{;}2$ should work.

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
___

[NTG-context] semicolon in mathmode

2017-08-10 Thread Alan Bowen
Is there a way to remove the thinspace after a semicolon when it is
followed by a number?
It does not seem to be covered by the autopunctuation key in
\setupmathematics.

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
___

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Pablo Rodriguez
On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
> [...]
> How to make the last page number interactive ?

Hi Fabrice,

I guess this might be what you want:

\showframe
\setupinteraction
[state=start,
 style=,
 color=,
 contrastcolor=,
 focus=standard]
\enabledirectives[references.border=darkred]
\setuppagenumbering[alternative=]
\setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}]
\starttext
\dorecurse{50}{a\page}
\reference[final page]{final}
\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
___

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-10 Thread Aditya Mahajan

Hi Otared,
This works with Texlive context but this does not work with Standalone
context that I use with Emacs.


I believe that Emacs calls ConTeXt with `context --once`. You need 
multiple runs to resolve \lastpage.


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] math font problem

2017-08-10 Thread Alan Bowen
Many thanks, Hans, for both tips. I have made the Brill font my math
fallback for the letters and numerals, and fixed the name of the Brill
italic. And it looks good!

Alan

On Thu, Aug 10, 2017 at 4:08 AM, Hans Hagen  wrote:

> On 8/10/2017 12:16 AM, Alan Bowen wrote:
>
> 1. I am not getting slanted lowercase Greek in mathmode.
>>
>
> because the regular brill is not italic, so  ...
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercasegreekitalic]
>
>
> 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
> 
> ___
>
___
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 for metapost experts

2017-08-10 Thread Schmitz Thomas A.

> On 10. Aug 2017, at 14:18, Hans Hagen  wrote:
> 
> p intersection_point q
> 
> (also sets intersection_found)

Boy, impressive and wonderful, thanks a lot!!! It also made me see why I the 
error stopped the compilation: I had a naming conflict between the slide 
background and one of included metapost graphics, so now I can correct this!

All best

Thomas
___
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 for metapost experts

2017-08-10 Thread Hans Hagen

On 8/10/2017 2:07 PM, Schmitz Thomas A. wrote:

Hi all,

this one is for all the metapos/metafun experts out there (Alan, are you 
there?). For a counter in one of my slide backgrounds, I have to calculate an 
intersectionpoint, given in percentage of the difference between current page 
and last page. I have always had some difficulties on the first run, when the 
value of the last page isn’t known yet and hence not written to the tuc file, 
but the error


! The paths don't intersect.




used to disappear in subsequent runs. Now, ConTeXt doesn’t compile the file at 
all and stops on this error. There is an error message I haven’t seen before:


intersectionpoint->...The paths don't intersect");
origin.else:0.5[point.x_.o...

;
<*> ... ;z13 = (z11 -- z12) intersectionpoint qw ;
draw z13 withcolor (0.1,0
This error message was generated by an `errmessage'
command, so I can't give any explicit help.
Pretend that you're Miss Marple: Examine all clues,
and deduce the truth by inspired guesses.


Is there a way to make this conditional, such as (pseudocode)


p intersection_point q

(also sets intersection_found)


if q intersects p:
  z = q intersectionpoint p ;
else:
  z = (0,0) ;
fi ;

I hope that this would allow ConTeXt to proceed and calculate the point 
correctly on the second run.

Thanks, and all best

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

[NTG-context] question for metapost experts

2017-08-10 Thread Schmitz Thomas A.
Hi all,

this one is for all the metapos/metafun experts out there (Alan, are you 
there?). For a counter in one of my slide backgrounds, I have to calculate an 
intersectionpoint, given in percentage of the difference between current page 
and last page. I have always had some difficulties on the first run, when the 
value of the last page isn’t known yet and hence not written to the tuc file, 
but the error 

> ! The paths don't intersect.
> 


used to disappear in subsequent runs. Now, ConTeXt doesn’t compile the file at 
all and stops on this error. There is an error message I haven’t seen before:

> intersectionpoint->...The paths don't intersect");
> origin.else:0.5[point.x_.o...
> 
> ;
> <*> ... ;z13 = (z11 -- z12) intersectionpoint qw ;
> draw z13 withcolor (0.1,0
> This error message was generated by an `errmessage'
> command, so I can't give any explicit help.
> Pretend that you're Miss Marple: Examine all clues,
> and deduce the truth by inspired guesses.

Is there a way to make this conditional, such as (pseudocode)

if q intersects p:
 z = q intersectionpoint p ;
else:
 z = (0,0) ;
fi ; 

I hope that this would allow ConTeXt to proceed and calculate the point 
correctly on the second run.

Thanks, and all best

Thomas
___
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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi Otared,
This works with Texlive context but this does not work with Standalone
context that I use with Emacs.
How to make the last page number interactive ?
Thank you
Fabrice

2017-08-10 11:47 GMT+02:00 Otared Kavian :

> I forgot to add that you can also use
>
> \setupfootertexts[Page \pagenumber\ sur\ \totalnumberofpages][]
>
> Best regards: OK
>
>
> On 10 Aug 2017, at 11:43, Otared Kavian  wrote:
>
> Hi Fabrice,
>
> The following gives the desired result, as Hans pointed ou:
>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> \starttext
>
> \dorecurse{5}{\input knuth.tex \page}
>
> \stoptext
>
> Best regards: OK
>
> On 10 Aug 2017, at 11:28, Fabrice Couvreur 
> wrote:
>
> Hi Hans and Pablo,
>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> The behavior is not that expected:
>
> Page 1 sur 0
> Page 2 sur 0
> Page 3 sur 0 
>
> Thanks
> Fabrice
>
> 2017-08-10 9:57 GMT+02:00 Hans Hagen :
>
>> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
>>
>>> Hello,
>>> With Latex, I did this :
>>>
>>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue
>>> ,citecolor=blue,urlcolor=blue]{hyperref}
>>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>>>
>>>
>>> With Context, I tried this unsuccessfully ;
>>>
>>> \setupinteraction
>>>  [state=start,
>>>   style=,
>>>   color=\darkred,
>>>   contrastcolor=]
>>>
>>>   \setuppagenumbering
>>>  [alternative=,
>>>   location={footer,right},
>>>   command={Page\,\pagenumber\,sur\,\lastpage } ]
>>>
>> \setuppagenumbering[alternative=]
>>
>> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>>
>> -
>>   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
>> 
>> ___
>>
>
> 
> ___
> 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
> 
> ___
>
___
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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Otared Kavian
I forgot to add that you can also use

\setupfootertexts[Page \pagenumber\ sur\ \totalnumberofpages][] 

Best regards: OK

> On 10 Aug 2017, at 11:43, Otared Kavian  wrote:
> 
> Hi Fabrice,
> 
> The following gives the desired result, as Hans pointed ou:
> 
> \setuppagenumbering[alternative=]
> 
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
> 
> \starttext
> 
> \dorecurse{5}{\input knuth.tex \page}
> 
> \stoptext
> 
> Best regards: OK
> 
>> On 10 Aug 2017, at 11:28, Fabrice Couvreur > > wrote:
>> 
>> Hi Hans and Pablo,
>> 
>> \setuppagenumbering[alternative=]
>> 
>> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>> 
>> The behavior is not that expected:
>> 
>> Page 1 sur 0
>> Page 2 sur 0
>> Page 3 sur 0 
>> 
>> Thanks
>> Fabrice
>> 
>> 2017-08-10 9:57 GMT+02:00 Hans Hagen >:
>> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
>> Hello,
>> With Latex, I did this :
>> 
>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>> 
>> 
>> With Context, I tried this unsuccessfully ;
>> 
>> \setupinteraction
>>  [state=start,
>>   style=,
>>   color=\darkred,
>>   contrastcolor=]
>> 
>>   \setuppagenumbering
>>  [alternative=,
>>   location={footer,right},
>>   command={Page\,\pagenumber\,sur\,\lastpage } ]
>> \setuppagenumbering[alternative=]
>> 
>> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>> 
>> -
>>   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 
>> ___
> 

___
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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Otared Kavian
Hi Fabrice,

The following gives the desired result, as Hans pointed ou:

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

\starttext

\dorecurse{5}{\input knuth.tex \page}

\stoptext

Best regards: OK

> On 10 Aug 2017, at 11:28, Fabrice Couvreur  
> wrote:
> 
> Hi Hans and Pablo,
> 
> \setuppagenumbering[alternative=]
> 
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
> 
> The behavior is not that expected:
> 
> Page 1 sur 0
> Page 2 sur 0
> Page 3 sur 0 
> 
> Thanks
> Fabrice
> 
> 2017-08-10 9:57 GMT+02:00 Hans Hagen >:
> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
> Hello,
> With Latex, I did this :
> 
> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
> 
> 
> With Context, I tried this unsuccessfully ;
> 
> \setupinteraction
>  [state=start,
>   style=,
>   color=\darkred,
>   contrastcolor=]
> 
>   \setuppagenumbering
>  [alternative=,
>   location={footer,right},
>   command={Page\,\pagenumber\,sur\,\lastpage } ]
> \setuppagenumbering[alternative=]
> 
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
> 
> -
>   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
> ___

___
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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi Hans and Pablo,

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

The behavior is not that expected:

Page 1 sur 0
Page 2 sur 0
Page 3 sur 0 

Thanks
Fabrice

2017-08-10 9:57 GMT+02:00 Hans Hagen :

> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> With Latex, I did this :
>>
>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue
>> ,citecolor=blue,urlcolor=blue]{hyperref}
>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>>
>>
>> With Context, I tried this unsuccessfully ;
>>
>> \setupinteraction
>>  [state=start,
>>   style=,
>>   color=\darkred,
>>   contrastcolor=]
>>
>>   \setuppagenumbering
>>  [alternative=,
>>   location={footer,right},
>>   command={Page\,\pagenumber\,sur\,\lastpage } ]
>>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> -
>   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
> 
> ___
>
___
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 font problem

2017-08-10 Thread Hans Hagen

On 8/10/2017 12:16 AM, Alan Bowen wrote:


1. I am not getting slanted lowercase Greek in mathmode.


because the regular brill is not italic, so  ...

\definefallbackfamily [mainface] [mm] [Brill] 
[preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] 
[preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill] 
[preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic] 
[preset=math:uppercasegreekitalic]


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] math font problem

2017-08-10 Thread Hans Hagen

On 8/10/2017 12:16 AM, Alan Bowen wrote:

2. I should like to have all the math lettering in the Brill font. But 
simply setting the Brill font as my math mainface runs into more 
problems—I still do not get lowercase Greek and it not only messes up 
2+2 =4 , it also reports the error—Math error: parameter 
\Umathquad\displaystyle is not set—when it comes to the display math.
My efforts to figure this out have not been successful thus far, so any 
suggestions will be most welcome.
you really have to start with a math font because such a font has more 
properties than just a few alphabetic characters


then you can overload characters but you need to use the proper code 
points for them (unicode ranges with sometimes holes)


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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Hans Hagen

On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:

Hello,
With Latex, I did this :

\usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
\rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage


With Context, I tried this unsuccessfully ;

\setupinteraction
 [state=start,
  style=,
  color=\darkred,
  contrastcolor=]

  \setuppagenumbering
 [alternative=,
  location={footer,right},
  command={Page\,\pagenumber\,sur\,\lastpage } ]

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

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