ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Framing multiline equations
Date: Sun, 22 May 2016 17:56:04 +0200	[thread overview]
Message-ID: <d824d12a-481e-e657-653a-ff8bcfab0e27@wxs.nl> (raw)
In-Reply-To: <57417DAD.2020303@gmail.com>

On 5/22/2016 11:36 AM, L.S.-Soc&Gam wrote:
> Hello together,
>
> I'm having trouble framing multiline equations. Problem is that either I
> get an error or the equation gets framed while the multiline is
> converted into a single line. Here is my code:
>
> ---------------------
> \starttext
>
> \startformula                                 <- works like a charm
> \mframed[offset=1mm,loffset=3mm,roffset=3mm]
>     {a + b = c}
> \stopformula
>
> \startformula \startalign                         <- that's an example
> multiline equation
> \NC c - a = \NC b \NR                            <- unframed it works
> \NC d + c - b = \NC a \NR
> \stopalign \stopformula
>
> \startformula \framed{\startalign <- \mframed gives an error. \framed
> works, but then the eq
> \NC c - a = \NC b \NR           <- gets converted into a single line eq.
> \NC d + c - b = \NC a \NR
> \stopalign} \stopformula
>
> \stoptext
> ---------------------
>
> I tried to place \mframed at different locations. But the example above
> is the only one that doesn't give an error.
> How would an experienced CTX user frame multiline equations?
> I think it would work with natural TABLES. But i would only use that
> way, when nothing else works...

next beta:

\starttext

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\startformula \startalign
     \NC c - a     = \NC b \NR
     \NC d + c - b = \NC a \NR
\stopalign \stopformula

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\startformula
\mframed
     [offset=1mm,loffset=3mm,roffset=3mm] {
         a + b = c
     }
\stopformula

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\startformula
\mframed
     [offset=1mm,loffset=3mm,roffset=3mm] {
         \startalign
             \NC c - a     = \NC b \NR
             \NC d + c - b = \NC a \NR
         \stopalign
     }
\stopformula

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\stoptext

i'll sort out spacing later


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2016-05-22 15:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <947663393.140271.1404401839314.JavaMail.zimbra@pentandra.com>
2014-07-03 15:55 ` Support for Optional Content Groups Chris Chapman
2014-07-03 16:33   ` Wolfgang Schuster
2014-07-03 17:54   ` Hans Hagen
2014-07-03 18:08     ` Chris Chapman
2016-05-22  9:22     ` Meer, Hans van der
2016-05-22  9:36       ` Framing multiline equations L.S.-Soc&Gam
2016-05-22 15:56         ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d824d12a-481e-e657-653a-ff8bcfab0e27@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).