[NTG-context] METAPOST subpath rounding issue

2020-05-07 Thread Gerben Wierda
I have a METAPOST algorithm that splits a path at a certain time in two, does something with both ends (not the ends where they were split) and then rejoins them. In very rare cases this crashes, because the subpath doesn’t work as expected. firstPart := subpath (0,halfWayTime) of

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-07 Thread ntg
> On 7 May 2020, at 20:28, Gerben Wierda wrote: > > I have a METAPOST algorithm that splits a path at a certain time in two, does > something with both ends (not the ends where they were split) and then > rejoins them. > > In very rare cases this crashes, because the subpath doesn’t work as

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
Following up on the work-around, here is my improved code for xtable. What doesn’t work is: * alignment on the decimal separator takes place only in the first column with decimals (i.e. B), not on the following one; this is independent of R1 having a decimal value in this column or not * row

[NTG-context] mkiv \digits{2.0=} zero padding feature request

2020-05-07 Thread Benjamin Buchmuller
Hi, As Wolfgang has figured out, zero padding in \digits only works for trailing (and omitted) zeroes when immediately preceded by the decimal separator. It would be nice if this would work even if there is a number preceding, so that \digits{3.1=}x\crlf \digits{3.==}x\crlf \digits{3.14}x

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
Hi Wolfgang, you are (of course) right again. I realised that I wouldn’t get the expected behaviour after checking the snippet isolated from my document’s context, where it is embedded in a \startplacetable[…]{}{}. I’m still learning to get the gist of the \doifs, the curly and square

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Wolfgang Schuster
Benjamin Buchmuller schrieb am 07.05.2020 um 19:41: Hi Wolfang, Thank you for your reply. I have indeed not explained my intended result very clearly. 1. Primarily, I need to get the two values aligned at the digit separator of the first and second number respectively and overall at the ±

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
Hi Wolfang, Thank you for your reply. I have indeed not explained my intended result very clearly. 1. Primarily, I need to get the two values aligned at the digit separator of the first and second number respectively and overall at the ± sign. I’m working in an xtable, where I have entries

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Wolfgang Schuster
Benjamin Buchmuller schrieb am 07.05.2020 um 17:31: Hi, I’m trying to get \digits{15.0=}±\digits{1.00} \digits{_8.12}±\digits{0.34} horizontally aligned as 15.0 ±1.00 8.12±0.34 But I get 15.0±1.00 8.12±0.34 instead. From the source (phys-dim.mkiv), I can see that “=“ should expand

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 07.05.2020 um 17:21: Hi Aditya, It does not work ; the compilation encounters errors with each command that I created. I guess it comes from the components. You have to load all environment files in your components. In your case where you use multiple files you

[NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
Hi, I’m trying to get \digits{15.0=}±\digits{1.00} \digits{_8.12}±\digits{0.34} horizontally aligned as 15.0 ±1.00 8.12±0.34 But I get 15.0±1.00 8.12±0.34 instead. From the source (phys-dim.mkiv), I can see that “=“ should expand to \hphantom{0}. (I think \zeropoint in the table is

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Fabrice Couvreur
Hi Aditya, It does not work ; the compilation encounters errors with each command that I created. I guess it comes from the components. Fabrice ##chapter-4-seconde.tex## \startcomponent chapter-4-seconde \startchapter[title=] ... \stopchapter \stopcomponent Le jeu. 7 mai 2020 à 16:01, Aditya

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-07 Thread context
Hello Hans, - I would need to work with the original value in run-time (Win7 / WinX; ConTeXt MkIV). I'll add environment.oldhome being the original one (but no testing done here) would be great, thank you! I guess it will be available over the night (= ConTeXt latest)? Lukas Hans

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Aditya Mahajan
On Thu, 7 May 2020, Fabrice Couvreur wrote: Hi, Here is part of a project that is starting to be heavy ; when i add a chapter i do context seconde.tex How do I compile only the chapter I just added ? Thank you. Fabrice \startproduct Seconde \environment modules \environment specialite-style

[NTG-context] Compile only one new component in a project

2020-05-07 Thread Fabrice Couvreur
Hi, Here is part of a project that is starting to be heavy ; when i add a chapter i do context seconde.tex How do I compile only the chapter I just added ? Thank you. Fabrice \startproduct Seconde \environment modules \environment specialite-style \environment specialite-macros

Re: [NTG-context] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
Okay, I found the solution myself: Need to specify \startxtable[split=repeat] or else. It’s actually a bit surprising that the value of the “outer” enivornment (placetable) depends on the settings in the inner one (xtable). I speculate this might be because the order of the tables might be

Re: [NTG-context] long caption in 2-page spread

2020-05-07 Thread jbf
After trying Hraban's two suggestions to resolve the problem of a caption ('title=') for an image across a two-page spread (and I have tried a variety of adaptations of those two possible solutions), I still have not resolved the issue. To repeat what Hans gave me, to resolve the 2-page

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-07 Thread Hans Hagen
On 5/6/2020 5:43 PM, cont...@vivaldi.net wrote: Hello, before I run ConTeXt, I set a (new) variable "HOME" to point to a particular directory. ConTeXt changes its value during startup - it sets its value to %USERPROFILE% - I guess it is to unify environment somehow for all platforms