From: Dominique <dominique.orban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Example yaml header with options depending on the output format
Date: Wed, 6 May 2020 11:29:59 -0700 (PDT) [thread overview]
Message-ID: <b82861de-dc10-40bb-8d11-69a1ba6049cc@googlegroups.com> (raw)
In-Reply-To: <m25zd9mwom.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2361 bytes --]
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 <dominiq...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 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 <javascript:>.
> > 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.
[-- Attachment #1.2: Type: text/html, Size: 3873 bytes --]
next prev parent reply other threads:[~2020-05-06 18:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 1:21 Dominique
[not found] ` <4a0597de-a28f-4088-8de9-d8b623e682cf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-06 5:58 ` John MacFarlane
[not found] ` <m25zd9mwom.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-05-06 18:29 ` Dominique [this message]
[not found] ` <b82861de-dc10-40bb-8d11-69a1ba6049cc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-06 18:47 ` John MacFarlane
[not found] ` <m2bln0lx35.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-05-06 19:01 ` Dominique
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b82861de-dc10-40bb-8d11-69a1ba6049cc@googlegroups.com \
--to=dominique.orban-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).