From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110935 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 20:41:46 +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="===============0865742365800813607==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33919"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 21 21:42:26 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 1lO4u2-0008ja-EY for gctc-ntg-context-518@m.gmane-mx.org; Sun, 21 Mar 2021 21:42:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 043052818D0; Sun, 21 Mar 2021 21:42:04 +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 r3E3p2y50vQc; Sun, 21 Mar 2021 21:42:01 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA5CA281BA8; Sun, 21 Mar 2021 21:42:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B62B52818D0 for ; Sun, 21 Mar 2021 21:41:59 +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 yWLytMAIADi6 for ; Sun, 21 Mar 2021 21:41:58 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.41; helo=mail-ej1-f41.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 DA2822802F5 for ; Sun, 21 Mar 2021 21:41:58 +0100 (CET) Original-Received: by mail-ej1-f41.google.com with SMTP id hq27so17999789ejc.9 for ; Sun, 21 Mar 2021 13:41:58 -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=PsprQvLFAkbex9yh0BrjX0aQ1wVUqpDn3Vy8H/eyGM8=; b=d3nRXRCpjyPFF6ZK67g0HXEKFteJEdnBrlKQ0+5VaY5S4DlVfLQOHuB1tULhvmnzcg OoxeieYT2pAKEcMN2AFq0ro1OSDV97X+F2A1+Tsb7nNae1k9DUtB0/KFE394oP+bKU+x yXiqu+gNDzWv/f5w9vv2g5DnfrD3q9ZKnFCUkh+3RBkjxEz3G6MENa7BdaLyY66XpiVm rc90ne7Lt7/5nYHLs5+WHqSrsKs3pLOjLiIefXL8HlmrKrHAdUeQo9uJMVCeewz5+ryH 7rcHrhMcu4iOgX3kdVKyKByA1Mfp/VuqX31UTvR26X0Jf8EtL89jvfIjAPS2Y3iEBjs4 LcnQ== 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=PsprQvLFAkbex9yh0BrjX0aQ1wVUqpDn3Vy8H/eyGM8=; b=CSBdeGFw473UPtr2/ePGQJTaUal3DzbVp9EqHmG77VwMhWk5oG5fQg4iw3zAxVZa5y VhOFw7PyvUcupuv5Cd8uHfGV9gQOReATLv3Jy9vkdIH87ZBCP1MNlOCvWv8UYDt9L2YI V1BpXvEeq8qQJos0tDI7b195gdSLT7KxznAnSFzZV29zBy/faAkaoZKmWrm0yelrlPzw VMw8fCkPxeDp0AlW0pseGKMQ90USZZK0RM767Nf8mu18FlyDUMfE6qZnuJ3vg7b0yUgu YwCz+6Jzw8ctDv4IoOrwnud1c+J5TUpEebgFC4qOzq7WSeB5F/sO5U6SXDZFfVUgJpV9 iXwg== X-Gm-Message-State: AOAM531oh2oD6DZWp0Ghr2J6OI4HT4N7cSJb5L9MqGHKghuXtxswoJTj tctc05b97Xfo5rp3SYAJ6EmT3sYbk4Sg0D95Avp12ppaD8arzQ== X-Google-Smtp-Source: ABdhPJzRMKw/gFcqXNN7ptoUw923+sYyccPxiXCxe0PPN0iXtuM19yta7L423FFR1GoFrMOM8k8iNO9lLvwBf0Ad3Js= X-Received: by 2002:a17:906:cd05:: with SMTP id oz5mr16332272ejb.345.1616359318157; Sun, 21 Mar 2021 13:41:58 -0700 (PDT) In-Reply-To: <2A2488D9-FF5D-4D39-9FB3-B999721DE391@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:110935 Archived-At: --===============0865742365800813607== Content-Type: multipart/alternative; boundary="000000000000fcfe2a05be11fa34" --000000000000fcfe2a05be11fa34 Content-Type: text/plain; charset="UTF-8" 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 > > ___________________________________________________________________________________ > --000000000000fcfe2a05be11fa34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Hraban,

That should b= e fine, I've tried to increase the margins as well, but not sure that&#= 39;s the issue as I can perfectly place text with \inmargin directly, just = not with the numbercommand.

MWE:

\starttext
\setuplayout[margin=3D2cm, leftmargin=3D2cm, rightmar= gin=3D2cm]

\showframe
\showlayout

\setupcaption[figure][lo= cation=3D{rightmargin}]
\startplacefigure[title=3DCow] \externalfigure[c= ow] \stopplacefigure

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

\inleftmargin{Left= Margin Text}
\inrightmargin{Right Margin Text}

\startplaceformul= a[reference=3Deq1] \startformula c^2 =3D a^2 + b^2 \stopformula \stopplacef= ormula
\stoptext

Adam

On Sun, Mar 21, = 2021 at 8:31 PM Henning Hraban Ramm <t= exml@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
___________________________________________________________________________= ________
--000000000000fcfe2a05be11fa34-- --===============0865742365800813607== 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== --===============0865742365800813607==--