Re: [NTG-context] Achieving the effect of \overset outside math mode

2021-11-11 Thread kauśika via ntg-context
On Friday, November 12, 2021 11:04:20 AM IST Wolfgang Schuster via ntg-context 
wrote:
> Aditya Mahajan via ntg-context schrieb am 12.11.2021 um 05:45:
> > On Fri, 12 Nov 2021, kauśika via ntg-context wrote:
> >> Dear list,
> >> 
> >> I don't have a MWE per se, but as the title suggests, I want to be able
> >> to
> >> achieve the effect of \overset outside math mode. As I understand,
> >> \overset
> >> itself is implemented using \mathop and \limits.
> >> 
> >> Currently to achieve this I have defined some macros using \offset thus :
> >> \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
> >> Unfortunately, I have to hard code the x values. So I have define several
> >> such macros with different offsets. Not an elegant solution, but it is
> >> what I could muster.
> >> 
> >> So, my objective is to place a smaller piece of text above another larger
> >> piece of text so that the text above is centered w.r.t the text below.
> > 
> > Wolfgang has a ruby module, which provides this feature.
> > 
> > https://ctan.org/pkg/context-ruby
> > 
> > Doc:
> > https://ctan.org/tex-archive/macros/context/contrib/context-ruby/doc/cont
> > ext/third/ruby
> Use the built-in \ruby function, the module broke at some point after
> Hans added a similar function himself and I never fixed my own code
> afterwards.
> 
> 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
> 
> ___

Thanks Aditya and Wolfgang! I am now using the \ruby function in LMTX to 
achieve this.

Thanks,
kauśika


___
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] Achieving the effect of \overset outside math mode

2021-11-11 Thread kauśika via ntg-context
On Friday, November 12, 2021 11:04:20 AM IST Wolfgang Schuster via ntg-context 
wrote:
> Aditya Mahajan via ntg-context schrieb am 12.11.2021 um 05:45:
> > On Fri, 12 Nov 2021, kauśika via ntg-context wrote:
> >> Dear list,
> >> 
> >> I don't have a MWE per se, but as the title suggests, I want to be able
> >> to
> >> achieve the effect of \overset outside math mode. As I understand,
> >> \overset
> >> itself is implemented using \mathop and \limits.
> >> 
> >> Currently to achieve this I have defined some macros using \offset thus :
> >> \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
> >> Unfortunately, I have to hard code the x values. So I have define several
> >> such macros with different offsets. Not an elegant solution, but it is
> >> what I could muster.
> >> 
> >> So, my objective is to place a smaller piece of text above another larger
> >> piece of text so that the text above is centered w.r.t the text below.
> > 
> > Wolfgang has a ruby module, which provides this feature.
> > 
> > https://ctan.org/pkg/context-ruby
> > 
> > Doc:
> > https://ctan.org/tex-archive/macros/context/contrib/context-ruby/doc/cont
> > ext/third/ruby
> Use the built-in \ruby function, the module broke at some point after
> Hans added a similar function himself and I never fixed my own code
> afterwards.
> 
> 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
> 
> ___

Thanks Aditya and Wolfgang! After following Rik's initial response, I am now 
using the \ruby function in LMTX to achieve this.

Thanks,
kauśika


___
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] Achieving the effect of \overset outside math mode

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

Aditya Mahajan via ntg-context schrieb am 12.11.2021 um 05:45:

On Fri, 12 Nov 2021, kauśika via ntg-context wrote:


Dear list,

I don't have a MWE per se, but as the title suggests, I want to be able to
achieve the effect of \overset outside math mode. As I understand, \overset
itself is implemented using \mathop and \limits.

Currently to achieve this I have defined some macros using \offset thus :
\define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
Unfortunately, I have to hard code the x values. So I have define several such
macros with different offsets. Not an elegant solution, but it is what I could
muster.

So, my objective is to place a smaller piece of text above another larger
piece of text so that the text above is centered w.r.t the text below.

Wolfgang has a ruby module, which provides this feature.

