Re: [NTG-context] About loading C libraries (again)

2020-11-04 Thread Jairo A. del Rio
Hi again. I grepped the new release and I see permitloadlib is already included in mtxrun. Just out of curiosity, is --permitloadlib called via context or should I use it from mtxrun? context --permitloadlib file.tex still doesn't have any effect. Best wishes, Jairo :) El mié., 4 de nov. de

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 22:22, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > There was never a real test for the performance but when you enable the > checker in the example below (which works only with LuaTeX) the second list > is slower. > > % engine=luatex > \starttext >

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 04.11.2020 um 22:10: On Wed, 4 Nov 2020 at 21:32, Wolfgang Schuster > wrote: 4. it performance issues and leads to a noticeable performance drop. This sounds a bit surprising, since intuitively it takes no less effort

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 21:32, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > 4. it performance issues and leads to a noticeable performance drop. > This sounds a bit surprising, since intuitively it takes no less effort to deal with the registered key than to determine that a key

[NTG-context] French spacing in ConTeXt

2020-11-04 Thread Tomas Hala
Hi all, the following code works for the default roman family but not for tt-family. \setuplayout[width=30cc,height=70cc,topspace=0cc] \def\sample{\input knuth \par\thinrule\par} \starttext \setuplanguage[en][spacing=packed] \mainlanguage[en] \sample \setuplanguage[en][spacing=broad]

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 04.11.2020 um 16:15: Moreover, is there any way to let context give an error at all when encountering something like `\setuppagenumbering[position=footer]` ? ConTeXt has a function to check assignment list for valid keys but 1. The function doesn't work with the

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
On 11/4/20 8:41 PM, Otared Kavian wrote: > Hi Pablo, > > For some unknown reason despite having tried to update lmtx several > times, I still have version 2020.09.20 23:02. Hi Otared, this is exactly the same version I have. > Indeed I do a backup before any update in order to be able to go >

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Otared Kavian
Hi Pablo, For some unknown reason despite having tried to update lmtx several times, I still have version 2020.09.20 23:02. Indeed I do a backup before any update in order to be able to go back to a working version… What did you do in order to get version 2020.11.04 09:40 ? Best regards:

[NTG-context] Is there any intuitive way of handling missing characters?

2020-11-04 Thread Sylvain Hubert
Dear List, Is there any way to give a sequence of fonts to context and let it try one after another in case of missing characters? Ideally it should be something like \usefallback[font1,font2,font3,...] The methods I've found are all way too complicated for someone who does not really care about

Re: [NTG-context] How does lua callback work?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 19:25, Hans Hagen wrote: > no callback > > \checkcharactersinfont > > will report missing chars > Thanks, but this command doesn't seem to add any information on top of the missing characters that context already reported without the command. My motivation was to write a

Re: [NTG-context] How does lua callback work?

2020-11-04 Thread Hans Hagen
On 11/4/2020 6:14 PM, Sylvain Hubert wrote: Dear List, I'm trying to intervene whenever context encounters a character that it cannot render in the current font. I guess this should have something to do with lua callbacks (pls correct me if I'm wrong), but the document

Re: [NTG-context] How to draw a horizontal line of 0.5\paperwidth ?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 18:44, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > \blackrule[width=.5\paperwidth] > It works! Thanks! ___ If your question is of interest to others as well, please add an

Re: [NTG-context] How to draw a horizontal line of 0.5\paperwidth ?

2020-11-04 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 04.11.2020 um 18:37: Dear List, I've tried \hl[0.5\paperwidth] but context complains 'a number should have been here' since \hl assumes 'em' as unit. Does anyone know how to draw a horizontal line of 0.5\paperwidth ? \blackrule[width=.5\paperwidth] Wolfgang

[NTG-context] How to draw a horizontal line of 0.5\paperwidth ?

2020-11-04 Thread Sylvain Hubert
Dear List, I've tried \hl[0.5\paperwidth] but context complains 'a number should have been here' since \hl assumes 'em' as unit. Does anyone know how to draw a horizontal line of 0.5\paperwidth ? Thanks! Best, Sylvain

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
again, sorry for replying on the wrong channel. On Wed, 4 Nov 2020 at 17:35, Hans Hagen wrote: > > it would harm performance because it involves parsing all values and > also ways around cases where the title is "function" (lieral text). > I'm not sure I understand what you mean by literal

[NTG-context] How does lua callback work?

