ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jacob Kauffmann via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jacob Kauffmann <jacobkauffmann@me.com>
Subject: Re: Issue with location parameter in matrix
Date: Mon, 9 Jan 2023 18:59:50 +0100	[thread overview]
Message-ID: <D77C9D13-C1DB-4C25-9C43-455C1AF7ED1F@me.com> (raw)
In-Reply-To: <7919E1FB-70DA-4D7E-9E80-62E4898D7541@me.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1636 bytes --]

One trick is to wrap the matrices inside a framed environment and putting the location parameter there:

\starttext

\startformula
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
=
\startframed[location=top,frame=no,offset=none]
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
\stopframed
=
\startframed[location=bottom,frame=no,offset=none]
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
\stopframed
\stopformula

\stoptext

> Am 06.01.2023 um 17:48 schrieb Jacob Kauffmann via ntg-context <ntg-context@ntg.nl>:
> 
> Signierter PGP-Teil
> Hi all,
> 
> Thank you for your recent assistance with calligraphic math fonts.
> 
> I am trying to use a matrix example from math-ali.mkxl, but I am running into an issue.
> When I try to use the location parameter, I receive the error
> 	A <box> was supposed to be here.
> 
> I have also tried both location=bottom and location=top, but both give the same error.
> 
> Do you have any ideas on how I can get the matrix in the desired locations?
> Thank you in advance for your help.
> 
> Best regards,
> Jacob
> 
> \starttext
> 
> \startformula
> \startmatrix[left={\left(},right={\right)}]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> =
> \startmatrix[left={\left(},right={\right)},location=low]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> =
> \startmatrix[left={\left(},right={\right)},location=high]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> \stopformula
> 
> \stoptext
> 
> 


[-- Attachment #1.1.2: Type: text/html, Size: 2723 bytes --]

[-- Attachment #1.2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2023-01-09 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 16:48 Jacob Kauffmann via ntg-context
2023-01-09 17:59 ` Jacob Kauffmann via ntg-context [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=D77C9D13-C1DB-4C25-9C43-455C1AF7ED1F@me.com \
    --to=ntg-context@ntg.nl \
    --cc=jacobkauffmann@me.com \
    /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).