[NTG-context] getting line numbers

2021-09-03 Thread Thierry Horsin via ntg-context
Hi everybody Is there a way to have an automatic access to the current line number of a specific place inside a tex file ? To be more precise, here is what I would like to do. I am currently trying to have some automatic external compilation by g++ of some portion of my tex file as in the

Re: [NTG-context] getting line numbers

2021-09-03 Thread Aditya Mahajan via ntg-context
On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote: > Hi everybody > > Is there a way to have an automatic access to the current line number of a > specific place inside a tex file ? To be more precise, here is what I would > like to do. Also look at the filter module.

[NTG-context] Use MetaPost to distort images?

2021-09-03 Thread Henning Hraban Ramm via ntg-context
Hi, is it possible to apply geometric transformations to images using MetaPost? This is again way over my head, but I’m still trying different methods to let a ConTeXt document look more “hand-made”. In my example*, I added frame and shadow to a photo and _distorted_ it slightly to have it

Re: [NTG-context] getting line numbers

2021-09-03 Thread Thierry Horsin via ntg-context
Many thanks Hans. Thierry Le Friday 03 Sep 2021 à 14:16:40 (+0200), Hans Hagen a écrit : > in this case, thinking a bit different is easier ... > > \starttext > > \startbuffer[MyBuffer] > #include > > using namespace std; > int mysum(int,int); > int a; int b; > int main () { > a=2; b=9;

Re: [NTG-context] metafun doesn't compile \root 3 \of 2

2021-09-03 Thread Hans Hagen via ntg-context
On 9/3/2021 11:48 AM, fv leung via ntg-context wrote: \starttext \m{\root3\of2} \stoptext works. But \starttext \startMPcode   label("\m{\root3\of2}", origin); \stopMPcode \stoptext doesn't. draw thetextext("\m{\root3\of2}",origin); labels are done in the default (normally monospace)

Re: [NTG-context] getting line numbers

2021-09-03 Thread Hans Hagen via ntg-context
On 9/3/2021 12:58 PM, Thierry Horsin via ntg-context wrote: Hi everybody Is there a way to have an automatic access to the current line number of a specific place inside a tex file ? To be more precise, here is what I would like to do. I am currently trying to have some automatic external

Re: [NTG-context] getting line numbers

2021-09-03 Thread Hans Hagen via ntg-context
On 9/3/2021 3:53 PM, Aditya Mahajan via ntg-context wrote: On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote: Hi everybody Is there a way to have an automatic access to the current line number of a specific place inside a tex file ? To be more precise, here is what I would like to

Re: [NTG-context] Fuzzy lines

2021-09-03 Thread Henning Hraban Ramm via ntg-context
> Am 13.05.2021 um 20:02 schrieb Henning Hraban Ramm : > > Thank you, that is what I was asking for! > > Unfortunately, the deviation of edge points is too big – try my attached test > file. Hi Aditya et al., coming back to this: I found "fill" was not working, since do_sketchfill didn’t

[NTG-context] update lmtx

2021-09-03 Thread Hans Hagen via ntg-context
Hi, The end of the week update provides: \starttext \startTEXpage[offset=10pt] \starttabulate[|c|c|c|] \NC 1 \NC second column \NC third column \NC \NR \NC 2 \NC second\NC third\NC \NR \NC 3 r \NS[1][r]second & third \NC \NR \NC 3 c

Re: [NTG-context] Use MetaPost to distort images?

2021-09-03 Thread Bruce Horrocks via ntg-context
> On 3 Sep 2021, at 11:28, Henning Hraban Ramm via ntg-context > wrote: > > Hi, is it possible to apply geometric transformations to images using > MetaPost? > > This is again way over my head, but I’m still trying different methods to let > a ConTeXt document look more “hand-made”. > >

[NTG-context] Using \vrule within mathmatrix

2021-09-03 Thread fv leung via ntg-context
\definemathmatrix[pmatrix][matrix:parentheses][simplecommand=pMat] \starttext I used to typeset an augmented matrix this way: \m{\pMat{1,7,-6,\vrule,-4;3,-4,7,\vrule,13;4,3,1,\vrule,9}} But this no longer works. Though I can get over this with \m{\pMat{1,7,-6,¦,-4;3,-4,7,¦,13;4,3,1,¦,9}} ,

[NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-03 Thread Joey McCollum via ntg-context
Hi, I mentioned this in an earlier e-mail but thought that now might be a good time to describe this issue in detail. I'd like to define a new authorconversion that renders the first author in a list differently than the remaining authors in the list. Specifically, I'd like to use the "inverted"

[NTG-context] metafun doesn't compile \root 3 \of 2

2021-09-03 Thread fv leung via ntg-context
\starttext \m{\root3\of2} \stoptext works. But \starttext \startMPcode label("\m{\root3\of2}", origin); \stopMPcode \stoptext doesn't. Running `LuaMetaTeX' on `trial' with ``/home/fvleung/ConTeXt/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context trial.tex'' resolvers