2020-11-04 Thread Sylvain Hubert
Dear List, I'm trying to intervene whenever context encounters a character that it cannot render in the current font. I guess this should have something to do with lua callbacks (pls correct me if I'm wrong), but the document does not seem

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Hans Hagen
On 11/4/2020 4:53 PM, Sylvain Hubert wrote: % Hans, sorry for having replied on the wrong channel before. On Tue, 3 Nov 2020 at 09:03, Hans Hagen > wrote: On 11/3/2020 4:05 AM, Sylvain Hubert wrote: >  > as tables like those in setuphead({somehead},

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 17:06, Duncan Hothersall wrote: > Hi Sylvain, > > This page may be useful: https://wiki.contextgarden.net/Layout > I was aware of this page but have mistakenly inferred from the figure that the backspace is an automatically calculated sum of other parameters. Basically

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 04.11.2020 um 15:53: Dear List, I was reading workflow-mkiv and have found the '--errors' and '--noconsole' arguments which seemed quite helpful since, according to the documentation, "show errors at the

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Duncan Hothersall
Hi Sylvain, This page may be useful: https://wiki.contextgarden.net/Layout Basically the core parameters are backspace and width, and topspace and height. Everything else hangs off them. Duncan On Wed, 4 Nov 2020 at 15:48, Sylvain Hubert wrote: > Dear List, > > The following example results

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
Never mind, there's a 'backspace=0cm' to be set. On Wed, 4 Nov 2020 at 16:47, Sylvain Hubert wrote: > Dear List, > > The following example results in a pdf that has a wide margin on both > sides despite the \setuplayout : > > \showframe > \setuppapersize[A4][A4] >

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
% Hans, sorry for having replied on the wrong channel before. On Tue, 3 Nov 2020 at 09:03, Hans Hagen wrote: > On 11/3/2020 4:05 AM, Sylvain Hubert wrote: > > > as tables like those in setuphead({somehead}, {somesettings}) are > > actual Lua tables and follow Lua, not TeX, rules > > But there

[NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
Dear List, The following example results in a pdf that has a wide margin on both sides despite the \setuplayout : \showframe \setuppapersize[A4][A4] \setuplayout[margin=0cm, edge=0cm, margindistance=0cm, edgedistance=0cm] \starttext hello world \stoptext Does anyone know

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
On 11/4/20 4:18 PM, Otared Kavian wrote: > Hi Pablo, > > I get the same result as you. I think the reason is that Hans has not > yet issued a newer version (he said in a message a few days ago that > by mistake he might have uploaded a new version, but that we should > be careful not to update

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Otared Kavian
Hi Pablo, I get the same result as you. I think the reason is that Hans has not yet issued a newer version (he said in a message a few days ago that by mistake he might have uploaded a new version, but that we should be careful not to update yet…). Best regards: Otared > On 4 Nov 2020, at

Re: [NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
Moreover, is there any way to let context give an error at all when encountering something like `\setuppagenumbering[position=footer]` ? On Wed, 4 Nov 2020 at 15:53, Sylvain Hubert wrote: > Dear List, > > I was reading workflow-mkiv >

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Sylvain Hubert
Here a fresh standalone installed an hour ago doesn't seem to have the problem. On Wed, 4 Nov 2020 at 16:11, Pablo Rodriguez wrote: > Dear list, > > after latest from 2020.09.20, I afraid I get this error when running > install.sh on Linux or install.bat on Windows (both 64bit): > > mtx-install

[NTG-context] cannot update LMTX

2020-11-04 Thread Pablo Rodriguez
Dear list, after latest from 2020.09.20, I afraid I get this error when running install.sh on Linux or install.bat on Windows (both 64bit): mtx-install | updating tex/texmf, 1541 files mtx-install | updating tex/texmf-context, 3757 files mtx-install | changed : 0 % :24110 :

Re: [NTG-context] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-04 Thread Sylvain Hubert
The problem disappeared after a fresh installation of context with everything else untouched. On Thu, 29 Oct 2020 at 11:29, Sylvain Hubert wrote: > Hi, > > sorry if this is not the best place to file a bug but I found no working > bug tracker for context. > > Environment: > Manjaro 20.1.2,

[NTG-context] What does --errors and --noconsole do?

2020-11-04 Thread Sylvain Hubert
Dear List, I was reading workflow-mkiv and have found the '--errors' and '--noconsole' arguments which seemed quite helpful since, according to the documentation, "show errors at the end of a run" and "disables logging to the console"

[NTG-context] specify column-width, with option=stretch

2020-11-04 Thread Peter Münster
Hi, I would like to specify the column-width of the first column to 5mm: --8<---cut here---start->8--- \starttext \setupTABLE[textwidth=99mm, option=stretch] \setupTABLE[c][each][align={lohi, middle}] \setupTABLE[c][1][height=5mm, style=\tfxx]

Re: [NTG-context] About loading C libraries (again)

2020-11-04 Thread Hans Hagen
On 11/4/2020 11:01 AM, Jairo A. del Rio wrote: Hi. I've just read in the LuaMetaTeX manual that --permitloadlib allows loading compiled (.so/.dll) libraries. However, when I try it using ConTeXt I have an error message (example below): %hello.tex \starttext \startluacode local hello =

Re: [NTG-context] Running mtxrun in a continuous batch mode

2020-11-04 Thread Hans Hagen
On 11/4/2020 4:48 AM, Ramkumar KB wrote: Hans, Thank you so much for the kind response. Apologies that I was not very clear in my initial query. I have - 1. MyStatement.tex, with all the necessary fonts, static text, images, header, footer etc 2. MyStatement.tex reads from a JSON file

[NTG-context] caching remote images

2020-11-04 Thread Jano Kula
Hello! I'd like to cache images (order of hundreds) from a remote location (not all the time mapped as drive, download speed and amount of data are also the factors). \usepath[dirfile://./resources/**] is likely for speeding up searching not downloading and I don't know when new images are

[NTG-context] About loading C libraries (again)

2020-11-04 Thread Jairo A. del Rio
Hi. I've just read in the LuaMetaTeX manual that --permitloadlib allows loading compiled (.so/.dll) libraries. However, when I try it using ConTeXt I have an error message (example below): %hello.tex \starttext \startluacode local hello = require"hellolib" -- hellolib.so