From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23337 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Oliver Baumann Newsgroups: gmane.text.pandoc Subject: Re: How to inject YAML-style metadata Date: Fri, 30 Aug 2019 00:46:39 -0700 (PDT) Message-ID: <565694c1-c6b2-4903-97d8-90354a3acacf@googlegroups.com> References: <05a24a0b-9441-4aa4-8f07-84922a6c7196@googlegroups.com> <71bf38c4-15ee-4b5d-9725-4695b04b799b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_162_1271136781.1567151199357" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="5905"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEMPL7DTEMRBYFIUPVQKGQETJ5DNNQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 30 09:46:42 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i3bcI-0001Nt-GL for gtp-pandoc-discuss@m.gmane.org; Fri, 30 Aug 2019 09:46:42 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id k70sf3224429otk.6 for ; Fri, 30 Aug 2019 00:46:42 -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=e0IEfmBh03ZwdLEV6uDcaZuNswy62nvRLMLYlstaM+o=; b=CnrI7WaBbnlr/KF5cJcN09/iMBW9oEmLF5OmO9NqSQBLWOsc+83gS2DRo9jjrjNQ0h 2RvR97ugV5tLDrWGcBCWkwNz9i5FY+6dUP0IdDKALcS4i9VKopbTuv+U1dkqdeNIv80f DnYPBsN+IortmkKDNrv0s0YX3lLZRwNXj/04GO58pUWKk19CH3Rj23brJYZ4gUYwkW/k OKisTNLrYnCFYj0aXKlPWWFIHSiGwIMV9zDoBgkEPzvWddj20ZY04QuMfHpUt3cuVcme ONUzv8S1OgF8unlnOdAxIYzAuD3UYYY7vUYsfDb5IAMrNKQ4WSYNtwx8/VJd4poprLrC 5PYg== 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=e0IEfmBh03ZwdLEV6uDcaZuNswy62nvRLMLYlstaM+o=; b=UrC/NxAkhrsCrJALbqba/PeYujjtZ7vT9Mhiofgd2si3RO6clch5M5wbfg5N9GFdGo K02pjJXgzc5HM0H7XAofYZuxT4RG1SgovRMyQa5/AY/rK59esOFUk18KHIyXJzPxhZnZ c7g082MPhCFXjvYxQ+sC2RC02smrm0dBR8eOJ7hQXovEL7EIjUV7+BTkcN1M82iIFIy9 C8PBcmYwOabId3ny03RaT5JaqL65VvBLNvF/qQPXPXibaxka95oHORFELkNe+ThFxDrE vHsrfI5I9hd+OF5LbIxs9Qh5uPy9IpQmvknA2ftpuQWSOfSwg/Ln9Ei0myatRLdoIj7s O0RA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVC62VQp7ZdpAR4OAHTD9qGxOU6h4wj+LTR61CDlR/x35iPWFJs Sot08N0hUOhvR1l/Zcscw+E= X-Google-Smtp-Source: APXvYqyuaTBGw7FCjumTyF9B40Lk3KbwGdwQb+tPPOWQQbIny8xoqyiSwqYVjwgqwcVxBVqsoVoyZg== X-Received: by 2002:a9d:7087:: with SMTP id l7mr7265297otj.142.1567151201228; Fri, 30 Aug 2019 00:46:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:f19:: with SMTP id 25ls74078oip.12.gmail; Fri, 30 Aug 2019 00:46:40 -0700 (PDT) X-Received: by 2002:aca:1104:: with SMTP id 4mr9472567oir.65.1567151199959; Fri, 30 Aug 2019 00:46:39 -0700 (PDT) In-Reply-To: <71bf38c4-15ee-4b5d-9725-4695b04b799b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@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.org gmane.text.pandoc:23337 ------=_Part_162_1271136781.1567151199357 Content-Type: multipart/alternative; boundary="----=_Part_163_1776319107.1567151199358" ------=_Part_163_1776319107.1567151199358 Content-Type: text/plain; charset="UTF-8" --metadata-file was *exactly *what I was looking for! Suoer-many tahnks! On Friday, August 30, 2019 at 5:23:52 PM UTC+10, mb21 wrote: > > If you're on macOS or Linux you can use the shell to concatenate the files > before feeding them to pandoc: > > pandoc -t latex format.yaml input.md > > Alternatively, you can use: > > pandoc --metadata-file format.yaml -t latex input.md > > On Friday, August 30, 2019 at 6:50:22 AM UTC+2, Oliver Baumann wrote: >> >> I write my Markdown files with a YAML header consisting only of metadata >> fields relating to the *content*, like title, author, etc. >> >> In another file format.yaml I have the YAML metadata applying to the >> *formatting*, like documentclass, font- or papersize. >> >> How can I inject format.yaml into pandoc, so that it is used when I >> convert my source to LaTeX? I'm looking for something like >> --include-in-header, but for YAML and injected before the template is >> set-up. >> >> Many thanks for any pointers! >> >> >> -- 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/565694c1-c6b2-4903-97d8-90354a3acacf%40googlegroups.com. ------=_Part_163_1776319107.1567151199358 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= --metadata-file was exactly what I was looking for!

Suoer-many tahnks!


On Frida= y, August 30, 2019 at 5:23:52 PM UTC+10, mb21 wrote:
If you're on macOS or Linux you = can use the shell to concatenate the files before feeding them to pandoc:
=C2=A0 =C2=A0 pandoc -t latex format.yaml input.md
<= div>
Alternatively, you can use:

=C2= =A0 =C2=A0 pandoc --metadata-file=C2=A0format.yaml -t latex input.md
On Friday, August 30, 2019 at 6:50:22 AM UTC+2, Oliver Baumann wrote:
I write my Markdown fil= es with a YAML header consisting only of metadata fields relating to the content, like title, author, etc.

In another file format.yaml I have the YAML m= etadata applying to the formatting, like documentclass, font- or pap= ersize.

How can I inject format.yaml into pandoc, so that it is used when I convert my= source to LaTeX? I'm looking for something like --include-in-header, but for YAML and in= jected before the template is set-up.

Many thanks for any pointers!<= br>

--
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/565694c1-c6b2-4903-97d8-90354a3acacf%40googlegroups.co= m.
------=_Part_163_1776319107.1567151199358-- ------=_Part_162_1271136781.1567151199357--