[NTG-context] definenote and localfootnotes

2017-11-03 Thread Stanislav Sokolenko
Hi, I'm not sure if this is a bug or feature, but I noticed that custom footnotes defined through \definenote do not appear when using \placelocalfootnotes as per the following example: % \setuppapersize [A5] \definenote [noteone] [footnote]

Re: [NTG-context] definenote and localfootnotes

2017-11-03 Thread Stanislav Sokolenko
Hi Stanislav, footnotes are only one kind of notes. Not all notes are footnotes. If you ask for footnotes, you will only get footnotes Thanks Pablo, I had a feeling that was the case, but all the examples I ran across seemed to have the two conflated. Your example is perfect! BTW, I wonder

[NTG-context] Finding lua file for module using \registerctxluafile

2018-07-18 Thread Stanislav Sokolenko
Dear list, I've recently written a small module p-mymod.tex which uses lua code in p-mymod.lua. In order to load this lua code, I use \registerctxluafile{p-mymod}{1.001} (copying the example of m-database.mkiv). However, it seems like the search path for lua files isn't the same as for

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
Thanks Hans, that's really helpful! This is not for the fainthearted so here we go \startluacode     function document.MyBoldPub(set,tag) -- local a = publications.getfield(set,tag,"author") -- inspect(a) -- local c = publications.getcasted(set,tag,"author") -- inspect(c)   

[NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
Dear list, I'm struggling to output bibliography entries into lua for string modification (like making a particular author name bold). In effect, I just need something like the following: \starttexdefinition btx:customauthor     \startluacode     local text = context.btxflush('author')    

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-24 Thread Stanislav Sokolenko
That's perfect, thank you! On 2018-07-23 06:32 PM, Hans Hagen wrote: \startsetups btx:list:author:normalshort     \fastsetup{btx:list:author:concat}     \begingroup \ctxluacode{document.CheckMeB("\currentbtxdataset","\currentbtxtag",\number\currentbtxauthorindex)}    

Re: [NTG-context] mtxrun fails to install fonts

2018-07-04 Thread Stanislav Sokolenko
Hi Hans, On 2018-07-04 04:32 AM, Hans Hagen wrote: Can you test the beta from the contextgarden? The beta works with no problems, thanks! I have also played around with my older installation some more and it seems like the original problem was related to the font cache. I have previously

[NTG-context] mtxrun fails to install fonts

2018-07-03 Thread Stanislav Sokolenko
Dear list, I have what seems to be an OS- or ConTeXt version-specific issue with mtxrun installing fonts. I've been trying to add new truetype fonts (specifically Archivo ttf files) on Arch Linux using the following command: export OSFONTDIR=~/.fonts//; mtxrun --script font --reload And

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-08 Thread Stanislav Sokolenko
On 2018-10-06 02:06 PM, Aditya Mahajan wrote: I also want to take this opportunity to express my views on intefacing with external programs. The file based interaction provided by the filter module is okay for small projects but it is not ideal. Slightly better is to use pipes (popen to a

Re: [NTG-context] Get list of all buffer names from lua

2019-01-07 Thread Stanislav Sokolenko
On 2019-01-07 9:06 p.m., Henri Menke wrote: On 8/01/19 1:37 PM, Stanislav Sokolenko wrote: Dear list, As the subject line states, I am looking for a means of retrieving a table of all saved buffer names from lua. A MNWE would looks like: It's not so easy because ConTeXt stores the buffers

[NTG-context] Get list of all buffer names from lua

2019-01-07 Thread Stanislav Sokolenko
Dear list, As the subject line states, I am looking for a means of retrieving a table of all saved buffer names from lua. A MNWE would looks like: \starttext \startbuffer[ex1] Buffer 1 \stopbuffer \startbuffer[ex2] Buffer 2 \stopbuffer % Should return {ex1, ex2} or similar

[NTG-context] Different layout for specific pages

2019-08-23 Thread Stanislav Sokolenko
Dear list, I would like to specify in advance that certain pages are to have different layouts. I put together an example based on what read on the wiki (https://wiki.contextgarden.net/Layout#Multiple_layouts): \setuppapersize[A6] \definelayout[bigheader][header=0.5\textheight]