Re: [NTG-context] align text and formula

2017-02-09 Thread Jan Willem Flamma
Dear list members, The below solution stopped working in the latest bet (2017.01.27 14:39 MKIV beta) It is still workig fine using the wiki ConTeXt online. Has anything changed using this align feature? Kind regards, Jan Willem Flamma > > >> On 25 aug. 2016, at 13:52, Henri Menke

Re: [NTG-context] align text and formula

2016-08-27 Thread Hans Hagen
On 8/25/2016 4:07 PM, Wolfgang Schuster wrote: Henri Menke 25. August 2016 um 15:31 Hi Jan, unfortunately, these commands are in no book. I just looked them up in the ConTeXt source. However, these two books helped me a lot in improving my understanding of TeX and

Re: [NTG-context] align text and formula

2016-08-25 Thread Wolfgang Schuster
Henri Menke 25. August 2016 um 15:31 Hi Jan, unfortunately, these commands are in no book. I just looked them up in the ConTeXt source. However, these two books helped me a lot in improving my understanding of TeX and ConTeXt. They are definitely worth their

Re: [NTG-context] align text and formula

2016-08-25 Thread Henri Menke
Hi Jan, unfortunately, these commands are in no book. I just looked them up in the ConTeXt source. However, these two books helped me a lot in improving my understanding of TeX and ConTeXt. They are definitely worth their money! The TeXbook by Donald E. Knuth https://amzn.com/0201134489

Re: [NTG-context] align text and formula

2016-08-25 Thread Jan Willem Flamma
Hi Henri, Thanks for your solution. This is indeed providing the functionality I was after. I need to pick up a good Tex book one of these days to try and master those commands :-) Regards, Jan Willem Flamma > On 25 aug. 2016, at 13:52, Henri Menke wrote: > > Hi Jan,

Re: [NTG-context] align text and formula

2016-08-25 Thread Henri Menke
Hi Jan, if I understood you correctly, this should produce what you are after. \starttext \startformula E = mc^2 \stopformula \startformula \startalign[m=3,align={middle},distance=0pt plus 1 fil] \NC \rlap{\text{Text1}}\NC\NC E=mc^2 \NR \NC \rlap{\text{This

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, Thanks for the (very quick) reply. I’ve experiemented with that solution as well. However, the text can vary in length and this would required a lot of tweaking to try and get the formulas mid-aligned. I’m trying to find a fool proof solution that will get the formula mid-aligned

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, I apologize for not explaining it better. Maybe the below example will illustrate better what I’m trying to achieve. - The first formula is perfectly aligned. - The bottom three formulas do not line up with the top formula I’m trying to align all formulas regardless of the amount of

Re: [NTG-context] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan, I don’t know exactly what you want to achieve, but a possible solution is to put a column between the first and the last columns which contains only the spacement between the first column and the third one. Here is an example: %%% begin example-1.tex \starttext

Re: [NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Hi Otared, Thanks for the (very quick) reply. I’ve experiemented with that solution as well. However, the text can vary in length and this would required a lot of tweaking to try and get the formulas mid-aligned. I’m trying to find a fool proof solution that will get the formula mid-aligned

Re: [NTG-context] align text and formula

2016-08-24 Thread Otared Kavian
Hi Jan, You can specify a certain horizontal distance in the second column, as in the following: %%% begin example.tex \starttext \setupformulas[align=flushleft] \startformula \startalign[n=2,align={left,middle}] \NC \text{Text1}\NC\qquad E = mc^2\NR \NC

[NTG-context] align text and formula

2016-08-24 Thread Jan Willem Flamma
Dear list, I would like to include text on the same line as a formula. The text needs to be left-aligned and the formula needs to be mid-aligned (as per normal). I’ve tried various solutions from the mathalign MyWay but have not succeeded to get the desired result sofar. Below a M-Not-WE.