From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25139 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dominique Newsgroups: gmane.text.pandoc Subject: Re: Example yaml header with options depending on the output format Date: Wed, 6 May 2020 11:29:59 -0700 (PDT) Message-ID: References: <4a0597de-a28f-4088-8de9-d8b623e682cf@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1411_1837143716.1588789799512" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103511"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC4MFAF3WQCRBKEEZT2QKGQEQT57MDI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 06 20:30:04 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f186.google.com ([209.85.167.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWOnz-000QoC-MO for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 06 May 2020 20:30:03 +0200 Original-Received: by mail-oi1-f186.google.com with SMTP id c71sf2037630oig.15 for ; Wed, 06 May 2020 11:30:03 -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=kgSl5osf4+3eAj2o20KaiqfSWaUGDdSKl4gVmhCfn7U=; b=HbGoLMf3WMP8pBjvwntd3VwTgfBsMdkSyLYrCEHcU1yI88azqcKw3vVxlmAeS53gjY pidO7bzxmvbN8D5sII8hIvQQRziknP9qXtQ4sarLgUfmvGyaR/nHtvS5yBsxv0RXPGFH 294OaYIN3l+rHDBmLRWIcjvj2uIp7GNUqYSwNtVaZil+uYbU3aa9gcJNbeAhtDRDtYr0 wwBZ4ymfOLNQFaOfCphgKmE21O6PAAUGDrSVfVKRyaRUo0Us4g4dfgU6M6/4ijWiZOsd +6GMxSbJG4cLO/lH6KGR87JoxTgZVhn0394pZ9591fbJmufz1OWygAJIU53A41FFyI4a kCQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=kgSl5osf4+3eAj2o20KaiqfSWaUGDdSKl4gVmhCfn7U=; b=pZPplMZLGN3KWuYgKjxFB0/j8+IZXI1LPA5v8GNWK7cmwiLk6EkbrOFWCd6CFPWEG0 BRD0+j5RDJA+SeKpkMRgS/sNxbREaveFSAFRIczPMgksE1cILEzxPCB/A9iSdny4ACb0 OvTf1SVq17tV+fMO9eLSzGUcQmsQ0FnGGYJ/khmyiBlT15pzMkHX5XlhtYZSFgODfYKw jIPAB6nYO+zTH8KcZyu7GeBDUmNUMnGw5I3MLbZpIwF2seRVaFEo/1jOjzz9J5NiHBhw javBYrxim6BexUoKkBRwUS2gWIGlgcfJFCyVmA67F/8Wn1IDcgKmj30IEip++n2VH44b 1xrw== 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=kgSl5osf4+3eAj2o20KaiqfSWaUGDdSKl4gVmhCfn7U=; b=Skh31XeVsMw42Rx0TGNniGXXgJfP6G/6BM4B+QpJVbK7S7kolCk0I4tO9+SChP/TTL XRnW9xZF8E8mP+yguk/wGnoFgX+Ly7RQFz0FvMJjuaUOeZTy54x0JCR8Dtc5geVgJqza 5AoqT6eypQAsdVEDzzwo889nLWpN12x9B+xw2RxG7Ptw1vEC33s8Z+dNFO8fj9lPqt++ I5D8pbPGHQwI+Rnd/43E3f3vBWyqC1qsEa/gRHnnvZZi/jpzZTGj1BmVtUwu0TtqjuRB PYCpKIpvaJPRukRyBOSUCgyDasRziGP9BbygdqLg2AFZcAhqsV4hS4slYArL0lLpyohm ezrQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuYIDa2UhBnV8gUkTqB700YD2OBbgrj9ISZ5k2fUd3zWsSyujh4n MJoYkLvnRlAtgFgPgyG2Ros= X-Google-Smtp-Source: APiQypLhbWkErvY1/4dzA6sSRQjawks9ClHiAklVHR0n8Ai2lITr50UEnD4iN6/r+MTd+46X6FlYZg== X-Received: by 2002:a05:6830:2109:: with SMTP id i9mr6979853otc.211.1588789802706; Wed, 06 May 2020 11:30:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:57c7:: with SMTP id l190ls794268oib.10.gmail; Wed, 06 May 2020 11:30:00 -0700 (PDT) X-Received: by 2002:aca:ddd7:: with SMTP id u206mr3503534oig.145.1588789800192; Wed, 06 May 2020 11:30:00 -0700 (PDT) In-Reply-To: X-Original-Sender: dominique.orban-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:25139 Archived-At: ------=_Part_1411_1837143716.1588789799512 Content-Type: multipart/alternative; boundary="----=_Part_1412_1446014146.1588789799513" ------=_Part_1412_1446014146.1588789799513 Content-Type: text/plain; charset="UTF-8" Thanks, that seems reasonable. There's more to learn about Pandoc every day! I tried writing a defaults file but Pandoc complains that certain options in there are not recognized. In particular, "height" and "revealjs-url" appear invalid. They were recognized in the yaml header block (in the main md source file). Same problem with Beamer: option "aspectratio" is not recognized. Any suggestions? On Wednesday, May 6, 2020 at 1:58:50 AM UTC-4, John MacFarlane wrote: > > > Personally I'd suggest using a defaults file for the theme > and other presentational details, reserving the YAML metadata > for actual metadata. > > You could have one defaults file for revealjs and another for > beamer; in addition to different themes, these could specify > the output format. > > Dominique > writes: > > > I wrote a presentation in Markdown and converted it to HTML with pandoc > > using the revealjs format. I set several options in the yaml header, > > including the theme. > > > > Now I would like to export the same presentation to PDF using the beamer > > output format. However, pandoc complains that the theme I selected for > > Reveal.js isn't recognized for Beamer. Conversely, I would like to set > > options for Beamer (e.g., aspectratio) that aren't recognized for > Reveal.js. > > > > Could someone show an example of a yaml header block that specifies > options > > for two or more output formats? > > > > Thanks. > > > > -- > > 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/4a0597de-a28f-4088-8de9-d8b623e682cf%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/b82861de-dc10-40bb-8d11-69a1ba6049cc%40googlegroups.com. ------=_Part_1412_1446014146.1588789799513 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, that seems reasonable. There's more to learn a= bout Pandoc every day!

I tried writing a defaults file b= ut Pandoc complains that certain options in there are not recognized. In pa= rticular, "height" and "revealjs-url" appear invalid. T= hey were recognized in the yaml header block (in the main md source file).<= /div>

Same problem with Beamer: option "aspectratio= " is not recognized.

Any suggestions?

= On Wednesday, May 6, 2020 at 1:58:50 AM UTC-4, John MacFarlane wrote:
Personally I'd suggest using a defaults file for the theme
and other presentational details, reserving the YAML metadata
for actual metadata.

You could have one defaults file for revealjs and another for
beamer; in addition to different themes, these could specify
the output format.

Dominique <dominiq...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I wrote a presentation in Markdown and converted it to HTML with p= andoc=20
> using the revealjs format. I set several options in the yaml heade= r,=20
> including the theme.
>
> Now I would like to export the same presentation to PDF using the = beamer=20
> output format. However, pandoc complains that the theme I selected= for=20
> Reveal.js isn't recognized for Beamer. Conversely, I would lik= e to set=20
> options for Beamer (e.g., aspectratio) that aren't recognized = for Reveal.js.
>
> Could someone show an example of a yaml header block that specifie= s options=20
> for two or more output formats?
>
> Thanks.
>
> --=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/4a0597de-a28f-4088-8de9-d8b623e= 682cf%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/b82861de-dc10-40bb-8d11-69a1ba6049cc%40googlegroups.co= m.
------=_Part_1412_1446014146.1588789799513-- ------=_Part_1411_1837143716.1588789799512--