Re: [NTG-context] on luatex.wrapup

2021-11-07 Thread Hans Hagen via ntg-context

On 11/7/2021 11:18 PM, Pablo Rodriguez via ntg-context wrote:

Hi Hans,

I would like to use luatex.wrapup to remove media files that I don’t
need anymore once the PDF document is generated.

I have realized that luatex.wrapup works at the very end of the PDF
generation, but in each run.

Is there no way to have a luatex.final_wrapup, when no other run will
take place?


a run doesn't know it's the last one, only the context runner knows and 
then it doesn't call tex (which is why --purge and --result work)


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
___


[NTG-context] on luatex.wrapup

2021-11-07 Thread Pablo Rodriguez via ntg-context
Hi Hans,

I would like to use luatex.wrapup to remove media files that I don’t
need anymore once the PDF document is generated.

I have realized that luatex.wrapup works at the very end of the PDF
generation, but in each run.

Is there no way to have a luatex.final_wrapup, when no other run will
take place?

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

2021-11-07 Thread Wolfgang Schuster via ntg-context

skyhorse--- via ntg-context schrieb am 07.11.2021 um 22:06:

I am a beginner and not well versed on font processing needs yet.

I tried the following simple example, but get an error.
I am using the standalone context: "txrun  | ConTeXt TDS Runner Tool 
1.32"


Which one, there is one available from the ConTeXt wiki [1] and another 
one from the Pragma website [2].


[1] https://wiki.contextgarden.net/Installation
[2] https://www.pragma-ade.nl/install.htm

It helps also to tell us which system you're using (Windows, Linux etc.).

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

2021-11-07 Thread skyhorse--- via ntg-context

I am a beginner and not well versed on font processing needs yet.

I tried the following simple example, but get an error.
I am using the standalone context: "txrun  | ConTeXt TDS Runner Tool 
1.32"
Here is my example:


\starttext

\startformula
   c^2 = a^2 + b^2
\stopformula

\stoptext
%

The error I get back from context is:

"   Sorry, but I can't typeset math unless various parameters have been set. 
This is
normally done by loading special math fonts into the math family slots. 
Your font
set is lacking at least the parameter mentioned earlier.
mtx-context | fatal error: return code: 256
"

I don't know what special math fonts there are or what a math family slot is.
Can you help me out.   Or point me to a document that will clear this up for me.

Thank you.

-
___
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 tips and tricks

2021-11-07 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 07.11.2021 um 19:05:

On 11/6/2021 11:23 AM, Alexandre Christe via ntg-context wrote:

Dear all,

I'd like to know how best to work with font features regarding 
adaptations of math fonts.


For example, let's assume I'd like to use Minion Pro also for math 
typesetting. I've referred myself to this page of the Wiki 
https://wiki.contextgarden.net/Command/definefontfallback 
. I have 
tried the following, but it fails for greek letters in math mode.


\definefallbackfamily
      [mainface] [math] [Minion Pro]
  [range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes] 


\definefallbackfamily
      [mainface] [math] [Minion Pro]
  [range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes] 


\definefallbackfamily
      [mainface] [math] [Minion Pro]
      [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily     [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
Do you get results at all? Hard to check as that math font is a 
commercial one. If it's an otf font, I suppose it can be used directly 
as mainface math.


Libertinus is a free Math font and Minion Pro was available with older 
installations of the Adobe Reader.


To use the Minion font for math you have to create a new fallback for 
each set of characters because you need always a different argument for 
the offset key. To make everything a bit easier the fallbackfamily 
command provides preset list which already set he necessary values for 
range and offset.


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=lowercasenormal]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:lowercasenormal]


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=lowercasenormal,offset=lowercaseitalic,tf=style:italic]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:lowercaseitalic]


% \definefallbackfamily [mainface] [math] [Minion Pro]
%   [range=digitsnormal,features=f:lining]

\definefallbackfamily [mainface] [math] [Minion Pro] 
[preset=math:digitsnormal]


\definefontfamily [mainface] [math] [Libertinus Math]

\starttext

\startformula
c^2 = a^2 + b^2
\stopformula

\switchtobodyfont[mainface]

\startformula
c^2 = a^2 + b^2
\stopformula

\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] Math font tips and tricks

2021-11-07 Thread Hans Hagen via ntg-context

On 11/6/2021 11:23 AM, Alexandre Christe via ntg-context wrote:

Dear all,

I'd like to know how best to work with font features regarding 
adaptations of math fonts.


For example, let's assume I'd like to use Minion Pro also for math 
typesetting. I've referred myself to this page of the Wiki 
https://wiki.contextgarden.net/Command/definefontfallback 
. I have 
tried the following, but it fails for greek letters in math mode.


\definefallbackfamily
      [mainface] [math] [Minion Pro]
 
  [range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes]

\definefallbackfamily
      [mainface] [math] [Minion Pro]
 
  [range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes]

\definefallbackfamily
      [mainface] [math] [Minion Pro]
      [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily     [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
Do you get results at all? Hard to check as that math font is a 
commercial one. If it's an otf font, I suppose it can be used directly 
as mainface math.


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] adding module to ConTeXt basic installation

2021-11-07 Thread Hans Hagen via ntg-context

On 11/6/2021 11:55 AM, A A via ntg-context wrote:

Dear All,

I installed ConTeXt on my windows machine using the instructions 
provided here:


  - https://wiki.contextgarden.net/Installation 



I would like to now render some python code in my pdf. For this I need 
to install this module: https://github.com/adityam/filter 



How do I add this module to my current installation? Thanks for your 
consideration.
normally they can be put in the texmf-modules tree btu you can also put 
them in texmf-local


just make sure they are in tex/context/modules/... or so amd run 
"context --generate" to update the file database


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
___