From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32826 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Schemata - Can I use the output of tex markup both in PDF and HTML? Date: Thu, 15 Jun 2023 16:43:30 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000048446205fe2c18bf" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5794"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBIOHVSSAMGQE3GHHSSQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 15 16:43:51 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f186.google.com ([209.85.215.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9oCU-0001JS-S7 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 15 Jun 2023 16:43:50 +0200 Original-Received: by mail-pg1-f186.google.com with SMTP id 41be03b00d2f7-5488e2d5100sf4016517a12.0 for ; Thu, 15 Jun 2023 07:43:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686840229; cv=pass; d=google.com; s=arc-20160816; b=eLCqQGCuBYnKjCHvIPMV6eV7sB0mKJGh0EzB20tK/l7TmKyP5WLLZw4PhP7Iq+sez8 SnpdIMFL/BQWYr/sPVDrawgW4KlAREjbOqH6yUlV2lNIC0XG1lX4uHWCtVRMBvlZ9C+o 9HN5Os6E9VhDbQGksfT/iWiEP20F4rgy+FwDPJMSLahOXpGGSMLFh4pCmdW330MfDprs XEWnac5TC50QfGIAX7Rzf9s3GnHUF/TnZIr0i1rJHHcyQ46nOBBEUJCKYU8s+eeIxzal eZRsNUijwqXn9zdc5XMK2EEMkeQMLZ067T5n8Hyqx77tbwG8sXUQ24cLjCtvdA2XZeFn jAYA== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=X7BHddI7xk7KhTM8IVDB4ffSgI2K/C6CvJ/6ewBA5Gc=; b=Z/E9pCL1i+FocX1XEgCMKzR07bw/M6v2bqMPvjIki0AqN1QlJC2i8tx5Bm3BTkAMXz JT/OFm8bC8pvFaG+p552Vl17xQ1Uno3aEta5sz+Ds6aAHCrToZ231hOJHJ/OmJa5XZcl SXTmA0WwKQYX8zzFZIFIjovaUCCjOI0L70Kw/fbR4kStopLRJ6D1GMTrvYFTJOuW3YOO sYnwxwQTJYI6GR34MV+jcqemB/izMxTeDD7SRHJ5DHY3cWUuYricJ5UlHcwLbsU4yPrp Dwl0NgQuE37PJu+qKVkjWVeI3pYCMRKKlXcVNc6oNe2t2E9lZwavP7u7RLtKc3XY0bhK cA9Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.178 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686840229; x=1689432229; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=X7BHddI7xk7KhTM8IVDB4ffSgI2K/C6CvJ/6ewBA5Gc=; b=Y2g28iaYLaqSo6BkhFG6nBmQghM2LjruAgQDaH/O0BmnkjJqhuHlS67ChZB7T3SKNd aNh7Rv3eHNJhE/HCx3z9mUiMx22tQYL7Smv4/lJ6wtK0nZLo08sfLYrFf+K+7rLuKOke m2lTCSaLKFDiZnW7StovZXiWdqH7Fqhs6KSKyRwkrqRo7Ja3gWJuOy52mq/nOLECs56V HAI8UkTP6BC1v5IZVqm0ieegRv1IoiKclHp9PVd59Q78y47SbAhg6g2j21mmxqMkqJqX Nb1jA+/5WpdhIWYAc/zmmRre8c9UPZqvPmJyQIHFNNHVnRNpdZnh5aljwW4pNuQ4W30V X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686840229; x=1689432229; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=X7BHddI7xk7KhTM8IVDB4ffSgI2K/C6CvJ/6ewBA5Gc=; b=iuTP0Qj5CRCsneJ61O+HryjGxA39zroTfWKYCNJII/EJo+OmOHp32ffp6fNNlYhFXv wIjs1XceALg304zb1axVc7Nfz9t+ZIz8VulrEgp/pnC2ZlKtNKMYzK20DuCsV4HzD72o SxYbXBrLpprdBnuii5S9SJGNF0+L6OW1+KNiKXTYYJjF1xBcFOu+iHUJzyWbJr7yzJJh mIvcLHucRDOJUB+K2mkyKvwXZujIwmHA3Cpdw7YCuQbZe50AjDxZo42C5niHOiFDiWcK WxsYZg Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyqQ6HPEUg+15GzfpTdRVrKCqCd4YEp/ytLJolXv6phR7s6zYvz 923x4GoPv0GYQ6QByQr8YPg= X-Google-Smtp-Source: ACHHUZ4NX7LRhQYuvEE9r8PlWScuzkmd7xc7XxaBDVkwUqSmOBHDWwDj6L5KZ+jFMTqWPL1dkyONgw== X-Received: by 2002:a05:6a20:c197:b0:11d:d636:21f1 with SMTP id bg23-20020a056a20c19700b0011dd63621f1mr4120807pzb.57.1686840229297; Thu, 15 Jun 2023 07:43:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:8202:0:b0:666:6c01:1272 with SMTP id w2-20020a628202000000b006666c011272ls1244780pfd.1.-pod-prod-02-us; Thu, 15 Jun 2023 07:43:44 -0700 (PDT) X-Received: by 2002:a05:6a00:16c7:b0:665:7f27:dbb8 with SMTP id l7-20020a056a0016c700b006657f27dbb8mr5801030pfc.25.1686840224245; Thu, 15 Jun 2023 07:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686840224; cv=none; d=google.com; s=arc-20160816; b=0pnkpzNzMEg3DPMn2tmpH1dt6GXhzxX8HwODz00OVj5XTpLYiLhEgu2Ku948WyTE6h AQlhESzi+Hb61fCd2nOzHhsh8yHn3VxysNUlXQzQW8naj2MN8wZ2c4PFN0WxNWlKL6ZK 5NRaq+kTl0RNd81DMCi255+oGDXq63UX27hw0AGO8oUZylAhld9BIIBB0LLkBT4W/cMw Js7yGiPYg+rauFxsY69ZR0WT4xoJ9chkvViwLO2IIADiRW6/0FV05Y9S5goVuYgKIbxJ nkFkJzwr868VCtWnQCaJMFeVmtQkZM5DLXBe5et8OWkxo8voUA6mQh9IptBjoStH0RgV qPYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=gPX8TVmXctjkzeNe5oJc/9ZzwYaXj2vHdaxu0pYRqsA=; b=eo8/51Gl59pS4Oo/R8hA8YDb4sAXRCSP5I7eSa6YFLaOJ1VHwBIKGUB2kFQ4jlKv2h oGoxjR4aGjgQm6KqRpRqmrUi+SAOLF40+8HHF1dAULMByfQsaHrsbJALnE8/vBcdQl04 AK0VqkQhvZANel+XOfPiUfrCwq5TdfieUM/Rc3Dce+K4Ws3WDxw2eu4jM92N4/Zo/KSO pFa7Kp0tkrhVzYs/UHn3ZWVFrn8IFCMsrjOd4+8EeFdQ6wGbyp4b7HlADjtNCHRnEDM3 C1cPEHDMgrw468gkLyYTPL52G5ahifE45e4UT6UTrr/o45+ykBNAzUPeRCmYONXErXqg IP/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.178 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by gmr-mx.google.com with ESMTPS id g2-20020a056a0023c200b006574abc962bsi1535564pfc.0.2023.06.15.07.43.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 07:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.178 as permitted sender) client-ip=209.85.219.178; Original-Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-bc476bf5239so1829551276.2 for ; Thu, 15 Jun 2023 07:43:43 -0700 (PDT) X-Received: by 2002:a25:d2c8:0:b0:bc7:ec33:c59f with SMTP id j191-20020a25d2c8000000b00bc7ec33c59fmr4821700ybg.47.1686840222957; Thu, 15 Jun 2023 07:43:42 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.178 as permitted sender) smtp.mailfrom=melroch-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:32826 Archived-At: --00000000000048446205fe2c18bf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den tors 15 juni 2023 15:47Bernardo C. D. A. Vasconcelos < bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev: > Hi everyone, > > There is a TeX package called Schemata to > aid in creating =E2=80=9Ctopical schemata=E2=80=9D, i.e. "outlines that u= se braces (or > facsimiles thereof) to illustrate the breakdown of concepts and categorie= s > in Scholastic thought from late medieval and early modern periods". > > I would like to add the markup to create schemata to the markdown files > and then have them output the results in HTML and PDF. At first, I though= t > this would be simpler, thanks to the parse-latex filter > , but it isn't the case because > the package needs to be loaded. Is this currently possible with the alrea= dy > available tools (filters, etc)? > That filter doesn't run latex, only Pandoc's latex reader, and you will in any case need to convert latex PDF output to an image format which can be used in HTML documents. What you probably could do is to have a filter write the contents of raw latex blocks to a file using the standalone class, call latex via one pipe and then pdf2svg or ImageMagick through another pipe to obtain an image which you can include in HTML. Or probably easier: include the LaTeX as code blocks with a class and a filename attribute. Then have two filters: one for LaTeX output which converts the code block to a raw latex block (which is super easy) and another one for HTML output which writes the text of the code block to a LaTeX file .ltx then replaces the code block with an image element with .svg as source file. Then after the pandoc run you use a Makefile or a script to run latex on the printed-out files and convert the PDF files to SVG/PNG files with the right name. > Thanks, > Bernardo > > -- > 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/msgid/pandoc-discuss/ca67b3d3-5d49-4c05-9fdf-= a8836d39df33n%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/CADAJKhA11jF4h%3D3DrACL534%3DhKWCbxJao-EC26z4cn_11zPShw%40ma= il.gmail.com. --00000000000048446205fe2c18bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tors 15 juni 2023 15:47Bernardo C. D. A. Vasconcel= os <bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi everyone,

