From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31479 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antonio Piccolboni Newsgroups: gmane.text.pandoc Subject: Re: missing figures in latex/pdf output Date: Wed, 28 Sep 2022 08:48:58 -0700 Message-ID: References: <1AF44C44-B3C7-4872-BA10-980739F20F72@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="2320"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC4KDA7JYIPRB3OZ2GMQMGQEWBJ5TJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 28 17:49:05 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1odZJ3-0000Ra-8E for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 28 Sep 2022 17:49:05 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id u7-20020a0568301f4700b006540f740af1sf6196557oth.15 for ; Wed, 28 Sep 2022 08:49:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664380144; cv=pass; d=google.com; s=arc-20160816; b=tb9EgYV61ygY2xr7giFZmhD6tnnEfyTq21avrCZS7VXA5avtISM18EA3Pt8IiOsRnH zUqR//j3Ra6bp5ZzPcSKUyPkaZ7NbgtANXtaEmu8TuLSPEhrJG2VmJ+WmZ8j/xDkqfBd 5c7cDbTf+QKhThrIoxHlTLZs1rURvnkaeuiqbUBupsWnmsMQR4k8XOaDAFVhlnn4K9bq f9dR3Z8jYBCRNA2WCw+SK8nIARfBBOdwtTTxK19zKDXAbmDwd1jD0Ai37/RyNooLXxkI K2MPTSRwtFBbOUaPInupBXmWZiiyzUhWrgGMTqGY2MxGU8eoydV0k6wl2fyO7f8J/CEC DqiA== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature; bh=CsvDioP1WEaXMUxo4ipQMFq9fH//Zay2GzSHTZctzlA=; b=XHafTQ7P8dyVDzUVhQajcYvmOrDb0PkGD+Wva3gNcm/wQrXI42OMifmwWgZ7cMzBBH KSL+MOTOjCVEWm/wIwblrOm8jrsjPlCQHxDGBCYvwbhZ9kei7HFwYIPpSwetYVJhgil4 VgTcamC+dvQF35znPkZtTsZYAhKhrnfV7F/Ok6FKFaVmXsTALjyJmgyKAD4Ck6hUz6cI hpuZsma3VYOoIB+3WTB/+Mm9M6EK83RLu5+Tx+maIUZ/1CATIJGgSBC3baJB/JOtIC1u Wg+1MAU/4zILl4ZCrpZb9ttahGZmQLOODOoTO5KZCL2SUkW+XpbqtfLnnDcwXxKUytg2 slMw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZDq9TAgA; spf=pass (google.com: domain of piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date; bh=CsvDioP1WEaXMUxo4ipQMFq9fH//Zay2GzSHTZctzlA=; b=BADw/6baCLtxa7B1Zk2Eum8sBjl/2JejBOMNhb0rszzmm6or0L1U6vCBGrVS9grqdA 38FLlEIHDHhvGNIUWp+tbdCm4uRsmPdOvd6wr9O/JIo6mcxrdA9Ko/I2gnA+QM6n2pag 2b2MdENEwaXOdR+jBd/OkGwQt6LM+JyEybbR1ZkHwCIex2hiAU3qHTp1hjyM9KtCft9Q HsXN1/vr53VAsjmloxiZaUgsG/QAzPlX2zuGL/butOCYmf90DcgjeZuhXCxAOAitnd4q gdcgpHaES6gG7EcsUS9gFbyYhuY0F8vPpkoN3KMk7jx7DU+11VSpwMJwv5483ivNv9WI GoMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date; bh=CsvDioP1WEaXMUxo4ipQMFq9fH//Zay2GzSHTZctzlA=; b=ApmHdRcmGdIce6gcy5xEzRnGSMca30G8aBh9HA9tW+d3iR2ZxwoNbSU+JoEPRvDKRI Cd2Vkc8X2E2d63KT9M2InpIWt8uVcf3I8pcIRSxkKIMYbHJa6iW9l0PqJ0capwdooPB6 kMlHiaMw+d1b8NbDUbtIez+tY+5lr5Tp5F7Efm/82rF1oeOPRwN9WOzc1Y7hv02Nfx1R bnZV1OFMZLDnsiVRuXZfBQHJS0UeDjglsiUTscj2a+ilkSoeCq6IK8fjwEObQr6anvHa oZIPZmBvxkgJ8R7HKeOnZH2LUZRKdKUBpIRBRb1o X-Gm-Message-State: ACrzQf2zRu08ViPqyPE4J/wSyr54t9/3copo4hyasZ0W5TTcIZyVeyj2 00bfcQM/p97uT4lZKvC3W1k= X-Google-Smtp-Source: AMsMyM6dm8SE8+iJGPl6B7xoenc794ZGH01hJUKTMXg7D+rpAlKwKJv65RZeSJGnbJNhukWQHGCCGw== X-Received: by 2002:a05:6870:d0c9:b0:12b:f19d:67f1 with SMTP id k9-20020a056870d0c900b0012bf19d67f1mr5534581oaa.9.1664380144113; Wed, 28 Sep 2022 08:49:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:2926:0:b0:61c:e180:124e with SMTP id d35-20020a9d2926000000b0061ce180124els970312otb.7.-pod-prod-gmail; Wed, 28 Sep 2022 08:49:01 -0700 (PDT) X-Received: by 2002:a9d:6258:0:b0:655:f63e:8e6d with SMTP id i24-20020a9d6258000000b00655f63e8e6dmr15100689otk.166.1664380141131; Wed, 28 Sep 2022 08:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664380141; cv=none; d=google.com; s=arc-20160816; b=Xded5Tb5h78+ORcfPyF8lEb7E0uSw7XpSG2aQn5hGwAZM9lZZzqtmNFSThytx4JIzu BgM4zgBwyzn1UJVo20vP6Aw2UXchy1ICqeawe8uJ3v+kkwY90zkhEfN9q3K3vKUIwmLj Ly2Vbnt1OHWnbE9L1+MPvq7LYt8kK4c5SMJ51xz8dZLPD6YhOKYxwo7Xs8TMqir7cikq 83fZfafBGXah8PHT9wDjdjOP8S+JQc3BHToPF1NW+IyGF+TvNn9Rvj++mq7MfkenzBRU e0EcrsdWro7qHS4wSOQL9wACuFrjUXXTzv6+sYatDgAEbFaxXjjfz/ZdsqKVQKc62/ic KDlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:dkim-signature; bh=Kr+UkORTueiQb76PwuKD5Bvv0vu8uydXrsPgF6H+R4o=; b=qhixiJc6U8ThuxJAyrGZxjYRvdOO6vPolVcrpOrh596wv8ZFBWFK5rn1OBGsdHpbrR /+v5dTF6OC5a7dWVHOvKcR0O9/kFjwfSjqLzwqrSLEKbjUsRoyclZqPgN7KAvTPMrlCS t4GdaRB0pzFwbJCRftHCkOGt1EZL72Evn7Lf+XtBz5aoYyZhxdtztrusoMxQ+LSrLTiR 5AjvGs24at11FKMfjcCs/bwSAs4b7QYsnXKtnL4SugMdrc1mbfaysx0NI3BbZYg+uwO4 LxhvU1ibsg6eA+CFhWUQppq1m87a/nhCvc2dX5yTyY2eYxBUM7woChY7Hzf8ReeXwJyt 3ZGg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZDq9TAgA; spf=pass (google.com: domain of piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com. [2607:f8b0:4864:20::634]) by gmr-mx.google.com with ESMTPS id u12-20020a4ad0cc000000b00476778e657asi143778oor.1.2022.09.28.08.49.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 08:49:01 -0700 (PDT) Received-SPF: pass (google.com: domain of piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) client-ip=2607:f8b0:4864:20::634; Original-Received: by mail-pl1-x634.google.com with SMTP id x1so12101464plv.5 for ; Wed, 28 Sep 2022 08:49:01 -0700 (PDT) X-Received: by 2002:a17:902:900a:b0:178:77c7:aa28 with SMTP id a10-20020a170902900a00b0017877c7aa28mr441802plp.3.1664380140199; Wed, 28 Sep 2022 08:49:00 -0700 (PDT) Original-Received: from smtpclient.apple (142-254-84-157.fiber.dynamic.sonic.net. [142.254.84.157]) by smtp.gmail.com with ESMTPSA id h1-20020aa796c1000000b0053e607a6bf0sm4109447pfq.43.2022.09.28.08.48.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Sep 2022 08:48:59 -0700 (PDT) Original-Sender: Antonio Piccolboni In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZDq9TAgA; spf=pass (google.com: domain of piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=piccolbo-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:31479 Archived-At: > On Sep 27, 2022, at 11:04 PM, John MacFarlane wr= ote: >=20 >=20 >=20 >> On Sep 27, 2022, at 8:41 PM, Antonio Piccolboni wro= te: >>=20 >> Until now I had assumed that markdown was a superset of html. It wasn't = a pandoc extension, it is what the Markdown format says: you can mix in htm= l when markdown syntax is not enough. It was the backstop that made it easy= to pick markdown without future regret. So not converting the html in mar= kdown is not in keeping with the format definition according to my assumpti= ons. That said, markdown doesn't have an official standard and I may very w= ell be wrong.=20 >=20 > Well, original Markdown.pl was just a markdown -> HTML converter, with no= aspirations to support any other formats. So the HTML was passed through = literally to the output, and that is what we still do. I think either appr= oach would be equally consistent with the original. But the literal passth= rough approach is what we stick with, for a number of reasons. >=20 > The main one is that HTML is strictly more expressive than what can be re= presented with pandoc's types. Allowing HTML in markdown was a way of avoid= ing expressive limitations; if you want to do something fancy, you can pass= through HTML. If we parsed the HTML and re-rendered, we'd often lose somet= hing (although over time pandoc's types have gotten more expressive, they a= re still not as expressive as HTML). It makes sense. >=20 >> In my specific case the solution is to use just markdown as Martin sugge= sted. The reason I had switched to html is that, for some reason, the calib= re epub viewer ignores the caption when using the Markdown syntax. Apple bo= oks doesn't have this problem. So I will just ignore the calibre viewer. I = had a few other uses for html tags like sup and span, but I can work around= those, mostly. Thanks! >=20 > You could use a filter to generate special HTML from pandoc figures, for = HTML output only. >=20 > Note also that pandoc's markdown includes syntax for sup and span. Thanks, my bad for not RFM.=20 Antonio >=20 >=20 > --=20 > You received this message because you are subscribed to a topic in the Go= ogle Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/-yzmZBWG818/unsubscribe. > To unsubscribe from this group and all its topics, send an email to pando= c-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/ADAB9DB0-E0D5-4933-A83A-589C7EF14F61%40gmail.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/C357174C-A074-4646-9149-B3102B6FAB8F%40piccolboni.info.