https://ctan.org/pkg/context-ruby

Doc: 
https://ctan.org/tex-archive/macros/context/contrib/context-ruby/doc/context/third/ruby


Use the built-in \ruby function, the module broke at some point after 
Hans added a similar function himself and I never fixed my own code 
afterwards.


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] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
Thanks Aditya. Option 1 is simple enough. Not sure why that eluded me 
earlier! Option 2 gives me a little more choice, I think. I'd being 
playing with framed but could quite get it right.


It does seem, though, just using '1' as the chapter number for the 
moment, that the underline is not quite centered; almost but not quite. 
So am playing around with the roffset to adjust that.


Julian

On 12/11/21 3:49 pm, Aditya Mahajan via ntg-context wrote:

On Fri, 12 Nov 2021, jbf via ntg-context wrote:


The following MWE deliberately shows two ways of getting a short rule
beneath a chapter number, but neither achieve what I want. \underbar is
too close to the number

\setupbar[underbar][offset=-0.8] % play around with the number


and \crlf\blackrule too far below. So basically
my question is: is there a way of adjusting the position of a brief rule
beneath the number?

\defineframed[underbarframed]
  [
frame=off,
rulethickness=1pt,
bottomframe=on,
frameoffset=-1pt, % negative of rulethickness
boffset=0.8ex, % play around with this
  ]


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
___

___
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] rule beneath chapter number

2021-11-11 Thread Aditya Mahajan via ntg-context
On Fri, 12 Nov 2021, jbf via ntg-context wrote:

> The following MWE deliberately shows two ways of getting a short rule 
> beneath a chapter number, but neither achieve what I want. \underbar is 
> too close to the number 

\setupbar[underbar][offset=-0.8] % play around with the number

> and \crlf\blackrule too far below. So basically 
> my question is: is there a way of adjusting the position of a brief rule 
> beneath the number? 

\defineframed[underbarframed]
 [
   frame=off,
   rulethickness=1pt,
   bottomframe=on,
   frameoffset=-1pt, % negative of rulethickness
   boffset=0.8ex, % play around with this
 ]


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] Achieving the effect of \overset outside math mode

2021-11-11 Thread Aditya Mahajan via ntg-context
On Fri, 12 Nov 2021, kauśika via ntg-context wrote:

> Dear list,
> 
> I don't have a MWE per se, but as the title suggests, I want to be able to 
> achieve the effect of \overset outside math mode. As I understand, \overset 
> itself is implemented using \mathop and \limits. 
> 
> Currently to achieve this I have defined some macros using \offset thus :
> \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
> Unfortunately, I have to hard code the x values. So I have define several 
> such 
> macros with different offsets. Not an elegant solution, but it is what I 
> could 
> muster.
> 
> So, my objective is to place a smaller piece of text above another larger 
> piece of text so that the text above is centered w.r.t the text below.

Wolfgang has a ruby module, which provides this feature.

https://ctan.org/pkg/context-ruby

Doc: 
https://ctan.org/tex-archive/macros/context/contrib/context-ruby/doc/context/third/ruby

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] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
The following MWE deliberately shows two ways of getting a short rule 
beneath a chapter number, but neither achieve what I want. \underbar is 
too close to the number and \crlf\blackrule too far below. So basically 
my question is: is there a way of adjusting the position of a brief rule 
beneath the number? It probably involves neither of the approaches I 
have used here, but I am not sure just what approach to take, other than 
using a background layer... and maybe that is what I need to do.


Julian

