ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Framed "environment"
@ 2011-11-18 19:23 Troy Henderson
  2011-11-19 16:32 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Troy Henderson @ 2011-11-18 19:23 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Framed "environment"
  2011-11-18 19:23 Framed "environment" Troy Henderson
@ 2011-11-19 16:32 ` Aditya Mahajan
  2011-11-19 18:04   ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-11-19 16:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Nov 18, 2011, at 2:23 PM, Troy Henderson <thenders@gmail.com> 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{ ... }.  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
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Framed "environment"
  2011-11-19 16:32 ` Aditya Mahajan
@ 2011-11-19 18:04   ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-11-19 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.11.2011 um 17:32 schrieb Aditya Mahajan:

> On Nov 18, 2011, at 2:23 PM, Troy Henderson <thenders@gmail.com> 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

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2011-11-19 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-18 19:23 Framed "environment" Troy Henderson
2011-11-19 16:32 ` Aditya Mahajan
2011-11-19 18:04   ` Wolfgang Schuster

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).