Hi, experimental in next beta: \starttext test \startbuffer \placeformula \startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula test \startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula test \stopbuffer \par \setupformula[split=no] \getbuffer \par \par \setupformula[split=yes] \getbuffer \par \stoptext i.e. (poor mans) multiline display math 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 -----------------------------------------------------------------
Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)? Best Mathias
Am 12.06.2017 um 17:25 schrieb Hans Hagen
: Hi,
experimental in next beta:
\starttext
test
\startbuffer \placeformula \startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula
test
\startformula x\dorecurse{100}{+#1x^{#1x}}=10 \stopformula
test \stopbuffer
\par \setupformula[split=no] \getbuffer \par \par \setupformula[split=yes] \getbuffer \par
\stoptext
i.e. (poor mans) multiline display math
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 ___________________________________________________________________________________
Hi Hans,
if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
On 6/12/2017 5:56 PM, Mathias Schickel wrote: that's more complex and interferes with other aspects so maybe later ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 12.06.2017 um 18:17 schrieb Hans Hagen
: Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
On 6/12/2017 5:56 PM, Mathias Schickel wrote: that's more complex and interferes with other aspects so maybe later
Okay, that would be really great. Maybe a semi-automatic breaking across pages could be doable. The AMS package for LaTeX implements something like that. If you write \allowbreak (I am not absolutely sure if this is the true command, but it is something like that) at a line of an equation with multiple lines the typesetting algorithm knows that the formula can be broken across pages at that point. If something like that could be done in ConTeXt it would be really great. At present it is somewhat complicated to handle equations with many lines since you have to typeset the text and check if everything fits. If you could mark certain lines of an equation to be allowed to be broken at the end of a page, working with multiple line equations would be much easier and faster.
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 6/13/2017 1:18 PM, Mathias Schickel wrote:
Am 12.06.2017 um 18:17 schrieb Hans Hagen
: Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
On 6/12/2017 5:56 PM, Mathias Schickel wrote: that's more complex and interferes with other aspects so maybe later
Okay, that would be really great. Maybe a semi-automatic breaking across pages could be doable. The AMS package for LaTeX implements something like that. If you write \allowbreak (I am not absolutely sure if this is the true command, but it is something like that) at a line of an equation with multiple lines the typesetting algorithm knows that the formula can be broken across pages at that point. If something like that could be done in ConTeXt it would be really great. At present it is somewhat complicated to handle equations with many lines since you have to typeset the text and check if everything fits. If you could mark certain lines of an equation to be allowed to be broken at the end of a page, working with multiple line equations would be much easier and faster.
attached what will be provided ... experimental for a while (not in the mood now for harder stuff) 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 -----------------------------------------------------------------
this looks really cool and useful! thanks a lot, Hans!
On Tue, Jun 13, 2017 at 10:46 AM, Hans Hagen
On 6/13/2017 1:18 PM, Mathias Schickel wrote:
Am 12.06.2017 um 18:17 schrieb Hans Hagen
: On 6/12/2017 5:56 PM, Mathias Schickel wrote:
Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
that's more complex and interferes with other aspects so maybe later
Okay, that would be really great. Maybe a semi-automatic breaking across pages could be doable. The AMS package for LaTeX implements something like that. If you write \allowbreak (I am not absolutely sure if this is the true command, but it is something like that) at a line of an equation with multiple lines the typesetting algorithm knows that the formula can be broken across pages at that point. If something like that could be done in ConTeXt it would be really great. At present it is somewhat complicated to handle equations with many lines since you have to typeset the text and check if everything fits. If you could mark certain lines of an equation to be allowed to be broken at the end of a page, working with multiple line equations would be much easier and faster.
attached what will be provided ... experimental for a while (not in the mood now for harder stuff)
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 ____________________________________________________________ _______________________
Am 13.06.2017 um 16:46 schrieb Hans Hagen
: On 6/13/2017 1:18 PM, Mathias Schickel wrote:
Am 12.06.2017 um 18:17 schrieb Hans Hagen
: Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
On 6/12/2017 5:56 PM, Mathias Schickel wrote: that's more complex and interferes with other aspects so maybe later Okay, that would be really great. Maybe a semi-automatic breaking across pages could be doable. The AMS package for LaTeX implements something like that. If you write \allowbreak (I am not absolutely sure if this is the true command, but it is something like that) at a line of an equation with multiple lines the typesetting algorithm knows that the formula can be broken across pages at that point. If something like that could be done in ConTeXt it would be really great. At present it is somewhat complicated to handle equations with many lines since you have to typeset the text and check if everything fits. If you could mark certain lines of an equation to be allowed to be broken at the end of a page, working with multiple line equations would be much easier and faster. attached what will be provided ... experimental for a while (not in the mood now for harder stuff)
That looks really good! Will it be possible to combine that with \startmathalignment? And if not can you pass several \alignhere commands and force breaking at user defined places? (I tried out to test it myself but the new feature is not yet uploaded to the garden version.)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl http://www.pragma-ade.nl/ | www.pragma-pod.nl http://www.pragma-pod.nl/ -----------------------------------------------------------------
On 6/14/2017 11:33 AM, Mathias Schickel wrote:
Am 13.06.2017 um 16:46 schrieb Hans Hagen
mailto:pragma@wxs.nl>: Am 12.06.2017 um 18:17 schrieb Hans Hagen
mailto:pragma@wxs.nl>: Hi Hans, if I get it right this means that you provide a mechanism that brakes formulas automatically across several lines? I appreciate this very much! Thank you for including this into the next beta! Would it be possible to do something like that for breaking long formulas across pages (or is that maybe included in the new mechanism)?
On 6/12/2017 5:56 PM, Mathias Schickel wrote: that's more complex and interferes with other aspects so maybe later Okay, that would be really great. Maybe a semi-automatic breaking across pages could be doable. The AMS package for LaTeX implements something like that. If you write \allowbreak (I am not absolutely sure if this is the true command, but it is something like that) at a line of an equation with multiple lines the typesetting algorithm knows that the formula can be broken across pages at that point. If something like that could be done in ConTeXt it would be really great. At present it is somewhat complicated to handle equations with many lines since you have to typeset the text and check if everything fits. If you could mark certain lines of an equation to be allowed to be broken at the end of a page, working with multiple line equations would be much easier and faster. attached what will be provided ... experimental for a while (not in
On 6/13/2017 1:18 PM, Mathias Schickel wrote: the mood now for harder stuff)
That looks really good! Will it be possible to combine that with \startmathalignment? And if not can you pass several \alignhere commands and force breaking at user defined places? (I tried out to test it myself but the new feature is not yet uploaded to the garden version.)
i didn't test with alignments only one \alignhere per formula 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 -----------------------------------------------------------------
On Mon, 12 Jun 2017, Hans Hagen wrote:
i.e. (poor mans) multiline display math
Interesting. An important reference for automatic breaking of multiline display are the notes of Michael J Downes included in the documentation of breqn: see section 14 (page 16) of http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn... (Ignore the implementation details, which were a series of hacks to make things work in pdftex, but section 14 explains the different display math layouts and a strategy to choose between them. It will be really nice to have something comparable in ConTeXt. Aditya
On 6/13/2017 8:06 AM, Aditya Mahajan wrote:
On Mon, 12 Jun 2017, Hans Hagen wrote:
i.e. (poor mans) multiline display math
Interesting. An important reference for automatic breaking of multiline display are the notes of Michael J Downes included in the documentation of breqn: see section 14 (page 16) of http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/breqn/breqn...
I remember a talk by giuseppe about nath (or so) that did something nice but anyway, the main question with that kind of trickery is if one is willing to add structure info or not .. anything semi-clever will be limited.
(Ignore the implementation details, which were a series of hacks to make things work in pdftex, but section 14 explains the different display math layouts and a strategy to choose between them. It will be really nice to have something comparable in ConTeXt. You mean these boxed lines? I'm not a math expert so the subtle details are lost to me. I'd rather start from reasonable demands (after all very complex stuff often is best done manually anyway).
For instance foo = bar + bar + bar gnu + gnu is doable without much trouble if one is willing to enter foo = \alignhere bar + bar + bar gnu + gnu and such. ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Hans Åberg
-
Mathias Schickel
-
Mohammad Hossein Bateni