Great. That works. Many thanks!


On Wednesday, May 6, 2020 at 2:47:44 PM UTC-4, John MacFarlane wrote:

Put those under 'variables':

variables:
  height: whatever

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

> 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-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b82861de-dc10-40bb-8d11-69a1ba6049cc%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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6516f4ae-ffd3-4576-9ea9-483cd5cbc62e%40googlegroups.com.