public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* header-includes
@ 2020-11-21  2:21 Alan Tyree
       [not found] ` <CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd=EvzxympMwWUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Tyree @ 2020-11-21  2:21 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 908 bytes --]

G'day,

Org mode has separate entries for LATEX_HEADER and for HTML_HEAD. It makes
it convenient to keep export information all in the one file.

Is this possible in pandoc? I can only see putting a 'header-includes'
entry in the YAML heading or maintaining separate metadata files.

It's not a big deal since it can be handled through a makefile or a bash
script, but I like the org mode approach.

Cheers,
Alan

-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan

-- 
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/CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd%3DEvzxympMwWUg%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 1630 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: header-includes
       [not found] ` <CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd=EvzxympMwWUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2020-11-21  2:47   ` John MacFarlane
       [not found]     ` <m2eeknfmto.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-11-21  2:47 UTC (permalink / raw)
  To: Alan Tyree, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


In a markdown YAML metadata section, you can make header-includes
something like this:

```{=html}
stuff for HTML
```
```{=latex}
stuff for LaTeX
```

The HTML will only appear in HTML output, and the LaTeX in LaTeX
output.

Alan Tyree <alantyree-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> G'day,
>
> Org mode has separate entries for LATEX_HEADER and for HTML_HEAD. It makes
> it convenient to keep export information all in the one file.
>
> Is this possible in pandoc? I can only see putting a 'header-includes'
> entry in the YAML heading or maintaining separate metadata files.
>
> It's not a big deal since it can be handled through a makefile or a bash
> script, but I like the org mode approach.
>
> Cheers,
> Alan
>
> -- 
> Alan L Tyree                    http://www2.austlii.edu.au/~alan
>
> -- 
> 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/CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd%3DEvzxympMwWUg%40mail.gmail.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: header-includes
       [not found]     ` <m2eeknfmto.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-11-21  4:43       ` Alan Tyree
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Tyree @ 2020-11-21  4:43 UTC (permalink / raw)
  To: John MacFarlane; +Cc: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1976 bytes --]

Thanks, John. I like pandoc more and more every day!

On Sat, 21 Nov 2020 at 13:47, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:

>
> In a markdown YAML metadata section, you can make header-includes
> something like this:
>
> ```{=html}
> stuff for HTML
> ```
> ```{=latex}
> stuff for LaTeX
> ```
>
> The HTML will only appear in HTML output, and the LaTeX in LaTeX
> output.
>
> Alan Tyree <alantyree-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > G'day,
> >
> > Org mode has separate entries for LATEX_HEADER and for HTML_HEAD. It
> makes
> > it convenient to keep export information all in the one file.
> >
> > Is this possible in pandoc? I can only see putting a 'header-includes'
> > entry in the YAML heading or maintaining separate metadata files.
> >
> > It's not a big deal since it can be handled through a makefile or a bash
> > script, but I like the org mode approach.
> >
> > Cheers,
> > Alan
> >
> > --
> > Alan L Tyree                    http://www2.austlii.edu.au/~alan
> >
> > --
> > 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/CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd%3DEvzxympMwWUg%40mail.gmail.com
> .
>


-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan

-- 
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/CAGMsgMyxOqfOTU%3DMYDZFt3%2BVQ-yrNTv3-Qhp1JEAy7%2BxRiCbvQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3431 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-21  4:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21  2:21 header-includes Alan Tyree
     [not found] ` <CAGMsgMyvBxf7cyKBhoERkcV1jwGFkLgafCnPd=EvzxympMwWUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-11-21  2:47   ` header-includes John MacFarlane
     [not found]     ` <m2eeknfmto.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-21  4:43       ` header-includes Alan Tyree

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).