From: Alexandre Christe via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Alexandre Christe <aleks.christe@gmail.com>
Subject: Sum and mathalignment
Date: Tue, 30 Nov 2021 20:34:17 +0100 [thread overview]
Message-ID: <CALC5-UJgegY_o46qOto5aHrHs0+YV8__Zd2H3-7SxftOVHLh-g@mail.gmail.com> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 723 bytes --]
Dear list,
[image: image.png]
What I've done is to play with mathalignment and \framed. Here is a MWE:
\starttext
\defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]
\framed[frame=off,background=midrule,boffset=.65cm]{\startformula
\startmathalignment[n=12,align={middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle}]
\NC \NC S_6 \NC= \NC 1 \NC+ \NC 2 \NC+ \NC\dots \NC+ \NC 5 \NC+ \NC 6
\NR
\NC + \NC S_6 \NC= \NC 6 \NC+ \NC 5 \NC+ \NC\dots \NC+ \NC 2\NC+ \NC 1
\NR
\NC\NC 2S_6 \NC= \NC 7 \NC+ \NC 7 \NC+ \NC\dots \NC+ \NC 7 \NC+ \NC 7
\NR
\stopmathalignment
\stopformula}
\stoptext
Is there a simpler way to typeset something like this?
Thanks in advance!
[-- Attachment #1.1.2: Type: text/html, Size: 977 bytes --]
[-- Attachment #1.2: image.png --]
[-- Type: image/png, Size: 5145 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2021-11-30 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 19:34 Alexandre Christe via ntg-context [this message]
2021-11-30 22:51 ` Bruce Horrocks via ntg-context
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=CALC5-UJgegY_o46qOto5aHrHs0+YV8__Zd2H3-7SxftOVHLh-g@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=aleks.christe@gmail.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).