[NTG-context] changes of color

2021-09-21 Thread Thierry Horsin via ntg-context
Hi everybody After some part of a tex file where there is some startMPcode section the color of the text (e.g. blue) changes to black up until the next page in the pdf. Is there something I am missing ? Thank you. Thierry

[NTG-context] io.loaddata() or buffer.assigns()

2021-09-08 Thread Thierry Horsin via ntg-context
Hi everybody Are there any type of files that is required by io.loaddata or/and buffers.assign ? The following code works pretty well if there is no compilation problem by g++. But it fails, i.e. \typebuffer[Mybuffer], does not produce anything if g++ fails (due to some errors in the cpp) I

Re: [NTG-context] getting line numbers

2021-09-04 Thread Thierry Horsin via ntg-context
Thank you Hans. For what I had in mind (compiling some c++ inside a tex file) it seems to work. Anyway for this I am currently using the buffer and typebuffer solution you provide. T. Le Saturday 04 Sep 2021 à 10:35:34 (+0200), Hans Hagen a écrit : > there has always been > > \the\inputlineno

Re: [NTG-context] getting line numbers

2021-09-04 Thread thierry horsin via ntg-context
To: mailing list for ConTeXt users Cc: Thierry Horsin Subject: Re: [NTG-context] getting line numbers Message-ID: <807e4b7c-97ae-e20e-3207-28393544c...@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed in this case, thinking a bit different is easier ... \sta

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;

[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] No formula in the pdf (Ursula Hermann)

2021-09-01 Thread Thierry Horsin via ntg-context
Hi Ursula, I tried your formula. The reason might be because you have two \starttext... Thierry ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Thierry Horsin via ntg-context
Hi again, Many thanks to Hans and Hans and Henri. The solution (going to low level) provided by Hans works fine. Best Thierry Le Monday 23 Aug 2021 à 17:13:00 (+0200), Hans Hagen a écrit : > On 8/23/2021 4:46 PM, Thierry Horsin via ntg-context wrote: > > Hi everybody. > > > &

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Thierry Horsin via ntg-context
Hi everybody. I wonder how does math.random() work in context. I found that this subject was discussed more than ten years ago by Otared and Taco and Thomas. It is clear to me how to obtain new results upon typesetting the same file by changing the value of math.randomseed (with os.time()).

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
9:39 AM, thierry horsin wrote: For instance: \switchtobodyfont[21pt] \startformula \frac{MTC}{MTE} \stopformula is OK. While \switchtobodyfont[22pt] \startformula \frac{MTC}{MTE} \stopformula gives an error but \switchtobodyfont[22pt] $\frac{MTC}{MTE}$ works fine. Thanks Below: part

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
parameter {\m_fractions_strut_bot #2}}}\math_frac_wrapup \frac{MTC}{MTE} On 19/04/2021 09:35, Hans Hagen wrote: On 4/19/2021 9:21 AM, thierry horsin wrote: Hi again everybody I have tested some more examples. This error occurs when I fix the current font size to 22 pt (for some slide purposes). For sizes lo

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
Hi again everybody I have tested some more examples. This error occurs when I fix the current font size to 22 pt (for some slide purposes). For sizes lower than 22pt, I have no error messages. Best Thierry On 19/04/2021 05:17, thierry horsin wrote: Hi everybody Since I updated

[NTG-context] \frac error

2021-04-18 Thread thierry horsin
Hi everybody Since I updated to the last version of context , I cannot use \frac anymore in \startformula. I get the following message "I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can." Yet, between $ $ it is fine. Any ideas ? Many

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

2020-11-06 Thread thierry horsin
Hi Ramkumar, Maybe you could have some scripts that check when the JSON file is modified and if so launches the compilation. I did that sort of script in order to have a continuous compilation process by checking every second if my current .tex file is modified. Best Thierry On 06/11/2020

[NTG-context] lmt_axis

2020-11-06 Thread thierry horsin
Dear list, I am currently trying to test the lmt_axis exemple in luametafont.pdf. I am working on linux/ubuntu. The exemple leads to compilation errors below. The current version of context that I am using is from last july. I have succeeded with other examples, e.g. surfaces or lmt_text

Re: [NTG-context] --silent and so on

2020-07-22 Thread thierry horsin
Thanls a lot. Thierry Le 22/07/2020 à 18:08, Wolfgang Schuster a écrit : thierry horsin schrieb am 22.07.2020 um 17:57: Hi everybody I am a current context user since now many years and in particular I use it on linux with automatic compilation with a bash script detecting any

[NTG-context] --silent and so on

2020-07-22 Thread thierry horsin
Hi everybody I am a current context user since now many years and in particular I use it on linux with automatic compilation with a bash script detecting any modifications of the .tex file. In order for this to work I used with previous versions the "--nonstopmode --batchmode --silent

[NTG-context] --silent and so on

2020-05-04 Thread Thierry Horsin
Hi everybody I am a current context user since now many years and in particular I use it with automatic compilation with a bash script detecting any modifications of the .tex file. In order for this to work I used with previous versions the --nonstopmode --batchmode --silent --noconsole