From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23336 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Re: How to inject YAML-style metadata Date: Fri, 30 Aug 2019 00:23:52 -0700 (PDT) Message-ID: <71bf38c4-15ee-4b5d-9725-4695b04b799b@googlegroups.com> References: <05a24a0b-9441-4aa4-8f07-84922a6c7196@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_299_1942676011.1567149832440" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171293"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBBCM6UPVQKGQEL6TCQEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 30 09:23:58 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i3bGG-000iQK-9U for gtp-pandoc-discuss@m.gmane.org; Fri, 30 Aug 2019 09:23:56 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id f21sf2490788oig.16 for ; Fri, 30 Aug 2019 00:23:55 -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=IWKl1mG+gNPGeNJbMlxNReeIG5GqWHC211Mw8fIY9Xw=; b=SjcE5F3Ws8PwOEIj2TmgauJJb9/j6JZFrRRn4Ey2uxYdyuhhnis7ZKgvkDdlWus7l9 uW+lpRI8ovHuDSMx32t6tAKVNVxr2sS2HT5OMe1UHVUSY/8+F88hfBnWf1j94Y2Kn8KR zTYxQ5a2MPm2k4ZxzE9Yv9qDEhjBwDzm+/t0UoNzRFqpr9qn5sBflCRMFAAA4p5fyDT4 ZZzh2R9lsnfaaZI5i+xaFNmwIQJelbNi9dk6e+t+PIAbFb9s5H4+jJVY4nDBHIBPCMWE uT7Ig2IcqRuzDb9g/6RYl8rONyrKT6/k2tNZ0VLiwqz7Hiapw9q9HG3Or5zbQa9RpOxo SVvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=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=IWKl1mG+gNPGeNJbMlxNReeIG5GqWHC211Mw8fIY9Xw=; b=azTlVuods7lDivPUTDR4DFdU2SktQcYaS5yh2od3gPDvL65KhipUOBimdZ6lYvb1Jj vsFwMH2yCREzLOGS+ipM5uzjrk6ekwl66pkzoYlBTkSoacWg4CXWpuLrm3brHu4VwtbH WTe06FvOBaDIHkcZWv0//Xw1sd6FIApKi2HB92u12lEdUft4ZI5Y/x6OkIMN2u2nvYf1 1kKohDSJFq4fZ7RBVoGdZwEj9LtgVLSanu6ice3Ltm8nXIt/PlqYvtkl/zM2Ek4Y7gts cGABEsJ1tGAtwJRhZD4JS1Ghw7dGsHmN3ujA8A5MGikNmKQVXQbEaEWe7+XgIlDFtcNV dELw== 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=IWKl1mG+gNPGeNJbMlxNReeIG5GqWHC211Mw8fIY9Xw=; b=qJxpfMej2N6hx0AZQ33JF+/f5KEf3DWEMdgchoKE1dSbfCsgwNxeTAG8UVwSVyV68m FKpONTeAnIIhp7eQWO9oTjOwUQktLIao8evQrxT98OL6CaywFzHWVJFA8Err1kflxp0I zCxUFKSm0oq6NUrRHx5UtD4xJVcWtS1e4odWs2GQz6rA5oiK6KDyjE2vodHUeq6Hi6wD 0XqJGzotmtW8SmzQ9HMm9i8JPP1kSDBktC8WL05vVjTOg0zO2QxaTVfVwa3XjRSJqL/s OX8qG/nA9dl6tGgEXHiWs/qsah8O7h1R0UWqAmYRLyZUxMbWGRJ2ad4BashkL8O2JX1F k+3g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXN1PlkvzjIER9wgKtmB5T3YSUtFTklKvDxVe257A+V+nyPwlvW eTZxZz6gmTJnHTq1S9gKOeA= X-Google-Smtp-Source: APXvYqz6MAVJbIiZJV1VFxAEJ7JNjQBf/KsgMzAVqdvOtI/KzdIaQVEjvmpPSGmxUF/bTsmbXTCJgw== X-Received: by 2002:a9d:7b44:: with SMTP id f4mr638280oto.42.1567149834571; Fri, 30 Aug 2019 00:23:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:688:: with SMTP id 8ls88559otx.9.gmail; Fri, 30 Aug 2019 00:23:53 -0700 (PDT) X-Received: by 2002:a05:6830:1e38:: with SMTP id t24mr10744309otr.134.1567149833003; Fri, 30 Aug 2019 00:23:53 -0700 (PDT) In-Reply-To: <05a24a0b-9441-4aa4-8f07-84922a6c7196-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: mauro.bieg-Re5JQEeQqe8AvxtiuMwx3w@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:23336 Archived-At: ------=_Part_299_1942676011.1567149832440 Content-Type: multipart/alternative; boundary="----=_Part_300_641986374.1567149832440" ------=_Part_300_641986374.1567149832440 Content-Type: text/plain; charset="UTF-8" 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/71bf38c4-15ee-4b5d-9725-4695b04b799b%40googlegroups.com. ------=_Part_300_641986374.1567149832440 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you're on macOS or Linux you can use the shell to c= oncatenate the files before feeding them to pandoc:

=C2= =A0 =C2=A0 pandoc -t latex format.yaml input.md

Al= ternatively, you can use:

=C2=A0 =C2=A0 pandoc --m= etadata-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 files with a YAML h= eader consisting only of metadata fields relating to the content, li= ke title, author, etc.

In another file format.yaml I have the YAML metadata applying t= o 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!


<= /blockquote>

--
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/71bf38c4-15ee-4b5d-9725-4695b04b799b%40googlegroups.co= m.
------=_Part_300_641986374.1567149832440-- ------=_Part_299_1942676011.1567149832440--