From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23410 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Adam Rice Newsgroups: gmane.text.pandoc Subject: Re: conditional image format Date: Mon, 9 Sep 2019 12:14:38 -0700 (PDT) Message-ID: <80e0a263-9adb-4044-b03c-c7b13cb7813e@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1453_423319088.1568056478183" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="57930"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDSNV5OC5IERBH6J3LVQKGQE6UNOLSY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 09 21:14:46 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i7P7Z-000EoT-8l for gtp-pandoc-discuss@m.gmane.org; Mon, 09 Sep 2019 21:14:41 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id f6sf3235128oti.9 for ; Mon, 09 Sep 2019 12:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Bqf019noo37B6cshOIvzEb7lMSPHbFVN49Aqeq1dLC4=; b=PlhAWR4EaAqumnuVdl1ZueFFuzWpbFq05M1Y7SEooDBLERsA5IVi6TwuEbP0A66moR UmtydmrHb2gN35puHStsn8AJvIy88KvhWmLa6O51yVnW/iQe4VQbzo+C57f2JXtjtz+e 7YI7dCOgKU8zy8T0bnhEoW7AnBpvCoEZk+auGaCqlyenMI6L60luDk7R5K9GvZZNsRdI Y3PsgX6rTDVTPe2CTZc/glybKm/LFBzMywV2ovhPtorMuzZ5fJm9o85uzO3d+MYP3b18 JLKh0A/zgjBckyzYtV6tBXf+xTebRKLEJJAzm569tHAjt5Rpeu/NgZtHZQbQy98LGJj0 dzFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8stars-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Bqf019noo37B6cshOIvzEb7lMSPHbFVN49Aqeq1dLC4=; b=RP/qv6ZW4llyfU+bs9YwJf8iOfyPfQo0DrmULALF5LI/Yd85gcf9BcPLlKTQqWSbfC 2yGeXAutNzpseXp7E1+Z3ODhgE+4NqBb6H3eT/WD3APl20YRLSU3IkPf8lMCRdZ1U/6O 5K4IOumWjttGL4y82CkiG+4jzQj32nMf9h6hVQ8W8w3xvfYEQGCAFhF/qv4ZBhE3eu2A J6IXk6PnTpEd4sBpPfpJ7sTa5PaFtubzywpLB8SLAO/3TX2iMegRigVfwjWKmAY294oX f20AnCgHy5elWSWVjvNxhV3E6e3f/4rRvyfo9vNvT7CYlJiegnHguH1lUf53x6Kuqvem 6AFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Bqf019noo37B6cshOIvzEb7lMSPHbFVN49Aqeq1dLC4=; b=V0DRtIaBWnhl6ebSRLwEoiYvn0kLpmWP3JNDn5bABXJSosAOKnUKBMMq+xMg8op6gu BcU5MoSx42THDcplekj+SOYdj5rPII3s3Gp28SUUJ9jBIgBFb9iEv5M2h5iiUUcAlZHt 11RZIsdMwDxhEzU3FGR1VUC/4j08rOlkjr0xyvou6TtJlKq0RQcqDoXFmAkfv4H9r8qD 2iXMjPSSD4VNCsM57XteUbGGoEAEYpEVMPh7my4P5ao2LD3/h5r+Q+kVQgmm75QPjZIT LKkdihcgCtTpnngybtlN+H0PgQK2RjnIEOJoZpLwZmTwkustg2n5AjNuW12fXtWtqCQt L5tQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUA8cPdQ8D623sQktSTUCgRvghhlx8O+lVdliJFOBSryl4paXYT IG6lO0RXNyVd2rRAECR9OyY= X-Google-Smtp-Source: APXvYqzmUrBMtDDmGkLfpXD3Fd0q508E5bQ6DJLWidQt6sJOj/tVjzjIVYeL2rGjUjJuWTl4hH1c9A== X-Received: by 2002:a9d:6f8a:: with SMTP id h10mr2486071otq.226.1568056479810; Mon, 09 Sep 2019 12:14:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6343:: with SMTP id y3ls2938912otk.7.gmail; Mon, 09 Sep 2019 12:14:38 -0700 (PDT) X-Received: by 2002:a9d:4699:: with SMTP id z25mr21051859ote.134.1568056478775; Mon, 09 Sep 2019 12:14:38 -0700 (PDT) In-Reply-To: X-Original-Sender: adamrice-75MS6taAHekdnm+yROfE0A@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.org gmane.text.pandoc:23410 Archived-At: ------=_Part_1453_423319088.1568056478183 Content-Type: multipart/alternative; boundary="----=_Part_1454_218089960.1568056478183" ------=_Part_1454_218089960.1568056478183 Content-Type: text/plain; charset="UTF-8" Many thanks, John. I will experiment with that. On Monday, September 9, 2019 at 12:06:43 AM UTC-5, John MacFarlane wrote: > > > See the documentation for the raw_attribute extension: > https://pandoc.org/MANUAL.html#extension-raw_attribute > > Only problem is that currently you can't do 'else' - but > you can have different output for icml and html. > > Adam Rice > writes: > > > I've got a Markdown document that I want to output to both ICML and > HTML. > > I've found that PDF images work better with ICML, and SVG works better > with > > HTML. So I'd like to do something like this in my document: > > > > > > $if(outputformat=icml)$ > > ![Some image](/assets/image1.pdf) > > $else$ > > ![Some image](/assets/image1.svg) > > $endif$ > > > > > > As far as I can tell, there's no way to do this, but I'm probably > missing > > something. > > > > -- > > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/a48963ba-047d-4488-9567-bdc8d2bd86fc%40googlegroups.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/80e0a263-9adb-4044-b03c-c7b13cb7813e%40googlegroups.com. ------=_Part_1454_218089960.1568056478183 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks, John. I will experiment with that.

On = Monday, September 9, 2019 at 12:06:43 AM UTC-5, John MacFarlane wrote:
See the documentation for the raw_attribute extension:
https://pandoc.org/MANUAL.html#extension-raw_attribute

Only problem is that currently you can't do 'else' - but
you can have different output for icml and html.

Adam Rice <adam...-75MS6taAHekdnm+yROfE0A@public.gmane.org> writes:

> I've got a Markdown document that I want to output to both ICM= L and HTML.=20
> I've found that PDF images work better with ICML, and SVG work= s better with=20
> HTML. So I'd like to do something like this in my document:
>
>
> $if(outputformat=3Dicml)$
> ![Some image](/assets/image1.pdf)
> $else$
> ![Some image](/assets/image1.svg)
> $endif$
>
>
> As far as I can tell, there's no way to do this, but I'm p= robably missing=20
> something.
>
> --=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-...@googlegroups.com.
> To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/a48963ba-047d-4488-9567-bdc8d2b= d86fc%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://groups.google.com/d/= msgid/pandoc-discuss/80e0a263-9adb-4044-b03c-c7b13cb7813e%40googlegroups.co= m.
------=_Part_1454_218089960.1568056478183-- ------=_Part_1453_423319088.1568056478183--