* Example yaml header with options depending on the output format
@ 2020-05-06 1:21 Dominique
[not found] ` <4a0597de-a28f-4088-8de9-d8b623e682cf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Dominique @ 2020-05-06 1:21 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 989 bytes --]
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 1383 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Example yaml header with options depending on the output format
[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>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2020-05-06 5:58 UTC (permalink / raw)
To: Dominique, pandoc-discuss
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 <dominique.orban-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Example yaml header with options depending on the output format
[not found] ` <m25zd9mwom.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-05-06 18:29 ` Dominique
[not found] ` <b82861de-dc10-40bb-8d11-69a1ba6049cc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Dominique @ 2020-05-06 18:29 UTC (permalink / raw)
To: pandoc-discuss
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Example yaml header with options depending on the output format
[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>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2020-05-06 18:47 UTC (permalink / raw)
To: Dominique, pandoc-discuss
Put those under 'variables':
variables:
height: whatever
Dominique <dominique.orban-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-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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Example yaml header with options depending on the output format
[not found] ` <m2bln0lx35.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-05-06 19:01 ` Dominique
0 siblings, 0 replies; 5+ messages in thread
From: Dominique @ 2020-05-06 19:01 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 3266 bytes --]
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 <javascript:>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 5578 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-06 19:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 1:21 Example yaml header with options depending on the output format 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
[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
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).