From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26060 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Katex Date: Thu, 03 Sep 2020 18:34:28 -0700 Message-ID: References: <3fea3a24-cdff-41a0-9c3e-ffcfadaff90en@googlegroups.com> <0e1b938d-3665-4be2-9681-c835d596aba2n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6344"; mail-complaints-to="usenet@ciao.gmane.io" To: MyriaCore , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBMVTY35AKGQEVLHIXLI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 04 03:34:47 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f187.google.com ([209.85.210.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kE0cp-0001XH-1K for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Sep 2020 03:34:47 +0200 Original-Received: by mail-pf1-f187.google.com with SMTP id h15sf3114290pfr.3 for ; Thu, 03 Sep 2020 18:34:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599183285; cv=pass; d=google.com; s=arc-20160816; b=TrfapUWAWZzZLFfhaXDIasdUi/pJbhqXP0j6EMgsRv5BPl4L/WFOIGqhdEgGrnjLkD YPGlOmVnmT+C+xYfQVtZbDPfmyDLFcID0Ja0rvmtgRSVgqMZa4jWaAaxw8xfRNKiWEcQ e7LsEu6jC/P6YD+QxxYAvYd602ia/wUYMsQyotieoMvaUkM/RVn9XDN8Tr0pwKaGtjXs IYWv8505fetsAJNp9lcBUttK5cpout85P2BnFF3S546264/2S0EDlAkJ6pmIfxJ9sM9Y g1DsE7L0VnHVYImBppF408yXgv5kn6fjtDfXf+tiRVbi+UadVkYXtGERgK+ajDGhwEHe IseA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=cKSGdauRs1kcL6QHG6SSbwuAD+FBQXV2ApgLCeeVtco=; b=YaAmOj/vLDs69KiBE6HqhDE+zT7b3w99SKQ9ndwbC0HDQXBd6YqDFXXGie9kC/zBQh bCEaJZLYVPauURFZXMWRaRKAx80U2E01SOw8x1T4QPWGRSQZ/deUSanY8R6cl6Z0g5Pr kJYuX2cM9kxqpE8csY86Oe74xdjbbrrqTyEiy2ZX/zamxr2VK/vA7BZG06DqGo07owm3 WvydqkaAQy/y2XzqxEmwfZwmoDwmJs4R3H8nCfu8w4az3rh3V2HPVT66JZi/tayrXL61 bTAO9chxu/Te6y4gm7dquhU8HK6RvVZGR+Yn3KuNEtbjTktVH0Mlk2E1/DOGqpVgIPSf YmTg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=aYXfLXSB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=cKSGdauRs1kcL6QHG6SSbwuAD+FBQXV2ApgLCeeVtco=; b=LPFe25yeKdqUdOarfZrHy9qRaAIMzNSTzpVCYawzpzRJ9HpaI2f6QMsAMvd9sVD8gQ 2n5HjIfs0OJo1kAx7z091X7Ka4q+p8rXmH6fhiJNoWsU6cZtnB+MANY9IjlWutbS1F/4 c2hqN67PL5ZQIDlnMFK14xcIMJCzhtEFf0H6sUIc15T6BM3Cx+9Q2lwo5aI3qVyGpd61 d54s99hWQp8ydUHUHm6YO70K+bJJgwUq8ksWy5uK30V0ee6OHsU157Y4ETbxHsFmMfDe ISiNStyH8UgynsIcshIB+pqQiifj3T017CK62tr9XlGQ3TqGwW8gdY/NZ5GX+N6Dra8F Quaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=cKSGdauRs1kcL6QHG6SSbwuAD+FBQXV2ApgLCeeVtco=; b=YOSP9VxMrUZAhEj4VVZhaLHjzJKVH15SqOQlgrx/ju9ly1/m3td094iWQQhFgxENZA fTgv8ZC9IWmKAbmWy4o6jXoJG7URXMmbZg/UcCfVItaNwuTWHzAxCc49ASAqTwDE7vQ4 g15mSZwOd5SiSxKEISV/qYPSCCB60gbK4fpMF+LhlxC8z+v1Tt2pin1Pwky4MtGqJsMf 7j2YceCPVmwu0bkakN6KN8xNvKGv5wz3qkrPv6p0lNxrBvH09IPzWW1nNaFo9uyhWvVg jxVZwHrKTMlXdyRLHXBf/poMsonXa0O9XivesBA3dPXRscfckkA4EYCkUWreOw37j+MV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5337KpqOQPkRghjtdr8l1QmIekcjFwiVOr2Zdku5RoA67gURdoDQ mYmglXJbrtQfG72jaG1jPhE= X-Google-Smtp-Source: ABdhPJwfDNk1NCjnMXUC9i3vmFnq2OZEbHfLcEKgZGf1oaO7VIv4dPSCuajTvkmcbCYPThRsFIHH1A== X-Received: by 2002:a63:c80b:: with SMTP id z11mr4989275pgg.298.1599183285681; Thu, 03 Sep 2020 18:34:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:142:: with SMTP id 60ls3842186plb.9.gmail; Thu, 03 Sep 2020 18:34:42 -0700 (PDT) X-Received: by 2002:a17:90b:1902:: with SMTP id mp2mr5880392pjb.53.1599183281994; Thu, 03 Sep 2020 18:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599183281; cv=none; d=google.com; s=arc-20160816; b=LUHYcQxXLwLaf2AQwSy+xABva0S/BbSAE3X3YSsVLcfq4qEXFUlTWiHigvPc2KkaCs Eh2Spi4yBhPseNcu1Ol/tSU+VopQ41lb8fVqr4kzF081+gGAdvuEgpOqPlk7swd9JZNb BZYLEwuqjFuyI8bup4sQJUGgpXsaK0JC3jnKCAWW+93eJ/GWn83xzjMXuJyfZBbqEY/J 8tZaXflUoGZXadTX6MTptGyKZX8IrL1hB9r0mQsrNMASxeXUkP6UFwdJQy1J+ZlQOweL 1CYC5AZFIKi1zdPOmXeS/VEyjz233Kkjeqm8n57FsDAggfkOpW/0zZbRb2raLSaYsfbl 2pag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=bT4Icdxsh6YYlN1WJIzYNEQKIOE3Bz/yqZ9dKpHuKPk=; b=bEf+pf8StzFfuDS/rJEy1ykmcCwVKe0gB8aFFgasLFSVewpvTJK8eAkOqdB4HdKru2 4Bm2R6nUkYGBfaY5ZnP6U2kbhv+m7ZAsI0gWIdm4PI5kuZT5qZAZKuGuir4WBV6JK03C WIdgvb76aJ5kr/5pYN1zDXzR2Z4wcQoVd3tjwH25n7ROIpSfls+539CynuOcbpGanoRc VXNrYzuC1S2dTroTlp69KUXHhyXZnZi3ONdSZQCq4+whp3yAhmHHOYU5fXQHBToNNpNp UlQ89oVvpU24RU+wGp9spQDM5AiWDiEEtUx07cnAiAQBrmg2FtQn08ZMF5Q4oCDsGVzj gMRA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=aYXfLXSB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com. [2607:f8b0:4864:20::52b]) by gmr-mx.google.com with ESMTPS id bj6si276888plb.4.2020.09.03.18.34.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2020 18:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) client-ip=2607:f8b0:4864:20::52b; Original-Received: by mail-pg1-x52b.google.com with SMTP id u13so3506064pgh.1 for ; Thu, 03 Sep 2020 18:34:41 -0700 (PDT) X-Received: by 2002:a62:53c2:: with SMTP id h185mr6351366pfb.53.1599183280863; Thu, 03 Sep 2020 18:34:40 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s23sm3520260pjr.7.2020.09.03.18.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 18:34:39 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7AEEAA2A1; Thu, 3 Sep 2020 21:34:28 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=aYXfLXSB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:26060 Archived-At: I haven't tried --self-cotained with katex. With mathjax, it doesn't really work, although see https://github.com/jgm/pandoc/pull/6600 which ALMOST works (everything except the fonts). You'll just have to try it. The main problem is that if the script loads anything dynamically (with JavaScript comands), pandoc won't be able to bring it in. MyriaCore writes: > In the future, is there a way to support `--self-contained` (not=20 > `--standalone`, I misspoke) with katex at all? This still doesn't explain= =20 > why it worked on my laptop, but not on the gitlab runner.=20 > On Thursday, September 3, 2020 at 4:49:07 PM UTC-4 MyriaCore wrote: > >> oh my god, im gonna jump off a cliff >> >> It was literally the `--standalone` switch breaking everything. I'm so= =20 >> dumb lol >> >> NVM, thanks guys >> >> On Thursday, September 3, 2020 at 4:34:22 PM UTC-4 MyriaCore wrote: >> >>> Alright, so the all caps README.html is the locally-generated copy, and= =20 >>> the lowercase readme.html one is the one that the gitlab runner=20 >>> generated.=20 >>> >>> I=E2=80=99ve been looking for a few differences, I=E2=80=99ve found a f= ew more: >>> >>> - the locally-generated copy doesn=E2=80=99t include the \[ \] brack= ets in=20 >>> the text of the math display span=20 >>> - the locally-generated copy seemed to include a script that the=20 >>> runner-generated one didn=E2=80=99t have (this is almost certainly a= problem): >>> =20 >>> >>> =20 >>> =20 >>> Really not sure why this is happening here, and not locally on my lapto= p=20 >>> but >>> On Thursday, September 3, 2020 at 4:15:19 PM UTC-4 MyriaCore wrote: >>> >>>> Hi all! >>>> >>>> I=E2=80=99m really struggling setting up gitlab ci/cd=20 >>>> to render with my=20 >>>> notes. Everything works perfectly when I generate the html locally on = my=20 >>>> laptop, but the gitlab runner / pages copy seems to have perpetual iss= ues=20 >>>> that my laptop really doesn=E2=80=99t seem to have.=20 >>>> >>>> The bug I=E2=80=99m experiencing is that my math is displaying *twice*= - once=20 >>>> in a semi-formatted way, and again beneath it, without any coherent=20 >>>> formatting whatsoever: >>>> >>>> When I took a peek into the head, I saw that katex=E2=80=99s scripts a= nd styles=20 >>>> *did* seem to be present, but for whatever reason, they don=E2=80=99t = seem to=20 >>>> be running. In my local copy, I have fonts and styles associated with = the=20 >>>> katex-html element that just aren=E2=80=99t even there with the katex-= html one=20 >>>> served up by gitlab pages.=20 >>>> >>>> This is the command I=E2=80=99m using: >>>> >>>> pandoc --from markdown --to html5 \ >>>> --self-contained --standalone \ >>>> --filter pandoc-plantuml \ >>>> --filter pandoc-mermaid \ >>>> --lua-filter gitlab-math.lua \ >>>> --lua-filter fix-links.lua \ >>>> --katex=3Dhttps://cdn.jsdelivr.net/npm/katex@latest/dist/ \ >>>> --template=3DGitHub.html5 \ >>>> $(MARKDOWN) >>>> >>>> I=E2=80=99m not sure why this is happening on the runner, and not on m= y laptop.=20 >>>> This is something that I=E2=80=99d really like to have working by the = end of the=20 >>>> week.=20 >>>> >>>> It=E2=80=99s clear things aren=E2=80=99t being incorrectly parsed (for= example, by some=20 >>>> of the wonky filters=20 >>>> = =20 >>>> I=E2=80=99ve setup), since the raw test output appears to be doing thi= ngs=20 >>>> correctly. For example, this: >>>> >>>> {{m+n} \choose m } =3D \frac{(m+n)!}{m!n!} >>>> >>>> =E2=80=A6 is translated into this, when output to stdout: >>>> >>>>

\[{{m+n} \choose m } =3D \frac{(m+n)!}= {m!n!}\]

>>>> >>>> The only big difference that I=E2=80=99ve been able to spot is that on= the pages=20 >>>> copy, when viewed through a web browser, there seems to be a weird=20 >>>> classless span between the math display span and the katex-display=20 >>>> span. Maybe this is preventing the script from recognizing the katex= =20 >>>> structures? Either way, I have no clue how to prevent this from happen= ing,=20 >>>> or why it=E2=80=99s even happening at all. >>>> >>>> Any insight? Thanks so much! >>>> >>> > > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/ba631a7b-0fc3-4964-846b-2583a707c850n%40googlegroups.com. --=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/m2lfhqwcij.fsf%40MacBook-Pro.hsd1.ca.comcast.net.