From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110946 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: Wed, 24 Mar 2021 01:30:34 +0000 Message-ID: References: <0F1909CC-0473-4156-AEED-67F37746ABC4@fiee.net> <2A2488D9-FF5D-4D39-9FB3-B999721DE391@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0450095303534487517==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19838"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 24 02:31:32 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 1lOsMu-00054v-5D for gctc-ntg-context-518@m.gmane-mx.org; Wed, 24 Mar 2021 02:31:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 98C2A2819D2; Wed, 24 Mar 2021 02:30:51 +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 vPSGVYgT_Bu8; Wed, 24 Mar 2021 02:30:50 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5DCF0281D0C; Wed, 24 Mar 2021 02:30:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A0EC281B8C for ; Wed, 24 Mar 2021 02:30:48 +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 DMu_xa6UDkn4 for ; Wed, 24 Mar 2021 02:30:46 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.46; helo=mail-ed1-f46.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 B23EC2819D2 for ; Wed, 24 Mar 2021 02:30:46 +0100 (CET) Original-Received: by mail-ed1-f46.google.com with SMTP id h13so25714377eds.5 for ; Tue, 23 Mar 2021 18:30:46 -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=8ZAhIxEsQ+N0/ZMKLVjOKBMFXEqnOV9UpxXIWj+AwSQ=; b=hLTnFiYqcXdr1ShbZO+Ef5uz6hmaDKi2t3xp36y43kzHQZmS2WNp9VM694jGctGHc4 CwxN8G3MV2c1fLQq/W0TfUNUZQugsUSS2i/wj9FSwTxmMsbHqth1QNup0iXUnKOdI/I2 tCaIcyQqlPkqZS/X1AoiQpXkp1epnslktF4wqMAbIIClAfkzvCcaNxh+Joje75o/THfi mGWj6QFzFaDoyyn2MNaFAc6dOXJVcb69o85I2032C9M1VOZo2kDjecqipm92ll+sTbyj 0BayUau5pTu3EINhVLO8iMskjgdNgOnm/xkN6L95OQTNYj3FJy0xHNUuitzNoF5SdbPx xXag== 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=8ZAhIxEsQ+N0/ZMKLVjOKBMFXEqnOV9UpxXIWj+AwSQ=; b=twH01er1eBTyJ373VFfRsJnMvKcB3OONSN1bHSOQkXsqUYeltHzumTUvPeLavODGdk G7AJ6/h1PWKJehTyaEj0Cvlviu3/LwrjieFuRb005TjbfbpIh/qaqLtYNhnVu7HzN5jB 50deg9cvP767tj2LKNP1PYI8AHz42R6ObN1kVsN3FPeViN7vUfMObiZyR4sQfiAPfZFi 6C7GoUH3XVoanlqump6TTL6c/62Jv2xn+QML380DGapVVHVST3d4e8plKyZGnR7TeAb+ 0UrjVICMwW+MZRW6Bi0bU6+m/GljpkSrwmwzUgZvex3lDFiEODWW9yWjCIhoFWPhdduS tRDA== X-Gm-Message-State: AOAM530f1xQTaZ9A27YuJAIV5CdY6xtpPJACnB/Pt/mchtSriHU62QBw 2sMEsb11q94EmmXQQCv9P4bJMee7qNXkYkp7SXu4W88l/PKXeA== X-Google-Smtp-Source: ABdhPJwbrBW10ptyDUeFFp9MDYK7ofTCu+Izx8y3fhCWIwPHuXVMx97YiM2SM1ejLZEQ0MGaPGKdlksojXCxgOzB/7M= X-Received: by 2002:a05:6402:8c2:: with SMTP id d2mr793412edz.4.1616549446029; Tue, 23 Mar 2021 18:30:46 -0700 (PDT) In-Reply-To: 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:110946 Archived-At: --===============0450095303534487517== Content-Type: multipart/alternative; boundary="0000000000007e126505be3e3fe1" --0000000000007e126505be3e3fe1 Content-Type: text/plain; charset="UTF-8" Hi, So the numbercommand does work after all, I just needed to keep something in the "formulanumber" part of the textline, otherwise it wouldn't get drawn. Not sure how nice this looks, but it does work like this now: \starttext \showframe \setupformulas[numbercommand=\nbsp\inrightmargin] \startplaceformula \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext Adam On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky wrote: > Thanks Hraban, > > That should be fine, I've tried to increase the margins as well, but not > sure that's the issue as I can perfectly place text with \inmargin > directly, just not with the numbercommand. > > MWE: > > \starttext > \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] > > \showframe > \showlayout > > \setupcaption[figure][location={rightmargin}] > \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure > > \define[1]\MyFormulaNumber{\inleftmargin{#1}} > \setupformula[numbercommand=\MyFormulaNumber] > > \inleftmargin{Left Margin Text} > \inrightmargin{Right Margin Text} > > \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 > \stopformula \stopplaceformula > \stoptext > > Adam > > On Sun, Mar 21, 2021 at 8:31 PM Henning Hraban Ramm > wrote: > >> >> > Am 21.03.2021 um 20:56 schrieb Adam Reviczky : >> > >> > 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={\inframed[framecolor=green]}] >> >> Are your margins actually non-zero? (\setuplayout) >> Maybe check with \showlayout >> >> 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 >> >> ___________________________________________________________________________________ >> > --0000000000007e126505be3e3fe1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

So the numbercommand doe= s work after all, I just needed to keep something in the "formulanumbe= r" part of the textline, otherwise it wouldn't get drawn.

Not sure how nice this looks, but it does work like this n= ow:

\starttext
\showframe
\setupformulas[num= bercommand=3D\nbsp\inrightmargin]
\startplaceformula \startformula c^2 = =3D a^2 + b^2
\stopformula \stopplaceformula
\stoptext

=
Adam

On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky <= reviczky@gmail.com> wrote:
=
Thanks Hraban,

That should be fine, I've tr= ied to increase the margins as well, but not sure that's the issue as I= can perfectly place text with \inmargin directly, just not with the number= command.

MWE:

\starttext<= br>\setuplayout[margin=3D2cm, leftmargin=3D2cm, rightmargin=3D2cm]

\= showframe
\showlayout

\setupcaption[figure][location=3D{rightmarg= in}]
\startplacefigure[title=3DCow] \externalfigure[cow] \stopplacefigur= e

\define[1]\MyFormulaNumber{\inleftmargin{#1}}
\setupformula[num= bercommand=3D\MyFormulaNumber]

\inleftmargin{Left Margin Text}
\i= nrightmargin{Right Margin Text}

\startplaceformula[reference=3Deq1] = \startformula c^2 =3D a^2 + b^2 \stopformula \stopplaceformula
\stoptext=

Adam

On Sun, Mar 21, 2021 at 8:31 PM Hen= ning Hraban Ramm <te= xml@fiee.net> wrote:

> Am 21.03.2021 um 20:56 schrieb Adam Reviczky <reviczky@gmail.com>:
>
> 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) how= ever does work, so not sure:
> \setupformula[numbercommand=3D{\inframed[framecolor=3Dgreen]}]

Are your margins actually non-zero? (\setuplayout)
Maybe check with \showlayout

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
___________________________________________________________________________= ________
--0000000000007e126505be3e3fe1-- --===============0450095303534487517== 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== --===============0450095303534487517==--