\define[2]\MyChapterCommand%
{\framed[frame=on,bottomframe=off,leftframe=off,rightframe=off,topframe=off,align=middle]
 {\vbox{\headtext{chapter} 
\underbar{#1}\crlf\blackrule[height=.1\exheight]\crlf#2}}}


\setuphead[chapter][
    header=empty,
    alternative=middle,
    style={\ssb},
    number=yes,
    command=\MyChapterCommand,
    after={\blank[big]},
    ]

\setuplabeltext[chapter= ]
\starttext
\chapter[title={Chapter title}]
\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] Synonyms feature request

2021-11-11 Thread Rik Kabel via ntg-context

Hello developers,

Is it possible to get a mechanism to reset and setup synonyms by way 
(page, part, chapter, section, ...)?


This is not a high-priority request.

I currently accomplish this in the after key of chapter setuphead 
definitions. However, it seems cleaner to define it when the synonym 
list is defined instead of adding a resetshownsynonyms and setsynonyms 
to the chapter definition for every new synonym list.


--
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] Achieving the effect of \overset outside math mode

2021-11-11 Thread kauśika via ntg-context
On Friday, November 12, 2021 8:32:17 AM IST Rik Kabel via ntg-context wrote:
> Search for defineruby on the mailing list archives.
> 
> --
> Rik

Dear Rik,

First of all, thank you for the quick response! Wow! With the very first search 
result itself, I was able to achieve what I wanted.

ConTeXt is a gift that keeps on giving! Simply fantastic! This made my day!

Many thanks, 
kauśika


___
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] Achieving the effect of \overset outside math mode

2021-11-11 Thread Rik Kabel via ntg-context


On 2021-11-11 21:47, kauśika via ntg-context wrote:

Dear list,

I don't have a MWE per se, but as the title suggests, I want to be able to
achieve the effect of \overset outside math mode. As I understand, \overset
itself is implemented using \mathop and \limits.

Currently to achieve this I have defined some macros using \offset thus :
\define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
Unfortunately, I have to hard code the x values. So I have define several such
macros with different offsets. Not an elegant solution, but it is what I could
muster.

So, my objective is to place a smaller piece of text above another larger
piece of text so that the text above is centered w.r.t the text below.

Please advise.

Thanks,
kauśika


Search for defineruby on the mailing list archives.

--
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] Achieving the effect of \overset outside math mode

2021-11-11 Thread kauśika via ntg-context
On Friday, November 12, 2021 8:17:24 AM IST kauśika wrote:
> Dear list,
> 
> I don't have a MWE per se, but as the title suggests, I want to be able to 
> achieve the effect of \overset outside math mode. As I understand, \overset 
> itself is implemented using \mathop and \limits. 
> 
> Currently to achieve this I have defined some macros using \offset thus :
> \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
> Unfortunately, I have to hard code the x values. So I have define several 
> such 
> macros with different offsets. Not an elegant solution, but it is what I 
> could 
> muster.
> 
> So, my objective is to place a smaller piece of text above another larger 
> piece of text so that the text above is centered w.r.t the text below.
> 
> Please advise.
> 
> Thanks,
> kauśika

I was able to get some working examples using the second answer here:
https://tex.stackexchange.com/questions/42456/creating-non-math-mode-substitutes-for-overset-and-underset-not-dependent-on-t

But, I was just curious if there is a more elegant ConTeXt specific way to 
achieve this.

Thanks,
kauśika


___
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] Achieving the effect of \overset outside math mode

2021-11-11 Thread kauśika via ntg-context
Dear list,

I don't have a MWE per se, but as the title suggests, I want to be able to 
achieve the effect of \overset outside math mode. As I understand, \overset 
itself is implemented using \mathop and \limits. 

Currently to achieve this I have defined some macros using \offset thus :
\define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}}
Unfortunately, I have to hard code the x values. So I have define several such 
macros with different offsets. Not an elegant solution, but it is what I could 
muster.

So, my objective is to place a smaller piece of text above another larger 
piece of text so that the text above is centered w.r.t the text below.

Please advise.

Thanks,
kauśika


___
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-11 Thread Marcus Vinicius Mesquita via ntg-context
Sometime ago I needed some basic math in Minion and I concocted something
like follows below:

% latin
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:mathematicalalphanumericsymbols,range={1D50D,1D514},force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsa,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:miscellaneousmathematicalsymbolsb,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasenormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasebolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasebolditalic,force=yes]

