From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33373 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hypatia Newsgroups: gmane.text.pandoc Subject: Re: Show-and-tell: equation annotation for MathJax Date: Wed, 22 Nov 2023 21:04:35 -0800 (PST) Message-ID: References: <4704092c-08bc-4755-a676-2f403166a3e3n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13890_1286419921.1700715875993" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39724"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD5NVNN6UUNRBZV27OVAMGQEY4EV4RA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 23 06:04:43 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f192.google.com ([209.85.215.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r61tL-000A4K-7B for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Nov 2023 06:04:43 +0100 Original-Received: by mail-pg1-f192.google.com with SMTP id 41be03b00d2f7-5bda015587bsf564081a12.0 for ; Wed, 22 Nov 2023 21:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700715882; x=1701320682; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=t50CggOVlCKffsN+o0dcuUW9RfW6UnJVvQBtLEB+3as=; b=i/e0tnjMsv0OwHa7xyNYsfaYMsFM47dlZLD/3FErrDTEET9g/iD6ThJwBbrAY+q9mQ b0Siq9lOq7BswFYt84G4ovXFkwLrB34anafI9pw/dG00Q2U/WsHMIPm7vXR+H+o0qdro bgf6mKkNp59ohfI7ZX0jZO5NOhV5bUCBR8Swp/OjndaINfRjvV7GMoWCEfv8Jnyb6Vuv uMhrp5EvtBNt+GEagZr2xHHBYmaHjDtu2weEqw3YUVN7YWcKYgPrzEOIXp11aSJdmtmy X2q46Q/Qi91SDV7UtKtfKsnjc69PkppboVPhMECEnKT5ZR6tZWybAhMI7Y1SPsA+Alpv 36pQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700715882; x=1701320682; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=t50CggOVlCKffsN+o0dcuUW9RfW6UnJVvQBtLEB+3as=; b=NSA/nP6ZcBw3xdbdzmHNzo3iZX2R/FYfDBDpXOCqAyQngwDvN6gD5A9L+0Kx9nwCCt bvWEyKC2ob2+t7H64nl7tUzFstFVa5LiFeJpThACq5/t+H8oM8HqrS0dTrbbjRT8+8gI ChK2SFw3QoZ6840SCiS3OOJ2HHkcJoxAlKckhXtlRMo/oXO/tLuqkcztXd/S714ApZvs S50T5c3n3LKDrLT76U9JxPone8a5UrlZv6JaOlInlfc3FGPw5rr9KofWyytPFKQQWH/w AwmQxIpW0TE2k5TY4N4hqWZRKQXKxPrBaq8sfFcobQFbJH9Tq4Cn3IWfTzheWvXCThZS 9NZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700715882; x=1701320682; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=t50CggOVlCKffsN+o0dcuUW9RfW6UnJVvQBtLEB+3as=; b=Mjs+5ooU1CeaN3QF52o7rX8FjyE2cn+wZjLhzmObRtgn9mCkDiIqunNaNPDnRZDi5G zVr+xUcL14OooxnabXUhSxygh5Ke0Q58rNIZR7Y0kd3qdJ4fT3WXDB2cTE0Oossrsvmo Jb2r4AIumc8Ly1+XzTiBRj57Oat9Cv8HNoh1KryQJt1mIv9t4IAswRDNg4Y0jSGbdRYj NC8u33SbEbwdqjvet0LTCvCJbcucWokKRnFAVkPB9+1ahNsdSMOtjgeNjsHJ9WuzLoWM FNWl8NI5y/gz4Sh5pT3a58ykOMiTE8erIC3jcEYW4NQTct9hNI Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YywjAsZXLqlKKRRWIRhwvBUmBH2ra8kiW1jgM0i0PlPp0LmJw87 naebZSqoDBKusIGlEFyDuwM= X-Google-Smtp-Source: AGHT+IHwR7Z9IbsvYkuSVS29VzHJwx5hacttjE8w67zN1mgY17ckEXFhGLEFiIHfAp0F3HqmZivXSQ== X-Received: by 2002:a05:6a21:9705:b0:187:ce5a:2a87 with SMTP id ub5-20020a056a21970500b00187ce5a2a87mr4093703pzb.12.1700715881784; Wed, 22 Nov 2023 21:04:41 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:b283:b0:285:104c:6c8d with SMTP id c3-20020a17090ab28300b00285104c6c8dls372618pjr.0.-pod-prod-00-us-canary; Wed, 22 Nov 2023 21:04:37 -0800 (PST) X-Received: by 2002:a63:5262:0:b0:5be:15fb:620b with SMTP id s34-20020a635262000000b005be15fb620bmr347821pgl.4.1700715876787; Wed, 22 Nov 2023 21:04:36 -0800 (PST) In-Reply-To: <4704092c-08bc-4755-a676-2f403166a3e3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: knight.of.lambda.calculus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33373 Archived-At: ------=_Part_13890_1286419921.1700715875993 Content-Type: multipart/alternative; boundary="----=_Part_13891_432229273.1700715875993" ------=_Part_13891_432229273.1700715875993 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable *I can Sorry for the misleading typo... I didn't mean you to do that... lol On Thursday, November 23, 2023 at 12:03:51=E2=80=AFAM UTC-5 Hypatia wrote: > I just asked about a similar thing:=20 > https://github.com/quarto-dev/quarto-cli/discussions/7679. > > I'm going to see if you can hack up something based on your code. Thanks = a=20 > lot! > > On Tuesday, November 14, 2023 at 3:27:53=E2=80=AFAM UTC-5 Guillaume Dehae= ne wrote: > >> Yes, that's correct. This is a smart-margin feature. >> >> It wouldn't be too hard technically and probably desirable to annotate= =20 >> individual elements of an equation block >> (for example, consider highlighting a term being moved from one side of= =20 >> the equal side to the other in two successive equations) >> However, I've run into two design / UX issues when considering this case= : >> - in the final HTML, how would the user interact with the annotation: >> - to see that an element is annotated (needs to work with nested=20 >> annotations, with multiple annotations, etc) >> - to see which elements are concerned by the currently-displayed=20 >> annotation (without interfering with the "is annotated" styling of the= =20 >> other elements of the equation block) >> etc >> - how would the writer specify the annotation, in a way that isn't too= =20 >> disruptive of their normal workflow? >> - this is the bigger issue for me. without a rich-text editor which=20 >> supports highlighting of individual math elements, I don't know how to= =20 >> handle this >> >> even If I had a great answer, there remains the issue of hacking it=20 >> inside of MathJax. >> At this point, it might be better to actually fork their code, instead o= f=20 >> writing something a posteriori >> >> I'd love to have it as a feature someday, but it's in the distant future= . >> >> Le lun. 13 nov. 2023 =C3=A0 17:32, Gwern Branwen a =C3= =A9crit : >> >>> So this does not let you annotate individual elements of the equation t= o=20 >>> provide popups/links or color them, but is only whole-equation level an= d=20 >>> basically a way to a margin-note/sidenote that aligns nicely with the= =20 >>> equation? >>> >>> --=20 >>> gwern >>> https://gwern.net >>> >>> --=20 >>> You received this message because you are subscribed to the Google=20 >>> Groups "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit=20 >>> https://groups.google.com/d/msgid/pandoc-discuss/CAMwO0gzAOVy1QkYuR1MRw= nGix%2BKsJJKfSMdFQka97jTUabQLQg%40mail.gmail.com=20 >>> >>> . >>> >> --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/c0cc24db-dcf7-4b6d-8d4f-a15a27fa2f82n%40googlegroups.com. ------=_Part_13891_432229273.1700715875993 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
*I can

Sorry for the misleading typo... I d= idn't mean you to do that... lol

On Thursday, November 23, 2023 at = 12:03:51=E2=80=AFAM UTC-5 Hypatia wrote:
I just asked about a similar thing: https://github.com/quarto-dev/quarto-cli/discussions/7679.

I'm going to see if you can hack up something ba= sed on your code. Thanks a lot!

On Tuesday, November 14, 2023 at 3:27:5= 3=E2=80=AFAM UTC-5 Guillaume Dehaene wrote:
Yes, that's correct. This is a s= mart-margin feature.

It wouldn't be too hard technic= ally and probably desirable to annotate individual elements of an equation = block
(for example, consider highlighting a term being moved from one si= de of the equal side to the other in two successive equations)
However, = I've run into two design / UX issues when considering this case:
<= div>- in the final HTML, how would the user interact with the annotation:
=C2=A0 - to see that an element is annotated (needs to work with n= ested annotations, with multiple annotations, etc)
=C2=A0 - to se= e which elements are concerned by the currently-displayed annotation (witho= ut interfering with the "is annotated" styling of the other eleme= nts of the equation block)
=C2=A0 etc
- how would the w= riter specify the annotation, in a way that isn't too disruptive of the= ir normal workflow?
=C2=A0 - this is the bigger issue for me. wit= hout a rich-text editor which supports highlighting of individual math elem= ents, I don't know how=C2=A0to handle this

eve= n If I had a great answer, there remains the issue of hacking it inside of = MathJax.
At this point, it might be better to actually fork their code, = instead of writing something a posteriori

I'd love to have it as= a feature someday, but it's in the distant future.

Le=C2=A0lun. 13 nov. 2023 =C3=A0=C2=A017:32, Gwern Branw= en <gw...-v26ZT+9V8bxeoWH0uzbU5w@public.gmane.org> a =C3=A9crit=C2=A0:
<= /div>
So this does not let you annotate indivi= dual elements of the equation to provide popups/links or color them, but is= only whole-equation level and basically a way to a margin-note/sidenote th= at aligns nicely with the equation?

--

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/CAMwO0gzAOVy1QkYuR1MRwnGix%2BKsJJKfSMdFQka97jTUabQLQg%40m= ail.gmail.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/c0cc24db-dcf7-4b6d-8d4f-a15a27fa2f82n%40googlegroups.= com.
------=_Part_13891_432229273.1700715875993-- ------=_Part_13890_1286419921.1700715875993--