ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* math formula linebreak
@ 2012-08-09  7:37 Steffen Wolfrum
  2012-08-09 17:31 ` Aditya Mahajan
  2012-08-09 20:21 ` Prashanth
  0 siblings, 2 replies; 9+ messages in thread
From: Steffen Wolfrum @ 2012-08-09  7:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

for nice linebreaking we can adjust math formulas by the use of NC, NR alignment.

But if someone only wants long formulas to fit in a defined area, and want them to break automatically ... is there a handy solution?

(Below are examples that don't work)

Thanks,
Steffen
-------


\starttext


\placeformula
\startformula[9pt]
I=\big\{\lambda u(x_0-\pi^H K)+(1-\lambda)[\pi^L u(x_0-K+(1-\pi^L)Z_{L'})
+(1-\pi^L)u(x_0-\pi^L Z_{L'})]\big\}-\big\{\pi^U u(x_0-K+(1-\pi^U)Z_{U'})
+(1-\pi^U)u(x_0-\pi^U Z_{U'})\big\}.
\stopformula



\defineframedtext
 [defbackground]
 [width=10cm,
  frame=on,
  location=paragraph]


\startdefbackground
\placeformula
\startformula[9pt]
I=\big\{\lambda u(x_0-\pi^H K)+(1-\lambda)[\pi^L u(x_0-K+(1-\pi^L)Z_{L'})
+(1-\pi^L)u(x_0-\pi^L Z_{L'})]\big\} -\big\{\pi^U u(x_0-K+(1-\pi^U)Z_{U'})
+(1-\pi^U)u(x_0-\pi^U Z_{U'})\big\}.
\stopformula
\stopdefbackground





\definelayer[mylayer]


\setlayerframed
 [mylayer]
 [x=25mm,
  y=85mm,
  height=43.5mm,
  width=10cm,align=block]
 {
 \placeformula
\startformula[9pt]
I=\big\{\lambda u(x_0-\pi^H K)+(1-\lambda)[\pi^L u(x_0-K+(1-\pi^L)Z_{L'})
+(1-\pi^L)u(x_0-\pi^L Z_{L'})]\big\} -\big\{\pi^U u(x_0-K+(1-\pi^U)Z_{U'})
+(1-\pi^U)u(x_0-\pi^U Z_{U'})\big\}.
\stopformula
 }

\setupbackgrounds[page][background=mylayer]






\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-09 21:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09  7:37 math formula linebreak Steffen Wolfrum
2012-08-09 17:31 ` Aditya Mahajan
2012-08-09 18:19   ` Sietse Brouwer
2012-08-09 18:53     ` Aditya Mahajan
2012-08-09 19:41       ` Sietse Brouwer
2012-08-09 20:31         ` Sietse Brouwer
2012-08-09 21:07       ` Hans Hagen
2012-08-09 20:21 ` Prashanth
2012-08-09 21:14   ` Steffen Wolfrum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).