Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On Tue, Jan 17, 2017 at 7:56 AM, Hans Hagenwrote: > On 1/16/2017 11:27 PM, Jeong Dal wrote: > >> If I remove either “%” or the formula, then the output looks fine. > > > indeed, some subtle end-par-too-late-then-and-grouping issue > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Many thanks, Hans (and others who gave input). /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On 1/16/2017 11:27 PM, Jeong Dal wrote: If I remove either “%” or the formula, then the output looks fine. indeed, some subtle end-par-too-late-then-and-grouping issue Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
Dear Mikael, I didn’t see any problem which you mentioned when I run it under the ConTeXt version 2016.10. 6 MKIV beta. But I saw a change the vertical space when I run it under ConTeXt version 2016. 12. 28 MKIV beta after updated the bata. I tested in several ways and found that the vertical space is narrow only in the following case: Bla bla bla bla bla bla bla bla bla % \startformula k>1000\implies |1/k-0|=1/k<1/1000=0.001. \stopformula Bla bla bla bla bla bla bla bla bla If I remove either “%” or the formula, then the output looks fine. As Otaired said it is better to open a new thread. Best regards, Dalyoung > Maybe you should open a new thread with a title like « Bug in vertical > spacing of paragraphs » so that Hans may see it more easily. > > Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On 1/16/2017 12:56 PM, Otared Kavian wrote: Hi Mikael, Thanks for making it clear to me: I was looking for the changes in vertical spacing around the formula… Now it is clear that there is a bug in the vertical spacing: when I typeset your example with mkii or mkiv ConTeXt Version 2016.05.17 from TeXLive, the issue is not present, as one may see from the attached output. Maybe you should open a new thread with a title like « Bug in vertical spacing of paragraphs » so that Hans may see it more easily. fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
Hi Mikael, Thanks for making it clear to me: I was looking for the changes in vertical spacing around the formula… Now it is clear that there is a bug in the vertical spacing: when I typeset your example with mkii or mkiv ConTeXt Version 2016.05.17 from TeXLive, the issue is not present, as one may see from the attached output. Maybe you should open a new thread with a title like « Bug in vertical spacing of paragraphs » so that Hans may see it more easily. Best regards: OK formula-vertical-distance-2016-05-17.pdf Description: Adobe PDF document formula-vertical-distance-2016-12-28.pdf Description: Adobe PDF document > On 16 Jan 2017, at 11:12, Mikael P. Sundqvistwrote: > > On Mon, Jan 16, 2017 at 10:51 AM, Otared Kavian wrote: >> Hi Mikael, >> >> To make sure we are talking about the same issue, here are the outputs >> obtained with and without blank lines around \startformula…\stopformula: Can >> you please send me too your outputs so I can compare with mines? >> >> Best regards: OK >> >> >> >> >>> On 15 Jan 2017, at 19:29, Mikael P. Sundqvist wrote: >>> >>> On Sat, Jan 14, 2017 at 8:32 AM, Mikael P. Sundqvist >>> wrote: On Sat, Jan 14, 2017 at 1:00 AM, Otared Kavian wrote: > Hi Mikael, > > I tested your example but I see no difference in the outputs, with, or > without a blank line between the text and the displayed formula. > I am using ConteXt 2016.12.28 17:55 MKIV beta. > > Best regards: OK > >> On 13 Jan 2017, at 14:13, Mikael P. Sundqvist wrote: >> >> Dear list, >> >> please have a look at the output (ctx-example13.pdf) of the somewhat >> ugly example below. The vertical space before the paragraph with the >> displayed formula is almost none. If I remove the % signs before and >> after the formula, the space before the paragraph looks ok. >> >> Do I have to enter those empty lines? Is this a bug or feature? >> >> (I use a recently updated standalone) >> >> /Mikael >> >> \starttext >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> % >> \startformula >> k>1000\implies |1/k-0|=1/k<1/1000=0.001. >> \stopformula >> % >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> \stoptext >> ___ >> If your question is of interest to others as well, please add an entry >> to the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Thank you for testing, Otared. I still have the same problem with a freshly installed ConTeXt ver: 2016.12.28 17:55 MKIV beta fmt: 2017.1.14 int: english/english /Mikael >>> >>> Am I the only one affected by this? Can someone confirm that they see >>> the same problem? >>> >>> Thanks, >>> >>> Mikael >>> ___ >>> If your question is of interest to
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On Mon, Jan 16, 2017 at 10:51 AM, Otared Kavianwrote: > Hi Mikael, > > To make sure we are talking about the same issue, here are the outputs > obtained with and without blank lines around \startformula…\stopformula: Can > you please send me too your outputs so I can compare with mines? > > Best regards: OK > > > > >> On 15 Jan 2017, at 19:29, Mikael P. Sundqvist wrote: >> >> On Sat, Jan 14, 2017 at 8:32 AM, Mikael P. Sundqvist >> wrote: >>> On Sat, Jan 14, 2017 at 1:00 AM, Otared Kavian wrote: Hi Mikael, I tested your example but I see no difference in the outputs, with, or without a blank line between the text and the displayed formula. I am using ConteXt 2016.12.28 17:55 MKIV beta. Best regards: OK > On 13 Jan 2017, at 14:13, Mikael P. Sundqvist wrote: > > Dear list, > > please have a look at the output (ctx-example13.pdf) of the somewhat > ugly example below. The vertical space before the paragraph with the > displayed formula is almost none. If I remove the % signs before and > after the formula, the space before the paragraph looks ok. > > Do I have to enter those empty lines? Is this a bug or feature? > > (I use a recently updated standalone) > > /Mikael > > \starttext > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > % > \startformula > k>1000\implies |1/k-0|=1/k<1/1000=0.001. > \stopformula > % > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > \stoptext > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ >>> >>> Thank you for testing, Otared. >>> >>> I still have the same problem with a freshly installed >>> >>> ConTeXt ver: 2016.12.28 17:55 MKIV beta fmt: 2017.1.14 int: >>> english/english >>> >>> /Mikael >> >> Am I the only one affected by this? Can someone confirm that they see >> the same problem? >> >> Thanks, >> >> Mikael >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net >
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
Hi Mikael, To make sure we are talking about the same issue, here are the outputs obtained with and without blank lines around \startformula…\stopformula: Can you please send me too your outputs so I can compare with mines? Best regards: OK formula-vertical-distance-with.pdf Description: Adobe PDF document formula-vertical-distance-without.pdf Description: Adobe PDF document > On 15 Jan 2017, at 19:29, Mikael P. Sundqvistwrote: > > On Sat, Jan 14, 2017 at 8:32 AM, Mikael P. Sundqvist wrote: >> On Sat, Jan 14, 2017 at 1:00 AM, Otared Kavian wrote: >>> Hi Mikael, >>> >>> I tested your example but I see no difference in the outputs, with, or >>> without a blank line between the text and the displayed formula. >>> I am using ConteXt 2016.12.28 17:55 MKIV beta. >>> >>> Best regards: OK >>> On 13 Jan 2017, at 14:13, Mikael P. Sundqvist wrote: Dear list, please have a look at the output (ctx-example13.pdf) of the somewhat ugly example below. The vertical space before the paragraph with the displayed formula is almost none. If I remove the % signs before and after the formula, the space before the paragraph looks ok. Do I have to enter those empty lines? Is this a bug or feature? (I use a recently updated standalone) /Mikael \starttext Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla % \startformula k>1000\implies |1/k-0|=1/k<1/1000=0.001. \stopformula % Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla Bla bla bla bla bla bla bla bla bla \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ >>> >>> ___ >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> ___ >> >> Thank you for testing, Otared. >> >> I still have the same problem with a freshly installed >> >> ConTeXt ver: 2016.12.28 17:55 MKIV beta fmt: 2017.1.14 int: >> english/english >> >> /Mikael > > Am I the only one affected by this? Can someone confirm that they see > the same problem? > > Thanks, > > Mikael > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On Sat, Jan 14, 2017 at 8:32 AM, Mikael P. Sundqvistwrote: > On Sat, Jan 14, 2017 at 1:00 AM, Otared Kavian wrote: >> Hi Mikael, >> >> I tested your example but I see no difference in the outputs, with, or >> without a blank line between the text and the displayed formula. >> I am using ConteXt 2016.12.28 17:55 MKIV beta. >> >> Best regards: OK >> >>> On 13 Jan 2017, at 14:13, Mikael P. Sundqvist wrote: >>> >>> Dear list, >>> >>> please have a look at the output (ctx-example13.pdf) of the somewhat >>> ugly example below. The vertical space before the paragraph with the >>> displayed formula is almost none. If I remove the % signs before and >>> after the formula, the space before the paragraph looks ok. >>> >>> Do I have to enter those empty lines? Is this a bug or feature? >>> >>> (I use a recently updated standalone) >>> >>> /Mikael >>> >>> \starttext >>> >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> >>> >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> >>> >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> % >>> \startformula >>> k>1000\implies |1/k-0|=1/k<1/1000=0.001. >>> \stopformula >>> % >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> Bla bla bla bla bla bla bla bla bla >>> >>> >>> \stoptext >>> ___ >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> ___ >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ > > Thank you for testing, Otared. > > I still have the same problem with a freshly installed > > ConTeXt ver: 2016.12.28 17:55 MKIV beta fmt: 2017.1.14 int: english/english > > /Mikael Am I the only one affected by this? Can someone confirm that they see the same problem? Thanks, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
On Sat, Jan 14, 2017 at 1:00 AM, Otared Kavianwrote: > Hi Mikael, > > I tested your example but I see no difference in the outputs, with, or > without a blank line between the text and the displayed formula. > I am using ConteXt 2016.12.28 17:55 MKIV beta. > > Best regards: OK > >> On 13 Jan 2017, at 14:13, Mikael P. Sundqvist wrote: >> >> Dear list, >> >> please have a look at the output (ctx-example13.pdf) of the somewhat >> ugly example below. The vertical space before the paragraph with the >> displayed formula is almost none. If I remove the % signs before and >> after the formula, the space before the paragraph looks ok. >> >> Do I have to enter those empty lines? Is this a bug or feature? >> >> (I use a recently updated standalone) >> >> /Mikael >> >> \starttext >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> % >> \startformula >> k>1000\implies |1/k-0|=1/k<1/1000=0.001. >> \stopformula >> % >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> Bla bla bla bla bla bla bla bla bla >> >> >> \stoptext >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Thank you for testing, Otared. I still have the same problem with a freshly installed ConTeXt ver: 2016.12.28 17:55 MKIV beta fmt: 2017.1.14 int: english/english /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph
Hi Mikael, I tested your example but I see no difference in the outputs, with, or without a blank line between the text and the displayed formula. I am using ConteXt 2016.12.28 17:55 MKIV beta. Best regards: OK > On 13 Jan 2017, at 14:13, Mikael P. Sundqvistwrote: > > Dear list, > > please have a look at the output (ctx-example13.pdf) of the somewhat > ugly example below. The vertical space before the paragraph with the > displayed formula is almost none. If I remove the % signs before and > after the formula, the space before the paragraph looks ok. > > Do I have to enter those empty lines? Is this a bug or feature? > > (I use a recently updated standalone) > > /Mikael > > \starttext > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > % > \startformula > k>1000\implies |1/k-0|=1/k<1/1000=0.001. > \stopformula > % > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > Bla bla bla bla bla bla bla bla bla > > > \stoptext > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
2007/7/19, Oliver Buerschaper [EMAIL PROTECTED]: Hi folks, I desperately need your help ... why does the following code not produce my formula? \starttext \startformula \startformula\relax or \startformula[] [-iH(A),-iH(B)]=-iH([A,B]) \stopformula \stoptext I have a feeling that ConTeXt interprets the first part of my formula as an argument to \startformula ... you're right Thanks for your help, Oliver Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
I desperately need your help ... why does the following code not produce my formula? \starttext \startformula [-iH(A),-iH(B)]=-iH([A,B]) \stopformula \stoptext Hi Olivier, I don't know what ConTeXt is doing behind the scenes, but I found two solutions: \starttext \startformula {[-iH(A),-iH(B)]=-iH([A,B])} \stopformula \startformula \ [-iH(A),-iH(B)]=-iH([A,B]) \stopformula \stoptext HTH, Jelle ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
Wolfgang, Jelle, thanks for your suggestions ... problem solved! Oliver Hi folks, I desperately need your help ... why does the following code not produce my formula? \starttext \startformula \startformula\relax or \startformula[] [-iH(A),-iH(B)]=-iH([A,B]) \stopformula \stoptext I have a feeling that ConTeXt interprets the first part of my formula as an argument to \startformula ... you're right Thanks for your help, Oliver Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
Quoting Oliver Buerschaper [EMAIL PROTECTED]: Wolfgang, Jelle, thanks for your suggestions ... problem solved! This thread brings up something that I have been thinking of for a while. Similar problems occur in amsmath aligned family which accepts an optional argument. mathtools.sty has an option so that the optional argument will work only if placed on the same line. In terms of ConTeXt that means, \startformula[9pt] math \stopformula \startformula [9pt] math \stopformula will put the formula in 9pt font, while \startformula [9pt] math \stopformula will display [9pt] math. I have not looked into the details of how mathtools implements this, but it should be possible to port it to context. Will something like this be useful to have, or is adding \relax once in a while alright? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
This thread brings up something that I have been thinking of for a while. Similar problems occur in amsmath aligned family which accepts an optional argument. mathtools.sty has an option so that the optional argument will work only if placed on the same line. In terms of ConTeXt that means, \startformula[9pt] math \stopformula \startformula [9pt] math \stopformula will put the formula in 9pt font, while \startformula [9pt] math \stopformula will display [9pt] math. I have not looked into the details of how mathtools implements this, but it should be possible to port it to context. Will something like this be useful to have, or is adding \relax once in a while alright? I guess it'll depend on how hard this is to implement. At the moment I'm dealing with lots of Lie brackets so I'd certainly appreciate this feature very much ... in my opinion it would also improve consistency: the same markup works for any kind of formula! On the other hand one could also enforce the use of \[ whenever the glyph [ should be actually typeset. This would be the other road to consistency ;-) Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Displayed formula
Quoting Oliver Buerschaper [EMAIL PROTECTED]: This thread brings up something that I have been thinking of for a while. Similar problems occur in amsmath aligned family which accepts an optional argument. mathtools.sty has an option so that the optional argument will work only if placed on the same line. In terms of ConTeXt that means, \startformula[9pt] math \stopformula \startformula [9pt] math \stopformula will put the formula in 9pt font, while \startformula [9pt] math \stopformula will display [9pt] math. I have not looked into the details of how mathtools implements this, but it should be possible to port it to context. Will something like this be useful to have, or is adding \relax once in a while alright? I guess it'll depend on how hard this is to implement. At the moment I'm dealing with lots of Lie brackets so I'd certainly appreciate this feature very much ... in my opinion it would also improve consistency: the same markup works for any kind of formula! I thought that it was easy, but I can not get it working Here is a much simpler alternative (if you do not use font switching feature of formulas) \unprotected\setvalue{\e!start\v!formula}{\dostartformula{}[]} Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] displayed formula confuses parshape around figure
On Wed, 20 Sep 2006 14:36:33 +0100 Sanjoy Mahajan [EMAIL PROTECTED] wrote: It works for me if put a \par or a empty line after the first \input. That's true, but doing so ends the paragraph. Shouldn't the displayed math be part of the paragraph? The \input tufte's were just to make the minimal example. It came from a paragraph with text and math that begins with a figure: \placefigure[right,none]{}{\externalfigure[dummy]} Then lots of text about the figure, leading up to \startformula this equation \stopformula then more text discussing the equation... -Sanjoy Ok, I playes yesterday I bit with your example and can you give now a solution for your problem. \starttext % This works \hangindent4cm \hangafter-3 \input tufte $$ A = a^\alpha b^\beta, $$ \input tufte \blank[line] % The group around the formula produces the error. I tried this also % with plain TeX and I worked without problems. A ConTeXt bug. \hangindent4cm \hangafter-3 \input tufte \bgroup $$ A = a^\alpha b^\beta, $$ \egroup \input tufte % Test if my path works also with intending %\setupindenting[yes,medium] %\setupformulas[indentnext=yes] % Patch for startformula/s, look a hangindent and hangafter. \unprotect \def\dostopformula {\doplaceformulanumber \getvalue{\e!stop\formulaparameter\c!alternative\v!formula}% \resetlastlinewidth \nonoindentation \dochecknextindentation{\??fm\currentformula}% \egroup \hangafter\minusone % added \hangindent\zeropoint % added \setfalse\handleformulanumber \dorechecknextindentation} % here ? \def\startformulas#1\stopformulas % new / to be internationalized {\bgroup \forgetdisplayskips \startdisplaymath \setlocalhsize \long\def\startformula##1\stopformula{\advance\scratchcounter \plusone}% \scratchcounter\zerocount #1% preroll \divide \hsize \scratchcounter \hbox to \localhsize \bgroup \hss \def\normalstartformula{\vskip-\strutdepth$$}% i hate this \def\normalstartformula{\vskip-\strutdepth$$}% i hate this \def\normalstopformula {$$}% \def\startformula{$\vcenter\bgroup\normalstartformula}% \def\stopformula {\normalstopformula\egroup$\hss}% #1% \egroup \stopdisplaymath \egroup \hangafter\minusone % added \hangindent\zeropoint} % added \protect % No longer a problem, my patch works. \hangindent4cm \hangafter-3 \input tufte \startformula A = a^\alpha b^\beta, \stopformula \input tufte \blank[line] \hangindent4cm \hangafter-3 \input tufte \startformulas \startformula A = a^\alpha b^\beta, \stopformula \stopformulas \input tufte \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] displayed formula confuses parshape around figure
[this bounced before, I think due to disk space being used up on the mailman server. Hopefully you don't get it twice] Wolfgang Schuster [EMAIL PROTECTED] wrote: Ok, I played yesterday I bit with your example and can you give now a solution for your problem. At first I thought I'd need to include \hangindent and \hangafter to use it, but then I realized that you were using those comands for simulating the figure inclusion. I put your patch at the start of my test file using the dummy figure, and it works great. Thanks! I'll keep using it and let you know if I notice any side effects, but hopefully it can go into the distribution. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] displayed formula confuses parshape around figure
On Wed, 20 Sep 2006 01:15:35 -0400 Sanjoy Mahajan [EMAIL PROTECTED] wrote: In the following small example, two squares are cut out of the long paragraph. The first is where the external figure belongs and goes, so no problem with that. But the second removed square is after the displayed equation, and it shouldn't be removed. If I comment out the formula, then the paragraph shape is fine. If I make add a \placeformula before the \startformula, then the equation number goes where it should (below the right edge of the figure), but the area below it is still whitespace. Is it a bug or is there an option to make startformula not interfere with the paragraph shape calculation? I'm using context version: 2006.08.08 21:51, and I found the same problem just now on the live ConTeXt. \starttext \placefigure[right,none]{}{\externalfigure[dummy]} \input tufte \startformula -- \par or empty line A = a^\alpha b^\beta, \stopformula \input tufte \input tufte \stoptext -Sanjoy It works for me if put a \par or a empty line after the first \input. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] displayed formula confuses parshape around figure
It works for me if put a \par or a empty line after the first \input. That's true, but doing so ends the paragraph. Shouldn't the displayed math be part of the paragraph? The \input tufte's were just to make the minimal example. It came from a paragraph with text and math that begins with a figure: \placefigure[right,none]{}{\externalfigure[dummy]} Then lots of text about the figure, leading up to \startformula this equation \stopformula then more text discussing the equation... -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context