From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110933 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky Newsgroups: gmane.comp.tex.context Subject: Re: Formulanumbers in margin Date: Sun, 21 Mar 2021 19:56:11 +0000 Message-ID: References: <0F1909CC-0473-4156-AEED-67F37746ABC4@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4011339072552804974==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1907"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 21 20:56:50 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lO4Bu-0000Nw-Bz for gctc-ntg-context-518@m.gmane-mx.org; Sun, 21 Mar 2021 20:56:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BCD3281B8C; Sun, 21 Mar 2021 20:56:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q_940maQMEdn; Sun, 21 Mar 2021 20:56:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D9E0F281BA2; Sun, 21 Mar 2021 20:56:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 14C402818D0 for ; Sun, 21 Mar 2021 20:56:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DMqbjL4PKcH3 for ; Sun, 21 Mar 2021 20:56:23 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.42; helo=mail-ed1-f42.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2C1D62802F5 for ; Sun, 21 Mar 2021 20:56:23 +0100 (CET) Original-Received: by mail-ed1-f42.google.com with SMTP id o19so16854272edc.3 for ; Sun, 21 Mar 2021 12:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tY5ez382rsazH+vBa01tuy2+RD8tZGfzsgJF5jk99to=; b=A+PzxxwFgDFOOtt58lyDQXa8VOPKV4WhHD8NvCgwY/dOZGHHxbcaV1Bo3cEMVzVikh 6CprjZRCczIuWdYLd26jBeXZdidpObY6VphTbsT4IeERHac4WZd+3bPTj7KGgr/GUWYZ +J6BJGDgv3YldoRKHnEFzvLVAp+b0GlGkj6Or+L4YMJFOxjx+NgYOpFoc9eCTKJ+MVfq gstMSxhLQlnzkyfydNqCkp7Xl4ZdR3C9OHszpasXyTDMUu830NIxUL6t/IGCnENC+AkK FYUaS3LSjiTrvNC580XtdyKcJinmEV9ktGOOcA34ofTj1rYR+X5+zGz/5yeBRR+OqBQg TAJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tY5ez382rsazH+vBa01tuy2+RD8tZGfzsgJF5jk99to=; b=Xg3rK69G+CLpvu0wq14HLZ5H2MQ/vKJv/t2Sej4eZhN9nTzKz3Pi59I/QQHvl3vS+e UuhtxwBUNW3L0YsYM3H+Xlcs+mV98+Bpn8A0NOIowuOgF8AhjFr1VZ72z37szb1Rcpu+ wr04xzHw3oMwKvBnpwZy+0137rtWqfX2j0gVZtj6ufheZRgL9fiN+kUjco4FjGrH5Yq7 sI7hGn9Hbwx6Y5UU5XwOTaSuYlqDE/7XEIlf4lPOHAEWiIsUKgyLvQppN93y9QXkkZmm TyVWgl6S29TerrDmenMwp7pm85k+fmsHSvPTwgO8y3WpSGpVjARko/NogvjJ3NwkFqis qlqw== X-Gm-Message-State: AOAM532kngww+z5Us3hi5eYVU/tr79Rdmvidtqx6B7H5ID5rK8aOkbhB iEv7rQRp3t10XlCZs1128M1HRSmq2MwsCtcFZdNdUFqXHocLNw== X-Google-Smtp-Source: ABdhPJyPXDnOzrd6KiP3aKeWcZ3Dv6htijg18x2Ho21Wh9XTaaSg3rygowcgrOCpj+q9JfUaYh+cNFWQ1z0AH59sBuY= X-Received: by 2002:a50:fd8b:: with SMTP id o11mr21927664edt.346.1616356582398; Sun, 21 Mar 2021 12:56:22 -0700 (PDT) In-Reply-To: <0F1909CC-0473-4156-AEED-67F37746ABC4@fiee.net> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110933 Archived-At: --===============4011339072552804974== Content-Type: multipart/alternative; boundary="000000000000ec9d9305be115743" --000000000000ec9d9305be115743 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Hraban, I've tried the numbercommand as well, but that also just makes the formula number disappear, unless I am doing something wrong. The framing as per the math manual (manuals/math/math-framing.tex ) however does work, so not sure: \setupformula[numbercommand=3D{\inframed[framecolor=3Dgreen]}] Adam On Sun, Mar 21, 2021 at 7:47 PM Henning Hraban Ramm wrote: > > > > Am 21.03.2021 um 19:40 schrieb Adam Reviczky : > > > > % this makes the formulanumber disappear > > % \setupformulas[location=3D{rightmargin}] > > No, \setupformula=E2=80=99s location understands only left and right. > > Try something like: > > \define[1]\MyFormulaNumber{\inmargin{#1}} > > \setupformula[ > numbercommand=3D\MyFormulaNumber > ] > > > Hraban > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000ec9d9305be115743 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Hraban,

I've trie= d the numbercommand as well, but that also just makes the formula number di= sappear, unless I am doing something wrong.

The fr= aming as per the math manual (manuals/math/math-framing.tex) how= ever does work, so not sure:
\setupfo= rmula[numbercommand=3D{\in= framed[framecolor=3Dgreen]}]

Adam

On Sun, Mar 21, 2021 at 7:47 PM Henning Hraban Ramm <texml@fiee.net> wrote:


> Am 21.03.2021 um 19:40 schrieb Adam Reviczky <reviczky@gmail.com>:
>
> % this makes the formulanumber disappear
> % \setupformulas[location=3D{rightmargin}]

No, \setupformula=E2=80=99s location understands only left and right.

Try something like:

\define[1]\MyFormulaNumber{\inmargin{#1}}

\setupformula[
=C2=A0 =C2=A0 =C2=A0 =C2=A0 numbercommand=3D\MyFormulaNumber
]


Hraban
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000ec9d9305be115743-- --===============4011339072552804974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4011339072552804974==--