There is a TeX = package called Schemata=C2=A0to aid in creating =E2=80= =9Ctopical schemata=E2=80=9D, i.e. "outlines that use braces (or facsi= miles thereof) to illustrate the breakdown of concepts and categories in Sc= holastic thought from late medieval and early modern periods".=C2=A0

I would like to add the markup to create schemata t= o the markdown files and then have them output the results in HTML and PDF.= At first, I thought this would be simpler, thanks to the=C2=A0parse-latex filter, but it isn't the case because the p= ackage needs to be loaded. Is this currently possible with the already avai= lable tools (filters, etc)?

That filter doesn't run latex, only Pandoc= 's latex reader, and you will in any case need to convert latex PDF out= put to an image format which can be used in HTML documents.

What you probably could do is to have= a filter write the contents of raw latex blocks to a file using the standa= lone class, call latex via one pipe and then pdf2svg or ImageMagick through= another pipe to obtain an image which you can include in HTML.=C2=A0
=

Or probably easier: include t= he LaTeX as code blocks with a class and a filename attribute. Then have tw= o filters: one for LaTeX output which converts the code block to a raw late= x block (which is super easy) and another one for HTML output which writes = the text of the code block to a LaTeX file <filename-attribute>.ltx t= hen replaces the code block with an image element with <filename-attribu= te>.svg as source file. Then after the pandoc run you use a Makefile or = a script to run latex on the printed-out files and convert the PDF files to= SVG/PNG files with the right name.



Thanks,
Bernardo

--
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-discuss+unsubscribe@goo= glegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c= a67b3d3-5d49-4c05-9fdf-a8836d39df33n%40googlegroups.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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhA11jF4h%3D3DrACL534%3DhKWCbxJa= o-EC26z4cn_11zPShw%40mail.gmail.com.
--00000000000048446205fe2c18bf--