Is there an "environment" (i.e., like a \startframed ... \stopframed) method for using \framed{ ... } on a block of text? Certain \start ... \stop combinations don't seem to play well with \framed{ ... }. For example, \usemodule[amsl] \starttext \framed{ \startformula \startalign A=B \stopalign \stopformula } \stoptext fails evidently because \framed{ ... } and the \startalign ... \stopalign don't like one another. -- Troy Henderson
On Nov 18, 2011, at 2:23 PM, Troy Henderson
Is there an "environment" (i.e., like a \startframed ... \stopframed) method for using \framed{ ... } on a block of text? Certain \start ... \stop combinations don't seem to play well with \framed{ ... }. For example,
\usemodule[amsl]
Please do not use the amsl module. It has not been updated in years and context core provides almost all the functionality.
\starttext \framed{ \startformula \startalign A=B \stopalign \stopformula } \stoptext
fails evidently because \framed{ ... } and the \startalign ... \stopalign don't like one another.
Untested, but the most likely reason is that framed starts a hbox rather than a vbox. Use \framed[align=normal]{...} to start a vbox. Aditya
Am 19.11.2011 um 17:32 schrieb Aditya Mahajan:
On Nov 18, 2011, at 2:23 PM, Troy Henderson
wrote: Is there an "environment" (i.e., like a \startframed ... \stopframed) method for using \framed{ ... } on a block of text? Certain \start ... \stop combinations don't seem to play well with \framed{ ... }.
Untested, but the most likely reason is that framed starts a hbox rather than a vbox. Use
\framed[align=normal]{...}
to start a vbox.
Or \startframedtext[width=broad] … \stopframedtext. Wolfgang
participants (3)
-
Aditya Mahajan
-
Troy Henderson
-
Wolfgang Schuster