From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31491 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Marek Stepanek' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: missing figures in latex/pdf output Date: Sun, 2 Oct 2022 09:01:24 -0700 (PDT) Message-ID: <6e4901ec-64bd-4d19-a532-2dde1f315900n@googlegroups.com> References: <1AF44C44-B3C7-4872-BA10-980739F20F72@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3642_1474862860.1664726484010" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5660"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD6M3P4AXQHRBVPL42MQMGQE253PLTA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 02 18:01:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f61.google.com ([209.85.160.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1of1PE-0001PQ-Pp for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 02 Oct 2022 18:01:28 +0200 Original-Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-131cd8d53b3sf5684833fac.11 for ; Sun, 02 Oct 2022 09:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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; bh=GVzlq49DAQDMFQmdC094WVD+MeDcBDHiS4FmAsiUftU=; b=GXZ/RZ+iAuEV6OcOCpQphYGX4CPdcaLS7aBZOpZRMM+Q/rSIZPqjTeNmCLr39d2aZM 28wvS67yfPmL+r3hq6LaD82nGl7lRgRon2xZ/6ON2+WfR7KkWyPnJ7y3IjwrTiC71MNI haIRy2BWesyzae3ZTHurLN/X7/EsLp8WvAN7Kks0oUwf33Ihz1MNvhnhfdUwT7i30Fbb ZNe9JWehJhQdK4gaGCgBoh4SejEQH8v3F8PFqev6rt3nBDgvqQptyQ/N+krwCEiBNkal WKhCQXkq2z1w60kskR2FYtzwQSjL1buoLL+91z1KxY7ew+SVPGT7OXy9b51LyTFyW2av 7e6w== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=GVzlq49DAQDMFQmdC094WVD+MeDcBDHiS4FmAsiUftU=; b=wWy7rPR2hSNeXZg0PZkb6BFwyNY0a81KAFO2f2HH3Jk2T/MbdnHhWzKOaez2kA73J4 w6Yrue1nOaGED5RAthJ7aR3awsemsHxCpXVSnCLCMFtDzRLEKsme2w2YNE2U24l6aMpd Z0ElNSUxaO7kJFmKJ0KeX9m62P6FqbSZWObKkZ1FFBFtQi9oPxiJ2WiK4fXGVleqyVQX /4cIVn7ZAD09iGjLfadHs7QalAafpioQ2FcHNlX97aN4wGILfXYITh8ArP/bpbRoKiqz m3hK8TqLDcpKtSZZOg6zj4lLI5hN6bCYu0cZXDsiFlgiHWTQKLwbJrorg6xkMA3Oe271 LzeQ== X-Gm-Message-State: ACrzQf3CPEUknUvXEdfpv7xiP8Ngtrz0gQ6vzkQZN2jD4Ui0gp8pGKne yd/lW4hbc7VqDlYhUI4c+2A= X-Google-Smtp-Source: AMsMyM7owTFdcsxKB6Do8kKgMwKlRrYmdwPiom/kQ0XcxMTgAepEPoi/PuO8CNu35oeq2tmxlTYseA== X-Received: by 2002:a05:6870:785:b0:131:e39c:9140 with SMTP id en5-20020a056870078500b00131e39c9140mr3473628oab.261.1664726487573; Sun, 02 Oct 2022 09:01:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:9886:b0:12c:5f71:73d7 with SMTP id eg6-20020a056870988600b0012c5f7173d7ls2844193oab.10.-pod-prod-gmail; Sun, 02 Oct 2022 09:01:24 -0700 (PDT) X-Received: by 2002:a05:6870:a913:b0:12c:55d6:968 with SMTP id eq19-20020a056870a91300b0012c55d60968mr3523719oab.244.1664726484800; Sun, 02 Oct 2022 09:01:24 -0700 (PDT) In-Reply-To: X-Original-Sender: mstep.germany-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: Marek Stepanek 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:31491 Archived-At: ------=_Part_3642_1474862860.1664726484010 Content-Type: multipart/alternative; boundary="----=_Part_3643_394469352.1664726484010" ------=_Part_3643_394469352.1664726484010 Content-Type: text/plain; charset="UTF-8" You my surround your html code ind your markdown document with: ```{=html} html comes ``` I do it in my markdown files often with LaTeX snippets, for example if I need a picture with text floating around: ```{=latex} \begin{wrapfigure}[12]{l}{2.5in} \centering \includegraphics[width=2in]{pix/portrait_troeper.jpg} \end{wrapfigure} ``` Best greetings marek On Wednesday, September 28, 2022 at 5:49:04 PM UTC+2 Antonio Piccolboni wrote: > > > > On Sep 27, 2022, at 11:04 PM, John MacFarlane > wrote: > > > > > > > >> On Sep 27, 2022, at 8:41 PM, Antonio Piccolboni > wrote: > >> > >> 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 > html 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 > markdown is not in keeping with the format definition according to my > assumptions. That said, markdown doesn't have an official standard and I > may very well be wrong. > > > > 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 > approach would be equally consistent with the original. But the literal > passthrough approach is what we stick with, for a number of reasons. > > > > The main one is that HTML is strictly more expressive than what can be > represented with pandoc's types. Allowing HTML in markdown was a way of > avoiding 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 > something (although over time pandoc's types have gotten more expressive, > they are still not as expressive as HTML). > > It makes sense. > > > > >> In my specific case the solution is to use just markdown as Martin > suggested. The reason I had switched to html is that, for some reason, the > calibre epub viewer ignores the caption when using the Markdown syntax. > Apple books 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! > > > > You could use a filter to generate special HTML from pandoc figures, for > HTML output only. > > > > Note also that pandoc's markdown includes syntax for sup and span. > > > Thanks, my bad for not RFM. > > > Antonio > > > > > > > > > -- > > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/-yzmZBWG818/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/ADAB9DB0-E0D5-4933-A83A-589C7EF14F61%40gmail.com > . > > -- 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/6e4901ec-64bd-4d19-a532-2dde1f315900n%40googlegroups.com. ------=_Part_3643_394469352.1664726484010 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You my surround your html code ind your markdown document with:

