ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placesidebyside with aligned formula
@ 2006-03-02  2:22 Aditya Mahajan
  2006-03-02  9:58 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2006-03-02  2:22 UTC (permalink / raw)


How do I place some formula on to the right of some text. This does 
not work.

\starttext
   \placesidebyside
   {\framed[width=8cm,align=leftflushed]{\input knuth \relax}}
   {%
     \startformula\startalign
       \NC a \NC= b \NR
       \NC c \NC= d \NR
     \stopalign\stopformula
   }
\stoptext

It works if I only have one line formula without \startalign. What 
magic do I need to place around startformula?


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

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

* Re: placesidebyside with aligned formula
  2006-03-02  2:22 placesidebyside with aligned formula Aditya Mahajan
@ 2006-03-02  9:58 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-03-02  9:58 UTC (permalink / raw)


Aditya Mahajan wrote:
> How do I place some formula on to the right of some text. This does 
> not work.
>
> \starttext
>    \placesidebyside
>    {\framed[width=8cm,align=leftflushed]{\input knuth \relax}}
>    {%
>      \startformula\startalign
>        \NC a \NC= b \NR
>        \NC c \NC= d \NR
>      \stopalign\stopformula
>    }
> \stoptext
>
> It works if I only have one line formula without \startalign. What 
> magic do I need to place around startformula?
>
>
>   
put it in a vbox, or use a framed:

\starttext
   \placesidebyside
   {\framed[width=8cm,align=flushleft]{\input knuth \relax}}
   {\framed[frame=off,align=normal,strut=no]{
     \startformula\startalign
       \NC a \NC= b \NR
       \NC c \NC= d \NR
     \stopalign\stopformula
   }}
\stoptext

btw, it's flushleft

Hans

-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

end of thread, other threads:[~2006-03-02  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02  2:22 placesidebyside with aligned formula Aditya Mahajan
2006-03-02  9:58 ` Hans Hagen

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