% greek
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreeknormal,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbold,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercasegreekbolditalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:uppercasegreekbolditalic,force=yes]

% digits - need to be defined without node mode, which means no default set
\definefontfeature[inlinemath][lnum=yes,pnum=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsnormal,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsbold,features=inlinemath,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[superscriptsandsubscripts] [force=yes]
\setupmathematics[autopunctuation={all},ucgreek=italic,lcgreek=italic]

\definefallbackfamily [mainface] [math] [Minion Pro]
[tf=style:normal,range={0x27-0x2F,0x3C-0x3E,0xB1,0xD7,0xF7,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x2190,0x2192,0x210C-0x211C,0x212D,0x2202,0x2206,0x220F,0x2211,0x2212,0x2215,0x2219,0x221E,0x2248,0x2260,0x2264,0x2265,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]%

\definefallbackfamily [mainface] [math] [Minion Pro]
[bf=style:bold,range={0x27-0x2F,0xD7,0xF7,0x3A-0x3C,0x3E,0x5B-0x5D,0x7B-0x7E,0x2111,0x1D50D,0x2128,0x210C-0x211C,0x212D,0x2212,0x27E6-0x27E9,0x1D504-0x1D52F,0x2980}]

\definefontfamily [mainface] [math] [Cambria Math]

\setupbodyfont[mainface,12pt]

\starttext

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

\bgroup\bf
\startformula
c^2 = a^2 + b^2
\stopformula
\egroup

\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula

\bgroup\bf
\startformula
\cos (\gamma) = \Alpha \Gamma \Pi\sin (\alpha)
\stopformula
\egroup

\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula

\bgroup\bf
\startformula
\[x\] - |y| + x^2 + y^2 -k² ≤ z^2; \quad \sin(\alpha)^2 + \cos(\beta)^2 = 1.
\stopformula
\egroup

\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula

\bgroup\bf
\startformula
C^2 ≈ A^2 ∫ (B^2 ± \Theta \sin \gamma x) dx = \lim Z → ∞
\stopformula
\egroup

\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula

\bgroup\bf
\startformula
\sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2
\stopformula
\egroup

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


Re: [NTG-context] adding module to ConTeXt basic installation

2021-11-11 Thread Denis Maier via ntg-context
Bruce,
I think what the Amine is referring to with "render" is running the code 
through an external program, and including the result of that external process 
in your document. Something like this: 
%
The result of 1 + 1 is \pythoncode{1 + 1}
%

The filter module can be used to execute the pythoncode include the result in 
your context document. So, you'll end up with:
%
The result of 1 + 1 is 2
%

Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Bruce
> Horrocks via ntg-context
> Gesendet: Samstag, 6. November 2021 21:02
> An: mailing list for ConTeXt users 
> Cc: Bruce Horrocks 
> Betreff: Re: [NTG-context] adding module to ConTeXt basic installation
> 
> On 6 Nov 2021, at 10:55, 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.
> 
> I'm not quite sure what you mean by 'render' Python code. If you just mean
> to typeset it using a monospaced font so that the indentation is preserved
> then a simple \definetyping is probably all that you need.
> 
> e.g.
> \definetyping[PythonSource][style=\mono]
> \starttext
> This is taken from Rosetta Code:\par
> \startPythonSource
> def eratosthenes2(n):
> multiples = set()
> for i in range(2, n+1):
> if i not in multiples:
> yield i
> multiples.update(range(i*i, n+1, i))
> 
> print(list(eratosthenes2(100)))
> \stopPythonSource
> \stoptext
> 
> If the source code is in a file then you can read the file directly with:
> \typefile [PythonSource] [ ] {filename.py}
> 
> If you wanted to typeset your code with syntax highlighting/colouring then
> there are more advanced options to \definetyping that can be used and
> there is also the Vim module.
>  ontext-vim/doc/context/third/vim/vim.txt>
> 
> Regards,
> —
> Bruce Horrocks
> Hampshire, UK
> 
> __
> _
> 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
___