```{=3Dhtml}
<your>html comes</here>
```

I do it in my markdown files often with = LaTeX snippets, for example if I need a picture with text floating around:<= /div>

```{=3Dlatex}
\begin{wrapfigure}[12]= {l}{2.5in}
\centering
\includegraphics[width=3D2in]{pix/portrait_troe= per.jpg}
\end{wrapfigure}
```

Best greetings=


marek

On Wednesday, Sep= tember 28, 2022 at 5:49:04 PM UTC+2 Antonio Piccolboni wrote:


> On Sep 27, 2022, at 11:04 PM, John MacFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
>=20
>=20
>> On Sep 27, 2022, at 8:41 PM, Antonio Piccolboni <picc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>=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 html when markdown syntax is not enough. It was the backstop tha= t made it easy to pick markdown without future regret. So not converting t= he html in markdown is not in keeping with the format definition according = to my assumptions. That said, markdown doesn't have an official standar= d and I may very well be wrong.=20
>=20
> Well, original Markdown.pl was just a markdown -> HTML converte= r, with no aspirations to support any other formats. So the HTML was passe= d through literally to the output, and that is what we still do. I think e= ither approach would be equally consistent with the original. But the lite= ral passthrough approach is what we stick with, for a number of reasons.
>=20
> The main one is that HTML is strictly more expressive than what ca= n be represented with pandoc's types. Allowing HTML in markdown was a w= ay of avoiding expressive limitations; if you want to do something fancy, y= ou can pass through HTML. If we parsed the HTML and re-rendered, we'd o= ften lose something (although over time pandoc's types have gotten more= expressive, they are still not as expressive as HTML).

It makes sense.

>=20
>> In my specific case the solution is to use just markdown as Ma= rtin suggested. The reason I had switched to html is that, for some reason,= the calibre epub viewer ignores the caption when using the Markdown syntax= . Apple books doesn't have this problem. So I will just ignore the cali= bre viewer. I had a few other uses for html tags like sup and span, but I c= an work around those, mostly. Thanks!
>=20
> You could use a filter to generate special HTML from pandoc figure= s, for HTML output only.
>=20
> Note also that pandoc's markdown includes syntax for sup and s= pan.


Thanks, my bad for not RFM.=20


Antonio



>=20
>=20
> --=20
> You received this message because you are subscribed to a topic in= the Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/-yzmZBWG= 818/unsubscribe.
> To unsubscribe from this group and all its topics, send an email t= o pandoc-discus...@googlegroups.= com.
> To view this discussion on the web visit ht= tps://groups.google.com/d/msgid/pandoc-discuss/ADAB9DB0-E0D5-4933-A83A-589C= 7EF14F61%40gmail.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/6e4901ec-64bd-4d19-a532-2dde1f315900n%40googlegroups.= com.
------=_Part_3643_394469352.1664726484010-- ------=_Part_3642_1474862860.1664726484010--